PageSourceSearch

https://bizvantage.ai/static/js/main.b5411b32.js

js bizvantage.ai collected 2026-10-05 13:54:13 UTC 2,324,109 bytes, 3 lines download raw bytes

vendor: 8,549 bytes, lines 1-2
1/*! For license information please see main.b5411b32.js.LICENSE.txt */
2(()=>{var e={8923:(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"}),r=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===r.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"===typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}},t.freeze=n,t.MIME_TYPE=i,t.NAMESPACE=r},5739:(e,t,n)=>{var i=n(8923),r=n(3699),a=n(248),o=n(1095),s=r.DOMImplementation,l=i.NAMESPACE,c=o.ParseError,u=o.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function f(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(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 v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var n=this.options,i=new u,r=n.domBuilder||new f,o=n.errorHandler,s=n.locator,c=n.xmlns||{},h=/\/x?html?$/.test(t),p=h?a.HTML_ENTITIES:a.XML_ENTITIES;s&&r.setDocumentLocator(s),i.errorHandler=function(e,t,n){if(!e){if(t instanceof f)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+g(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}(o,r,s),i.domBuilder=n.domBuilder||r,h&&(c[""]=l.HTML),c.xml=c.xml||l.XML;var m=n.normalizeLineEndings||d;return e&&"string"===typeof e?i.parse(m(e),c,p):i.errorHandler.error("invalid doc source"),r.doc},f.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),o=i.length;v(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s<o;s++){e=i.getURI(s);var l=i.getValue(s),c=(n=i.getQName(s),r.createAttributeNS(e,n));this.locator&&p(i.getLocator(s),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&p(this.locator,n),v(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=m.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&p(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&p(this.locator,i),v(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&p(this.locator,r),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,g(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,g(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.DOMParser=h},3699:(e,t,n)=>{var i=n(8923),r=i.find,a=i.NAMESPACE;function o(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(o):[]}(e);return Object.keys(t.reduce(s,{}))}function c(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function u(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,c(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var d={},h=d.ELEMENT_NODE=1,f=d.ATTRIBUTE_NODE=2,p=d.TEXT_NODE=3,g=d.CDATA_SECTION_NODE=4,m=d.ENTITY_REFERENCE_NODE=5,v=d.ENTITY_NODE=6,b=d.PROCESSING_INSTRUCTION_NODE=7,y=d.COMMENT_NODE=8,x=d.DOCUMENT_NODE=9,w=d.DOCUMENT_TYPE_NODE=10,_=d.DOCUMENT_FRAGMENT_NODE=11,D=d.NOTATION_NODE=12,S={},k={},C=(S.INDEX_SIZE_ERR=(k[1]="Index size error",1),S.DOMSTRING_SIZE_ERR=(k[2]="DOMString size error",2),S.HIERARCHY_REQUEST_ERR=(k[3]="Hierarchy request error",3)),A=(S.WRONG_DOCUMENT_ERR=(k[4]="Wrong document",4),S.INVALID_CHARACTER_ERR=(k[5]="Invalid character",5),S.NO_DATA_ALLOWED_ERR=(k[6]="No data allowed",6),S.NO_MODIFICATION_ALLOWED_ERR=(k[7]="No modification allowed",7),S.NOT_FOUND_ERR=(k[8]="Not found",8)),T=(S.NOT_SUPPORTED_ERR=(k[9]="Not supported",9),S.INUSE_ATTRIBUTE_ERR=(k[10]="Attribute in use",10));S.INVALID_STATE_ERR=(k[11]="Invalid state",11),S.SYNTAX_ERR=(k[12]="Syntax error",12),S.INVALID_MODIFICATION_ERR=(k[13]="Invalid modification",13),S.NAMESPACE_ERR=(k[14]="Invalid namespace",14),S.INVALID_ACCESS_ERR=(k[15]="Invalid access",15);function E(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,k[e]),this.message=k[e],Error.captureStackTrace&&Error.captureStackTrace(this,E);return n.code=e,t&&(this.message=this.message+": "+t),n}function N(){}function M(e,t){this._node=e,this._refresh=t,P(this)}function P(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(xe(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];c(n,e),e._inc=t}}function U(){}function j(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function F(e,t,n,i){if(i?t[j(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&z(r,e,i),function(e,t,n){e&&e._inc++;var i=n.namespaceURI;i===a.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(r,e,n))}}function R(e,t,n){var i=j(t,n);if(!(i>=0))throw new E(A,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(z(a,e,n),n.ownerElement=null)}}function O(){}function I(){}function L(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(B(e,t))return!0}while(e=e.nextSibling)}function W(){this.ownerDocument=this}function z(e,t,n,i){e&&e._inc++,n.namespaceURI===a.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function V(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a,delete i[i.length]}}}function H(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function q(e){return e&&e.nodeType===I.DOCUMENT_TYPE_NODE}function G(e){return e&&e.nodeType===I.ELEMENT_NODE}function Y(e){return e&&e.nodeType===I.TEXT_NODE}function X(e,t){var n=e.childNodes||[];if(r(n,G)||q(t))return!1;var i=r(n,q);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function K(e,t){var n=e.childNodes||[];if(r(n,(function(e){return G(e)&&e!==t})))return!1;var i=r(n,q);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function $(e,t,n){if(!function(e){return e&&(e.nodeType===I.DOCUMENT_NODE||e.nodeType===I.DOCUMENT_FRAGMENT_NODE||e.nodeType===I.ELEMENT_NODE)}(e))throw new E(C,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new E(A,"child not in parent");
vendor: 4,375 bytes, line 2
2if(!function(e){return e&&(G(e)||Y(e)||q(e)||e.nodeType===I.DOCUMENT_FRAGMENT_NODE||e.nodeType===I.COMMENT_NODE||e.nodeType===I.PROCESSING_INSTRUCTION_NODE)}(t)||q(t)&&e.nodeType!==I.DOCUMENT_NODE)throw new E(C,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function Q(e,t,n){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===I.DOCUMENT_FRAGMENT_NODE){var o=a.filter(G);if(o.length>1||r(a,Y))throw new E(C,"More than one element or text in fragment");if(1===o.length&&!X(e,n))throw new E(C,"Element in fragment can not be inserted before doctype")}if(G(t)&&!X(e,n))throw new E(C,"Only one element can be added and only after doctype");if(q(t)){if(r(i,q))throw new E(C,"Only one doctype is allowed");var s=r(i,G);if(n&&i.indexOf(s)<i.indexOf(n))throw new E(C,"Doctype can only be inserted before an element");if(!n&&s)throw new E(C,"Doctype can not be appended since element is present")}}function Z(e,t,n){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===I.DOCUMENT_FRAGMENT_NODE){var o=a.filter(G);if(o.length>1||r(a,Y))throw new E(C,"More than one element or text in fragment");if(1===o.length&&!K(e,n))throw new E(C,"Element in fragment can not be inserted before doctype")}if(G(t)&&!K(e,n))throw new E(C,"Only one element can be added and only after doctype");if(q(t)){if(r(i,(function(e){return q(e)&&e!==n})))throw new E(C,"Only one doctype is allowed");var s=r(i,G);if(n&&i.indexOf(s)<i.indexOf(n))throw new E(C,"Doctype can only be inserted before an element")}}function J(e,t,n,i){$(e,t,n),e.nodeType===I.DOCUMENT_NODE&&(i||Q)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===_){var a=t.firstChild;if(null==a)return t;var o=t.lastChild}else a=o=t;var s=n?n.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=n,s?s.nextSibling=a:e.firstChild=a,null==n?e.lastChild=o:n.previousSibling=o;do{a.parentNode=e,ee(a,e.ownerDocument||e)}while(a!==o&&(a=a.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==_&&(t.firstChild=t.lastChild=null),t}function ee(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===h&&e.attributes)for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);i&&(i.ownerDocument=t)}for(var r=e.firstChild;r;)ee(r,t),r=r.nextSibling}}function te(){this._nsMap={}}function ne(){}function ie(){}function re(){}function ae(){}function oe(){}function se(){}function le(){}function ce(){}function ue(){}function de(){}function he(){}function fe(){}function pe(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r&&null==(r=i.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ve(this,n,e,t,o),n.join("")}function ge(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===i&&r===a.XML||r===a.XMLNS)return!1;for(var o=n.length;o--;){var s=n[o];if(s.prefix===i)return s.namespace!==r}return!0}function me(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,L),'"')}function ve(e,t,n,i,r){if(r||(r=[]),i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case h:var o=e.attributes,s=o.length,l=e.firstChild,c=e.tagName,u=c;if(!(n=a.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var d,v=0;v<o.length;v++)if("xmlns"===o.item(v).name){d=o.item(v).value;break}if(!d)for(var D=r.length-1;D>=0;D--){if(""===(S=r[D]).prefix&&S.namespace===e.namespaceURI){d=S.namespace;break}}if(d!==e.namespaceURI)for(D=r.length-1;D>=0;D--){var S;if((S=r[D]).namespace===e.namespaceURI){S.prefix&&(u=S.prefix+":"+c);break}}}t.push("<",u);for(var k=0;k<s;k++){"xmlns"==(C=o.item(k)).prefix?r.push({prefix:C.localName,namespace:C.value}):"xmlns"==C.nodeName&&r.push({prefix:"",namespace:C.value})}for(k=0;k<s;k++){var C,A,T;if(ge(C=o.item(k),0,r))me(t,(A=C.prefix||"")?"xmlns:"+A:"xmlns",T=C.namespaceURI),r.push({prefix:A,namespace:T});ve(C,t,n,i,r)}if(c===u&&ge(e,0,r))me(t,(A=e.prefix||"")?"xmlns:"+A:"xmlns",T=e.namespaceURI),r.push({prefix:A,namespace:T});if(l||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),n&&/^script$/i.test(c))for(;l;)l.data?t.push(l.data):ve(l,t,n,i,r.slice()),l=l.nextSibling;else for(;l;)ve(l,t,n,i,r.slice()),l=l.nextSibling;t.push("</",u,">")}else t.push("/>");return;case x:case _:for(l=e.firstChild;l;)ve(l,t,n,i,r.slice()),l=l.nextSibling;return;case f:return me(t,e.name,e.value);case p:return t.push(e.data.replace(/[<&>]/g,L));
vendor: 5,996 bytes, line 2
2case g:return t.push("<![CDATA[",e.data,"]]>");case y:return t.push("\x3c!--",e.data,"--\x3e");case w:var E=e.publicId,N=e.systemId;if(t.push("<!DOCTYPE ",e.name),E)t.push(" PUBLIC ",E),N&&"."!=N&&t.push(" ",N),t.push(">");else if(N&&"."!=N)t.push(" SYSTEM ",N,">");else{var M=e.internalSubset;M&&t.push(" [",M,"]"),t.push(">")}return;case b:return t.push("<?",e.target," ",e.data,"?>");case m:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function be(e,t,n){var i;switch(t.nodeType){case h:(i=t.cloneNode(!1)).ownerDocument=e;case _:break;case f:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(be(e,r,n)),r=r.nextSibling;return i}function ye(e,t,n){var i=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=t[r];"object"!=typeof a&&a!=i[r]&&(i[r]=a)}switch(t.childNodes&&(i.childNodes=new N),i.ownerDocument=e,i.nodeType){case h:var o=t.attributes,s=i.attributes=new U,l=o.length;s._ownerElement=i;for(var c=0;c<l;c++)i.setAttributeNode(ye(e,o.item(c),!0));break;case f:n=!0}if(n)for(var u=t.firstChild;u;)i.appendChild(ye(e,u,n)),u=u.nextSibling;return i}function xe(e,t,n){e[t]=n}E.prototype=Error.prototype,c(S,E),N.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)ve(this[i],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},M.prototype.item=function(e){return P(this),this[e]||null},u(M,N),U.prototype={length:0,item:N.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new E(T);var n=this.getNamedItem(e.nodeName);return F(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new E(T);return t=this.getNamedItemNS(e.namespaceURI,e.localName),F(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return R(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return R(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},O.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new W;if(i.implementation=this,i.childNodes=new N,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new se;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},I.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return J(this,e,t)},replaceChild:function(e,t){J(this,e,t,Z),t&&this.removeChild(t)},removeChild:function(e){return H(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ye(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==p&&e.nodeType==p?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},c(d,I),c(d,I.prototype),W.prototype={nodeName:"#document",nodeType:x,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==_){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return J(this,e,t),ee(e,this),null===this.documentElement&&e.nodeType===h&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},replaceChild:function(e,t){J(this,e,t,Z),ee(e,this),t&&this.removeChild(t),G(e)&&(this.documentElement=e)},importNode:function(e,t){return be(this,e,t)},getElementById:function(e){var t=null;return B(this.documentElement,(function(n){if(n.nodeType==h&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=l(e);return new M(this,(function(n){var i=[];return t.length>0&&B(n.documentElement,(function(r){if(r!==n&&r.nodeType===h){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var s=l(a);o=t.every((c=s,function(e){return c&&-1!==c.indexOf(e)}))}o&&i.push(r)}}var c})),i}))},createElement:function(e){var t=new te;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new N,(t.attributes=new U)._ownerElement=t,t},createDocumentFragment:function(){var e=new de;return e.ownerDocument=this,e.childNodes=new N,e},createTextNode:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ae;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new oe;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new he;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new ne;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ue;return t.ownerDocument=this,t.nodeName=e,t}
vendor: 4,453 bytes, line 2
2,createElementNS:function(e,t){var n=new te,i=t.split(":"),r=n.attributes=new U;return n.childNodes=new N,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,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new ne,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}},u(W,I),te.prototype={nodeType:h,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===_?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),ee(t,e.ownerDocument||e),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 M(this,(function(t){var n=[];return B(t,(function(i){i===t||i.nodeType!=h||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new M(this,(function(n){var i=[];return B(n,(function(r){r===n||r.nodeType!==h||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},W.prototype.getElementsByTagName=te.prototype.getElementsByTagName,W.prototype.getElementsByTagNameNS=te.prototype.getElementsByTagNameNS,u(te,I),ne.prototype.nodeType=f,u(ne,I),ie.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(k[C])},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}},u(ie,I),re.prototype={nodeName:"#text",nodeType:p,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}},u(re,ie),ae.prototype={nodeName:"#comment",nodeType:y},u(ae,ie),oe.prototype={nodeName:"#cdata-section",nodeType:g},u(oe,ie),se.prototype.nodeType=w,u(se,I),le.prototype.nodeType=D,u(le,I),ce.prototype.nodeType=v,u(ce,I),ue.prototype.nodeType=m,u(ue,I),de.prototype.nodeName="#document-fragment",de.prototype.nodeType=_,u(de,I),he.prototype.nodeType=b,u(he,I),fe.prototype.serializeToString=function(e,t,n){return pe.call(e,t,n)},I.prototype.toString=pe;try{if(Object.defineProperty){function we(e){switch(e.nodeType){case h:case _:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(we(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(M.prototype,"length",{get:function(){return P(this),this.$$length}}),Object.defineProperty(I.prototype,"textContent",{get:function(){return we(this)},set:function(e){switch(this.nodeType){case h:case _: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}}}),xe=function(e,t,n){e["$$"+t]=n}}}catch(_e){}t.DocumentType=se,t.DOMException=E,t.DOMImplementation=O,t.Element=te,t.Node=I,t.NodeList=N,t.XMLSerializer
2=fe},248:(e,t,n)=>{"use strict";var i=n(8923).freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"\u212d",cfr:"\ud835\udd20",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",cir
2cledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",Conint:"\u222f",conint:"\u222e",ContourIntegral:"\u222e",Copf:"\u2102",copf:"\ud835\udd54",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xa9",copy:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",Cross:"\u2a2f",cross:"\u2717",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",Cup:"\u22d3",cup:"\u222a",cupbrcap:"\u2a48",CupCap:"\u224d",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21a1",dArr:"\u21d3",darr:"\u2193",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",Diamond:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21d3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",ecir:"\u2256",Ecirc:"\xca",ecirc:"\xea",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212f",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",ForAll:"\u2200",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\ud835\udcbb",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",Gg:"\u22d9",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",GJ
2cy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gnE:"\u2269",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",Gt:"\u226b",GT:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",hArr:"\u21d4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",Hfr:"\u210c",hfr:"\ud835\udd25",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",Hopf:"\u210d",hopf:"\ud835\udd59",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210b",hscr:"\ud835\udcbd",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",Ifr:"\u2111",ifr:"\ud835\udd26",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",Int:"\u222c",int:"\u222b",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",Iscr:"\u2110",iscr:"\ud835\udcbe",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",Lang:"\u27ea",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",Larr:"\u219e",lArr:"\u21d0",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",lAtail:"\u291b",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lBarr:"\u290e",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",Leftarrow:"\u21d0",leftarrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesd
2oto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22d8",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lnE:"\u2268",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftarrow:"\u27f5",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\ud835\udcc1",Lsh:"\u21b0",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226a",LT:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",Mscr:"\u2133",mscr:"\ud835\udcc2",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21d7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlArr:"\u21cd",nlarr:"\u219a",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21cd",nleftarrow:"\u219a",nLeftrightarrow:"\u21ce",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",nopf:"\ud835\udd5f",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u
20338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nRightarrow:"\u21cf",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u
203bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nVDash:"\u22af",nVdash:"\u22ae",nvDash:"\u22ad",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwArr:"\u21d6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",Or:"\u2a54",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",Otimes:"\u2a37",otimes:"\u2297",otimesas:"\u2a36",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",Popf:"\u2119",popf:"\ud835\udd61",pound:"\xa3",Pr:"\u2abb",pr:"\u227a",prap:"\u2ab7",prcue:"\u227c",prE:"\u2ab3",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",Qopf:"\u211a",qopf:"\ud835\udd62",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",QUOT:'"',quot:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",Rang:"\u27eb",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",Rarr:"\u21a0",rArr:"\u21d2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",rAtail:"\u291c",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",RBarr:"\u2910",rBarr:"\u290f",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",REG:"\xae",reg:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",Rfr:"\u211c",rfr:"\ud835\udd2f",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u
203f1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",Rightarrow:"\u21d2",rightarrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",Ropf:"\u211d",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",Rscr:"\u211b",rscr:"\ud835\udcc7",Rsh:"\u21b1",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",Sc:"\u2abc",sc:"\u227b",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227d",scE:"\u2ab4",sce:"\u2ab0",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",seArr:"\u21d8",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",Square:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",Sub:"\u22d0",sub:"\u2282",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",Subset:"\u22d0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",Sum:"\u2211",sum:"\u2211",sung:"\u266a",Sup:"\u22d1",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub
2:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",Supset:"\u22d1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swArr:"\u21d9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",Tilde:"\u223c",tilde:"\u02dc",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",Uarr:"\u219f",uArr:"\u21d1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrow:"\u2191",Uparrow:"\u21d1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",Updownarrow:"\u21d5",updownarrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",upsi:"\u03c5",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",vArr:"\u21d5",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",Vbar:"\u2aeb",vBar:"\u2ae8",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22ab",Vdash:"\u22a9",vDash:"\u22a8",vdash:"\u22a2",Vdashl:"\u2ae6",Vee:"\u22c1",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",Wedge:"\u22c0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xhArr:"\u27fa",xharr:"\u27f7",Xi:"\u039e",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xod
vendor: 5,299 bytes, line 2
2ot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",Yuml:"\u0178",yuml:"\xff",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",Zfr:"\u2128",zfr:"\ud835\udd37",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",Zopf:"\u2124",zopf:"\ud835\udd6b",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}),t.entityMap=t.HTML_ENTITIES},6899:(e,t,n)=>{var i=n(3699);t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n(5739).DOMParser},1095:(e,t,n)=>{var i=n(8923).NAMESPACE,r=/[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]/,a=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+r.source+a.source+"*(?::"+r.source+a.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function l(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,n,r,a,o){function s(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),i)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(o.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,h=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,h=e.slice(t,c),t),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&n.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,c)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=l),4==u?(o.warning('attribute "'+h+'" missed quot(")!'),s(l,h,t)):(i.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":d=" ";default:if(d<=" ")switch(u){case 0:n.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var h=e.slice(t,c);o.warning('attribute "'+h+'" missed quot(")!!'),s(l,h,t);case 5:u=6}else switch(u){case 2:n.tagName;i.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function d(e,t,n){for(var r=e.tagName,a=null,o=e.length;o--;){var s=e[o],l=s.qName,c=s.value;if((f=l.indexOf(":"))>0)var u=s.prefix=l.slice(0,f),d=l.slice(f+1),h="xmlns"===u&&d;else d=l,u=null,h="xmlns"===l&&"";s.localName=d,!1!==h&&(null==a&&(a={},p(n,n={})),n[h]=a[h]=c,s.uri=i.XMLNS,t.startPrefixMapping(h,c))}for(o=e.length;o--;){(u=(s=e[o]).prefix)&&("xml"===u&&(s.uri=i.XML),"xmlns"!==u&&(s.uri=n[u||""]))}var f;(f=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,f),d=e.localName=r.slice(f+1)):(u=null,d=e.localName=r);var g=e.uri=n[u||""];if(t.startElement(g,d,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(g,d,r),a)for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&t.endPrefixMapping(u)}function h(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),a)}return t+1}function f(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function p(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function g(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;n=r.exec(e);)if(i.push(n),n[1])return i}(e,t),o=a.length;if(o>
vendor: 4,123 bytes, line 2
21&&/!doctype/i.test(a[0][0])){var s=a[1][0],l=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var u=a[o-1];return n.startDTD(s,l,c),n.endDTD(),u.index+u[0].length}return-1}function m(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return n.processingInstruction(r[1],r[2]),i+2}return-1}return-1}function v(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,l.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),p(t,t={}),function(e,t,n,r,a){function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function l(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?o(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function p(t){if(t>k){var n=e.substring(k,t).replace(/&#?\w+;/g,l);_&&b(k),r.characters(n,0,t-k),k=t}}function b(t,n){for(;t>=x&&(n=w.exec(e));)y=n.index,x=y+n[0].length,_.lineNumber++;_.columnNumber=t-y+1}var y=0,x=0,w=/.*(?:\r\n?|\n)|.*$/g,_=r.locator,D=[{currentNSMap:t}],S={},k=0;for(;;){try{var C=e.indexOf("<",k);if(C<0){if(!e.substr(k).match(/^\s*$/)){var A=r.doc,T=A.createTextNode(e.substr(k));A.appendChild(T),r.currentElement=T}return}switch(C>k&&p(C),e.charAt(C+1)){case"/":var E=e.indexOf(">",C+3),N=e.substring(C+2,E).replace(/[ \t\n\r]+$/g,""),M=D.pop();E<0?(N=e.substring(C+2).replace(/[\s<].*/,""),a.error("end tag name: "+N+" is not complete:"+M.tagName),E=C+1+N.length):N.match(/\s</)&&(N=N.replace(/[\s<].*/,""),a.error("end tag name: "+N+" maybe not complete"),E=C+1+N.length);var P=M.localNSMap,U=M.tagName==N;if(U||M.tagName&&M.tagName.toLowerCase()==N.toLowerCase()){if(r.endElement(M.uri,M.localName,N),P)for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&r.endPrefixMapping(j);U||a.fatalError("end tag name: "+N+" is not match the current start tagName:"+M.tagName)}else D.push(M);E++;break;case"?":_&&b(C),E=m(e,C,r);break;case"!":_&&b(C),E=g(e,C,r,a);break;default:_&&b(C);var F=new v,R=D[D.length-1].currentNSMap,O=(E=u(e,C,F,R,l,a),F.length);if(!F.closed&&f(e,E,F.tagName,S)&&(F.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),_&&O){for(var I=c(_,{}),L=0;L<O;L++){var B=F[L];b(B.offset),B.locator=c(_,{})}r.locator=I,d(F,r,R)&&D.push(F),r.locator=_}else d(F,r,R)&&D.push(F);i.isHTML(F.uri)&&!F.closed?E=h(e,E,F.tagName,l,r):E++}}catch(W){if(W instanceof s)throw W;a.error("element parse error: "+W),E=-1}E>k?k=E:p(Math.max(C,k)+1)}}(e,t,n,r,this.errorHandler),r.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=l,t.ParseError=s},4445:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,a=s(e),o=a[0],l=a[1],c=new r(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),u=0,d=l>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,a=[],o=16383,s=0,c=i-r;s<c;s+=o)a.push(l(e,s,s+o>c?c:s+o));1===r?(t=e[i-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],r="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 4,176 bytes, line 2
2+/",o=0;o<64;++o)n[o]=a[o],i[a.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,i){for(var r,a,o=[],s=t;s<i;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=r)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},7904:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CountUp:()=>r});var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=function(){function e(e,t,n){var r=this;this.endVal=t,this.options=n,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){r.startTime||(r.startTime=e);var t=e-r.startTime;r.remaining=r.duration-t,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(t,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(t,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(t/r.duration);var n=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=n?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),t<r.duration?r.rAF=requestAnimationFrame(r.count):null!==r.finalEndVal?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(e){var t,n,i,a,o=e<0?"-":"";t=Math.abs(e).toFixed(r.options.decimalPlaces);var s=(t+="").split(".");if(n=s[0],i=s.length>1?r.options.decimal+s[1]:"",r.options.useGrouping){a="";for(var l=3,c=0,u=0,d=n.length;u<d;++u)r.options.useIndianSeparators&&4===u&&(l=2,c=1),0!==u&&c%l==0&&(a=r.options.separator+a),c++,a=n[d-u-1]+a;n=a}return r.options.numerals&&r.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return r.options.numerals[+e]})),i=i.replace(/[0-9]/g,(function(e){return r.options.numerals[+e]}))),o+r.options.prefix+n+i+r.options.suffix},this.easeOutExpo=function(e,t,n,i){return n*(1-Math.pow(2,-10*e/i))*1024/1023+t},this.options=i(i({},this.defaults),n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(t),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof e?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return r.handleScroll(r)})),window.onscroll=function(){window.onScrollFns.forEach((function(e){return e()}))},this.handleScroll(this)))}return e.prototype.handleScroll=function(e){if(e&&window&&!e.once){var t=window.innerHeight+window.scrollY,n=e.el.getBoundingClientRect(),i=n.top+window.pageYOffset,r=n.top+n.height+window.pageYOffset;r<t&&r>window.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>r||i>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var n=this.countDown?1:-1;
2this.endVal=e+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var n=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}()},7780:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,i=t.algo,r=[],a=[],o=[],s=[],l=[],c=[],u=[],d=[],h=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var p=i^i<<1^i<<2^i<<3^i<<4;p=p>>>8^255&p^99,r[n]=p,a[p]=n;var g=e[n],m=e[g],v=e[m],b=257*e[p]^16843008*p;o[n]=b<<24|b>>>8,s[n]=b<<16|b>>>16,l[n]=b<<8|b>>>24,c[n]=b,b=16843009*v^65537*m^257*g^16843008*n,u[p]=b<<24|b>>>8,d[p]=b<<16|b>>>16,h[p]=b<<8|b>>>24,f[p]=b,n?(n=g^e[e[e[v^g]]],i^=e[e[i]]):n=i=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<i;o++)o<n?a[o]=t[o]:(c=a[o-1],o%n?n>6&&o%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=p[o/n|0]<<24),a[o]=a[o-n]^c);for(var s=this._invKeySchedule=[],l=0;l<i;l++){if(o=i-l,l%4)var c=a[o];else c=a[o-4];s[l]=l<4||o<=4?c:u[r[c>>>24]]^d[r[c>>>16&255]]^h[r[c>>>8&255]]^f[r[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,l,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,f,a),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,a,o,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],f=4,p=1;p<l;p++){var g=i[c>>>24]^r[u>>>16&255]^a[d>>>8&255]^o[255&h]^n[f++],m=i[u>>>24]^r[d>>>16&255]^a[h>>>8&255]^o[255&c]^n[f++],v=i[d>>>24]^r[h>>>16&255]^a[c>>>8&255]^o[255&u]^n[f++],b=i[h>>>24]^r[c>>>16&255]^a[u>>>8&255]^o[255&d]^n[f++];c=g,u=m,d=v,h=b}g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=b},keySize:8});t.AES=n._createHelper(g)}(),e.AES}(n(4488),n(8523),n(4199),n(8211),n(2238))},6501:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,i=t.algo;const r=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o
vendor: 11,033 bytes, line 2
2=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
2;var s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,i=t>>16&255,r=t>>8&255,a=255&t,o=e.sbox[0][n]+e.sbox[1][i];return o^=e.sbox[2][r],o+=e.sbox[3][a],o}
vendor: 6,280 bytes, line 2
2function c(e,t,n){let i,a=t,o=n;for(let s=0;s<r;++s)a^=e.pbox[s],o=l(e,a)^o,i=a,a=o,o=i;return i=a,a=o,o=i,o^=e.pbox[r],a^=e.pbox[r+1],{left:a,right:o}}function u(e,t,n){let i,a=t,o=n;for(let s=r+1;s>1;--s)a^=e.pbox[s],o=l(e,a)^o,i=a,a=o,o=i;return i=a,a=o,o=i,o^=e.pbox[1],a^=e.pbox[0],{left:a,right:o}}function d(e,t,n){for(let r=0;r<4;r++){e.sbox[r]=[];for(let t=0;t<256;t++)e.sbox[r][t]=o[r][t]}let i=0;for(let o=0;o<r+2;o++)e.pbox[o]=a[o]^t[i],i++,i>=n&&(i=0);let s=0,l=0,u=0;for(let a=0;a<r+2;a+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[a]=s,e.pbox[a+1]=l;for(let r=0;r<4;r++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[r][t]=s,e.sbox[r][t+1]=l;return!0}var h=i.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(h)}(),e.Blowfish}(n(4488),n(8523),n(4199),n(8211),n(2238))},2238:function(e,t,n){e.exports=function(e){e.lib.Cipher||function(t){var n=e,i=n.lib,r=i.Base,a=i.WordArray,o=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo.EvpKDF,u=i.Cipher=o.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:v}return function(t){return{encrypt:function(n,i,r){return e(i).encrypt(t,n,i,r)},decrypt:function(n,i,r){return e(i).decrypt(t,n,i,r)}}}}()}),d=(i.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),h=i.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var e=h.extend();function n(e,n,i){var r,a=this._iv;a?(r=a,this._iv=t):r=this._prevBlock;for(var o=0;o<i;o++)e[n+o]^=r[o]}return e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),e.Decryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,a=e.slice(t,t+r);i.decryptBlock(e,t),n.call(this,e,t,r),this._prevBlock=a}}),e}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,r=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(r);var l=a.create(o,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},g=(i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),i.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=a.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},v=i.SerializableCipher=r.extend({cfg:r.extend({format:m}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i),a=r.finalize(t),o=r.cfg;return g.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(n.kdf={}).OpenSSL={execute:function(e,t,n,i,r){if(i||(i=a.random(8)),r)o=c.create({keySize:t+n,hasher:r}).compute(e,i);else var o=c.create({keySize:t+n}).compute(e,i);var s=a.create(o.words.slice(t),4*n);return o.sigBytes=4*t,g.create({key:o,iv:s,salt:i})}},y=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:b}),encrypt:function(e,t,n,i){var r=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=r.iv;var a=v.encrypt.call(this,e,t,r.key,i);return a.mixIn(r),a},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=i.kdf.execute(n,e.keySize,e.ivSize,t.salt,i.hasher);return i.iv=r.iv,v.decrypt.call(this,e,t,r.key,i)}})}()}(n(4488),n(8211))},4488:function(e,t,n){e.exports=function(){var e=e||function(e,t){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(477)}catch(m){}var r=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},l=s.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 4,288 bytes, line 2
2pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var a=0;a<r;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[i+a>>>2]|=o<<24-(i+a)%4*8}else for(var s=0;s<r;s+=4)t[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),u=o.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var a=t[r>>>2]>>>24-r%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var a=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(n,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,r=i.words,a=i.sigBytes,o=this.blockSize,s=a/(4*o),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*l,a);if(l){for(var d=0;d<l;d+=o)this._doProcessBlock(r,d);n=r.splice(0,l),i.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(s.Hasher=p.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),o.algo={});return o}(Math);return e}()},8523:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function i(e,t,i){for(var r=[],a=0,o=0;o<t;o++)if(o%4){var s=i[e.charCodeAt(o-1)]<<o%4*2|i[e.charCodeAt(o)]>>>6-o%4*2;r[a>>>2]|=s<<24-a%4*8,a++}return n.create(r,a)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var r=[],a=0;a<n;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)r.push(i.charAt(o>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<n.length;a++)r[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return i(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(n(4488))},4646:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function i(e,t,i){for(var r=[],a=0,o=0;o<t;o++)if(o%4){var s=i[e.charCodeAt(o-1)]<<o%4*2|i[e.charCodeAt(o)]>>>6-o%4*2;r[a>>>2]|=s<<24-a%4*8,a++}return n.create(r,a)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,i=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var a=[],o=0;o<i;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>
2>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<i;l++)a.push(r.charAt(s>>>6*(3-l)&63));var c=r.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,r=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<r.length;o++)a[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return i(e,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(n(4488))},8168:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray,i=t.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var a=t[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r<t;r++)i[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return n.create(i,2*t)}},i.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a<n;a+=2){var o=r(t[a>>>2]>>>16-a%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,i=[],a=0;a<t;a++)i[a>>>1]|=r(e.charCodeAt(a)<<16-a%2*16);return n.create(i,2*t)}}}(),e.enc.Utf16}(n(4488))},8211:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,a=t.algo,o=a.MD5,s=a.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,a=i.hasher.create(),o=r.create(),s=o.words,l=i.keySize,c=i.iterations;s.length<l;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var u=1;u<c;u++)n=a.finalize(n),a.reset();o.concat(n)}return o.sigBytes=4*l,o}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF}(n(4488),n(2002),n(4220))},4708:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.CipherParams,i=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex}(n(4488),n(2238))},4220:function(e,t,n){e.exports=function(e){!function(){var t=e,n=t.lib.Base,i=t.enc.Utf8;t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,l=o.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()}(n(4488))},6111:function(e,t,n){e.exports=function(e){return e}(n(4488),n(9749),n(4503),n(8168),n(8523),n(4646),n(4199),n(2002),n(6368),n(1641),n(7061),n(9092),n(6600),n(7423),n(4220),n(3930),n(8211),n(2238),n(1112),n(7962),n(8049),n(6380),n(8099),n(1884),n(9132),n(4423),n(548),n(4087),n(4708),n(7780),n(9475),n(9638),n(8875),n(1659),n(6501))},4503:function(e,t,n){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,i=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,i=[],r=0;r<t;r++)i[r>>>2]|=e[r]<<24-r%4*8;n.call(this,i,t)}else n.apply(this,arguments)};i.prototype=t}}(),e.lib.WordArray}(n(4488))},4199:function(e,t,n){e.exports=function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,a=i.Hasher,o=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=o.MD5=a.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}
vendor: 11,579 bytes, line 2
2var a=this._hash.words,o=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],x=e[t+9],w=e[t+10],_=e[t+11],D=e[t+12],S=e[t+13],k=e[t+14],C=e[t+15],A=a[0],T=a[1],E=a[2],N=a[3];A=c(A,T,E,N,o,7,s[0]),N=c(N,A,T,E,l,12,s[1]),E=c(E,N,A,T,f,17,s[2]),T=c(T,E,N,A,p,22,s[3]),A=c(A,T,E,N,g,7,s[4]),N=c(N,A,T,E,m,12,s[5]),E=c(E,N,A,T,v,17,s[6]),T=c(T,E,N,A,b,22,s[7]),A=c(A,T,E,N,y,7,s[8]),N=c(N,A,T,E,x,12,s[9]),E=c(E,N,A,T,w,17,s[10]),T=c(T,E,N,A,_,22,s[11]),A=c(A,T,E,N,D,7,s[12]),N=c(N,A,T,E,S,12,s[13]),E=c(E,N,A,T,k,17,s[14]),A=u(A,T=c(T,E,N,A,C,22,s[15]),E,N,l,5,s[16]),N=u(N,A,T,E,v,9,s[17]),E=u(E,N,A,T,_,14,s[18]),T=u(T,E,N,A,o,20,s[19]),A=u(A,T,E,N,m,5,s[20]),N=u(N,A,T,E,w,9,s[21]),E=u(E,N,A,T,C,14,s[22]),T=u(T,E,N,A,g,20,s[23]),A=u(A,T,E,N,x,5,s[24]),N=u(N,A,T,E,k,9,s[25]),E=u(E,N,A,T,p,14,s[26]),T=u(T,E,N,A,y,20,s[27]),A=u(A,T,E,N,S,5,s[28]),N=u(N,A,T,E,f,9,s[29]),E=u(E,N,A,T,b,14,s[30]),A=d(A,T=u(T,E,N,A,D,20,s[31]),E,N,m,4,s[32]),N=d(N,A,T,E,y,11,s[33]),E=d(E,N,A,T,_,16,s[34]),T=d(T,E,N,A,k,23,s[35]),A=d(A,T,E,N,l,4,s[36]),N=d(N,A,T,E,g,11,s[37]),E=d(E,N,A,T,b,16,s[38]),T=d(T,E,N,A,w,23,s[39]),A=d(A,T,E,N,S,4,s[40]),N=d(N,A,T,E,o,11,s[41]),E=d(E,N,A,T,p,16,s[42]),T=d(T,E,N,A,v,23,s[43]),A=d(A,T,E,N,x,4,s[44]),N=d(N,A,T,E,D,11,s[45]),E=d(E,N,A,T,C,16,s[46]),A=h(A,T=d(T,E,N,A,f,23,s[47]),E,N,o,6,s[48]),N=h(N,A,T,E,b,10,s[49]),E=h(E,N,A,T,k,15,s[50]),T=h(T,E,N,A,m,21,s[51]),A=h(A,T,E,N,D,6,s[52]),N=h(N,A,T,E,p,10,s[53]),E=h(E,N,A,T,w,15,s[54]),T=h(T,E,N,A,l,21,s[55]),A=h(A,T,E,N,y,6,s[56]),N=h(N,A,T,E,C,10,s[57]),E=h(E,N,A,T,v,15,s[58]),T=h(T,E,N,A,S,21,s[59]),A=h(A,T,E,N,g,6,s[60]),N=h(N,A,T,E,_,10,s[61]),E=h(E,N,A,T,f,15,s[62]),T=h(T,E,N,A,x,21,s[63]),a[0]=a[0]+A|0,a[1]=a[1]+T|0,a[2]=a[2]+E|0,a[3]=a[3]+N|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;n[r>>>5]|=128<<24-r%32;var a=t.floor(i/4294967296),o=i;n[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,r,a,o){var s=e+(t&n|~t&i)+r+o;return(s<<a|s>>>32-a)+t}function u(e,t,n,i,r,a,o){var s=e+(t&i|n&~i)+r+o;return(s<<a|s>>>32-a)+t}function d(e,t,n,i,r,a,o){var s=e+(t^n^i)+r+o;return(s<<a|s>>>32-a)+t}function h(e,t,n,i,r,a,o){var s=e+(n^(t|~i))+r+o;return(s<<a|s>>>32-a)+t}n.MD5=a._createHelper(l),n.HmacMD5=a._createHmacHelper(l)}(Math),e.MD5}(n(4488))},1112:function(e,t,n){e.exports=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,i){var r,a=this._iv;a?(r=a.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var o=0;o<n;o++)e[t+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r,i),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,a=e.slice(t,t+r);n.call(this,e,t,r,i),this._prevBlock=a}}),t}(),e.mode.CFB}(n(4488),n(2238))},8049:function(e,t,n){e.exports=function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function i(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var r=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),i(o);var s=o.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)e[t+l]^=s[l]}});return t.Decryptor=r,t}(),e.mode.CTRGladman}(n(4488),n(2238))},7962:function(e,t,n){e.exports=function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,a=this._counter;r&&(a=this._counter=r.slice(0),this._iv=void 0);var o=a.slice(0);n.encryptBlock(o,0),a[i-1]=a[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=o[s]}});return t.Decryptor=n,t}(),e.mode.CTR}(n(4488),n(2238))},8099:function(e,t,n){e.exports=function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}(n(4488),n(2238))},6380:function(e,t,n){e.exports=function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,a=this._keystream;r&&(a=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<i;o++)e[t+o]^=a[o]}});return t.Decryptor=n,t}(),e.mode.OFB}(n(4488),n(2238))},1884:function(e,t,n){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,r=i-n%i,a=n+r-1;e.clamp(),e.words[a>>>2]|=r<<24-a%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(n(4488),n(2238))},9132:function(e,t,n){e.exports=function(e){return e.pad.Iso10126={pad:function(t,n){var i=4*n,r=i-t.sigBytes%i;t.concat(e.lib.WordArray.random(r-1)).concat(e.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(n(4488),n(2238))},4423:function(e,t,n){e.exports=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(n(4488),n(2238))},4087:function(e,t,n){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(n(4488),n(2238))},548:function(e,t,n){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}(n(4488),n(2238))},3930:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,a=t.algo,o=a.SHA256,s=a.HMAC,l=a.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=s.create(n.hasher,e),a=r.create(),o=r.create([1]),l=a.words,c=o.words,u=n.keySize,d=n.iterations;l.length<u;){var h=i.update(t).finalize(o);i.reset();for(var f=h.words,p=f.length,g=h,m=1;m<d;m++){g=i.finalize(g),i.reset();for(var v=g.words,b=0;b<p;b++)f[b]^=v[b]}a.concat(h),c[0]++}return a.sigBytes=4*u,a}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2}(n(4488),n(6368),n(4220))},1659:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,i=t.algo,r=[],a=[],o=[],s=i.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var a=t.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,s=i>>>16,l=((r*r>>>17)+r*s>>>15)+s*s,c=((4294901760&i)*i|0)+((65535&i)*i|0);o[n]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy}(n(4488),n(8523),n(4199),n(8211),n(2238))},8875:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,i=t.algo,r=[],a=[],o=[],s=i.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(t){var a=t.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,s=i>>>16,l=((r*r>>>17)+r*s>>>15)+s*s,c=((4294901760&i)*i|0)+((65535&i)*i|0);o[n]=l^c}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit}(n(4488),n(8523),n(4199),n(8211),n(2238))},9638:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,i=t.algo,r=i.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;
vendor: 10,522 bytes, line 2
2r=0;for(var a=0;r<256;r++){var o=r%n,s=t[o>>>2]>>>24-o%4*8&255;a=(a+i[r]+s)%256;var l=i[r];i[r]=i[a],i[a]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,i=0,r=0;r<4;r++){n=(n+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[n],e[n]=a,i|=e[(e[t]+e[n])%256]<<24-8*r}return this._i=t,this._j=n,i}t.RC4=n._createHelper(r);var o=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=n._createHelper(o)}(),e.RC4}(n(4488),n(8523),n(4199),n(8211),n(2238))},7423:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=n.Hasher,a=t.algo,o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=r.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a,h,y,x,w,_,D,S,k,C,A,T=this._hash.words,E=u.words,N=d.words,M=o.words,P=s.words,U=l.words,j=c.words;for(_=a=T[0],D=h=T[1],S=y=T[2],k=x=T[3],C=w=T[4],n=0;n<80;n+=1)A=a+e[t+M[n]]|0,A+=n<16?f(h,y,x)+E[0]:n<32?p(h,y,x)+E[1]:n<48?g(h,y,x)+E[2]:n<64?m(h,y,x)+E[3]:v(h,y,x)+E[4],A=(A=b(A|=0,U[n]))+w|0,a=w,w=x,x=b(y,10),y=h,h=A,A=_+e[t+P[n]]|0,A+=n<16?v(D,S,k)+N[0]:n<32?m(D,S,k)+N[1]:n<48?g(D,S,k)+N[2]:n<64?p(D,S,k)+N[3]:f(D,S,k)+N[4],A=(A=b(A|=0,j[n]))+C|0,_=C,C=k,k=b(S,10),S=D,D=A;A=T[1]+y+k|0,T[1]=T[2]+x+C|0,T[2]=T[3]+w+_|0,T[3]=T[4]+a+D|0,T[4]=T[0]+h+S|0,T[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var r=this._hash,a=r.words,o=0;o<5;o++){var s=a[o];a[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=r._createHelper(h),t.HmacRIPEMD160=r._createHmacHelper(h)}(Math),e.RIPEMD160}(n(4488))},2002:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=n.Hasher,a=t.algo,o=[],s=a.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)o[c]=0|e[t+c];else{var u=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+o[c];d+=c<20?1518500249+(r&a|~r&s):c<40?1859775393+(r^a^s):c<60?(r&a|r&s|a&s)-1894007588:(r^a^s)-899497514,l=s,s=a,a=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=r._createHelper(s),t.HmacSHA1=r._createHmacHelper(s)}(),e.SHA1}(n(4488))},1641:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray,i=t.algo,r=i.SHA256,a=i.SHA224=r.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=r._createHelper(a),t.HmacSHA224=r._createHmacHelper(a)}(),e.SHA224}(n(4488),n(6368))},6368:function(e,t,n){e.exports=function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,a=i.Hasher,o=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),i=2;i<=n;i++)if(!(e%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,r=0;r<64;)e(i)&&(r<8&&(s[r]=n(t.pow(i,.5))),l[r]=n(t.pow(i,1/3)),r++),i++}();var c=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[f]=g+c[f-7]+v+c[f-16]}var b=i&r^i&a^r&a,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),x=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[f]+c[f];h=d,d=u,u=s,s=o+x|0,o=a,a=r,r=i,i=x+(y+b)|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=t.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(u),n.HmacSHA256=a._createHmacHelper(u)}(Math),e.SHA256}(n(4488))},6600:function(e,t,n){e.exports=function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,a=i.Hasher,o=n.x64.Word,s=n.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var r=1,a=0;a<24;a++){for(var s=0,d=0,h=0;h<7;h++){if(1&r){var f=(1<<h)-1;f<32?d^=1<<f:s^=1<<f-32}128&r?r=r<<1^113:r<<=1}u[a]=o.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=o.create()}();var h=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var a=e[t+2*r],o=e[t+2*r+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(T=n[r]).high^=o,T.low^=a}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var f=0,p=0,g=0;g<5;g++)f^=(T=n[h+5*g]).high,p^=T.low;var m=d[h];m.high=f,m.low=p}for(h=0;h<5;h++){var v=d[(h+4)%5],b=d[(h+1)%5],y=b.high,x=b.low;for(f=v.high^(y<<1|x>>>31),p=v.low^(x<<1|y>>>31),g=0;g<5;g++)(T=n[h+5*g]).high^=f,T.low^=p}for(var w=1;w<25;w++){var _=(T=n[w]).high,D=T.low,S=l[w];S<32?(f=_<<S|D>>>32-S,p=D<<S|_>>>32-S):(f=D<<S-32|_>>>64-S,p=_<<S-32|D>>>64-S);var k=d[c[w]];k.high=f,k.low=p}var C=d[0],A=n[0];for(C.high=A.high,C.low=A.low,h=0;h<5;h++)for(g=0;g<5;g++){var T=n[w=h+5*g],E=d[w],N=d[(h+1)%5+5*g],M=d[(h+2)%5+5*g];T.high=E.high^~N.high&M.high,T.low=E.low^~N.low&M.low}T=n[0];var P=u[s];T.high^=P.high,T.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words,i=(this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(t.ceil((i+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=o[u],h=d.high,f=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(h)}return new r.init(c,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(h),n.HmacSHA3=a._createHmacHelper(h)}(Math),e.SHA3}(n(4488),n(9749))},9092:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.x64,i=n.Word,r=n.WordArray,a=t.algo,o=a.SHA512,s=a.SHA384=o.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s)}(),e.SHA384}(n(4488),n(9749),n(7061))},7061:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.Hasher,i=t.x64,r=i.Word,a=i.WordArray,o=t.algo;function s(){return r.create.apply(r,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1
vendor: 2,398 bytes, line 2
2537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=o.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=i.high,p=i.low,g=r.high,m=r.low,v=a.high,b=a.low,y=o.high,x=o.low,w=s.high,_=s.low,D=u.high,S=u.low,k=d.high,C=d.low,A=h.high,T=h.low,E=f,N=p,M=g,P=m,U=v,j=b,F=y,R=x,O=w,I=_,L=D,B=S,W=k,z=C,V=A,H=T,q=0;q<80;q++){var G,Y,X=c[q];if(q<16)Y=X.high=0|e[t+2*q],G=X.low=0|e[t+2*q+1];else{var K=c[q-15],$=K.high,Q=K.low,Z=($>>>1|Q<<31)^($>>>8|Q<<24)^$>>>7,J=(Q>>>1|$<<31)^(Q>>>8|$<<24)^(Q>>>7|$<<25),ee=c[q-2],te=ee.high,ne=ee.low,ie=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,re=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=c[q-7],oe=ae.high,se=ae.low,le=c[q-16],ce=le.high,ue=le.low;Y=(Y=(Y=Z+oe+((G=J+se)>>>0<J>>>0?1:0))+ie+((G+=re)>>>0<re>>>0?1:0))+ce+((G+=ue)>>>0<ue>>>0?1:0),X.high=Y,X.low=G}var de,he=O&L^~O&W,fe=I&B^~I&z,pe=E&M^E&U^M&U,ge=N&P^N&j^P&j,me=(E>>>28|N<<4)^(E<<30|N>>>2)^(E<<25|N>>>7),ve=(N>>>28|E<<4)^(N<<30|E>>>2)^(N<<25|E>>>7),be=(O>>>14|I<<18)^(O>>>18|I<<14)^(O<<23|I>>>9),ye=(I>>>14|O<<18)^(I>>>18|O<<14)^(I<<23|O>>>9),xe=l[q],we=xe.high,_e=xe.low,De=V+be+((de=H+ye)>>>0<H>>>0?1:0),Se=ve+ge;V=W,H=z,W=L,z=B,L=O,B=I,O=F+(De=(De=(De=De+he+((de+=fe)>>>0<fe>>>0?1:0))+we+((de+=_e)>>>0<_e>>>0?1:0))+Y+((de+=G)>>>0<G>>>0?1:0))+((I=R+de|0)>>>0<R>>>0?1:0)|0,F=U,R=j,U=M,j=P,M=E,P=N,E=De+(me+pe+(Se>>>0<ve>>>0?1:0))+((N=de+Se|0)>>>0<de>>>0?1:0)|0}
vendor: 1,231 bytes, line 2
2p=i.low=p+N,i.high=f+E+(p>>>0<N>>>0?1:0),m=r.low=m+P,r.high=g+M+(m>>>0<P>>>0?1:0),b=a.low=b+j,a.high=v+U+(b>>>0<j>>>0?1:0),x=o.low=x+R,o.high=y+F+(x>>>0<R>>>0?1:0),_=s.low=_+I,s.high=w+O+(_>>>0<I>>>0?1:0),S=u.low=S+B,u.high=D+L+(S>>>0<B>>>0?1:0),C=d.low=C+z,d.high=k+W+(C>>>0<z>>>0?1:0),T=h.low=T+H,h.high=A+V+(T>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512}(n(4488),n(9749))},9475:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=n.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c
vendor: 7,629 bytes, line 2
2=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
2u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=o[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var r=this._subKeys=[],a=0;a<16;a++){var c=r[a]=[],u=l[a];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=r[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],a=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((o^r[l])&u[l])>>>0];this._lBlock=o,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=r._createHelper(d);var p=a.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(i.create(t)),this._des2=d.createEncryptor(i.create(n)),this._des3=d.createEncryptor(i.create(r))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(p)}(),e.TripleDES}(n(4488),n(8523),n(4199),n(8211),n(2238))},9749:function(e,t,n){e.exports=function(e){return function(t){var n=e,i=n.lib,r=i.Base,a=i.WordArray,o=n.x64={};o.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var r=e[i];n.push(r.high),n.push(r.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),e}(n(4488))},446:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,i="millisecond",r="second",a="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,483 bytes, line 2
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,c),a=n-r<0,o=t.clone().add(i+(a?-1:1),c);return+(-(i+(n-r)/(a?r-o:o-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:o,m:a,s:r,ms:i,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",x={};x[y]=m;var w="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[w])},D=function e(t,n,i){var r;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();x[a]&&(r=a),n&&(x[a]=n,r=a);var o=t.split("-");if(!r&&o.length>1)return e(o[0])}else{var s=t.name;x[s]=t,r=s}return!i&&r&&(y=r),r||!i&&y},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=b;k.l=D,k.i=_,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=D(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var r=i[2]-1||0,a=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,i=!!k.u(t)||t,u=k.p(e),f=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?r:r.endOf(s)},p=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return i?f(1,0):f(31,11);case c:return i?f(1,m):f(0,m+1);case l:var y=this.$locale().weekStart||0,x=(g<y?g+7:g)-y;return f(i?v-x:v+(6-x),m);case s:case h:return p(b+"Hours",0);case o:return p(b+"Minutes",1);case a:return p(b+"Seconds",2);case r:return p(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=k.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[r]=u+"Seconds",n[i]=u+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(i,u){var h,f=this;i=Number(i);var p=k.p(u),g=function(e){var t=S(f);return k.w(t.date(t.date()+Math.round(e*i)),f)};if(p===c)return this.set(c,this.$M+i);if(p===d)return this.set(d,this.$y+i);if(p===s)return g(1);if(p===l)return g(7);var m=(h={},h[a]=t,h[o]=n,h[r]=e,h)[p]||1,v=this.$d.getTime()+i*m;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=k.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,r,a){return e&&(e[
vendor: 2,229 bytes, line 2
2n]||e(t,i))||r[n].slice(0,a)},h=function(e){return k.s(a%12||12,e,"0")},p=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(g,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return k.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(a,o,!0);case"A":return p(a,o,!1);case"m":return String(o);case"mm":return k.s(o,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,h,f){var p,g=this,m=k.p(h),v=S(i),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,x=function(){return k.m(g,v)};switch(m){case d:p=x()/12;break;case c:p=x();break;case u:p=x()/3;break;case l:p=(y-b)/6048e5;break;case s:p=(y-b)/864e5;break;case o:p=y/n;break;case a:p=y/t;break;case r:p=y/e;break;default:p=y}return f?p:k.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=D(e,t,!0);return i&&(n.$L=i),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),A=C.prototype;return S.prototype=A,[["$ms",i],["$s",r],["$m",a],["$H",o],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=D,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=x[y],S.Ls=x,S.p={},S}()},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t
vendor: 119,115 bytes, line 2
2.default=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}]},
25302:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hex=t.dec=t.codePoint=void 0;for(var r=i(n(6392)),a={},o=String.fromCodePoint?String.fromCodePoint:function(e){if(e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)},s=0,l=r.default;s<l.length;s++){var c=l[s],u=parseInt(c["Unicode dec"],10),d={codePoint:u,string:o(u)};a[c["Typeface name"].toUpperCase()+"_"+c["Dingbat dec"]]=d}function h(e,t){return a[e.toUpperCase()+"_"+t]}t.codePoint=h,t.dec=function(e,t){return h(e,parseInt(t,10))},t.hex=function(e,t){return h(e,parseInt(t,16))}},6159:(e,t,n)=>{e.exports=function e(t,n,i){function r(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return r(t[o][1][e]||e)}),c,c.exports,e,t,n,i)}return n[o].exports}for(var a=void 0,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,o,s,l,c,u=[],d=0,h=e.length,f=h,p="string"!==i.getTypeOf(e);d<e.length;)f=h-d,r=p?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|r>>6:64,c=2<f?63&r:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(c));return u.join("")},n.decode=function(e){var t,n,i,o,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&f--,e.charAt(e.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=a.indexOf(e.charAt(c++))<<2|(o=a.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(c++)))>>2,i=(3&s)<<6|(l=a.indexOf(e.charAt(c++))),h[u++]=t,64!==s&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var i=e("./external"),r=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=i?"uint8array":"array";
vendor: 7,242 bytes, line 2
2function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function i(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function r(e,t,n,r,o,u){var d,h,f=e.file,p=e.compression,g=u!==s.utf8encode,m=a.transformTo("string",u(f.name)),v=a.transformTo("string",s.utf8encode(f.name)),b=f.comment,y=a.transformTo("string",u(b)),x=a.transformTo("string",s.utf8encode(b)),w=v.length!==f.name.length,_=x.length!==b.length,D="",S="",k="",C=f.dir,A=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),g||!w&&!_||(E|=2048);var N=0,M=0;C&&(N|=16),"UNIX"===o?(M=798,N|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,C)):(M=20,N|=function(e){return 63&(e||0)}(f.dosPermissions)),d=A.getUTCHours(),d<<=6,d|=A.getUTCMinutes(),d<<=5,d|=A.getUTCSeconds()/2,h=A.getUTCFullYear()-1980,h<<=4,h|=A.getUTCMonth()+1,h<<=5,h|=A.getUTCDate(),w&&(S=i(1,1)+i(l(m),4)+v,D+="up"+i(S.length,2)+S),_&&(k=i(1,1)+i(l(y),4)+x,D+="uc"+i(k.length,2)+k);var P="";return P+="\n\0",P+=i(E,2),P+=p.magic,P+=i(d,2),P+=i(h,2),P+=i(T.crc32,4),P+=i(T.compressedSize,4),P+=i(T.uncompressedSize,4),P+=i(m.length,2),P+=i(D.length,2),{fileRecord:c.LOCAL_FILE_HEADER+P+m+D,dirRecord:c.CENTRAL_FILE_HEADER+i(M,2)+P+i(y.length,2)+"\0\0\0\0"+i(N,4)+i(r,4)+m+D+y}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=r(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=function(e,t,n,r,o){var s=a.transformTo("string",o(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new r(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new r.Promise((function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",(function(e){n(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip f
2ile",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var a=0;a<i.length;a++)n.push(c(i[a]));return r.Promise.all(n)})).then((function(e){for(var r=e.shift(),a=r.files,o=0;o<a.length;o++){var s=a[o],l=s.fileNameStr,c=i.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../stream/GenericWorker");function a(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(a,r),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",(function(e,t){r.push(e)||r._helper.pause(),n&&n(t)})).on("error",(function(e){r.emit("error",e)})).on("end",(function(){r.push(null)}))}e("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function i(e,t,n){var i,r=a.getTypeOf(t),s=a.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(i=p(e))&&m.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",r="string");var v=null;v=t instanceof c||t instanceof o?t:h.isNode&&h.isStream(t)?new f(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new u(e,v,s);this.files[e]=b}var r=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i)},filter:function(e){var t=[];
vendor: 8,506 bytes, line 2
2return this.forEach((function(n,i){e(n,i)&&t.push(i)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,n),this;if(v(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";t=d.generateWorker(this,n,i)}catch(e){(t=new o("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===i&&this.data[a+3]===r)return a-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&i===a[2]&&r===a[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t,n){"use strict";var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var i=e("../utils"),r=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new s(e):r.uint8array?new l(i.transformTo("uint8array",e)):new a(i.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../utils");function a(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(a,i),a.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var i=e("./GenericWorker"),r=e("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,i),a.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function a(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(a,r),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./GenericWorker");function a(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}i.inherits(a,r),a.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}
vendor: 8,368 bytes, line 2
2i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,n){"use strict";var i=e("../utils"),r=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t){return new l.Promise((function(n,r){var a=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,n){a.push(e),t&&t(n)})).on("error",(function(e){a=[],r(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,r=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(a),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,a),c);n(e)}catch(e){r(e)}a=[]})).resume()}))}function d(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=n,i.checkSupport(o),this._worker=e.pipe(new r(o)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var i=e("./utils"),r=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return r.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(l):new Array(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,a,o=e.length,l=new Array(2*o);for(t=n=0;t<o;)if((r=e[t++])<128)l[n++]=r;else if(4<(a=s[r]))l[n++]=65533,t+=a-1;else{for(r&=2===a?31:3===a?15:7;1<a&&t<o;)r=r<<6|63&e[t++],a--;1<a?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(c,o),c.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;o!==t.length&&(r.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var i=e("./support"),r=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(t,i){n.checkSupport("blob");try{return new Blob([t],{type:i})}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(t),r.getBlob(i)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var i=[],r=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;r<a;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,a)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,a)))),r+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,i=n.getTypeOf(e),r=!0;
vendor: 12,865 bytes, line 2
2if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return c.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var h={};h.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},h.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return h[i][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],i=0;i<t.length;i++){var r=t[i];"."===r||""===r&&0!==i&&i!==t.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&a.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,c){return o.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(c?t=r.decode(t):a&&!0!==s&&(t=function(e){return l(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=t-n;if(0<i)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var i=e("./reader/readerFor"),r=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var a=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function i(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 6,419 bytes, line 2
2,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,i){(function(e){"use strict";var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var a=0,o=new r(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;i=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}i=!1}t.exports=function(e){1!==c.push(e)||i||n()}}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var i=e("immediate");function r(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){i((function(){var i;try{i=t(n)}catch(i){return a.reject(e,i)}i===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,i)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function i(t){n||(n=!0,a.reject(e,t))}function r(t){n||(n=!0,a.resolve(e,t))}var o=p((function(){t(r,i)}));"error"===o.status&&i(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return a.reject(e,n.value);var i=n.value;if(i)f(e,i);else{e.state=s,e.outcome=t;for(var r=-1,o=e.queue.length;++r<o;)e.queue[r].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:a.resolve(new this(r),e)},c.reject=function(e){var t=new this(r);return a.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,l=-1,c=new this(r);++l<n;)u(e[l],l);return c;function u(e,r){t.resolve(e).then((function(e){o[r]=e,++s!==n||i||(i=!0,a.resolve(c,o))}),(function(e){i||(i=!0,a.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var o,s=-1,l=new this(r);++s<n;)o=e[s],t.resolve(o).then((function(e){i||(i=!0,a.resolve(l,e))}),(function(e){i||(i=!0,a.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,n){"use strict";var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var i=e("./zlib/deflate"),r=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=r.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(o[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,p))!==c)throw new Error(o[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new 
vendor: 6,534 bytes, line 2
2Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,o))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==o||(this.onEnd(c),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var i=e("./zlib/inflate"),r=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(h="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(f.output,f.next_out),c=f.next_out-l,d=a.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&r.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var a=0;a<i;a++)e[r+a]=t[n+a]},flattenChunks:function(e){var t,n,i,r,a,o;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(o=new Uint8Array(i),t=r=0,n=e.length;t<n;t++)a=e[t],o.set(a,r),r+=a.length;return o}},a={arraySet:function(e,t,n,i,r){for(var a=0;a<i;a++)e[r+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(i)},{}],42:[function(e,t,n){"use strict";var i=e("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new i.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,a,s=t||e.length,c=new Array(2*s);for(n=i=0;n<s;)if((r=e[n++])<128)c[i++]=r;else if(4<(a=o[r]))c[i++]=65533,n+=a-1;else{for(r&=2===a?31:3===a?15:7;1<a&&n<s;)r=r<<6|63&e[n++],a--;1<a?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";
vendor: 4,179 bytes, line 2
2t.exports=function(e,t,n,i){for(var r=65535&e,a=e>>>16&65535,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(r=r+t[i++]|0)|0,--o;);r%=65521,a%=65521}return r|a<<16}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return~e}},{}],46:[function(e,t,n){"use strict";var i,r=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,h=-2,f=-1,p=4,g=2,m=8,v=9,b=286,y=30,x=19,w=2*b+1,_=15,D=3,S=258,k=S+D+1,C=42,A=113,T=1,E=2,N=3,M=4;function P(e,t){return e.msg=l[t],t}function U(e){return(e<<1)-(4<e?9:0)}function j(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function R(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function O(e,t){e.pending_buf[e.pending++]=t}function I(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var n,i,r=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+S,f=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<h);if(i=S-(h-a),a=h-S,o<i){if(e.match_start=t,s<=(o=i))break;f=c[a+o-1],p=c[a+o]}}}while((t=d[t&u])>l&&0!=--r);return o<=e.lookahead?o:e.lookahead}function B(e){var t,n,i,a,l,c,u,d,h,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-k)){for(r.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;i=e.head[--t],e.head[t]=p<=i?i-p:0,--n;);for(t=n=p;i=e.prev[--t],e.prev[t]=p<=i?i-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=a)<(f=c.avail_in)&&(f=h),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=o(c.adler,u,f,d):2===c.state.wrap&&(c.adler=s(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=D)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+D-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<D)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function W(e,t){for(var n,i;;){if(e.lookahead<k){if(B(e),e.lookahead<k&&t===c)return T;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n)),e.match_length>=D)if(i=a._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 6,130 bytes, line 2
2else i=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(R(e,!1),0===e.strm.avail_out))return T}return e.insert=e.strstart<D-1?e.strstart:D-1,t===u?(R(e,!0),0===e.strm.avail_out?N:M):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?T:E}function z(e,t){for(var n,i,r;;){if(e.lookahead<k){if(B(e),e.lookahead<k&&t===c)return T;if(0===e.lookahead)break}if(n=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=D-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=L(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===D&&4096<e.strstart-e.match_start)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){for(r=e.strstart+e.lookahead-D,i=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=D-1,e.strstart++,i&&(R(e,!1),0===e.strm.avail_out))return T}else if(e.match_available){if((i=a._tr_tally(e,0,e.window[e.strstart-1]))&&R(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return T}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<D-1?e.strstart:D-1,t===u?(R(e,!0),0===e.strm.avail_out?N:M):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?T:E}function V(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*w),this.dyn_dtree=new r.Buf16(2*(2*y+1)),this.bl_tree=new r.Buf16(2*(2*x+1)),j(this.dyn_ltree),j(this.dyn_dtree),j(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(_+1),this.heap=new r.Buf16(2*b+1),j(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*b+1),j(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function q(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?C:A,e.adler=2===t.wrap?0:1,t.last_flush=c,a._tr_init(t),d):P(e,h)}function G(e){var t=q(e);return t===d&&function(e){e.window_size=2*e.w_size,j(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}(e.state),t}function Y(e,t,n,i,a,o){if(!e)return h;var s=1;if(t===f&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),a<1||v<a||n!==m||i<8||15<i||t<0||9<t||o<0||p<o)return P(e,h);8===i&&(i=9);var l=new H;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+D-1)/D),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,G(e)}i=[new V(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(B(e),0===e.lookahead&&t===c)return T;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,R(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-k&&(R(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(R(e,!0),0===e.strm.avail_out?N:M):(e.strstart>e.block_start&&(R(e,!1),e.strm.avail_out),T)})),new V(4,4,8,4,W),new V(4,5,16,8,W),new V(4,6,32,32,W),new V(4,4,16,16,z),new V(8,16,32,32,z),new V(8,16,128,128,z),new V(8,32,128,256,z),new V(32,128,258,1024,z),new V(32,258,258,4096,z)],n.deflateInit=function(e,t){return Y(e,t,m,15,8,0)},n.deflateInit2=Y,n.deflateReset=G,n.deflateResetKeep=q,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},n.deflate=function(e,t){var n,r,o,l;if(!e||!e.state||5<t||t<0)return e?P(e,h):h;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==u)return P(e,0===e.avail_out?-5:h);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===C)if(2===r.wrap)e.adler=0,O(r,31),O(r,139),O(r,8),r.gzhead?(O(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),O(r,255&r.gzhead.time),O(r,r.gzhead.time>>8&255),O(r,r.gzhead.time>>16&255),O(r,r.gzhead.time>>24&255),O(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),O(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(O(r,255&r.gzhead.extra.length),O(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(O(r,0),O(r,0),O(r,0),O(r,0),O(r,0),O(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),O(r,3),r.status=A);else{var f=m+(r.w_bits-8<<4)<<8;f|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.
vendor: 16,045 bytes, line 2
2strstart&&(f|=32),f+=31-f%31,r.status=A,I(r,f),0!==r.strstart&&(I(r,e.adler>>>16),I(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=s(e.adler,r.pending_buf,r.pending-o,o)),F(e),o=r.pending,r.pending!==r.pending_buf_size));)O(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=s(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=s(e.adler,r.pending_buf,r.pending-o,o)),F(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,O(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=s(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=s(e.adler,r.pending_buf,r.pending-o,o)),F(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,O(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=s(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&F(e),r.pending+2<=r.pending_buf_size&&(O(r,255&e.adler),O(r,e.adler>>8&255),e.adler=0,r.status=A)):r.status=A),0!==r.pending){if(F(e),0===e.avail_out)return r.last_flush=-1,d}else if(0===e.avail_in&&U(t)<=U(n)&&t!==u)return P(e,-5);if(666===r.status&&0!==e.avail_in)return P(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==c&&666!==r.status){var p=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(B(e),0===e.lookahead)){if(t===c)return T;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(R(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(R(e,!0),0===e.strm.avail_out?N:M):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?T:E}(r,t):3===r.strategy?function(e,t){for(var n,i,r,o,s=e.window;;){if(e.lookahead<=S){if(B(e),e.lookahead<=S&&t===c)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&0<e.strstart&&(i=s[r=e.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){o=e.strstart+S;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<o);e.match_length=S-(o-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(n=a._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(R(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(R(e,!0),0===e.strm.avail_out?N:M):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?T:E}(r,t):i[r.level].func(r,t);if(p!==N&&p!==M||(r.status=666),p===T||p===N)return 0===e.avail_out&&(r.last_flush=-1),d;if(p===E&&(1===t?a._tr_align(r):5!==t&&(a._tr_stored_block(r,0,0,!1),3===t&&(j(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),F(e),0===e.avail_out))return r.last_flush=-1,d}return t!==u?d:r.wrap<=0?1:(2===r.wrap?(O(r,255&e.adler),O(r,e.adler>>8&255),O(r,e.adler>>16&255),O(r,e.adler>>24&255),O(r,255&e.total_in),O(r,e.total_in>>8&255),O(r,e.total_in>>16&255),O(r,e.total_in>>24&255)):(I(r,e.adler>>>16),I(r,65535&e.adler)),F(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==C&&69!==t&&73!==t&&91!==t&&103!==t&&t!==A&&666!==t?P(e,h):(e.state=null,t===A?P(e,-3):d):h},n.deflateSetDictionary=function(e,t){var n,i,a,s,l,c,u,f,p=t.length;if(!e||!e.state)return h;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==C||n.lookahead)return h;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(j(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,B(n);n.lookahead>=D;){for(i=n.strstart,a=n.lookahead-(D-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+D-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--a;);n.strstart=i,n.lookahead=D-1,B(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=D-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,i,r,a,o,s,l,c,u,d,h,f,p,g,m,v,b,y,x,w,_,D,S,k,C;n=e.state,i=e.next_in,k=e.input,r=i+(e.avail_in-5),a=e.next_out,C=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),y=g[f&v];t:for(;;){if(f>>>=x=y>>>24,p-=x,0===(x=y>>>16&255))C[a++]=65535&y;else{if(!(16&x)){if(0==(64&x)){y=g[(65535&y)+(f&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&y,(x&=15)&&(p<x&&(f+=k[i++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),y=m[f&b];n:for(;;){if(f>>>=x=y>>>24,p-=x,!(16&(x=y>>>16&255))){if(0==(64&x)){y=m[(65535&y)+(f&(1<<x)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(_=65535&y,p<(x&=15)&&(f+=k[i++]<<p,(p+=8)<x&&(f+=k[i++]<<p,p+=8)),l<(_+=f&(1<<x)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=x,p-=x,(x=a-o)<_){if(u<(x=_-x)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=h,(D=0)===d){if(D+=c-x,x<w){for(w-=x;C[a++]=h[D++],--x;);D=a-_,S=C}}else if(d<x){if(D+=c+d-x,(x-=d)<w){for(w-=x;C[a++]=h[D++],--x;);if(D=0,d<w){for(w-=x=d;C[a++]=h[D++],--x;);D=a-_,S=C}}}else if(D+=d-x,x<w){for(w-=x;C[a++]=h[D++],--x;);D=a-_,S=C}for(;2<w;)C[a++]=S[D++],C[a++]=S[D++],C[a++]=S[D++],w-=3;w&&(C[a++]=S[D++],1<w&&(C[a++]=S[D++]))}else{for(D=a-_;C[a++]=C[D++],C[a++]=C[D++],C[a++]=C[D++],2<(w-=3););w&&(C[a++]=C[D++],1<w&&(C[a++]=C[D++]))}break}}break}}while(i<r&&a<s);i-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=i,e.next_out=a,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var i=e("../utils/common"),r=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,h=1,f=852,p=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(f),t.distcode=t.distdyn=new i.Buf32(p),t.sane=1,t.back=-1,u):d}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function y(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,b(e))):d}function x(e,t){var n,i;return e?(i=new m,(e.state=i).window=null,(n=y(e,t))!==u&&(e.state=null),n):d}var w,_,D=!0;function S(e){if(D){var t;for(w=new i.Buf32(512),_=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,_,0,e.work,{bits:5}),D=!1}e.lencode=w,e.lenbits=9,e.distcode=_,e.distbits=5}function k(e,t,n,r){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),r>=o.wsize?(i.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(r<(a=o.wsize-o.wnext)&&(a=r),i.arraySet(o.window,t,n-r,a,o.wnext),(r-=a)?(i.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=b,n.inflateReset2=y,n.inflateResetKeep=v,n.inflateInit=function(e){return x(e,15)},n.inflateInit2=x,n.inflate=function(e,t){var n,f,p,m,v,b,y,x,w,_,D,C,A,T,E,N,M,P,U,j,F,R,O,I,L=0,B=new i.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,f=e.input,b=e.avail_in,x=n.hold,w=n.bits,_=b,D=y,R=u;e:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(2&n.wrap&&35615===x){B[n.check=0]=255&x,B[1]=x>>>8&255,n.check=a(n.check,B,2,0),w=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&x)){e.msg="unknown compression method",n.mode=30;break}if(w-=4,F=8+(15&(x>>>=4)),0===n.wbits)n.wbits=F;else if(F>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<F,e.adler=n.check=1,n.mode=512&x?10:12,w=x=0;break;case 2:for(;w<16;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(n.flags=x,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(B[0]=255&x,B[1]=x>>>8&255,n.check=a(n.check,B,2,0)),w=x=0,n.mode=3;case 3:for(;w<32;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}n.head&&(n.head.time=x),512&n.flags&&(B[0]=255&x,B[1]=x>>>8&255,B[2]=x>>>16&255,B[3]=x>>>24&255,n.check=a(n.check,B,4,0)),w=x=0,n.mode=4;case 4:for(;w<16;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(B[0]=255&x,B[1]=x>>>8&255,n.check=a(n.check,B,2,0)),w=x=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(B[0]=255&x,B[1]=x>>>8&255,n.check=a(n.check,B,2,0)),w=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(b<(C=n.length)&&(C=b),C&&(n.head&&(F=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,f,m,C,F)),512&n.flags&&(n.check=a(n.check,f,C,m)),b-=C,m+=C,n.length-=C),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===b)break e;for(C=0;F=f[m+C++],n.head&&F&&n.length<65536&&(n.head.name+=String.fromCharCode(F)),F&&C<b;);if(512&n.flags&&(n.check=a(n.check,f,C,m)),b-=C,m+=C,F)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===b)break e;for(C=0;F=f[m+C++],n.head&&F&&n.length<65536&&(n.head.comment+=String.fromCharCode(F)),F&&C<b;);if(512&n.flags&&(n.check=a(n.check,f,C,m)),b-=C,m+=C,F)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(x!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}w=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}e.adler=n.check=g(x),w=x=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=w,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){x>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}switch(n.last=1&x,w-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6!==t)break;x>>>=2,w-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}x>>>=2,w-=2;break;case 14:for(x>>>=7&w,w-=7&w;w<32;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if((65535&x)!=(x>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&x,w=x=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(C=n.length){if(b<C&&(C=b),y<C&&(C=y),0===C)break e;i.arraySet(p,f,m,C,v),b-=C,m+=C,y-=C,v+=C,n.length-=C;break}n.mode=12;break;case 17:for(;w<14;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(n.nlen=257+(31&x),x>>>=5,w-=5,n.ndist=1+(31&x),x>>>=5,w-=5,n.ncode=4+(15&x),x>>>=4,w-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}n.lens[W[n.have++]]=7&x,x>>>=3,w-=3}for(;n.have<19;)n.lens[W[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,O={bits:n.lenbits},R=s(0,n.lens,0,19,n.lencode,0,n.work,O),n.lenbits=O.bits,R){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;N=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,M=65535&L,!((E=L>>>24)<=w);){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(M<16)x>>>=E,w-=E,n.lens[n.have++]=M;else{if(16===M){for(I=E+2;w<I;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(x>>>=E,w-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}F=n.lens[n.have-1],C=3+(3&x),x>>>=2,w-=2}else if(17===M){for(I=E+3;w<I;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}w-=E,F=0,C=3+(7&(x>>>=E)),x>>>=3,w-=3}else{for(I=E+7;w<I;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}w-=E,F=0,C=11+(127&(x>>>=E)),x>>>=7,w-=7}if(n.have+C>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;C--;)n.lens[n.have++]=F}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,O={bits:n.lenbits},R=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,O),n.lenbits=O.bits,R){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,O={bits:n.distbits},R=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,O),n.distbits=O.bits,R){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=b&&258<=y){e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=w,o(e,D),v=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,f=e.input,b=e.avail_in,x=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;N=(L=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,M=65535&L,!((E=L>>>24)<=w);){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(N&&0==(240&N)){for(P=E,U=N,j=M;N=(L=n.lencode[j+((x&(1<<P+U)-1)>>P)])>>>16&255,M=65535&L,!(P+(E=L>>>24)<=w);){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}x>>>=P,w-=P,n.back+=P}if(x>>>=E,w-=E,n.back+=E,n.length=M,0===N){n.mode=26;break}if(32&N){n.back=-1,n.mode=12;break}if(64&N){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&N,n.mode=22;case 22:if(n.extra){for(I=n.extra;w<I;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;N=(L=n.distcode[x&(1<<n.distbits)-1])>>>16&255,M=65535&L,!((E=L>>>24)<=w);){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(0==(240&N)){for(P=E,U=N,j=M;N=(L=n.distcode[j+((x&(1<<P+U)-1)>>P)])>>>16&255,M=65535&L,!(P+(E=L>>>24)<=w);){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}x>>>=P,w-=P,n.back+=P}if(x>>>=E,w-=E,n.back+=E,64&N){e.msg="invalid distance code",n.mode=30;break}n.offset=M,n.extra=15&N,n.mode=24;case 24:if(n.extra){for(I=n.extra;w<I;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>
vendor: 4,658 bytes, line 2
2n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(C=D-y,n.offset>C){if((C=n.offset-C)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}A=C>n.wnext?(C-=n.wnext,n.wsize-C):n.wnext-C,C>n.length&&(C=n.length),T=n.window}else T=p,A=v-n.offset,C=n.length;for(y<C&&(C=y),y-=C,n.length-=C;p[v++]=T[A++],--C;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[v++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===b)break e;b--,x|=f[m++]<<w,w+=8}if(D-=y,e.total_out+=D,n.total+=D,D&&(e.adler=n.check=n.flags?a(n.check,p,D,v-D):r(n.check,p,D,v-D)),D=y,(n.flags?x:g(x))!==n.check){e.msg="incorrect data check",n.mode=30;break}w=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===b)break e;b--,x+=f[m++]<<w,w+=8}if(x!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}w=x=0}n.mode=29;case 29:R=1;break e;case 30:R=-3;break e;case 31:return-4;default:return d}return e.next_out=v,e.avail_out=y,e.next_in=m,e.avail_in=b,n.hold=x,n.bits=w,(n.wsize||D!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,D-e.avail_out)?(n.mode=31,-4):(_-=e.avail_in,D-=e.avail_out,e.total_in+=_,e.total_out+=D,n.total+=D,n.wrap&&D&&(e.adler=n.check=n.flags?a(n.check,p,D,e.next_out-D):r(n.check,p,D,e.next_out-D)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==_&&0===D||4===t)&&R===u&&(R=-5),R)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?d:((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&r(1,t,i,0)!==n.check?-3:k(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var i=e("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,c,u,d,h){var f,p,g,m,v,b,y,x,w,_=h.bits,D=0,S=0,k=0,C=0,A=0,T=0,E=0,N=0,M=0,P=0,U=null,j=0,F=new i.Buf16(16),R=new i.Buf16(16),O=null,I=0;for(D=0;D<=15;D++)F[D]=0;for(S=0;S<l;S++)F[t[n+S]]++;for(A=_,C=15;1<=C&&0===F[C];C--);if(C<A&&(A=C),0===C)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(k=1;k<C&&0===F[k];k++);for(A<k&&(A=k),D=N=1;D<=15;D++)if(N<<=1,(N-=F[D])<0)return-1;if(0<N&&(0===e||1!==C))return-1;for(R[1]=0,D=1;D<15;D++)R[D+1]=R[D]+F[D];for(S=0;S<l;S++)0!==t[n+S]&&(d[R[t[n+S]]++]=S);if(b=0===e?(U=O=d,19):1===e?(U=r,j-=257,O=a,I-=257,256):(U=o,O=s,-1),D=k,v=u,E=S=P=0,g=-1,m=(M=1<<(T=A))-1,1===e&&852<M||2===e&&592<M)return 1;for(;;){for(y=D-E,w=d[S]<b?(x=0,d[S]):d[S]>b?(x=O[I+d[S]],U[j+d[S]]):(x=96,0),f=1<<D-E,k=p=1<<T;c[v+(P>>E)+(p-=f)]=y<<24|x<<16|w,0!==p;);for(f=1<<D-1;P&f;)f>>=1;if(0!==f?(P&=f-1,P+=f):P=0,S++,0==--F[D]){if(D===C)break;D=t[n+d[S]]}if(A<D&&(P&m)!==g){for(0===E&&(E=A),v+=k,N=1<<(T=D-E);T+E<C&&!((N-=F[T+E])<=0);)T++,N<<=1;if(M+=1<<T,1===e&&852<M||2===e&&592<M)return 1;c[g=P&m]=A<<24|T<<16|v-u}}return 0!==P&&(c[v+P]=D-E<<24|64<<16),h.bits=A,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var i=e("../utils/common"),r=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,h=19,f=2*u+1,p=15,g=16,m=7,v=256,b=16,y=17,x=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],_=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(u+2));o(k);var C=new Array(2*d);o(C);var A=new Array(512);o(A);var T=new Array(256);o(T);var E=new Array(l);o(E);var N,M,P,U=new Array(d);function j(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function R(e){return e<256?A[e]:A[256+(e>>>7)]}
vendor: 1,904 bytes, line 2
2function O(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function I(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,O(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function L(e,t,n){I(e,n[2*t],n[2*t+1])}function B(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function W(e,t,n){var i,r,a=new Array(p+1),o=0;for(i=1;i<=p;i++)a[i]=o=o+n[i-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=B(a[s]++,s))}}function z(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V(e){8<e.bi_valid?O(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function H(e,t,n,i){var r=2*t,a=2*n;return e[r]<e[a]||e[r]===e[a]&&i[t]<=i[n]}function q(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&H(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!H(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function G(e,t,n){var i,r,a,o,s=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],r=e.pending_buf[e.l_buf+s],s++,0===i?L(e,r,t):(L(e,(a=T[r])+c+1,t),0!==(o=w[a])&&I(e,r-=E[a],o),L(e,a=R(--i),n),0!==(o=_[a])&&I(e,i-=U[a],o)),s<e.last_lit;);L(e,v,t)}function Y(e,t){var n,i,r,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=f,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(r=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=o[2*r+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)q(e,a,n);for(r=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,a,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,a[2*r]=a[2*n]+a[2*i],e.depth[r]=(e.depth[n]>
vendor: 4,648 bytes, line 2
2=e.depth[i]?e.depth[n]:e.depth[i])+1,a[2*n+1]=a[2*i+1]=r,e.heap[1]=r++,q(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,a,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<f;n++)m<(a=l[2*l[2*(i=e.heap[n])+1]+1]+1)&&(a=m,v++),l[2*i+1]=a,c<i||(e.bl_count[a]++,o=0,g<=i&&(o=h[i-g]),s=l[2*i],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*i+1]+o)));if(0!==v){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(a=m;0!==a;a--)for(i=e.bl_count[a];0!==i;)c<(r=e.heap[--n])||(l[2*r+1]!==a&&(e.opt_len+=(a-l[2*r+1])*l[2*r],l[2*r+1]=a),i--)}}(e,t),W(a,c,e.bl_count)}function X(e,t,n){var i,r,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=t[2*(i+1)+1],++s<l&&r===o||(s<c?e.bl_tree[2*r]+=s:0!==r?(r!==a&&e.bl_tree[2*r]++,e.bl_tree[2*b]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*x]++,a=r,c=(s=0)===o?(l=138,3):r===o?(l=6,3):(l=7,4))}function K(e,t,n){var i,r,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),i=0;i<=n;i++)if(r=o,o=t[2*(i+1)+1],!(++s<l&&r===o)){if(s<c)for(;L(e,r,e.bl_tree),0!=--s;);else 0!==r?(r!==a&&(L(e,r,e.bl_tree),s--),L(e,b,e.bl_tree),I(e,s-3,2)):s<=10?(L(e,y,e.bl_tree),I(e,s-3,3)):(L(e,x,e.bl_tree),I(e,s-11,7));a=r,c=(s=0)===o?(l=138,3):r===o?(l=6,3):(l=7,4)}}o(U);var $=!1;function Q(e,t,n,r){I(e,(s<<1)+(r?1:0),3),function(e,t,n,r){V(e),r&&(O(e,n),O(e,~n)),i.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){$||(function(){var e,t,n,i,r,a=new Array(p+1);for(i=n=0;i<l-1;i++)for(E[i]=n,e=0;e<1<<w[i];e++)T[n++]=i;for(T[n-1]=i,i=r=0;i<16;i++)for(U[i]=r,e=0;e<1<<_[i];e++)A[r++]=i;for(r>>=7;i<d;i++)for(U[i]=r<<7,e=0;e<1<<_[i]-7;e++)A[256+r++]=i;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,a[8]++;for(;e<=255;)k[2*e+1]=9,e++,a[9]++;for(;e<=279;)k[2*e+1]=7,e++,a[7]++;for(;e<=287;)k[2*e+1]=8,e++,a[8]++;for(W(k,u+1,a),e=0;e<d;e++)C[2*e+1]=5,C[2*e]=B(e,5);N=new j(k,w,c+1,u,p),M=new j(C,_,0,d,p),P=new j(new Array(0),D,0,h,m)}(),$=!0),e.l_desc=new F(e.dyn_ltree,N),e.d_desc=new F(e.dyn_dtree,M),e.bl_desc=new F(e.bl_tree,P),e.bi_buf=0,e.bi_valid=0,z(e)},n._tr_stored_block=Q,n._tr_flush_block=function(e,t,n,i){var o,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return r;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return a;return r}(e)),Y(e,e.l_desc),Y(e,e.d_desc),l=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),Y(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==t?Q(e,t,n,i):4===e.strategy||s===o?(I(e,2+(i?1:0),3),G(e,k,C)):(I(e,4+(i?1:0),3),function(e,t,n,i){var r;for(I(e,t-257,5),I(e,n-1,5),I(e,i-4,4),r=0;r<i;r++)I(e,e.bl_tree[2*S[r]+1],3);K(e,e.dyn_ltree,t-1),K(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),G(e,e.dyn_ltree,e.dyn_dtree)),z(e),i&&V(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(T[n]+c+1)]++,e.dyn_dtree[2*R(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){I(e,2,3),L(e,v,k),function(e){16===e.bi_valid?(O(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,i,r,a,o=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(
2a+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return s[o]=r,n(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,i=e.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(t,i)}}(n)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},7685:(e,t,n)=>{var i=n(7937)(n(6552),"DataView");e.exports=i},8724:(e,t,n)=>{var i=n(7615),r=n(5051),a=n(2154),o=n(8734),s=n(2662);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},7160:(e,t,n)=>{var i=n(7563),r=n(9935),a=n(4190),o=n(1946),s=n(1714);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},5204:(e,t,n)=>{var i=n(7937)(n(6552),"Map");e.exports=i},4816:(e,t,n)=>{var i=n(7251),r=n(7159),a=n(8057),o=n(9394),s=n(6874);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},5387:(e,t,n)=>{var i=n(7937)(n(6552),"Promise");e.exports=i},2070:(e,t,n)=>{var i=n(7937)(n(6552),"Set");e.exports=i},8902:(e,t,n)=>{var i=n(4816),r=n(6179),a=n(6704);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=a,e.exports=o},5538:(e,t,n)=>{var i=n(7160),r=n(4545),a=n(793),o=n(7760),s=n(3892),l=n(6788);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},9812:(e,t,n)=>{var i=n(6552).Symbol;e.exports=i},2929:(e,t,n)=>{var i=n(6552).Uint8Array;e.exports=i},4219:(e,t,n)=>{var i=n(7937)(n(6552),"WeakMap");e.exports=i},7529:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var o=e[n];t(o,n,e)&&(a[r++]=o)}return a}},3204:(e,t,n)=>{var i=n(3343),r=n(2777),a=n(4052),o=n(4543),s=n(9194),l=n(1268),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&r(e),d=!n&&!u&&o(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?i(e.length,String):[],g=p.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},8895:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},2587:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},1340:(e,t,n)=>{var i=n(3211);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},4262:(e,t,n)=>{var i=n(8895),r=n(4052);e.exports=function(e,t,n){var a=t(e);return r(e)?a:i(a,n(e))}},6913:(e,t,n)=>{var i=n(9812),r=n(4552),a=n(6095),o=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):a(e)}},5193:(e,t,n)=>{var i=n(6913),r=n(2761);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}}
vendor: 5,398 bytes, line 2
2,6989:(e,t,n)=>{var i=n(6399),r=n(2761);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!==t&&n!==n:i(t,n,a,o,e,s))}},6399:(e,t,n)=>{var i=n(5538),r=n(3668),a=n(9987),o=n(5752),s=n(6924),l=n(4052),c=n(4543),u=n(1268),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var b=l(e),y=l(t),x=b?h:s(e),w=y?h:s(t),_=(x=x==d?f:x)==f,D=(w=w==d?f:w)==f,S=x==w;if(S&&c(e)){if(!c(t))return!1;b=!0,_=!1}if(S&&!_)return v||(v=new i),b||u(e)?r(e,t,n,g,m,v):a(e,t,x,n,g,m,v);if(!(1&n)){var k=_&&p.call(e,"__wrapped__"),C=D&&p.call(t,"__wrapped__");if(k||C){var A=k?e.value():e,T=C?t.value():t;return v||(v=new i),m(A,T,n,g,v)}}return!!S&&(v||(v=new i),o(e,t,n,g,m,v))}},6954:(e,t,n)=>{var i=n(1629),r=n(7857),a=n(6686),o=n(6996),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||r(e))&&(i(e)?h:s).test(o(e))}},5428:(e,t,n)=>{var i=n(6913),r=n(6173),a=n(2761),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&r(e.length)&&!!o[i(e)]}},3713:(e,t,n)=>{var i=n(6140),r=n(1143),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},3343:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},8114:e=>{e.exports=function(e,t){return e.has(t)}},3440:(e,t,n)=>{var i=n(6552)["__core-js_shared__"];e.exports=i},3668:(e,t,n)=>{var i=n(8902),r=n(2587),a=n(8114);e.exports=function(e,t,n,o,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var v=e[p],b=t[p];if(o)var y=c?o(b,v,p,t,e,l):o(v,b,p,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(m){if(!r(t,(function(e,t){if(!a(m,t)&&(v===e||s(v,e,n,o,l)))return m.push(t)}))){g=!1;break}}else if(v!==b&&!s(v,b,n,o,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},9987:(e,t,n)=>{var i=n(9812),r=n(2929),a=n(3211),o=n(3668),s=n(4160),l=n(2074),c=i?i.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,i,c,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&i;if(f||(f=l),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;i|=2,h.set(e,t);var m=o(f(e),f(t),i,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},5752:(e,t,n)=>{var i=n(9395),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var l=1&n,c=i(e),u=c.length;if(u!=i(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:r.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[h=c[d]],b=t[h];if(a)var y=l?a(b,v,h,t,e,s):a(v,b,h,e,t,s);if(!(void 0===y?v===b||o(v,b,n,a,s):y)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}},7105:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},9395:(e,t,n)=>{var i=n(4262),r=n(9621),a=n(8673);e.exports=function(e){return i(e,a,r)}},2622:(e,t,n)=>{var i=n(705);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},7937:(e,t,n)=>{var i=n(6954),r=n(4657);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},4552:(e,t,n)=>{var i=n(9812),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(l){}var r=o.call(e);return i&&(t?e[s]=n:delete e[s]),r}},9621:(e,t,n)=>{var i=n(7529),r=n(7828),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),i(o(e),(function(t){return a.call(e,t)})))}:r;e.exports=s},6924:(e,t,n)=>{var i=n(7685),r=n(5204),a=n(5387),o=n(2070),s=n(4219),l=n(6913),c=n(6996),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(i),m=c(r),v=c(a),b=c(o),y=c(s),x=l;
vendor: 4,900 bytes, line 2
2(i&&x(new i(new ArrayBuffer(1)))!=p||r&&x(new r)!=u||a&&x(a.resolve())!=d||o&&x(new o)!=h||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case g:return p;case m:return u;case v:return d;case b:return h;case y:return f}return t}),e.exports=x},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7615:(e,t,n)=>{var i=n(5575);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},5051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2154:(e,t,n)=>{var i=n(5575),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},8734:(e,t,n)=>{var i=n(5575),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},2662:(e,t,n)=>{var i=n(5575);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},9194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7857:(e,t,n)=>{var i=n(3440),r=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!r&&r in e}},6140:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7563:e=>{e.exports=function(){this.__data__=[],this.size=0}},9935:(e,t,n)=>{var i=n(1340),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},4190:(e,t,n)=>{var i=n(1340);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},1946:(e,t,n)=>{var i=n(1340);e.exports=function(e){return i(this.__data__,e)>-1}},1714:(e,t,n)=>{var i=n(1340);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},7251:(e,t,n)=>{var i=n(8724),r=n(7160),a=n(5204);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(a||r),string:new i}}},7159:(e,t,n)=>{var i=n(2622);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},8057:(e,t,n)=>{var i=n(2622);e.exports=function(e){return i(this,e).get(e)}},9394:(e,t,n)=>{var i=n(2622);e.exports=function(e){return i(this,e).has(e)}},6874:(e,t,n)=>{var i=n(2622);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},4160:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},5575:(e,t,n)=>{var i=n(7937)(Object,"create");e.exports=i},1143:(e,t,n)=>{var i=n(3028)(Object.keys,Object);e.exports=i},6832:(e,t,n)=>{e=n.nmd(e);var i=n(7105),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,o=a&&a.exports===r&&i.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3028:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6552:(e,t,n)=>{var i=n(7105),r="object"==typeof self&&self&&self.Object===Object&&self,a=i||r||Function("return this")();e.exports=a},6179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6704:e=>{e.exports=function(e){return this.__data__.has(e)}},2074:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4545:(e,t,n)=>{var i=n(7160);e.exports=function(){this.__data__=new i,this.size=0}},793:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7760:e=>{e.exports=function(e){return this.__data__.get(e)}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},6788:(e,t,n)=>{var i=n(7160),r=n(5204),a=n(4816);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var o=n.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},3211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},2777:(e,t,n)=>{var i=n(5193),r=n(2761),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},4052:e=>{var t=Array.isArray;e.exports=t},6571:(e,t,n)=>{var i=n(1629),r=n(6173);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}}
2,4543:(e,t,n)=>{e=n.nmd(e);var i=n(6552),r=n(14),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},9853:(e,t,n)=>{var i=n(6989);e.exports=function(e,t){return i(e,t)}},1629:(e,t,n)=>{var i=n(6913),r=n(6686);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1268:(e,t,n)=>{var i=n(5428),r=n(7574),a=n(6832),o=a&&a.isTypedArray,s=o?r(o):i;e.exports=s},8673:(e,t,n)=>{var i=n(3204),r=n(3713),a=n(6571);e.exports=function(e){return a(e)?i(e):r(e)}},7828:e=>{e.exports=function(){return[]}},14:e=>{e.exports=function(){return!1}},8303:(e,t,n)=>{t.Parser=n(3056).Parser,t.rules=n(2288),t.errors=n(824),t.results=n(8504),t.StringSource=n(359),t.Token=n(1842),t.bottomUp=n(5664),t.RegexTokeniser=n(2863).RegexTokeniser,t.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}},359:e=>{e.exports=function(e,n){return{asString:function(){return e},range:function(i,r){return new t(e,n,i,r)}}};var t=function(e,t,n,i){this._string=e,this._description=t,this._startIndex=n,this._endIndex=i};t.prototype.to=function(e){return new t(this._string,this._description,this._startIndex,e._endIndex)},t.prototype.describe=function(){var e=this._position();return(this._description?this._description+"\n":"")+"Line number: "+e.lineNumber+"\nCharacter number: "+e.characterNumber},t.prototype.lineNumber=function(){return this._position().lineNumber},t.prototype.characterNumber=function(){return this._position().characterNumber},t.prototype._position=function(){for(var e=this,t=0,n=function(){return e._string.indexOf("\n",t)},i=1;-1!==n()&&n()<this._startIndex;)t=n()+1,i+=1;return{lineNumber:i,characterNumber:this._startIndex-t+1}}},1842:e=>{e.exports=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)}},4200:e=>{var t=e.exports=function(e,t){this._tokens=e,this._startIndex=t||0};t.prototype.head=function(){return this._tokens[this._startIndex]},t.prototype.tail=function(e){return new t(this._tokens,this._startIndex+1)},t.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},t.prototype.end=function(){return this._tokens[this._tokens.length-1]},t.prototype.to=function(e){var t=this.head().source,n=e.head()||e.end();return t.to(n.source)}}
2,5664:(e,t,n)=>{var i=n(2288),r=n(8504);function a(e){function t(){return e.map((function(e){return e.name}))}return{apply:function(t){for(var n,a,o;;){if(o=t.remaining(),!(n=i.firstOf("infix",e.map((function(e){return e.rule})))(o)).isSuccess())return n.isFailure()?t:n;a=t.source().to(n.source()),t=r.success(n.value()(t.value(),a),n.remaining(),a)}},untilExclusive:function(n){return new a(e.slice(0,t().indexOf(n)))},untilInclusive:function(n){return new a(e.slice(0,t().indexOf(n)+1))}}}t.parser=function(e,t,n){var r={rule:function(){return c(s)},leftAssociative:function(e){return c(s.untilExclusive(e))},rightAssociative:function(e){return c(s.untilInclusive(e))}},s=new a(n.map((function(e){return{name:e.name,rule:o(e.ruleBuilder.bind(null,r))}}))),l=i.firstOf(e,t);function c(e){return u.bind(null,e)}function u(e,t){var n=l(t);return n.isSuccess()?e.apply(n):n}return r},t.infix=function(e,n){return{name:e,ruleBuilder:n,map:function(i){return t.infix(e,(function(e){var t=n(e);return function(e){return t(e).map((function(e){return function(t,n){return i(t,e,n)}}))}}))}}};var o=function(e){var t;return function(n){return t||(t=e()),t(n)}}},824:(e,t)=>{t.error=function(e){return new n(e)};var n=function(e){this.expected=e.expected,this.actual=e.actual,this._location=e.location};n.prototype.describe=function(){return(this._location?this._location.describe()+":\n":"")+"Expected "+this.expected+"\nbut got "+this.actual},n.prototype.lineNumber=function(){return this._location.lineNumber()},n.prototype.characterNumber=function(){return this._location.characterNumber()}},3647:(e,t)=>{t.fromArray=function(e){var t=0,i=function(){return t<e.length};return new n({hasNext:i,next:function(){if(i())return e[t++];throw new Error("No more elements")}})};var n=function(e){this._iterator=e};n.prototype.map=function(e){var t=this._iterator;return new n({hasNext:function(){return t.hasNext()},next:function(){return e(t.next())}})},n.prototype.filter=function(e){var t,i=this._iterator,r=!1,a=!1,o=function(){if(!r)for(r=!0,a=!1;i.hasNext()&&!a;)t=i.next(),a=e(t)};return new n({hasNext:function(){return o(),a},next:function(){return o(),r=!1,t}})},n.prototype.first=function(){var e=this._iterator;return this._iterator.hasNext()?e.next():null},n.prototype.toArray=function(){for(var e=[];this._iterator.hasNext();)e.push(this._iterator.next());return e}},3056:(e,t,n)=>{var i=n(4200);t.Parser=function(e){return{parseTokens:function(e,t){return e(new i(t))}}}},8504:e=>{e.exports={failure:function(e,n){if(e.length<1)throw new Error("Failure must have errors");return new t({status:"failure",remaining:n,errors:e})},error:function(e,n){if(e.length<1)throw new Error("Failure must have errors");return new t({status:"error",remaining:n,errors:e})},success:function(e,n,i){return new t({status:"success",value:e,source:i,remaining:n,errors:[]})},cut:function(e){return new t({status:"cut",remaining:e,errors:[]})}};var t=function(e){this._value=e.value,this._status=e.status,this._hasValue=void 0!==e.value,this._remaining=e.remaining,this._source=e.source,this._errors=e.errors};t.prototype.map=function(e){return this._hasValue?new t({value:e(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},t.prototype.changeRemaining=function(e){return new t({value:this._value,status:this._status,remaining:e,source:this._source,errors:this._errors})},t.prototype.isSuccess=function(){return"success"===this._status||"cut"===this._status},t.prototype.isFailure=function(){return"failure"===this._status},t.prototype.isError=function(){return"error"===this._status},t.prototype.isCut=function(){return"cut"===this._status},t.prototype.value=function(){return this._value},t.prototype.remaining=function(){return this._remaining},t.prototype.source=function(){return this._source},t.prototype.errors=function(){return this._errors}},2863:(e,t,n)=>{var i=n(1842),r=n(359);t.RegexTokeniser=function(e){function t(t,n,r){for(var a=0;a<e.length;a++){var o=e[a].regex;o.lastIndex=n;var s=o.exec(t);if(s){var l=n+s[0].length;if(s.index===n&&l>n){var c=s[1];return{token:new i(e[a].name,c,r.range(n,l)),endIndex:l}}}}l=n+1;return{token:new i("unrecognisedCharacter",t.substring(n,l),r.range(n,l)),endIndex:l}}function n(e,t){return new i("end",null,t.range(e.length,e.length))}return e=e.map((function(e){return{name:e.name,regex:new RegExp(e.regex.source,"g")}})),{tokenise:function(e,i){var a=new r(e,i),o=0,s=[];for(;o<e.length;
2){var l=t(e,o,a);o=l.endIndex,s.push(l.token)}return s.push(n(e,a)),s}}}},2288:(e,t,n)=>{var i=n(5973),r=n(889),a=n(8504),o=n(824),s=n(3647);t.token=function(e,t){var n=void 0!==t;return function(i){var r=i.head();return!r||r.name!==e||n&&r.value!==t?f(i,h({name:e,value:t})):a.success(r.value,i.tail(),r.source)}},t.tokenOfType=function(e){return t.token(e)},t.firstOf=function(e,t){return i.isArray(t)||(t=Array.prototype.slice.call(arguments,1)),function(n){return s.fromArray(t).map((function(e){return e(n)})).filter((function(e){return e.isSuccess()||e.isError()})).first()||f(n,e)}},t.then=function(e,t){return function(n){var i=e(n);return i.map||console.log(i),i.map(t)}},t.sequence=function(){var e=Array.prototype.slice.call(arguments,0),n=function(n){var r=i.foldl(e,(function(e,t){var i=e.result,r=e.hasCut;if(!i.isSuccess())return{result:i,hasCut:r};var o=t(i.remaining());if(o.isCut())return{result:i,hasCut:!0};if(o.isSuccess()){var s;s=t.isCaptured?i.value().withValue(t,o.value()):i.value();var l=o.remaining(),c=n.to(l);return{result:a.success(s,l,c),hasCut:r}}return r?{result:a.error(o.errors(),o.remaining()),hasCut:r}:{result:o,hasCut:r}}),{result:a.success(new l,n),hasCut:!1}).result,o=n.to(r.remaining());return r.map((function(e){return e.withValue(t.sequence.source,o)}))};function r(e){return e.isCaptured}return n.head=function(){var a=i.find(e,r);return t.then(n,t.sequence.extract(a))},n.map=function(e){return t.then(n,(function(t){return e.apply(this,t.toArray())}))},n};var l=function(e,t){this._values=e||{},this._valuesArray=t||[]};l.prototype.withValue=function(e,t){if(e.captureName&&e.captureName in this._values)throw new Error('Cannot add second value for capture "'+e.captureName+'"');var n=i.clone(this._values);n[e.captureName]=t;var r=this._valuesArray.concat([t]);return new l(n,r)},l.prototype.get=function(e){if(e.captureName in this._values)return this._values[e.captureName];throw new Error('No value for capture "'+e.captureName+'"')},l.prototype.toArray=function(){return this._valuesArray},t.sequence.capture=function(e,t){var n=function(){return e.apply(this,arguments)};return n.captureName=t,n.isCaptured=!0,n},t.sequence.extract=function(e){return function(t){return t.get(e)}},t.sequence.applyValues=function(e){var t=Array.prototype.slice.call(arguments,1);return function(n){var i=t.map((function(e){return n.get(e)}));return e.apply(this,i)}},t.sequence.source={captureName:"\u2603source\u2603"},t.sequence.cut=function(){return function(e){return a.cut(e)}},t.optional=function(e){return function(t){var n=e(t);return n.isSuccess()?n.map(r.some):n.isFailure()?a.success(r.none,t):n}},t.zeroOrMoreWithSeparator=function(e,t){return d(e,t,!1)},t.oneOrMoreWithSeparator=function(e,t){return d(e,t,!0)};var c=t.zeroOrMore=function(e){return function(t){for(var n,i=[];(n=e(t))&&n.isSuccess();)t=n.remaining(),i.push(n.value());return n.isError()?n:a.success(i,t)}};function u(e){return a.success(null,e)}t.oneOrMore=function(e){return t.oneOrMoreWithSeparator(e,u)};var d=function(e,n,i){return function(r){var o=e(r);if(o.isSuccess()){var s=t.sequence.capture(e,"main"),l=c(t.then(t.sequence(n,s),t.sequence.extract(s)))(o.remaining());return a.success([o.value()].concat(l.value()),l.remaining())}return i||o.isError()?o:a.success([],r)}};t.leftAssociative=function(e,n,i){var r;r=(r=i?[{func:i,rule:n}]:n).map((function(e){return t.then(e.rule,(function(t){return function(n,i){return e.func(n,t,i)}}))}));
2var o=t.firstOf.apply(null,["rules"].concat(r));return function(t){var n=t,i=e(t);if(!i.isSuccess())return i;for(var r=o(i.remaining());r.isSuccess();){var s=r.remaining(),l=n.to(r.remaining()),c=r.value();i=a.success(c(i.value(),l),s,l),r=o(i.remaining())}return r.isError()?r:i}},t.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},t.nonConsuming=function(e){return function(t){return e(t).changeRemaining(t)}};var h=function(e){return e.value?e.name+' "'+e.value+'"':e.name};function f(e,t){var n,i=e.head();return n=i?o.error({expected:t,actual:h(i),location:i.source}):o.error({expected:t,actual:"end of tokens"}),a.failure([n],e)}},2757:(e,t,n)=>{var i=n(3127);t.s=function(){return{read:function(e){return i.reject(new Error("could not open external image: '"+e+"'\ncannot open linked files from a web browser"))}}}},5816:(e,t,n)=>{var i=n(3127),r=n(9836);t.openZip=function(e){return e.arrayBuffer?i.resolve(r.openArrayBuffer(e.arrayBuffer)):i.reject(new Error("Could not find file in options"))}},7772:(e,t,n)=>{var i=n(7475),r=n(3127),a=n(9611),o=n(8982),s=n(2959),l=n(1835),c=n(2459),u=n(1862);function d(e,t){var n=1,d=[],v=[],b=void 0===(e=i.extend({ignoreEmptyParagraphs:!0},e)).idPrefix?"":e.idPrefix,y=e.ignoreEmptyParagraphs,x=o.topLevelElement("p"),w=e.styleMap||[];function _(e,t,n){return p(e,(function(e){return D(e,t,n)}))}function D(e,t,n){if(!n)throw new Error("options not set");var i=R[e.type];return i?i(e,t,n):[]}function S(e,t){var n=k({type:e});return n||(t?o.element(t,{},{fresh:!1}):o.empty)}function k(e,t){var n=C(e);return n?n.to:t}function C(e){for(var t=0;t<w.length;t++)if(w[t].from.matches(e))return w[t]}function A(e){return E(e.noteType,e.noteId)}function T(e){return N(e.noteType,e.noteId)}function E(e,t){return M(e+"-"+t)}function N(e,t){return M(e+"-ref-"+t)}function M(e){return b+e}var P=o.elements([o.element("table",{},{fresh:!0})]);function U(e,t,n){var i=e.label,r=e.comment,a=_(r.body,t,n).concat([c.nonFreshElement("p",{},[c.text(" "),c.freshElement("a",{href:"#"+N("comment",r.commentId)},[c.text("\u2191")])])]);return[c.freshElement("dt",{id:E("comment",r.commentId)},[c.text("Comment "+i)]),c.freshElement("dd",{},a)]}var j,F,R={document:function(e,t,n){var i=_(e.children,t,n),r=_(d.map((function(t){return e.notes.resolve(t)})),t,n);return i.concat([c.freshElement("ol",{},r),c.freshElement("dl",{},p(v,(function(e){return U(e,t,n)})))])},paragraph:function(e,t,n){return function(e,t){var n=C(e);return n?n.to:(e.styleId&&t.push(f("paragraph",e)),x)}(e,t).wrap((function(){var i=_(e.children,t,n);return y?i:[c.forceWrite].concat(i)}))},run:function(e,t,n){var i=function(){return _(e.children,t,n)},r=[];if(null!==e.highlight){var s=k({type:"highlight",color:e.highlight});s&&r.push(s)}e.isSmallCaps&&r.push(S("smallCaps")),e.isAllCaps&&r.push(S("allCaps")),e.isStrikethrough&&r.push(S("strikethrough","s")),e.isUnderline&&r.push(S("underline")),e.verticalAlignment===a.verticalAlignment.subscript&&r.push(o.element("sub",{},{fresh:!1})),e.verticalAlignment===a.verticalAlignment.superscript&&r.push(o.element("sup",{},{fresh:!1})),e.isItalic&&r.push(S("italic","em")),e.isBold&&r.push(S("bold","strong"));var l=o.empty,c=C(e);return c?l=c.to:e.styleId&&t.push(f("run",e)),r.push(l),r.forEach((function(e){i=e.wrap.bind(e,i)})),i()},text:function(e,t,n){return[c.text(e.value)]},tab:function(e,t,n){return[c.text("\t")]},hyperlink:function(e,t,n){var i={href:e.anchor?"#"+M(e.anchor):e.href};null!=e.targetFrame&&(i.target=e.targetFrame);var r=_(e.children,t,n);return[c.nonFreshElement("a",i,r)]},checkbox:function(e){var t={type:"checkbox"};return e.checked&&(t.checked="checked"),[c.freshElement("input",t)]},bookmarkStart:function(e,t,n){return[c.freshElement("a",{id:M(e.name)},[c.forceWrite])]},noteReference:function(e,t,i){d.push(e);var r=c.freshElement("a",{href:"#"+A(e),id:T(e)},[c.text("["+n+++"]")]);return[c.freshElement("sup",{},[r])]},note:function(e,t,n){var i=_(e.body,t,n),r=c.elementWithTag(o.element("p",{},{fresh:!1}),[c.text(" "),c.freshElement("a",{href:"#"+T(e)},[c.text("\u2191")])]),a=i.concat([r]);return c.freshElement("li",{id:A(e)},a)},commentReference:function(e,n,i){return k(e,o.ignore).wrap((function(){var n=t[e.commentId],i=v.length+1,r="["+m(n)+i+"]";return v.push({label:r,comment:n}),[c.freshElement("a",{href:"#"+E("comment",e.commentId),id:N("comment",e.commentId)},[c.text(r)])]}))},comment:U,image:(F=e.convertImage||l.dataUri,j=function(e,t){return r.attempt((function(){return F(e,t)})).caught((function(e){return t.push(s.error(e)),[]}))},function(e,t,n){return[{type:"deferred",id:h++,value:function(){return j(e,t,n)}}]}),table:function(e,t,n){return k(e,P).wrap((function(){return function(e,t,n){var r,o=i.findIndex(e.children,(function(e){return!e.type===a.types.tableRow||!e.isHeader}));-1===o&&(o=e.children.length);if(0===o)r=_(e.children,t,i.extend({},n,{isTableHeader:!1}));else{var s=_(e.children.slice(0,o),t,i.extend({},n,{isTableHeader:!0})),l=_(e.children.slice(o),t,i.extend({},n,{isTableHeader:!1}));
2r=[c.freshElement("thead",{},s),c.freshElement("tbody",{},l)]}return[c.forceWrite].concat(r)}(e,t,n)}))},tableRow:function(e,t,n){var i=_(e.children,t,n);return[c.freshElement("tr",{},[c.forceWrite].concat(i))]},tableCell:function(e,t,n){var i=n.isTableHeader?"th":"td",r=_(e.children,t,n),a={};return 1!==e.colSpan&&(a.colspan=e.colSpan.toString()),1!==e.rowSpan&&(a.rowspan=e.rowSpan.toString()),[c.freshElement(i,a,[c.forceWrite].concat(r))]},break:function(e,t,n){return function(e){var t=C(e);return t?t.to:"line"===e.breakType?o.topLevelElement("br"):o.empty}(e).wrap((function(){return[]}))}};return{convertToHtml:function(t){var n=[],a=D(t,n,{}),o=[];g(a,(function(e){"deferred"===e.type&&o.push(e)}));var l={};return r.mapSeries(o,(function(e){return e.value().then((function(t){l[e.id]=t}))})).then((function(){var t=u.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return c.write(t,c.simplify(function e(t){return p(t,(function(t){return"deferred"===t.type?l[t.id]:t.children?[i.extend({},t,{children:e(t.children)})]:[t]}))}(a))),new s.Result(t.asString(),n)}))}}}t.w=function(e){return{convertToHtml:function(t){var n=i.indexBy(t.type===a.types.document?t.comments:[],"commentId");return new d(e,n).convertToHtml(t)}}};var h=1;function f(e,t){return s.warning("Unrecognised "+e+" style: '"+t.styleName+"' (Style ID: "+t.styleId+")")}function p(e,t){return i.flatten(e.map(t),!0)}function g(e,t){e.forEach((function(e){t(e),e.children&&g(e.children,t)}))}var m=function(e){return e.authorInitials||""}},9611:(e,t,n)=>{var i=n(7475),r=t.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};var a={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function o(e){this._notes=i.indexBy(e,(function(e){return s(e.noteType,e.noteId)}))}function s(e,t){return e+"-"+t}function l(e){return{type:r.break,breakType:e}}o.prototype.resolve=function(e){return this.findNoteByKey(s(e.noteType,e.noteId))},o.prototype.findNoteByKey=function(e){return this._notes[e]||null},t.document=t.Document=function(e,t){return{type:r.document,children:e,notes:(t=t||{}).notes||new o({}),comments:t.comments||[]}},t.paragraph=t.Paragraph=function(e,t){var n=(t=t||{}).indent||{};return{type:r.paragraph,children:e,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}},t.run=t.Run=function(e,t){return{type:r.run,children:e,styleId:(t=t||{}).styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||a.baseline,font:t.font||null,fontSize:t.fontSize||null,highlight:t.highlight||null}},t.text=t.Text=function(e){return{type:r.text,value:e}},t.tab=t.Tab=function(){return{type:r.tab}},t.checkbox=t.Checkbox=function(e){return{type:r.checkbox,checked:e.checked}},t.Hyperlink=function(e,t){return{type:r.hyperlink,children:e,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}},t.noteReference=t.NoteReference=function(e){return{type:r.noteReference,noteType:e.noteType,noteId:e.noteId}},t.Notes=o,t.Note=function(e){return{type:r.note,noteType:e.noteType,noteId:e.noteId,body:e.body}},t.commentReference=function(e){return{type:r.commentReference,commentId:e.commentId}},t.comment=function(e){return{type:r.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}},t.Image=function(e){return{type:r.image,read:function(t){return t?e.readImage(t):e.readImage().then((function(e){return Buffer.from(e)}))},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage("base64")},readAsBuffer:function(){return e.readImage().then((function(e){return Buffer.from(e)}))},altText:e.altText,contentType:e.contentType}},t.Table=function(e,t){return{type:r.table,children:e,styleId:(t=t||{}).styleId||null,styleName:t.styleName||null}},t.TableRow=function(e,t){return{type:r.tableRow,children:e,isHeader:(t=t||{}).isHeader||!1}},t.TableCell=function(e,t){return{type:r.tableCell,children:e,colSpan:null==(t=t||{}).colSpan?1:t.colSpan,rowSpan:null==t.rowSpan?1:t.rowSpan}},t.lineBreak=l("line"),t.pageBreak=l("page"),t.columnBreak=l("column"),t.BookmarkStart=function(e){return{type:r.bookmarkStart,name:e.name}},t.verticalAlignment=a},6492:(e,t,n)=>{t.M=function(e){return{readXmlElement:function(t){return new d(e).readXmlElement(t)},readXmlElements:function(t){return new d(e).readXmlElements(t)}}};var i=n(5302),r=n(7475),a=n(9611),o=n(2959).Result,s=n(2959).warning,l=n(2987),c=n(136),u=n(5641);function d(e){var t=[],n=[],o=[],d=e.relationships,w=e.contentTypes,_=e.docxFile,D=e.files,S=e.numbering,k=e.styles;function C(e){return x(e.map(A))}function A(e){if("element"===e.type){var t=I[e.name];if(t)return t(e);if(!Object.prototype.hasOwnProperty.call(p,e.name))return g([s("An unrecognised element was ignored: "+e.name)])}return m()}function T(e){return function(e){return j(e,"w:pStyle","Paragraph",k.findParagraphStyleById)}(e).map((function(t){return{type:"paragraphProperties",styleId:t.styleId,styleName:t.name,alignment:e.firstOrEmpty("w:jc").attributes["w:val"],numbering:h(t.styleId,e.firstOrEmpty("w:numPr"),S),indent:E(e.firstOrEmpty("w:ind"))}}))}function E(e){return{start:e.attributes["w:start"]||e.attributes["w:left"],end:e.attributes["w:end"]||e.attributes["w:right"],firstLine:e.attributes["w:firstLine"],hanging:e.attributes["w:hanging"]}}function N(e){return function(e){return j(e,"w:rStyle","Run",k.findC
2haracterStyleById)}(e).map((function(t){var n=e.firstOrEmpty("w:sz").attributes["w:val"],i=/^[0-9]+$/.test(n)?parseInt(n,10)/2:null;return{type:"runProperties",styleId:t.styleId,styleName:t.name,verticalAlignment:e.firstOrEmpty("w:vertAlign").attributes["w:val"],font:e.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:i,isBold:P(e.first("w:b")),isUnderline:M(e.first("w:u")),isItalic:P(e.first("w:i")),isStrikethrough:P(e.first("w:strike")),isAllCaps:P(e.first("w:caps")),isSmallCaps:P(e.first("w:smallCaps")),highlight:U(e.firstOrEmpty("w:highlight").attributes["w:val"])}}))}function M(e){if(e){var t=e.attributes["w:val"];return void 0!==t&&"false"!==t&&"0"!==t&&"none"!==t}return!1}function P(e){if(e){var t=e.attributes["w:val"];return"false"!==t&&"0"!==t}return!1}function U(e){return e&&"none"!==e?e:null}function j(e,t,n,i){var r=[],a=e.first(t),o=null,l=null;if(a&&(o=a.attributes["w:val"])){var c=i(o);c?l=c.name:r.push(function(e,t){return s(e+" style with ID "+t+" was referenced but not defined in the document")}(n,o))}return b({styleId:o,name:l},r)}function F(e){return function(e,t){var n=/\s*HYPERLINK "(.*)"/.exec(e);if(n)return{type:"hyperlink",options:{href:n[1]}};var i=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(e);if(i)return{type:"hyperlink",options:{anchor:i[1]}};if(/\s*FORMCHECKBOX\s*/.exec(e)){var r=t.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),a=r.first("w:checked");return{type:"checkbox",checked:P(null==a?r.first("w:default"):a)}}return{type:"unknown"}}(n.join(""),"begin"===e.type?e.fldChar:l.emptyElement)}function R(e){return function(t){var n=t.attributes["w:id"];return v(new a.NoteReference({noteType:e,noteId:n}))}}function O(e){return C(e.children)}var I={"w:p":function(e){var t=e.firstOrEmpty("w:pPr");if(!!t.firstOrEmpty("w:rPr").first("w:del"))return e.children.forEach((function(e){o.push(e)})),m();var n=e.children;return o.length>0&&(n=o.concat(n),o=[]),y.map(T(t),C(n),(function(e,t){return new a.Paragraph(t,e)})).insertExtra()},"w:r":function(e){return y.map(N(e.firstOrEmpty("w:rPr")),C(e.children),(function(e,n){var i=function(){var e=r.last(t.filter((function(e){return"hyperlink"===e.type})));return e?e.options:null}();return null!==i&&(n=[new a.Hyperlink(n,i)]),new a.Run(n,e)}))},"w:fldChar":function(e){var i=e.attributes["w:fldCharType"];if("begin"===i)t.push({type:"begin",fldChar:e}),n=[];else if("end"===i){var r=t.pop();if("begin"===r.type&&(r=F(r)),"checkbox"===r.type)return v(a.checkbox({checked:r.checked}))}else if("separate"===i){var o=F(t.pop());t.push(o)}return m()},"w:instrText":function(e){return n.push(e.text()),m()},"w:t":function(e){return v(new a.Text(e.text()))},"w:tab":function(e){return v(new a.Tab)},"w:noBreakHyphen":function(){return v(new a.Text("\u2011"))},"w:softHyphen":function(e){return v(new a.Text("\xad"))},"w:sym":function(e){var t=e.attributes["w:font"],n=e.attributes["w:char"],r=i.hex(t,n);return null==r&&/^F0..$/.test(n)&&(r=i.hex(t,n.substring(2))),null==r?g([s("A w:sym element with an unsupported character was ignored: char "+n+" in font "+t)]):v(new a.Text(r.string))},"w:hyperlink":function(e){var t=e.attributes["r:id"],n=e.attributes["w:anchor"];return C(e.children).map((function(i){function o(t){var n=e.attributes["w:tgtFrame"]||null;return new a.Hyperlink(i,r.extend({targetFrame:n},t))}if(t){var s=d.findTargetByRelationshipId(t);return n&&(s=u.replaceFragment(s,n)),o({href:s})}return n?o({anchor:n}):i}))},"w:tbl":function(e){var t=function(e){return function(e){return j(e,"w:tblStyle","Table",k.findTableStyleById)}(e).map((function(e){return{styleId:e.styleId,styleName:e.name}}))}(e.firstOrEmpty("w:tblPr"));return C(e.children).flatMap(L).flatMap((function(e){return t.map((function(t){return a.Table(e,t)}))}))},"w:tr":function(e){var t=e.firstOrEmpty("w:trPr");if(t.first("w:del"))return m();var n=!!t.first("w:tblHeader");return C(e.children).map((function(e){return a.TableRow(e,{isHeader:n})}))},"w:tc":function(e){return C(e.children).map((function(t){var n=e.firstOrEmpty("w:tcPr"),i=n.firstOrEmpty("w:gridSpan").attributes["w:val"],r=i?parseInt(i,10):1,o=a.TableCell(t,{colSpan:r});return o._vMerge=function(e){var t=e.first("w:vMerge");
2if(t){var n=t.attributes["w:val"];return"continue"===n||!n}return null}(n),o}))},"w:footnoteReference":R("footnote"),"w:endnoteReference":R("endnote"),"w:commentReference":function(e){return v(a.commentReference({commentId:e.attributes["w:id"]}))},"w:br":function(e){var t=e.attributes["w:type"];return null==t||"textWrapping"===t?v(a.lineBreak):"page"===t?v(a.pageBreak):"column"===t?v(a.columnBreak):g([s("Unsupported break type: "+t)])},"w:bookmarkStart":function(e){var t=e.attributes["w:name"];return"_GoBack"===t?m():v(new a.BookmarkStart({name:t}))},"mc:AlternateContent":function(e){return O(e.firstOrEmpty("mc:Fallback"))},"w:sdt":function(e){return C(e.firstOrEmpty("w:sdtContent").children).map((function(t){var n,i=e.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(i){var r=i.first("wordml:checked"),o=!!r&&("false"!==(n=r.attributes["wordml:val"])&&"0"!==n),s=a.checkbox({checked:o}),l=!1,u=t.map(c._elementsOfType(a.types.text,(function(e){return e.value.length>0&&!l?(l=!0,s):e})));return l?u:s}return t}))},"w:ins":O,"w:object":O,"w:smartTag":O,"w:drawing":O,"w:pict":function(e){return O(e).toExtra()},"v:roundrect":O,"v:shape":O,"v:textbox":O,"w:txbxContent":O,"wp:inline":W,"wp:anchor":W,"v:imagedata":function(e){var t=e.attributes["r:id"];return t?H(V(t),e.attributes["o:title"]):g([s("A v:imagedata element without a relationship ID was ignored")])},"v:group":O,"v:rect":O};return{readXmlElement:A,readXmlElements:C};function L(e){if(r.any(e,(function(e){return e.type!==a.types.tableRow})))return B(e),b(e,[s("unexpected non-row element in table, cell merging may be incorrect")]);if(r.any(e,(function(e){return r.any(e.children,(function(e){return e.type!==a.types.tableCell}))})))return B(e),b(e,[s("unexpected non-cell element in table row, cell merging may be incorrect")]);var t={};return e.forEach((function(e){var n=0;e.children.forEach((function(e){e._vMerge&&t[n]?t[n].rowSpan++:(t[n]=e,e._vMerge=!1),n+=e.colSpan}))})),e.forEach((function(e){e.children=e.children.filter((function(e){return!e._vMerge})),e.children.forEach((function(e){delete e._vMerge}))})),v(e)}function B(e){e.forEach((function(e){c.getDescendantsOfType(e,a.types.tableCell).forEach((function(e){delete e._vMerge}))}))}function W(e){return x(e.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip").map(z.bind(null,e)))}function z(e,t){var n,i=e.first("wp:docPr").attributes,r=null==(n=i.descr)||/^\s*$/.test(n)?i.title:i.descr,a=function(e){var t=e.attributes["r:embed"],n=e.attributes["r:link"];if(t)return V(t);if(n){var i=d.findTargetByRelationshipId(n);return{path:i,read:D.read.bind(D,i)}}return null}(t);return null===a?g([s("Could not find image file for a:blip element")]):H(a,r)}function V(e){var t=u.uriToZipEntryName("word",d.findTargetByRelationshipId(e));return{path:t,read:_.read.bind(_,t)}}function H(e,t){var n=w.findContentType(e.path);return b(a.Image({readImage:e.read,altText:t,contentType:n}),f[n]?[]:s("Image of type "+n+" is unlikely to display in web browsers"))}}function h(e,t,n){var i=t.firstOrEmpty("w:ilvl").attributes["w:val"],r=t.firstOrEmpty("w:numId").attributes["w:val"];if(void 0!==i&&void 0!==r)return n.findLevel(r,i);if(null!=e){var a=n.findLevelByParagraphStyleId(e);if(null!=a)return a}return void 0!==r?n.findLevel(r,"0"):null}var f={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},p={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function g(e){return new y(null,null,e)}function m(){return new y(null)}function v(e){return new y(e)}function b(e,t){return new y(e,null,t)}function y(e,t,n){this.value=e||[],this.extra=t||[],this._result=new o({element:this.value,extra:t},n),this.messages=this._result.messages}function x(e){var t=o.combine(r.pluck(e,"_result"));return new y(r.flatten(r.pluck(t.value,"element")),r.filter(r.flatten(r.pluck(t.value,"extra")),_),t.messages)}function w(e,t){return r.flatten([e,t])}function _(e){return e}y.prototype.toExtra=function(){return new y(null,w(this.extra,this.value),this.messages)},y.prototype.insertExtra=function(){var e=this.extra;return e&&e.length?new y(w(this.value,e),null,this.messages):this},y.prototype.map=function(e){var t=this._result.map((function(t){return e(t.element)}));return new y(t.value,this.extra,t.messages)},y.prototype.flatMap=function(e){var t=this._result.flatMap((function(t){return e(t.element)._result}));return new y(t.value.element,w(this.extra,t.value.extra),t.messages)},y.map=function(e,t,n){return new y(n(e.value,t.value),w(e.extra,t.extra),e.messages.concat(t.messages))}},1046:(e,t,n)=>{var i=n(9611),r=n(2959).Result;t.createCommentsReader=function(e){function t(t){var n=t.attributes["w:id"];function r(e){return(t.attributes[e]||"").trim()||null}return e.readXmlElements(t.children).map((function(e){return i.comment({commentId:n,body:e,authorName:r("w:author"),authorInitials:r("w:initials")})}))}return function(e){return r.combine(e.getElementsByTagName("w:comment").map(t))}}},6149:(e,t)=>
2{t.readContentTypesFromXml=function(e){var t={},n={};return e.children.forEach((function(e){if("content-types:Default"===e.name&&(t[e.attributes.Extension]=e.attributes.ContentType),"content-types:Override"===e.name){var i=e.attributes.PartName;"/"===i.charAt(0)&&(i=i.substring(1)),n[i]=e.attributes.ContentType}})),i(n,t)};var n={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};function i(e,t){return{findContentType:function(i){var r=e[i];if(r)return r;var a=i.split("."),o=a[a.length-1];if(t.hasOwnProperty(o))return t[o];var s=n[o.toLowerCase()];return s?"image/"+s:null}}}t.defaultContentTypes=i({},{})},592:(e,t,n)=>{t.O=function(e){var t=e.bodyReader;return{convertXmlToDocument:function(n){var a=n.first("w:body");if(null==a)throw new Error("Could not find the body element: are you sure this is a docx file?");var o=t.readXmlElements(a.children).map((function(t){return new i.Document(t,{notes:e.notes,comments:e.comments})}));return new r(o.value,o.messages)}}};var i=n(9611),r=n(2959).Result},8214:(e,t,n)=>{t.read=function(e,t,n){t=t||{};var o=new m({externalFileAccess:(n=n||{}).externalFileAccess,relativeToFile:t.path});return i.props({contentTypes:_(e),partPaths:v(e),docxFile:e,files:o}).also((function(t){return{styles:(n=e,i=t.partPaths.styles,y({filename:i,readElement:f.readStylesXml,defaultValue:f.defaultStyles})(n))};var n,i})).also((function(t){return{numbering:(n=e,i=t.partPaths.numbering,r=t.styles,y({filename:i,readElement:function(e){return h.readNumberingXml(e,{styles:r})},defaultValue:h.defaultNumbering})(n))};var n,i,r})).also((function(e){return{footnotes:x(e.partPaths.footnotes,e,(function(e,t){return t?p.createFootnotesReader(e)(t):new a([])})),endnotes:x(e.partPaths.endnotes,e,(function(e,t){return t?p.createEndnotesReader(e)(t):new a([])})),comments:x(e.partPaths.comments,e,(function(e,t){return t?g.createCommentsReader(e)(t):new a([])}))}})).also((function(e){return{notes:e.footnotes.flatMap((function(t){return e.endnotes.map((function(e){return new r.Notes(t.concat(e))}))}))}})).then((function(e){return x(e.partPaths.mainDocument,e,(function(t,n){return e.notes.flatMap((function(i){return e.comments.flatMap((function(e){return new c({bodyReader:t,notes:i,comments:e}).convertXmlToDocument(n)}))}))}))}))},t._findPartPaths=v;var i=n(3127),r=n(9611),a=n(2959).Result,o=n(9836),s=n(764).V,l=n(6492).M,c=n(592).O,u=n(4187),d=n(6149),h=n(5199),f=n(8494),p=n(3741),g=n(1046),m=n(2757).s;function v(e){return D(e).then((function(t){var n=b({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!e.exists(n))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return y({filename:w(n),readElement:u.readRelationships,defaultValue:u.defaultValue})(e).then((function(t){function i(i){return b({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+i,basePath:o.splitPath(n).dirname,fallbackPath:"word/"+i+".xml"})}return{mainDocument:n,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}}))}))}function b(e){var t=e.docxFile,n=e.relationships,i=e.relationshipType,r=e.basePath,a=e.fallbackPath,s=n.findTargetsByType(i).map((function(e){return t=o.joinPath(r,e),n="/",t.substring(0,n.length)===n?t.substring(n.length):t;var t,n})).filter((function(e){return t.exists(e)}));return 0===s.length?a:s[0]}function y(e){return function(t){return s(t,e.filename).then((function(t){return t?e.readElement(t):e.defaultValue}))}}function x(e,t,n){return y({filename:w(e),readElement:u.readRelationships,defaultValue:u.defaultValue})(t.docxFile).then((function(i){var r=new l({relationships:i,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return s(t.docxFile,e).then((function(e){return n(r,e)}))}
2))}function w(e){var t=o.splitPath(e);return o.joinPath(t.dirname,"_rels",t.basename+".rels")}var _=y({filename:"[Content_Types].xml",readElement:d.readContentTypesFromXml,defaultValue:d.defaultContentTypes});var D=y({filename:"_rels/.rels",readElement:u.readRelationships,defaultValue:u.defaultValue})},3741:function(e,t,n){var i=n(9611),r=n(2959).Result;function a(e,t){function n(e){var t=e.attributes["w:type"];return"continuationSeparator"!==t&&"separator"!==t}function a(n){var r=n.attributes["w:id"];return t.readXmlElements(n.children).map((function(t){return i.Note({noteType:e,noteId:r,body:t})}))}return function(t){return r.combine(t.getElementsByTagName("w:"+e).filter(n).map(a))}}t.createFootnotesReader=a.bind(this,"footnote"),t.createEndnotesReader=a.bind(this,"endnote")},5199:(e,t,n)=>{var i=n(7475);function r(e,t,n){var r=i.flatten(i.values(t).map((function(e){return i.values(e.levels)}))),a=i.indexBy(r.filter((function(e){return null!=e.paragraphStyleId})),"paragraphStyleId");return{findLevel:function i(r,a){var o=e[r];if(o){var s=t[o.abstractNumId];return s?null==s.numStyleLink?t[o.abstractNumId].levels[a]:i(n.findNumberingStyleById(s.numStyleLink).numId,a):null}return null},findLevelByParagraphStyleId:function(e){return a[e]||null}}}t.readNumberingXml=function(e,t){if(!t||!t.styles)throw new Error("styles is missing");var n=function(e){var t={};return e.getElementsByTagName("w:abstractNum").forEach((function(e){var n=e.attributes["w:abstractNumId"];t[n]=function(e){var t={},n=null;e.getElementsByTagName("w:lvl").forEach((function(e){var i=e.attributes["w:ilvl"],r="bullet"!==e.firstOrEmpty("w:numFmt").attributes["w:val"],a=e.firstOrEmpty("w:pStyle").attributes["w:val"];void 0===i?n={isOrdered:r,level:"0",paragraphStyleId:a}:t[i]={isOrdered:r,level:i,paragraphStyleId:a}})),null!==n&&void 0===t[n.level]&&(t[n.level]=n);var i=e.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:i}}(e)})),t}(e);return new r(function(e){var t={};return e.getElementsByTagName("w:num").forEach((function(e){var n=e.attributes["w:numId"],i=e.first("w:abstractNumId").attributes["w:val"];t[n]={abstractNumId:i}})),t}(e),n,t.styles)},t.Numbering=r,t.defaultNumbering=new r({},{})},764:(e,t,n)=>{var i=n(7475),r=n(3127),a=n(2987);t.V=function(e,t){return e.exists(t)?e.read(t,"utf-8").then(l).then(s):r.resolve(null)};var o={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function s(e){return a.readString(e,o).then((function(e){return c(e)[0]}))}function l(e){return e.replace(/^\uFEFF/g,"")}function c(e){return"element"===e.type?"mc:AlternateContent"===e.name?e.firstOrEmpty("mc:Fallback").children:(e.children=i.flatten(e.children.map(c,!0)),[e]):[e]}},4187:(e,t)=>{function n(e){var t={};e.forEach((function(e){t[e.relationshipId]=e.target}));var n={};return e.forEach((function(e){n[e.type]||(n[e.type]=[]),n[e.type].push(e.target)})),{findTargetByRelationshipId:function(e){return t[e]},findTargetsByType:function(e){return n[e]||[]}}}t.readRelationships=function(e){var t=[];return e.children.forEach((function(e){if("relationships:Relationship"===e.name){var n={relationshipId:e.attributes.Id,target:e.attributes.Target,type:e.attributes.Type};t.push(n)}})),new n(t)},t.defaultValue=new n([]),t.Relationships=n},986:(e,t,n)=>{var i=n(7475),r=n(3127),a=n(2987);t.writeStyleMap=function(e,t){return e.write(s,t),function(e){var t="word/_rels/document.xml.rels",n="http://schemas.openxmlformats.org/package/2006/relationships",i="{"+n+"}Relationship";return e.read(t,"utf8").then(a.readString).then((function(r){c(r.children,i,"Id",{Id:"rMammothStyleMap",Type:o,Target:l});var s={"":n};return e.write(t,a.writeString(r,s))}
2))}(e).then((function(){return function(e){var t="[Content_Types].xml",n="http://schemas.openxmlformats.org/package/2006/content-types",i="{"+n+"}Override";return e.read(t,"utf8").then(a.readString).then((function(r){c(r.children,i,"PartName",{PartName:l,ContentType:"text/prs.mammoth.style-map"});var o={"":n};return e.write(t,a.writeString(r,o))}))}(e)}))},t.readStyleMap=function(e){return e.exists(s)?e.read(s,"utf8"):r.resolve(null)};var o="http://schemas.zwobble.org/mammoth/style-map",s="mammoth/style-map",l="/"+s;function c(e,t,n,r){var o=i.find(e,(function(e){return e.name===t&&e.attributes[n]===r[n]}));o?o.attributes=r:e.push(a.element(t,r))}},8494:(e,t)=>{function n(e,t,n,i){return{findParagraphStyleById:function(t){return e[t]},findCharacterStyleById:function(e){return t[e]},findTableStyleById:function(e){return n[e]},findNumberingStyleById:function(e){return i[e]}}}function i(e){return e.attributes["w:styleId"]}t.readStylesXml=function(e){var t={},r={},a={},o={},s={paragraph:t,character:r,table:a,numbering:o};return e.getElementsByTagName("w:style").forEach((function(e){var t=function(e){var t=e.attributes["w:type"];if("numbering"===t)return function(e,t){var n=i(t),r=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:e,numId:r,styleId:n}}(t,e);var n=i(e),r=function(e){var t=e.first("w:name");return t?t.attributes["w:val"]:null}(e);return{type:t,styleId:n,name:r}}(e),n=s[t.type];n&&void 0===n[t.styleId]&&(n[t.styleId]=t)})),new n(t,r,a,o)},t.Styles=n,t.defaultStyles=new n({},{}),n.EMPTY=new n({},{},{},{})},5641:(e,t)=>{t.uriToZipEntryName=function(e,t){return"/"===t.charAt(0)?t.substr(1):e+"/"+t},t.replaceFragment=function(e,t){var n=e.indexOf("#");-1!==n&&(e=e.substring(0,n));return e+"#"+t}},7339:(e,t,n)=>{var i=n(8982);function r(e,t){return{type:"element",tag:e,children:t||[]}}t.freshElement=function(e,t,n){return r(i.element(e,t,{fresh:!0}),n)},t.nonFreshElement=function(e,t,n){return r(i.element(e,t,{fresh:!1}),n)},t.elementWithTag=r,t.text=function(e){return{type:"text",value:e}},t.forceWrite={type:"forceWrite"};var a={br:!0,hr:!0,img:!0,input:!0};t.isVoidElement=function(e){return 0===e.children.length&&a[e.tag.tagName]}},2459:(e,t,n)=>{var i=n(7339);function r(e,t){t.forEach((function(t){!function(e,t){a[t.type](e,t)}(e,t)}))}t.freshElement=i.freshElement,t.nonFreshElement=i.nonFreshElement,t.elementWithTag=i.elementWithTag,t.text=i.text,t.forceWrite=i.forceWrite,t.simplify=n(3216);var a={element:function(e,t){i.isVoidElement(t)?e.selfClosing(t.tag.tagName,t.tag.attributes):(e.open(t.tag.tagName,t.tag.attributes),r(e,t.children),e.close(t.tag.tagName))},text:function(e,t){e.text(t.value)},forceWrite:function(){}};t.write=r},3216:(e,t,n)=>{var i=n(7475),r=n(7339);function a(e){var t=[];return e.map(o).forEach((function(e){c(t,e)})),t}function o(e){return s[e.type](e)}var s={element:function(e){return r.elementWithTag(e.tag,a(e.children))},text:l,forceWrite:l};function l(e){return e}function c(e,t){var n=e[e.length-1];"element"===t.type&&!t.tag.fresh&&n&&"element"===n.type&&t.tag.matchesElement(n.tag)?(t.tag.separator&&c(n.children,r.text(t.tag.separator)),t.children.forEach((function(e){c(n.children,e)}))):e.push(t)}function u(e){return t=e,n=function(e){return d[e.type](e)},i.flatten(i.map(t,n),!0);var t,n}var d={element:function(e){var t=u(e.children);return 0!==t.length||r.isVoidElement(e)?[r.elementWithTag(e.tag,t)]:[]},text:function(e){return 0===e.value.length?[]:[e]},forceWrite:function(e){return[e]}};e.exports=function(e){return a(u(e))}},1835:(e,t,n)=>{var i=n(7475),r=n(3127),a=n(2459);function o(e){return function(t,n){return r.when(e(t)).then((function(e){var n={};return t.altText&&(n.alt=t.altText),i.extend(n,e),[a.freshElement("img",n)]}))}}t.imgElement=o,t.inline=t.imgElement,t.dataUri=o((function(e){return e.readAsBase64String().then((function(t){return{src:"data:"+e.contentType+";base64,"+t}}))}))},7633:(e,t,n)=>{var i=n(7475),r=n(8214),a=n(986),o=n(7772).w,s=n(5843).w,l=n(7282)._T,c=n(6723).Tt,u=n(5816),d=n(2959).Result;function h(e,t){return t=c(t),u.openZip(e).tap((function(e){return a.readStyleMap(e).then((function(e){t.embeddedStyleMap=e}))})).then((function(n){return r.read(n,e,t).then((function(e){return e.map(t.transformDocument)})).then((function(e){return function(e,t){var n=(s=t.readStyleMap(),d.combine((s||[]).map(l)).map((function(e){return e.filter((function(e){return!!e}))}))),r=i.extend({},t,{styleMap:n.value}),a=new o(r);var s;return e.flatMapThen((function(e){return n.flatMapThen((function(t){return a.convertToHtml(e)}))}))}(e,t)}))}))}t.convertToHtml=function(e,t){return h(e,t)},t.convertToMarkdown=function(e,t){var n=Object.create(t||{});return n.outputFormat="markdown",h(e,n)},t.convert=h,t.extractRawText=function(e){return u.openZip(e).then(r.read).then((function(e){return e.map(s)}))},t.images=n(1835),t.transforms=n(136),t.underline=n(6513),t.embedStyleMap=function(e,t){return u.openZip(e).tap((function(e){return a.writeStyleMap(e,t)})).then((function(e){return e.toArrayBuffer()})).then((function(e){return{toArrayBuffer:function(){return e},toBuffer:function(){return Buffer.from(e)}}}))},t.readEmbeddedStyleMap=function(e){return u.openZip(e).then(a.readStyleMap)},t.styleMapping=function(){throw new Error("Use a raw string instead of mammoth.styleMapping e.g. \"p[style-name='Title'] => h1\" instead of mammoth.styleMapping(\"p[style-name='Title'] => h1\")")}}
2,6723:(e,t,n)=>{t.Tt=function(e){return e=e||{},i.extend({},a,e,{customStyleMap:o(e.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(o(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(r)),e}})};var i=n(7475),r=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],a={externalFileAccess:!1,transformDocument:function(e){return e},includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function o(e){return e?i.isString(e)?e.split("\n").map((function(e){return e.trim()})).filter((function(e){return""!==e&&"#"!==e.charAt(0)})):e:[]}},3127:(e,t,n)=>{var i=n(7475),r=n(303)();t.defer=function(){var e,t,n=new r.Promise((function(n,i){e=n,t=i}));return{resolve:e,reject:t,promise:n}},t.when=r.resolve,t.resolve=r.resolve,t.all=r.all,t.props=r.props,t.reject=r.reject,t.promisify=r.promisify,t.mapSeries=r.mapSeries,t.attempt=r.attempt,t.nfcall=function(e){var t=Array.prototype.slice.call(arguments,1);return r.promisify(e).apply(null,t)},r.prototype.fail=r.prototype.caught,r.prototype.also=function(e){return this.then((function(t){var n=i.extend({},t,e(t));return r.props(n)}))}},5843:(e,t,n)=>{var i=n(9611);t.w=function e(t){if("text"===t.type)return t.value;if(t.type===i.types.tab)return"\t";var n="paragraph"===t.type?"\n\n":"";return(t.children||[]).map(e).join("")+n}},2959:(e,t,n)=>{var i=n(7475);function r(e,t){this.value=e,this.messages=t||[]}function a(e){var t=[];return i.flatten(i.pluck(e,"messages"),!0).forEach((function(e){(function(e,t){return void 0!==i.find(e,o.bind(null,t))})(t,e)||t.push(e)})),t}function o(e,t){return e.type===t.type&&e.message===t.message}t.Result=r,t.success=function(e){return new r(e,[])},t.warning=function(e){return{type:"warning",message:e}},t.error=function(e){return{type:"error",message:e.message,error:e}},r.prototype.map=function(e){return new r(e(this.value),this.messages)},r.prototype.flatMap=function(e){var t=e(this.value);return new r(t.value,a([this,t]))},r.prototype.flatMapThen=function(e){var t=this;return e(this.value).then((function(e){return new r(e.value,a([t,e]))}))},r.combine=function(e){return new r(i.flatten(i.pluck(e,"value")),a(e))}},7282:(e,t,n)=>{var i=n(7475),r=n(8303),a=n(3307),o=n(8982),s=n(1876).t,l=n(2959);function c(){var e=r.rules.sequence,t=function(e,t){return r.rules.then(r.rules.token("identifier",e),(function(){return t}))},n=t("p",a.paragraph),o=t("r",a.run),s=r.rules.firstOf("p or r or table",n,o),l=r.rules.sequence(r.rules.tokenOfType("dot"),r.rules.sequence.cut(),r.rules.sequence.capture(d)).map((function(e){return{styleId:e}})),c=r.rules.firstOf("style name matcher",r.rules.then(r.rules.sequence(r.rules.tokenOfType("equals"),r.rules.sequence.cut(),r.rules.sequence.capture(f)).head(),(function(e){return{styleName:a.equalTo(e)}})),r.rules.then(r.rules.sequence(r.rules.tokenOfType("startsWith"),r.rules.sequence.cut(),r.rules.sequence.capture(f)).head(),(function(e){return{styleName:a.startsWith(e)}}))),u=r.rules.sequence(r.rules.tokenOfType("open-square-bracket"),r.rules.sequence.cut(),r.rules.token("identifier","style-name"),r.rules.sequence.capture(c),r.rules.tokenOfType("close-square-bracket")).head(),p=r.rules.firstOf("list type",t("ordered-list",{isOrdered:!0}
2),t("unordered-list",{isOrdered:!1})),g=e(r.rules.tokenOfType("colon"),e.capture(p),e.cut(),r.rules.tokenOfType("open-paren"),e.capture(h),r.rules.tokenOfType("close-paren")).map((function(e,t){return{list:{isOrdered:e.isOrdered,levelIndex:t-1}}}));function m(e){var t=r.rules.firstOf.apply(r.rules.firstOf,["matcher suffix"].concat(e)),n=r.rules.zeroOrMore(t);return r.rules.then(n,(function(e){var t={};return e.forEach((function(e){i.extend(t,e)})),t}))}var v=e(e.capture(s),e.capture(m([l,u,g]))).map((function(e,t){return e(t)})),b=e(r.rules.token("identifier","table"),e.capture(m([l,u]))).map((function(e){return a.table(e)})),y=t("b",a.bold),x=t("i",a.italic),w=t("u",a.underline),_=t("strike",a.strikethrough),D=t("all-caps",a.allCaps),S=t("small-caps",a.smallCaps),k=e(r.rules.token("identifier","highlight"),r.rules.sequence.capture(r.rules.optional(r.rules.sequence(r.rules.tokenOfType("open-square-bracket"),r.rules.sequence.cut(),r.rules.token("identifier","color"),r.rules.tokenOfType("equals"),r.rules.sequence.capture(f),r.rules.tokenOfType("close-square-bracket")).head()))).map((function(e){return a.highlight({color:e.valueOrElse(void 0)})})),C=t("comment-reference",a.commentReference),A=e(r.rules.token("identifier","br"),e.cut(),r.rules.tokenOfType("open-square-bracket"),r.rules.token("identifier","type"),r.rules.tokenOfType("equals"),e.capture(f),r.rules.tokenOfType("close-square-bracket")).map((function(e){switch(e){case"line":return a.lineBreak;case"page":return a.pageBreak;case"column":return a.columnBreak}}));return r.rules.firstOf("element type",v,b,y,x,w,_,D,S,k,C,A)}function u(){var e=r.rules.sequence.capture,t=r.rules.tokenOfType("whitespace"),n=r.rules.then(r.rules.optional(r.rules.sequence(r.rules.tokenOfType("colon"),r.rules.token("identifier","fresh"))),(function(e){return e.map((function(){return!0})).valueOrElse(!1)})),i=r.rules.then(r.rules.optional(r.rules.sequence(r.rules.tokenOfType("colon"),r.rules.token("identifier","separator"),r.rules.tokenOfType("open-paren"),e(f),r.rules.tokenOfType("close-paren")).head()),(function(e){return e.valueOrElse("")})),a=r.rules.oneOrMoreWithSeparator(d,r.rules.tokenOfType("choice")),s=r.rules.sequence(e(a),e(r.rules.zeroOrMore(b)),e(n),e(i)).map((function(e,t,n,i){var r={},a={};return t.forEach((function(e){e.append&&r[e.name]?r[e.name]+=" "+e.value:r[e.name]=e.value})),n&&(a.fresh=!0),i&&(a.separator=i),o.element(e,r,a)}));return r.rules.firstOf("html path",r.rules.then(r.rules.tokenOfType("bang"),(function(){return o.ignore})),r.rules.then(r.rules.zeroOrMoreWithSeparator(s,r.rules.sequence(t,r.rules.tokenOfType("gt"),t)),o.elements))}t._T=function(e){return y(_,e)};var d=r.rules.then(r.rules.tokenOfType("identifier"),g),h=r.rules.tokenOfType("integer"),f=r.rules.then(r.rules.tokenOfType("string"),g),p={n:"\n",r:"\r",t:"\t"};function g(e){return e.replace(/\\(.)/g,(function(e,t){return p[t]||t}))}var m=r.rules.sequence(r.rules.tokenOfType("open-square-bracket"),r.rules.sequence.cut(),r.rules.sequence.capture(d),r.rules.tokenOfType("equals"),r.rules.sequence.capture(f),r.rules.tokenOfType("close-square-bracket")).map((function(e,t){return{name:e,value:t,append:!1}})),v=r.rules.sequence(r.rules.tokenOfType("dot"),r.rules.sequence.cut(),r.rules.sequence.capture(d)).map((function(e){return{name:"class",value:e,append:!0}})),b=r.rules.firstOf("attribute or class",m,v);function y(e,t){var n=s(t),i=r.Parser().parseTokens(e,n);return i.isSuccess()?l.success(i.value()):new l.Result(null,[l.warning(x(t,i))])}function x(e,t){return"Did not understand this style mapping, so ignored it: "+e+"\n"+t.errors().map(w).join("\n")}function w(e){return"Error was at character number "+e.characterNumber()+": Expected "+e.expected+" but got "+e.actual}var _=r.rules.sequence(r.rules.sequence.capture(c()),r.rules.tokenOfType("whitespace"),r.rules.tokenOfType("arrow"),r.rules.sequence.capture(r.rules.optional(r.rules.sequence(r.rules.tokenOfType("whitespace"),r.rules.sequence.capture(u())).head())),r.rules.tokenOfType("end")).map((function(e,t){return{from:e,to:t.valueOrElse(o.empty)}}))},3307:(e,t)=>
2{function n(e,t){t=t||{},this._elementType=e,this._styleId=t.styleId,this._styleName=t.styleName,t.list&&(this._listIndex=t.list.levelIndex,this._listIsOrdered=t.list.isOrdered)}function i(e){e=e||{},this._color=e.color}function r(e){e=e||{},this._breakType=e.breakType}function a(e,t){return e.toUpperCase()===t.toUpperCase()}function o(e,t){return 0===t.toUpperCase().indexOf(e.toUpperCase())}t.paragraph=function(e){return new n("paragraph",e)},t.run=function(e){return new n("run",e)},t.table=function(e){return new n("table",e)},t.bold=new n("bold"),t.italic=new n("italic"),t.underline=new n("underline"),t.strikethrough=new n("strikethrough"),t.allCaps=new n("allCaps"),t.smallCaps=new n("smallCaps"),t.highlight=function(e){return new i(e)},t.commentReference=new n("commentReference"),t.lineBreak=new r({breakType:"line"}),t.pageBreak=new r({breakType:"page"}),t.columnBreak=new r({breakType:"column"}),t.equalTo=function(e){return{operator:a,operand:e}},t.startsWith=function(e){return{operator:o,operand:e}},n.prototype.matches=function(e){return e.type===this._elementType&&(void 0===this._styleId||e.styleId===this._styleId)&&(void 0===this._styleName||e.styleName&&this._styleName.operator(this._styleName.operand,e.styleName))&&(void 0===this._listIndex||function(e,t,n){return e.numbering&&e.numbering.level==t&&e.numbering.isOrdered==n}(e,this._listIndex,this._listIsOrdered))&&(void 0===this._breakType||this._breakType===e.breakType)},i.prototype.matches=function(e){return"highlight"===e.type&&(void 0===this._color||e.color===this._color)},r.prototype.matches=function(e){return"break"===e.type&&(void 0===this._breakType||e.breakType===this._breakType)}},8982:(e,t,n)=>{var i=n(7475),r=n(2459);function a(e){return new o(e.map((function(e){return i.isString(e)?s(e):e})))}function o(e){this._elements=e}function s(e,t,n){return new l(e,t,n=n||{})}function l(e,t,n){var r={};i.isArray(e)?(e.forEach((function(e){r[e]=!0})),e=e[0]):r[e]=!0,this.tagName=e,this.tagNames=r,this.attributes=t||{},this.fresh=n.fresh,this.separator=n.separator}t.topLevelElement=function(e,t){return a([s(e,t,{fresh:!0})])},t.elements=a,t.element=s,o.prototype.wrap=function(e){for(var t=e(),n=this._elements.length-1;n>=0;n--)t=this._elements[n].wrapNodes(t);return t},l.prototype.matchesElement=function(e){return this.tagNames[e.tagName]&&i.isEqual(this.attributes||{},e.attributes||{})},l.prototype.wrap=function(e){return this.wrapNodes(e())},l.prototype.wrapNodes=function(e){return[r.elementWithTag(this,e)]},t.empty=a([]),t.ignore={wrap:function(){return[]}}},1876:(e,t,n)=>{var i=n(8303).RegexTokeniser;t.t=function(e){var t="(?:[a-zA-Z\\-_]|\\\\.)";return new i([{name:"identifier",regex:new RegExp("("+t+"(?:"+t+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(r+"'")},{name:"unterminated-string",regex:new RegExp(r)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]).tokenise(e)};var r="'((?:\\\\.|[^'])*)"},136:(e,t,n)=>{var i=n(7475);function r(e,t){return a((function(n){return n.type===e?t(n):n}))}function a(e){return function t(n){if(n.children){var r=i.map(n.children,t);n=i.extend(n,{children:r})}return e(n)}}function o(e){var t=[];return s(e,(function(e){t.push(e)})),t}function s(e,t){e.children&&e.children.forEach((function(e){s(e,t),t(e)}))}t.paragraph=function(e){return r("paragraph",e)},t.run=function(e){return r("run",e)},t._elements=a,t._elementsOfType=r,t.getDescendantsOfType=function(e,t){return o(e).filter((function(e){return e.type===t}))},t.getDescendants=o},6513:(e,t,n)=>{var i=n(8982),r=n(2459);t.element=function(e){return function(t){return r.elementWithTag(i.element(e),[t])}}},6453:(e,t,n)=>{var i=n(7475);t.writer=function(e){return(e=e||{}).prettyPrint?function(){var e=0,t="  ",n=[],o=!0,s=!1,l=a();function c(t,i){r[t]&&g(),n.push(t),l.open(t,i),r[t]&&e++,o=!1}function u(t){r[t]&&(e--,g()),n.pop(),l.close(t)}function d(e){p();var n=m()?e:e.replace("\n","\n"+t);l.text(n)}function h(e,t){g(),l.selfClosing(e,t)}function f(){return 0===n.length||r[n[n.length-1]]}function p(){s||(g(),s=!0)}function g(){if(s=!1,!o&&f()&&!m()){l._append("\n");for(var n=0;n<e;n++)l._append(t)}}function m(){return i.some(n,(function(e){return"pre"===e}))}return{asString:l.asString,open:c,close:u,text:d,selfClosing:h}}():a()};
2var r={div:!0,p:!0,ul:!0,li:!0};function a(){var e=[];function t(e){return i.map(e,(function(e,t){return" "+t+'="'+function(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(e)+'"'})).join("")}return{asString:function(){return e.join("")},open:function(n,i){var r=t(i);e.push("<"+n+r+">")},close:function(t){e.push("</"+t+">")},text:function(t){e.push(function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(t))},selfClosing:function(n,i){var r=t(i);e.push("<"+n+r+" />")},_append:function(t){e.push(t)}}}},1862:(e,t,n)=>{var i=n(6453),r=n(9685);t.writer=function(e){return"markdown"===(e=e||{}).outputFormat?r.writer():i.writer(e)}},9685:(e,t,n)=>{var i=n(7475);function r(e){return a(e,e)}function a(e,t){return function(){return{start:e,end:t}}}function o(e){return function(t,n){return{start:n?"\n":"",end:n?"":"\n",list:{isOrdered:e.isOrdered,indent:n?n.indent+1:0,count:0}}}}var s={p:a("","\n\n"),br:a("","  \n"),ul:o({isOrdered:!1}),ol:o({isOrdered:!0}),li:function(e,t,n){(t=t||{indent:0,isOrdered:!1,count:0}).count++,n.hasClosed=!1;var i=t.isOrdered?t.count+".":"-";return{start:l("\t",t.indent)+i+" ",end:function(){if(!n.hasClosed)return n.hasClosed=!0,"\n"}}},strong:r("__"),em:r("*"),a:function(e){var t=e.href||"";return t?{start:"[",end:"]("+t+")",anchorPosition:"before"}:{}},img:function(e){var t=e.src||"",n=e.alt||"";return t||n?{start:"!["+n+"]("+t+")"}:{}}};function l(e,t){return new Array(t+1).join(e)}!function(){for(var e=1;e<=6;e++)s["h"+e]=a(l("#",e)+" ","\n\n")}(),t.writer=function(){var e=[],t=[],n=null,r={};function a(i,a){a=a||{};var l=(s[i]||function(){return{}})(a,n,r);t.push({end:l.end,list:n}),l.list&&(n=l.list);var c="before"===l.anchorPosition;c&&o(a),e.push(l.start||""),c||o(a)}function o(t){t.id&&e.push('<a id="'+t.id+'"></a>')}function l(r){var a=t.pop();n=a.list;var o=i.isFunction(a.end)?a.end():a.end;e.push(o||"")}return{asString:function(){return e.join("")},open:a,close:l,text:function(t){e.push(function(e){return e.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}(t))},selfClosing:function(e,t){a(e,t),l()}}}},2987:(e,t,n)=>{var i=n(4318);t.Element=i.Element,t.element=i.element,t.emptyElement=i.emptyElement,t.text=i.text,t.readString=n(5864).readString,t.writeString=n(372).writeString},4318:(e,t,n)=>{var i=n(7475);t.Element=a,t.element=function(e,t,n){return new a(e,t,n)},t.text=function(e){return{type:"text",value:e}};var r=t.emptyElement={first:function(){return null},firstOrEmpty:function(){return r},attributes:{},children:[]};function a(e,t,n){this.type="element",this.name=e,this.attributes=t||{},this.children=n||[]}a.prototype.first=function(e){return i.find(this.children,(function(t){return t.name===e}))},a.prototype.firstOrEmpty=function(e){return this.first(e)||r},a.prototype.getElementsByTagName=function(e){return s(i.filter(this.children,(function(t){return t.name===e})))},a.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw new Error("Not implemented");return this.children[0].value};var o={getElementsByTagName:function(e){return s(i.flatten(this.map((function(t){return t.getElementsByTagName(e)}),!0)))}};function s(e){return i.extend(e,o)}},5864:(e,t,n)=>{var i=n(3127),r=n(7475),a=n(9916),o=n(4318),s=o.Element;t.readString=function(e,t){t=t||{};try{var n=a.parseFromString(e,"text/xml")}catch(d){return i.reject(d)}if("parsererror"===n.documentElement.tagName)return i.resolve(new Error(n.documentElement.textContent));function c(e){switch(e.nodeType){case l.ELEMENT_NODE:return function(e){var t=u(e),n=[];r.forEach(e.childNodes,(function(e){var t=c(e);t&&n.push(t)}));var i={};return r.forEach(e.attributes,(function(e){i[u(e)]=e.value})),new s(t,i,n)}(e);case l.TEXT_NODE:return o.text(e.nodeValue)}}function u(e){if(e.namespaceURI){var n=t[e.namespaceURI];return(n?n+":":"{"+e.namespaceURI+"}")+e.localName}return e.localName}return i.resolve(c(n.documentElement))};var l=a.Node},372:(e,t,n)=>{var i=n(7475),r=n(6400);function a(e,t){e.text(t.value)}t.writeString=function(e,t){var n=i.invert(t),o={element:function(e,t){var n=e.element(l(t.name),t.attributes);
2t.children.forEach((function(e){s(n,e)}))},text:a};function s(e,t){return o[t.type](e,t)}function l(e){var t=/^\{(.*)\}(.*)$/.exec(e);if(t){var i=n[t[1]];return i+(""===i?"":":")+t[2]}return e}return function(e){var n=r.create(l(e.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return i.forEach(t,(function(e,t){var i="xmlns"+(""===t?"":":"+t);n.attribute(i,e)})),e.children.forEach((function(e){s(n,e)})),n.end()}(e)}},9916:(e,t,n)=>{var i=n(6899),r=n(3699);t.parseFromString=function(e){var t=null,n=new i.DOMParser({errorHandler:function(e,n){t={level:e,message:n}}}).parseFromString(e);if(null===t)return n;throw new Error(t.level+": "+t.message)},t.Node=r.Node},9836:(e,t,n)=>{var i=n(4445),r=n(6159);t.openArrayBuffer=function(e){return r.loadAsync(e).then((function(e){return{exists:function(t){return null!==e.file(t)},read:function(t,n){return e.file(t).async("uint8array").then((function(e){return"base64"===n?i.fromByteArray(e):n?new TextDecoder(n).decode(e):e}))},write:function(t,n){e.file(t,n)},toArrayBuffer:function(){return e.generateAsync({type:"arraybuffer"})}}}))},t.splitPath=function(e){var t=e.lastIndexOf("/");return-1===t?{dirname:"",basename:e}:{dirname:e.substring(0,t),basename:e.substring(t+1)}},t.joinPath=function(){var e=Array.prototype.filter.call(arguments,(function(e){return e})),t=[];return e.forEach((function(e){/^\//.test(e)?t=[e]:t.push(e)})),t.join("/")}},8456:e=>{"use strict";e.exports=function(e){var t=e._SomePromiseArray;function n(e){var n=new t(e),i=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),i}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}},9126:(e,t,n)=>{"use strict";var i;try{throw new Error}catch(d){i=d}var r=n(4309),a=n(5293),o=n(2524);function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new a(16),this._normalQueue=new a(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=r}function l(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function c(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function u(e){this._normalQueue._pushOne(e),this._queueTick()}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},s.prototype.disableTrampolineIfNecessary=function(){o.hasDevTools&&(this._trampolineEnabled=!1)},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,t){t?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!==typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(d){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},o.hasDevTools?(s.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?l.call(this,e,t,n):this._schedule((function(){setTimeout((function(){e.call(t,n)}),100)}))},s.prototype.invoke=function(e,t,n){this._trampolineEnabled?c.call(this,e,t,n):this._schedule((function(){e.call(t,n)}))},s.prototype.settlePromises=function(e){this._trampolineEnabled?u.call(this,e):this._schedule((function(){e._settlePromises()}))}):(s.prototype.invokeLater=l,s.prototype.invoke=c,s.prototype.settlePromises=u),s.prototype._drainQueue=function(e){for(;e.length()>0;){var t=e.shift();if("function"===typeof t){var n=e.shift(),i=e.shift();t.call(n,i)}else t._settlePromises()}},s.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1}
2,e.exports=s,e.exports.firstLineError=i},835:e=>{"use strict";e.exports=function(e,t,n,i){var r=!1,a=function(e,t){this._reject(t)},o=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(a,a,null,this,e)},s=function(e,t){0===(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(a){r||(r=!0,e.prototype._propagateFrom=i.propagateFromFunction(),e.prototype._boundValue=i.boundValueFunction());var c=n(a),u=new e(t);u._propagateFrom(this,1);var d=this._target();if(u._setBoundTo(c),c instanceof e){var h={promiseRejectionQueued:!1,promise:u,target:d,bindingPromise:c};d._then(t,o,void 0,u,h),c._then(s,l,void 0,u,h),u._setOnCancel(c)}else u._resolveCallback(d);return u},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},6223:(e,t,n)=>{"use strict";var i=Object.create;if(i){var r=i(null),a=i(null);r[" size"]=a[" size"]=0}e.exports=function(e){var t,i,o=n(2524),s=o.canEvaluate,l=o.isIdentifier,c=function(e){return new Function("ensureMethod","                                    \n        return function(obj) {                                               \n            'use strict'                                                     \n            var len = this.length;                                           \n            ensureMethod(obj, 'methodName');                                 \n            switch(len) {                                                    \n                case 1: return obj.methodName(this[0]);                      \n                case 2: return obj.methodName(this[0], this[1]);             \n                case 3: return obj.methodName(this[0], this[1], this[2]);    \n                case 0: return obj.methodName();                             \n                default:                                                     \n                    return obj.methodName.apply(obj, this);                  \n            }                                                                \n        };                                                                   \n        ".replace(/methodName/g,e))(h)},u=function(e){return new Function("obj","                                             \n        'use strict';                                                        \n        return obj.propertyName;                                             \n        ".replace("propertyName",e))},d=function(e,t,n){var i=n[e];if("function"!==typeof i){if(!l(e))return null;if(i=t(e),n[e]=i,n[" size"]++,n[" size"]>512){for(var r=Object.keys(n),a=0;a<256;++a)delete n[r[a]];n[" size"]=r.length-256}}return i};function h(t,n){var i;if(null!=t&&(i=t[n]),"function"!==typeof i){var r="Object "+o.classString(t)+" has no method '"+o.toString(n)+"'";throw new e.TypeError(r)}return i}function f(e){return h(e,this.pop()).apply(e,this)}function p(e){return e[this]}function g(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}t=function(e){return d(e,c,r)},i=function(e){return d(e,u,a)},e.prototype.call=function(e){for(var n=arguments.length,i=new Array(Math.max(n-1,0)),r=1;r<n;++r)i[r-1]=arguments[r];if(s){var a=t(e);if(null!==a)return this._then(a,void 0,void 0,i,void 0)}return i.push(e),this._then(f,void 0,void 0,i,void 0)},e.prototype.get=function(e){var t;if("number"===typeof e)t=g;else if(s){var n=i(e);t=null!==n?n:p}else t=p;return this._then(t,void 0,void 0,e,void 0)}}},5070:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r){var a=n(2524),o=a.tryCatch,s=a.errorObj,l=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(e,t){if(a.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"===typeof e){if(!t){var i=o(e).call(this._boundValue());i===s&&(this._attachExtraTrace(i.e),l.throwLater(i.e))}}else e._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),l.invoke(this._doInvokeOnCancel,this,e)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},4782:(e,t,n)=>{"use strict";e.exports=function(e){var t=n(2524),i=n(829).keys,r=t.tryCatch,a=t.errorObj;return function(n,o,s){return function(l){var c=s._boundValue();e:for(var u=0;u<n.length;++u){var d=n[u];if(d===Error||null!=d&&d.prototype instanceof Error){if(l instanceof d)return r(o).call(c,l)}else if("function"===typeof d){var h=r(d).call(c,l);if(h===a)return h;if(h)return r(o).call(c,l)}else if(t.isObject(l)){for(var f=i(d),p=0;p<f.length;++p){var g=f[p];if(d[g]!=l[g])continue e}return r(o).call(c,l)}}return e}}}},9437:e=>{"use strict";e.exports=function(e){var t=!1,n=[];function i(){this._trace=new i.CapturedTrace(r())}function r(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},i.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},i.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},i.CapturedTrace=null,i.create=function(){if(t)return new i},i.deactivateLongStackTraces=function(){},i.activateLongStackTraces=function(){var n=e.prototype._pushContext,a=e.prototype._popContext,o=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;i.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=a,e._peekContext=o,e.prototype._peekContext=s,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=i.prototype._pushContext,e.prototype._popContext=i.prototype._popContext,e._peekContext=e.prototype._peekContext=r,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},i}},9936:(e,t,n)=>{"use strict";e.exports=function(e,t){var i,r,a,o=e._getDomain,s=e._async,l=n(6503).Warning,c=n(2524),u=c.canAttachTrace,d=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,h=/\((?:timers\.js):\d+:\d+\)/,f=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,p=null,g=null,m=!1,v=!(0==c.env("BLUEBIRD_DEBUG")||!c.env("BLUEBIRD_DEBUG")&&"development"!==c.env("NODE_ENV")),b=!(0==c.env("BLUEBIRD_WARNINGS")||!v&&!c.env("BLUEBIRD_WARNINGS")),y=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!v&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),x=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(b||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},e.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),s.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){z("rejectionHandled",i,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),z("unhandledRejection",r,e,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField}
2,e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(e,t,n){return I(e,t,n||this)},e.onPossiblyUnhandledRejection=function(e){var t=o();r="function"===typeof e?null===t?e:c.domainBind(t,e):void 0},e.onUnhandledRejectionHandled=function(e){var t=o();i="function"===typeof e?null===t?e:c.domainBind(t,e):void 0};var w=function(){};e.longStackTraces=function(){if(s.haveItemsQueued()&&!$.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!$.longStackTraces&&H()){var n=e.prototype._captureStackTrace,i=e.prototype._attachExtraTrace;$.longStackTraces=!0,w=function(){if(s.haveItemsQueued()&&!$.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=n,e.prototype._attachExtraTrace=i,t.deactivateLongStackTraces(),s.enableTrampoline(),$.longStackTraces=!1},e.prototype._captureStackTrace=R,e.prototype._attachExtraTrace=O,t.activateLongStackTraces(),s.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return $.longStackTraces&&H()};var _=function(){try{if("function"===typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}if("function"===typeof Event){e=new Event("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}}return(e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),D=c.isNode?function(){return process.emit.apply(process,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function S(e,t){return{promise:t}}var k={promiseCreated:S,promiseFulfilled:S,promiseRejected:S,promiseResolved:S,promiseCancelled:S,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:S},C=function(e){var t=!1;try{t=D.apply(null,arguments)}catch(i){s.throwLater(i),t=!0}var n=!1;try{n=_(e,k[e].apply(null,arguments))}catch(i){s.throwLater(i),n=!0}return n||t};function A(){return!1}function T(e,t,n){var i=this;try{e(t,n,(function(e){if("function"!==typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));i._attachCancellationCallback(e)}))}catch(r){return r}}function E(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?c.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function N(){return this._onCancelField}function M(e){this._onCancelField=e}function P(){this._cancellationParent=void 0,this._onCancelField=void 0}function U(e,t){if(0!==(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}e.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&w()),"warnings"in t){var n=t.warnings;$.warnings=!!n,x=$.warnings,c.isObject(n)&&"wForgottenReturn"in n&&(x=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!$.cancellation){if(s.haveItemsQueued())throw new Error("cannot enable c
2ancellation after promises are in use");e.prototype._clearCancellationData=P,e.prototype._propagateFrom=U,e.prototype._onCancel=N,e.prototype._setOnCancel=M,e.prototype._attachCancellationCallback=E,e.prototype._execute=T,j=U,$.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!$.monitoring?($.monitoring=!0,e.prototype._fireEvent=C):!t.monitoring&&$.monitoring&&($.monitoring=!1,e.prototype._fireEvent=A)),e},e.prototype._fireEvent=A,e.prototype._execute=function(e,t,n){try{e(t,n)}catch(i){return i}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(e){},e.prototype._attachCancellationCallback=function(e){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(e,t){};var j=function(e,t){0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function F(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function R(){this._trace=new X(this._peekContext())}function O(e,t){if(u(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var i=B(e);c.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function I(t,n,i){if($.warnings){var r,a=new l(t);if(n)i._attachExtraTrace(a);else if($.longStackTraces&&(r=e._peekContext()))r.attachExtraTrace(a);else{var o=B(a);a.stack=o.message+"\n"+o.stack.join("\n")}C("warning",a)||W(a,"",!0)}}function L(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],r="    (No stack trace)"===i||p.test(i),a=r&&q(i);r&&!a&&(m&&" "!==i.charAt(0)&&(i="    "+i),t.push(i))}return t}function B(e){var t=e.stack,n=e.toString();return t="string"===typeof t&&t.length>0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var i=t[n];if("    (No stack trace)"===i||p.test(i))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):["    (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:L(t)}}function W(e,t,n){if("undefined"!==typeof console){var i;if(c.isObject(e)){var r=e.stack;i=t+g(r,e)}else i=t+String(e);"function"===typeof a?a(i,n):"function"!==typeof console.log&&"object"!==typeof console.log||console.log(i)}}function z(e,t,n,i){var r=!1;try{"function"===typeof t&&(r=!0,"rejectionHandled"===e?t(i):t(n,i))}catch(a){s.throwLater(a)}"unhandledRejection"===e?C(e,n,i)||r||W(n,"Unhandled rejection "):C(e,i)}function V(e){var t;if("function"===typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"===typeof e.toString?e.toString():c.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(n){}0===t.length&&(t="(empty array)")}return"(<"+function(e){var t=41;if(e.length<t)return e;return e.substr(0,t-3)+"..."}(t)+">, no stack trace)"}function H(){return"function"===typeof K}var q=function(){return!1},G=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Y(e){var t=e.match(G);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function X(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);K(this,X),t>32&&this.uncycle()}c.inherits(X,Error),t.CapturedTrace=X,X.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},i=0,r=this;void 0!==r;++i)t.push(r),r=r._parent;for(i=(e=this._length=i)-1;i>=0;--i){var a=t[i].stack;void 0===n[a]&&(n[a]=i)}for(i=0;i<e;++i){var o=n[t[i].stack];if(void 0!==o&&o!==i){o>0&&(t[o-1]._parent=void 0,t[o-1]._length=1),t[i]._parent=void 0,t[i]._length=1;var s=i>0?t[i-1]:this;o<e-1?(s._parent=t[o+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var l=s._length+1,c=i-2;c>=0;--c)t[c]._length=l,l++;return}}}},X.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=B(e),n=t.message,i=[t.stack],r=this;void 0!==r;)i.push(L(r.stack.split("\n"))),r=r._parent;!function(e){for(var t=e[0],n=1;n<e.length;++n){for(var i=e[n],r=t.length-1,a=t[r],o=-1,s=i.length-1;s>=0;--s)if(i[s]===a){o=s;break}for(s=o;s>=0;--s){var l=i[s];if(t[r]!==l)break;t.pop(),r--}t=i}}(i),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(i),c.notEnumerableProp(e,"stack",function(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}(n,i)),c.notEnumerableProp(e,"__stackCleaned__",!0)}};var K=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"===typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():V(t)};if("number"===typeof Error.stackTraceLimit&&"function"===typeof Error.captureStackTrace){Error.stackTraceLimit+=6,p=e,g=t;var n=Error.captureStackTrace;return q=function(e){return d.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var i,r=new Error;if("string"===typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return p=/@/,g=t,m=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(a){i="stack"in a}return!("stack"in r)&&i&&"number"===typeof Error.stackTraceLimit?(p=e,g=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(a){e.stack=a.stack}Error.stackTraceLimit-=6}):(g=function(e,t){return"string"===typeof e?e:"object"!==typeof t&&"function"!==typeof t||void 0===t.name||void 0===t.message?V(t):t.toString()},null)}();"undefined"!==typeof console&&"undefined"!==typeof console.warn&&(a=function(e){console.warn(e)},c.isNode&&process.stderr.isTTY?a=function(e,t){var n=t?"\x1b[33m":"\x1b[31m";console.warn(n+e+"\x1b[0m\n")}:c.isNode||"string"!==typeof(new Error).stack||(a=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var $={warnings:b,longStackTraces:!1,cancellation:!1,monitoring:!1};return y&&e.longStackTraces(),{longStackTraces:function(){return $.longStackTraces},warnings:function(){return $.warnings},cancellation:function(){return $.cancellation},monitoring:function(){return $.monitoring},propagateFromFunction:function(){return j},boundValueFunction:function(){return F},checkForgottenReturns:function(e,t,n,i,r){if(void 0===e&&null!==t&&x){if(void 0!==r&&r._returnedNonUndefined())return;if(0===(65535&i._bitField))return;n&&(n+=" ");var a="",o="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=L(s),c=l.length-1;c>=0;--c){var u=l[c];if(!h.test(u)){var d=u.match(f);d&&(a="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(l.length>0){var p=l[0];for(c=0;c<s.length;++c)if(s[c]===p){c>0&&(o="\n"+s[c-1]);break}}}var g="a promise was created in a "+n+"handler "+a+"but was not returned from it, see http://goo.gl/rRqMUw"+o;i._warn(g,!0,t)}},setBounds:function(e,t){if(H()){for(var n,i,r=e.stack.split("\n"),a=t.stack.split("\n"),o=-1,s=-1,l=0;l<r.length;++l){if(c=Y(r[l])){n=c.fileName,o=c.line;break}}for(l=0;l<a.length;++l){var c;if(c=Y(a[l])){i=c.fileName,s=c.line;break}}o<0||s<0||!n||!i||n!==i||o>=s||(q=function(e){if(d.test(e))return!0;var t=Y(e);return!!(t&&t.fileName===n&&o<=t.line&&t.line<=s)})}},warn:I,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),I(n)},CapturedTrace:X,fireDomEvent:_,fireGlobalEvent:D}}},7586:e=>{"use strict";e.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,(function(){throw t}))},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var i=arguments[1];i instanceof e&&i.suppressUnhandledRejections();return this.caught(n,(function(){return i}))}}},5117:e=>{"use strict";e.exports=function(e,t){var n=e.reduce,i=e.all;function r(){return i(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(r,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,i){return n(e,i,t,0)._then(r,void 0,void 0,e,void 0)},e.mapSeries=function(e,i){return n(e,i,t,t)}}},6503:(e,t,n)=>{"use strict";var i,r,a=n(829),o=a.freeze,s=n(2524),l=s.inherits,c=s.notEnumerableProp;function u(e,t){function n(i){if(!(this instanceof n))return new n(i);c(this,"message","string"===typeof i?i:t),c(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}var d=u("Warning","warning"),h=u("CancellationError","cancellation error"),f=u("TimeoutError","timeout error"),p=u("AggregateError","aggregate error");try{i=TypeError,r=RangeError}catch(x){i=u("TypeError","type error"),r=u("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<g.length;++m)"function"===typeof Array.prototype[g[m]]&&(p.prototype[g[m]]=Array.prototype[g[m]]);a.defineProperty(p.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),p.prototype.isOperational=!0;var v=0;function b(e){if(!(this instanceof b))return new b(e);c(this,"name","OperationalError"),c(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(c(this,"message",e.message),c(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}p.prototype.toString=function(){var e=Array(4*v+1).join(" "),t="\n"+e+"AggregateError of:\n";v++,e=Array(4*v+1).join(" ");for(var n=0;n<this.length;++n){for(var i=this[n]===this?"[Circular AggregateError]":this[n]+"",r=i.split("\n"),a=0;a<r.length;++a)r[a]=e+r[a];t+=(i=r.join("\n"))+"\n"}return v--,t},l(b,Error);var y=Error.__BluebirdErrorTypes__;y||(y=o({CancellationError:h,TimeoutError:f,OperationalError:b,Re
2jectionError:b,AggregateError:p}),a.defineProperty(Error,"__BluebirdErrorTypes__",{value:y,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:i,RangeError:r,CancellationError:y.CancellationError,OperationalError:y.OperationalError,TimeoutError:y.TimeoutError,AggregateError:y.AggregateError,Warning:d}},829:e=>{var t=function(){"use strict";return void 0===this}();if(t)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var n={}.hasOwnProperty,i={}.toString,r={}.constructor.prototype,a=function(e){var t=[];for(var i in e)n.call(e,i)&&t.push(i);return t};e.exports={isArray:function(e){try{return"[object Array]"===i.call(e)}catch(t){return!1}},keys:a,names:a,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(t){return r}},isES5:t,propertyIsWritable:function(){return!0}}}},6494:e=>{"use strict";e.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,i){return n(this,e,i,t)},e.filter=function(e,i,r){return n(e,i,r,t)}}},8861:(e,t,n)=>{"use strict";e.exports=function(e,t){var i=n(2524),r=e.CancellationError,a=i.errorObj;function o(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function s(e){this.finallyHandler=e}function l(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function c(){return d.call(this,this.promise._target()._settledValue())}function u(e){if(!l(this,e))return a.e=e,a}function d(n){var i=this.promise,o=this.handler;if(!this.called){this.called=!0;var d=this.isFinallyHandler()?o.call(i._boundValue()):o.call(i._boundValue(),n);if(void 0!==d){i._setReturnedNonUndefined();var h=t(d,i);if(h instanceof e){if(null!=this.cancelPromise){if(h._isCancelled()){var f=new r("late cancellation observer");return i._attachExtraTrace(f),a.e=f,a}h.isPending()&&h._attachCancellationCallback(new s(this))}return h._then(c,u,void 0,this,void 0)}}}return i.isRejected()?(l(this),a.e=n,a):(l(this),n)}return o.prototype.isFinallyHandler=function(){return 0===this.type},s.prototype._resultCancelled=function(){l(this.finallyHandler)},e.prototype._passThrough=function(e,t,n,i){return"function"!==typeof e?this.then():this._then(n,i,void 0,new o(this,t,e),void 0)},e.prototype.lastly=e.prototype.finally=function(e){return this._passThrough(e,0,d,d)},e.prototype.tap=function(e){return this._passThrough(e,1,d)},o}},6346:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r,a,o){var s=n(6503).TypeError,l=n(2524),c=l.errorObj,u=l.tryCatch,d=[];function h(t,n,r,a){if(o.cancellation()){var s=new e(i),l=this._finallyPromise=new e(i);this._promise=s.lastly((function(){return l})),s._captureStackTrace(),s._setOnCancel(this)}else{(this._promise=new e(i))._captureStackTrace()}this._stack=a,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"===typeof r?[r].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}l.inherits(h,a),h.prototype._isResolved=function(){return null===this._promise},h.prototype._cleanup=function(){this._promise=this._generator=null,o.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},h.prototype._promiseCancelled=function(){if(!this._isResolved()){var t;if("undefined"!==typeof this._generator.return)this._promise._pushContext(),t=u(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),t=u(this._generator.throw).call(this._generator,n),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},h.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=u(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)}
2,h.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=u(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},h.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},h.prototype.promise=function(){return this._promise},h.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},h.prototype._continue=function(t){var n=this._promise;if(t===c)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var i=t.value;if(!0===t.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(i);var a=r(i,this._promise);if(a instanceof e||(a=function(t,n,i){for(var a=0;a<n.length;++a){i._pushContext();var o=u(n[a])(t);if(i._popContext(),o===c){i._pushContext();var s=e.reject(c.e);return i._popContext(),s}var l=r(o,i);if(l instanceof e)return l}return null}(a,this._yieldHandlers,this._promise),null!==a)){var o=(a=a._target())._bitField;0===(50397184&o)?(this._yieldedPromise=a,a._proxy(this,null)):0!==(33554432&o)?e._async.invoke(this._promiseFulfilled,this,a._value()):0!==(16777216&o)?e._async.invoke(this._promiseRejected,this,a._reason()):this._promiseCancelled()}else this._promiseRejected(new s("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",i)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},e.coroutine=function(e,t){if("function"!==typeof e)throw new s("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,i=h,r=(new Error).stack;return function(){var t=e.apply(this,arguments),a=new i(void 0,void 0,n,r),o=a.promise();return a._generator=t,a._promiseFulfilled(void 0),o}},e.coroutine.addYieldHandler=function(e){if("function"!==typeof e)throw new s("expecting a function but got "+l.classString(e));d.push(e)},e.spawn=function(n){if(o.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!==typeof n)return t("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var i=new h(n,this),r=i.promise();return i._run(e.spawn),r}}},8232:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r,a,o){var s,l=n(2524),c=l.canEvaluate,u=l.tryCatch,d=l.errorObj;if(c){for(var h=function(e){return new Function("value","holder","                             \n            'use strict';                                                    \n            holder.pIndex = value;                                           \n            holder.checkFulfillment(this);                                   \n            ".replace(/Index/g,e))},f=function(e){return new Function("promise","holder","                           \n            'use strict';                                                    \n            holder.pIndex = promise;                                         \n            ".replace(/Index/g,e))},p=function(t){for(var n=new Array(t),i=0;i<n.length;++i)n[i]="this.p"+(i+1);var r=n.join(" = ")+" = null;",o="var promise;\n"+n.map((function(e){return"                                                         \n                promise = "+e+";                                      \n                if (promise instanceof Promise) {                            \n                    promise.cancel();                                        \n                }                                                            \n            "})).join("\n"),s=n.join(", "),l="Holder$"+t,c="return function(tryCatch, errorObj, Promise, async) {    \n            'use strict';                                                    \n            function [TheName](fn) {                                         \n                [TheProperties]                                              \n                this.fn = fn;                                                \n                this.asyncNeeded = true;                                     \n                this.now = 0;                                                \n            }                                                                \n                                                                             \n            [TheName].prototype._callFunction = function(promise) {          \n                promise._pushContext();                                      \n                var ret = tryCatch(this.fn)([ThePassedArguments]);           \n                promise._popContext();                                       \n                if (ret === errorObj) {                                      \n                    promise._rejectCallback(ret.e, false);                   \n                } else {                                                     \n                    promise._resolveCallback(ret);                           \n                }                                                            \n            };                                                               \n                                                                             \n            [TheName].prototype.checkFulfillment = function(promise) {       \n                var now = ++this.now;                                        \n                if (now === [TheTotal]) {                                    \n                    if (this.asyncNeeded) {                                  \n                        async.invoke(this._callFunction, this, promise);     \n                    } else {                                                 \n                        this._callFunction(promise);                         \n                    }                                                        \n                                                                             \n                }                                                            \n            };                                                               \n                                                                             \n            [TheName].prototype._resultCancelled = function() {              \n                [CancellationCode]                                           \n            };                                                               \n                                                                             \n            return [TheName];                                                \n        }(tryCatch, errorObj, Promise, async);                               \n        ";return c=c.replace(/\[TheName\]/g,l).replace(/\[TheTotal\]/g,t).replace(/\[ThePassedArguments\]/g,s).replace(/\[TheProperties\]/g,r).replace(/\[CancellationCode\]/g,o),new Function("tryCatch","errorObj","Promise","async",c)(u,d,e,a)},g=[],m=[],v=[],b=0;b<8;++b)g.push(p(b+1)),m.push(h(b+1)),v.push(f(b+1));s=function(e){this._reject(e)}}e.join=function(){var n,a=arguments.length-1;if(a>
20&&"function"===typeof arguments[a]&&(n=arguments[a],a<=8&&c)){(_=new e(r))._captureStackTrace();for(var u=new(0,g[a-1])(n),d=m,h=0;h<a;++h){var f=i(arguments[h],_);if(f instanceof e){var p=(f=f._target())._bitField;0===(50397184&p)?(f._then(d[h],s,void 0,_,u),v[h](f,u),u.asyncNeeded=!1):0!==(33554432&p)?d[h].call(_,f._value(),u):0!==(16777216&p)?_._reject(f._reason()):_._cancel()}else d[h].call(_,f,u)}if(!_._isFateSealed()){if(u.asyncNeeded){var b=o();null!==b&&(u.fn=l.domainBind(b,u.fn))}_._setAsyncGuaranteed(),_._setOnCancel(u)}return _}for(var y=arguments.length,x=new Array(y),w=0;w<y;++w)x[w]=arguments[w];n&&x.pop();var _=new t(x).promise();return void 0!==n?_.spread(n):_}}},1352:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r,a,o){var s=e._getDomain,l=n(2524),c=l.tryCatch,u=l.errorObj,d=e._async;function h(e,t,n,i){this.constructor$(e),this._promise._captureStackTrace();var r=s();this._callback=null===r?t:l.domainBind(r,t),this._preservedValues=i===a?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}function f(t,n,r,a){if("function"!==typeof n)return i("expecting a function but got "+l.classString(n));var o=0;if(void 0!==r){if("object"!==typeof r||null===r)return e.reject(new TypeError("options argument must be an object but it is "+l.classString(r)));if("number"!==typeof r.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(r.concurrency)));o=r.concurrency}return new h(t,n,o="number"===typeof o&&isFinite(o)&&o>=1?o:0,a).promise()}l.inherits(h,t),h.prototype._asyncInit=function(){this._init$(void 0,-2)},h.prototype._init=function(){},h.prototype._promiseFulfilled=function(t,n){var i=this._values,a=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(i[n=-1*n-1]=t,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return i[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var d=this._promise,h=this._callback,f=d._boundValue();d._pushContext();var p=c(h).call(f,t,n,a),g=d._popContext();if(o.checkForgottenReturns(p,g,null!==s?"Promise.filter":"Promise.map",d),p===u)return this._reject(p.e),!0;var m=r(p,this._promise);if(m instanceof e){var v=(m=m._target())._bitField;if(0===(50397184&v))return l>=1&&this._inFlight++,i[n]=m,m._proxy(this,-1*(n+1)),!1;if(0===(33554432&v))return 0!==(16777216&v)?(this._reject(m._reason()),!0):(this._cancel(),!0);p=m._value()}i[n]=p}return++this._totalResolved>=a&&(null!==s?this._filter(i,s):this._resolve(i),!0)},h.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var i=e.pop();this._promiseFulfilled(n[i],i)}},h.prototype._filter=function(e,t){for(var n=t.length,i=new Array(n),r=0,a=0;a<n;++a)e[a]&&(i[r++]=t[a]);i.length=r,this._resolve(i)},h.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(e,t){return f(this,e,t,null)},e.map=function(e,t,n,i){return f(e,t,n,i)}}},5709:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r,a){var o=n(2524),s=o.tryCatch;e.method=function(n){if("function"!==typeof n)throw new e.TypeError("expecting a function but got "+o.classString(n));return function(){var i=new e(t);i._captureStackTrace(),i._pushContext();var r=s(n).apply(this,arguments),o=i._popContext();return a.checkForgottenReturns(r,o,"Promise.method",i),i._resolveFromSyncValue(r),i}},e.attempt=e.try=function(n){if("function"!==typeof n)return r("expecting a function but got "+o.classString(n));var i,l=new e(t);if(l._captureStackTrace(),l._pushContext(),arguments.length>1){a.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],u=arguments[2];i=o.isArray(c)?s(n).apply(u,c):s(n).call(u,c)}else i=s(n)();var d=l._popContext();return a.checkForgottenReturns(i,d,"Promise.try",l),l._resolveFromSyncValue(i),l},e.prototype._resolveFromSyncValue=function(e){e===o.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},7459:(e,t,n)=>{"use strict";var i=n(2524),r=i.maybeWrapAsError,a=n(6503).OperationalError,o=n(829);var s=/^(?:name|message|stack|cause)$/;function l(e){var t;if(function(e){return e instanceof Error&&o.getPrototypeOf(e)===Error.prototype}(e)){(t=new a(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=o.keys(e),r=0;r<n.length;++r){var l=n[r];s.test(l)||(t[l]=e[l])}return t}return i.markAsOriginatingFromRejection(e),e}
2e.exports=function(e,t){return function(n,i){if(null!==e){if(n){var a=l(r(n));e._attachExtraTrace(a),e._reject(a)}else if(t){for(var o=arguments.length,s=new Array(Math.max(o-1,0)),c=1;c<o;++c)s[c-1]=arguments[c];e._fulfill(s)}else e._fulfill(i);e=null}}}},4792:(e,t,n)=>{"use strict";e.exports=function(e){var t=n(2524),i=e._async,r=t.tryCatch,a=t.errorObj;function o(e,n){if(!t.isArray(e))return s.call(this,e,n);var o=r(n).apply(this._boundValue(),[null].concat(e));o===a&&i.throwLater(o.e)}function s(e,t){var n=this._boundValue(),o=void 0===e?r(t).call(n,null):r(t).call(n,null,e);o===a&&i.throwLater(o.e)}function l(e,t){if(!e){var n=new Error(e+"");n.cause=e,e=n}var o=r(t).call(this._boundValue(),e);o===a&&i.throwLater(o.e)}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if("function"==typeof e){var n=s;void 0!==t&&Object(t).spread&&(n=o),this._then(n,l,void 0,this,e)}return this}}},303:(e,t,n)=>{"use strict";e.exports=function(){var t=function(){return new f("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},i=function(){return new T.PromiseInspection(this._target())},r=function(e){return T.reject(new f(e))};function a(){}var o,s={},l=n(2524);o=l.isNode?function(){var e=process.domain;return void 0===e&&(e=null),e}:function(){return null},l.notEnumerableProp(T,"_getDomain",o);var c=n(829),u=n(9126),d=new u;c.defineProperty(T,"_async",{value:d});var h=n(6503),f=T.TypeError=h.TypeError;T.RangeError=h.RangeError;var p=T.CancellationError=h.CancellationError;T.TimeoutError=h.TimeoutError,T.OperationalError=h.OperationalError,T.RejectionError=h.OperationalError,T.AggregateError=h.AggregateError;var g=function(){},m={},v={},b=n(5138)(T,g),y=n(7873)(T,g,b,r,a),x=n(9437)(T),w=x.create,_=n(9936)(T,x),D=(_.CapturedTrace,n(8861)(T,b)),S=n(4782)(v),k=n(7459),C=l.errorObj,A=l.tryCatch;function T(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==g&&(!function(e,t){if("function"!==typeof t)throw new f("expecting a function but got "+l.classString(t));if(e.constructor!==T)throw new f("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n")}(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function E(e){this.promise._resolveCallback(e)}function N(e){this.promise._rejectCallback(e,!1)}function M(e){var t=new T(g);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return T.prototype.toString=function(){return"[object Promise]"},T.prototype.caught=T.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,i=new Array(t-1),a=0;for(n=0;n<t-1;++n){var o=arguments[n];if(!l.isObject(o))return r("expecting an object but got A catch statement predicate "+l.classString(o));i[a++]=o}return i.length=a,e=arguments[n],this.then(void 0,S(i,e,this))}return this.then(void 0,e)},T.prototype.reflect=function(){return this._then(i,i,void 0,this,void 0)},T.prototype.then=function(e,t){if(_.warnings()&&arguments.length>0&&"function"!==typeof e&&"function"!==typeof t){var n=".then() only accepts functions but was passed: "+l.classString(e);arguments.length>1&&(n+=", "+l.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},T.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},T.prototype.spread=function(e){return"function"!==typeof e?r("expecting a function but got "+l.classString(e)):this.all()._then(e,void 0,void 0,m,void 0)},T.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},T.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new y(this).promise()},T.prototype.error=function(e){return this.caught(l.originatesFromRejection,e)},T.getNewLibraryCopy=e.exports,T.is=function(e){return e instanceof T},T.fromNode=T.fromCallback=function(e){var t=new T(g);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,i=A(e)(k(t,n));return i===C&&t._rejectCallback(i.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},T.all=function(e){return new y(e).promise()},T.cast=function(e){var t=b(e);return t instanceof T||((t=new T(g))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},T.resolve=T.fulfilled=T.cast,T.reject=T.rejected=function(e){var t=new T(g);return t._captureStackTrace(),t._rejectCallback(e,!0),t}
2,T.setScheduler=function(e){if("function"!==typeof e)throw new f("expecting a function but got "+l.classString(e));return d.setScheduler(e)},T.prototype._then=function(e,t,n,i,r){var a=void 0!==r,s=a?r:new T(g),c=this._target(),u=c._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===i&&0!==(2097152&this._bitField)&&(i=0!==(50397184&u)?this._boundValue():c===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var h=o();if(0!==(50397184&u)){var f,m,v=c._settlePromiseCtx;0!==(33554432&u)?(m=c._rejectionHandler0,f=e):0!==(16777216&u)?(m=c._fulfillmentHandler0,f=t,c._unsetRejectionIsUnhandled()):(v=c._settlePromiseLateCancellationObserver,m=new p("late cancellation observer"),c._attachExtraTrace(m),f=t),d.invoke(v,c,{handler:null===h?f:"function"===typeof f&&l.domainBind(h,f),promise:s,receiver:i,value:m})}else c._addCallbacks(e,t,s,i,h);return s},T.prototype._length=function(){return 65535&this._bitField},T.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},T.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},T.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},T.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},T.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},T.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},T.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},T.prototype._isFinal=function(){return(4194304&this._bitField)>0},T.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},T.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},T.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},T.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},T.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==s)return void 0===t&&this._isBound()?this._boundValue():t},T.prototype._promiseAt=function(e){return this[4*e-4+2]},T.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},T.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},T.prototype._boundValue=function(){},T.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,i=e._promise0,r=e._receiverAt(0);void 0===r&&(r=s),this._addCallbacks(t,n,i,r,null)},T.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),i=e._rejectionHandlerAt(t),r=e._promiseAt(t),a=e._receiverAt(t);void 0===a&&(a=s),this._addCallbacks(n,i,r,a,null)},T.prototype._addCallbacks=function(e,t,n,i,r){var a=this._length();if(a>=65531&&(a=0,this._setLength(0)),0===a)this._promise0=n,this._receiver0=i,"function"===typeof e&&(this._fulfillmentHandler0=null===r?e:l.domainBind(r,e)),"function"===typeof t&&(this._rejectionHandler0=null===r?t:l.domainBind(r,t));else{var o=4*a-4;this[o+2]=n,this[o+3]=i,"function"===typeof e&&(this[o+0]=null===r?e:l.domainBind(r,e)),"function"===typeof t&&(this[o+1]=null===r?t:l.domainBind(r,t))}return this._setLength(a+1),a},T.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},T.prototype._resolveCallback=function(e,n){if(0===(117506048&this._bitField)){if(e===this)return this._rejectCallback(t(),!1);var i=b(e,this);if(!(i instanceof T))return this._fulfill(e);n&&this._propagateFrom(i,2);var r=i._target();if(r!==this){var a=r._bitField;if(0===(50397184&a)){var o=this._length();o>0&&r._migrateCallback0(this);for(var s=1;s<o;++s)r._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else if(0!==(33554432&a))this._fulfill(r._value());else if(0!==(16777216&a))this._reject(r._reason());else{var l=new p("late cancellation observer");r._attachExtraTrace(l),this._reject(l)}}else this._reject(t())}},T.prototype._rejectCallback=function(e,t,n){var i=l.ensureErrorObject(e),r=i===e;if(!r&&!n&&_.warnings()){var a="a promise was rejected with a non-error: "+l.classString(e);this._warn(a,!0)}this._attachExtraTrace(i,!!t&&r),this._reject(e)},T.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,i=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,n)}));n=!1,this._popContext(),void 0!==i&&t._rejectCallback(i,!0)},T.prototype._settlePromiseFromHandler=function(e,t,n,i){var r=i._bitField;if(0===(65536&r)){var a;i._pushContext(),t===m?n&&"number"===typeof n.length?a=A(e).apply(this._boundValue(),n):(a=C).e=new f("cannot .spread() a non-array: "+l.classString(n)):a=A(e).call(t,n);var o=i._popContext();0===(65536&(r=i._bitField))&&(a===v?i._reject(n):a===C?i._rejectCallback(a.e,!1):(_.checkForgottenReturns(a,o,"",i,this),i._resolveCallback(a)))}},T.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},T.prototype._followee=function(){return this._rejectionHandler0},T.prototype._setFollowee=function(e){this._rejectionHandler0=e},T.prototype._settlePromise=function(e,t,n,r){var o=e instanceof T,s=this._bitField,l=0!==(134217728&s);0!==(65536&s)?(o&&e._invokeInternalOnCancel(),n instanceof D&&n.isFinallyHandler()?(n.cancelPromise=e,A(t).call(n,r)===C&&e._reject(C.e)):t===i?e._fulfill(i.call(n)):n instanceof a?n._promiseCancelled(e):o||e instanceof y?e._cancel():n.
2cancel()):"function"===typeof t?o?(l&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,r,e)):t.call(n,r,e):n instanceof a?n._isResolved()||(0!==(33554432&s)?n._promiseFulfilled(r,e):n._promiseRejected(r,e)):o&&(l&&e._setAsyncGuaranteed(),0!==(33554432&s)?e._fulfill(r):e._reject(r))},T.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,i=e.receiver,r=e.value;"function"===typeof t?n instanceof T?this._settlePromiseFromHandler(t,i,r,n):t.call(i,r,n):n instanceof T&&n._reject(r)},T.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},T.prototype._settlePromise0=function(e,t,n){var i=this._promise0,r=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(i,e,r,t)},T.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},T.prototype._fulfill=function(e){var n=this._bitField;if(!((117506048&n)>>>16)){if(e===this){var i=t();return this._attachExtraTrace(i),this._reject(i)}this._setFulfilled(),this._rejectionHandler0=e,(65535&n)>0&&(0!==(134217728&n)?this._settlePromises():d.settlePromises(this))}},T.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return d.fatalError(e,l.isNode);(65535&t)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},T.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var i=this._fulfillmentHandlerAt(n),r=this._promiseAt(n),a=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,a,t)}},T.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var i=this._rejectionHandlerAt(n),r=this._promiseAt(n),a=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,a,t)}},T.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!==(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var i=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,i,e),this._fulfillPromises(t,i)}this._setLength(0)}this._clearCancellationData()},T.prototype._settledValue=function(){var e=this._bitField;return 0!==(33554432&e)?this._rejectionHandler0:0!==(16777216&e)?this._fulfillmentHandler0:void 0},T.defer=T.pending=function(){return _.deprecated("Promise.defer","new Promise"),{promise:new T(g),resolve:E,reject:N}},l.notEnumerableProp(T,"_makeSelfResolutionError",t),n(5709)(T,g,b,r,_),n(835)(T,g,b,_),n(5070)(T,y,r,_),n(7586)(T),n(8656)(T),n(8232)(T,y,b,g,d,o),T.Promise=T,T.version="3.4.7",n(1352)(T,y,r,b,g,_),n(6223)(T),n(8182)(T,r,b,w,g,_),n(6962)(T,g,_),n(6346)(T,r,g,b,a,_),n(4792)(T),n(5438)(T,g),n(9940)(T,y,b,r),n(5233)(T,g,b,r),n(6182)(T,y,r,b,g,_),n(9523)(T,y,_),n(9796)(T,y,r),n(6494)(T,g),n(5117)(T,g),n(8456)(T),l.toFastProperties(T),l.toFastProperties(T.prototype),M({a:1}),M({b:2}),M({c:3}),M(1),M((function(){})),M(void 0),M(!1),M(new T(g)),_.setBounds(u.firstLineError,l.lastLineError),T}},7873:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r,a){var o=n(2524);o.isArray;function s(n){var i=this._promise=new e(t);n instanceof e&&i._propagateFrom(n,3),i._setOnCancel(this),this._values=n,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return o.inherits(s,a),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function t(n,a){var s=i(this._values,this._promise);if(s instanceof e){var l=(s=s._target())._bitField;if(this._values=s,0===(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(t,this._reject,void 0,this,a);if(0===(33554432&l))return 0!==(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=o.asArray(s)))0!==s.length?this._iterate(s):-5===a?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{}}}(a));else{var c=r("expecting an array or an iterable object but got "+o.classString(s)).reason();this._promise._rejectCallback(c,!1)}},s.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var r=this._promise,a=!1,o=null,s=0;s<n;++s){var l=i(t[s],r);o=l instanceof e?(l=l._target())._bitField:null,a?null!==o&&l.suppressUnhandledRejections():null!==o?0===(50397184&o)?(l._proxy(this,s),this._values[s]=l):a=0!==(33554432&o)?this._promiseFulfilled(l._value(),s):0!==(16777216&o)?this._promiseRe
2jected(l._reason(),s):this._promiseCancelled(s):a=this._promiseFulfilled(l,s)}a||r._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},5438:(e,t,n)=>{"use strict";e.exports=function(e,t){var i={},r=n(2524),a=n(7459),o=r.withAppended,s=r.maybeWrapAsError,l=r.canEvaluate,c=n(6503).TypeError,u={__isPromisified__:!0},d=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),h=function(e){return r.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function f(e){return!d.test(e)}function p(e){try{return!0===e.__isPromisified__}catch(t){return!1}}function g(e,t,n){var i=r.getDataPropertyOrDefault(e,t+n,u);return!!i&&p(i)}function m(e,t,n,i){for(var a=r.inheritedDataKeys(e),o=[],s=0;s<a.length;++s){var l=a[s],u=e[l],d=i===h||h(l);"function"!==typeof u||p(u)||g(e,l,t)||!i(l,u,e,d)||o.push(l,u)}return function(e,t,n){for(var i=0;i<e.length;i+=2){var r=e[i];if(n.test(r))for(var a=r.replace(n,""),o=0;o<e.length;o+=2)if(e[o]===a)throw new c("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",t))}}(o,t,n),o}var v;v=function(n,l,c,u,d,h){var f=Math.max(0,function(e){return"number"===typeof e.length?Math.max(Math.min(e.length,1024),0):0}(u)-1),p=function(e){for(var t=[e],n=Math.max(0,e-1-3),i=e-1;i>=n;--i)t.push(i);for(i=e+1;i<=3;++i)t.push(i);return t}(f),g="string"===typeof n||l===i;function m(e){var t,n=(t=e,r.filledRange(t,"_arg","")).join(", "),i=e>0?", ":"";return(g?"ret = callback.call(this, {{args}}, nodeback); break;\n":void 0===l?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n").replace("{{args}}",n).replace(", ",i)}var v="string"===typeof n?"this != null ? this['"+n+"'] : fn":"fn",b="'use strict';                                                \n        var ret = function (Parameters) {                                    \n            'use strict';                                                    \n            var len = arguments.length;                                      \n            var promise = new Promise(INTERNAL);                             \n            promise._captureStackTrace();                                    \n            var nodeback = nodebackForPromise(promise, "+h+");   \n            var ret;                                                         \n            var callback = tryCatch([GetFunctionCode]);                      \n            switch(len) {                                                    \n                [CodeForSwitchCase]                                          \n            }                                                                \n            if (ret === errorObj) {                                          \n                promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n            }                                                                \n            if (!promise._isFateSealed()) promise._setAsyncGuaranteed();     \n            return promise;                                                  \n        };                                                                   \n        notEnumerableProp(ret, '__isPromisified__', true);                   \n        return ret;                                                          \n    ".replace("[CodeForSwitchCase]",function(){for(var e="",t=0;t<p.length;++t)e+="case "+p[t]+":"+m(p[t]);return e+="                                                             \n        default:                                                             \n            var args = new Array(len + 1);                                   \n            var i = 0;                                                       \n            for (var i = 0; i < len; ++i) {                                  \n               args[i] = arguments[i];                                       \n            }                                                                \n            args[i] = nodeback;                                              \n            [CodeForCall]                                                    \n            break;                                                           \n        ".replace("[CodeForCall]",g?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n")}()).replace("[GetFunctionCode]",v);return b=b.replace("Parameters",function(e){return r.filledRange(Math.max(e,3),"_arg","")}(f)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",b)(e,u,l,o,s,a,r.tryCatch,r.errorObj,r.notEnumerableProp,t)};var b=l?v:function(n,l,c,u,d,h){var f=function(){return this}(),p=n;function g(){var r=l;l===i&&(r=this);var c=new e(t);c._captureStackTrace();var u="string"===typeof p&&this!==f?this[p]:n,d=a(c,h);try{u.apply(r,o(arguments,d))}catch(g){c._rejectCallback(s(g),!0,!0)}return c._isFateSealed()||c._setAsyncGuaranteed(),c}return"string"===typeof p&&(n=u),r.notEnumerableProp(g,"__isPromisified__",!0),g};function y(e,t,n,a,o){for(var s=new RegExp(t.replace(/([$])/,"\\$")+"$"),l=m(e,t,s,n),c=0,u=l.length;c<u;c+=2){var d=l[c],h=l[c+1],f=d+t;if(a===b)e[f]=b(d,i,d,h,t,o);else{var p=a(h,(function(){return b(d,i,d,h,t,o)}));r.notEnumerableProp(p,"__isPromisified__",!0),e[f]=p}}return r.toFastProperties(e),e}e.promisify=function(e,t){if("function"!==typeof e)throw new c("expecting a function but got "+r.classString(e));if(p(e))return e;var n=function(e,t,n){return b(e,t,void 0,e,null,n)}(e,void 0===(t=Object(t)).context?i:t.context,!!t.multiArgs);return r.copyDescriptors(e,n,f),n},e.promisifyAll=function(e,t){if("function"!==typeof e&&"object"!==typeof e)throw new c("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,i=t.suffix;"string"!==typeof i&&(i="Async");var a=t.filter;"function"!==typeof a&&(a=h);var o=t.promisifier;if("function"!==typeof o&&(o=b),!r.isIdentifier(i))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var s=r.inheritedDataKeys(e),l=0;l<s.length;++l){var u=e[s[l]];"constructor"!==s[l]&&r.isClass(u)&&(y(u.prototype,i,a,o,n),y(u,i,a,o,n))}return y(e,i,a,o,n)}}},9940:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r){var a,o=n(2524),s=o.isObject,l=n(829);"function"===typeof Map&&(a=Map);var c=function(){var e=0,t=0;function n(n,i){this[e]=n,this[e+t]=i,e++}return function(i){t=i.size,e=0;var r=new Array(2*i.size);
2return i.forEach(n,r),r}}();function u(e){var t,n=!1;if(void 0!==a&&e instanceof a)t=c(e),n=!0;else{var i=l.keys(e),r=i.length;t=new Array(2*r);for(var o=0;o<r;++o){var s=i[o];t[o]=e[s],t[o+r]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,-3)}function d(t){var n,a=i(t);return s(a)?(n=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new u(a).promise(),a instanceof e&&n._propagateFrom(a,2),n):r("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}o.inherits(u,t),u.prototype._init=function(){},u.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=function(e){for(var t=new a,n=e.length/2|0,i=0;i<n;++i){var r=e[n+i],o=e[i];t.set(r,o)}return t}(this._values);else{n={};for(var i=this.length(),r=0,o=this.length();r<o;++r)n[this._values[r+i]]=this._values[r]}return this._resolve(n),!0}return!1},u.prototype.shouldCopyValues=function(){return!1},u.prototype.getActualLength=function(e){return e>>1},e.prototype.props=function(){return d(this)},e.props=function(e){return d(e)}}},5293:e=>{"use strict";function t(e){this._capacity=e,this._length=0,this._front=0}t.prototype._willBeOverCapacity=function(e){return this._capacity<e},t.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},t.prototype.push=function(e,t,n){var i=this.length()+3;if(this._willBeOverCapacity(i))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var r=this._front+i-3;this._checkCapacity(i);var a=this._capacity-1;this[r+0&a]=e,this[r+1&a]=t,this[r+2&a]=n,this._length=i},t.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},t.prototype.length=function(){return this._length},t.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},t.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function(e,t,n,i,r){for(var a=0;a<r;++a)n[a+i]=e[a+t],e[a+t]=void 0}(this,0,this,t,this._front+this._length&t-1)},e.exports=t},5233:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r){var a=n(2524);function o(n,s){var l,c=i(n);if(c instanceof e)return(l=c).then((function(e){return o(e,l)}));if(null===(n=a.asArray(n)))return r("expecting an array or an iterable object but got "+a.classString(n));var u=new e(t);void 0!==s&&u._propagateFrom(s,3);for(var d=u._fulfill,h=u._reject,f=0,p=n.length;f<p;++f){var g=n[f];(void 0!==g||f in n)&&e.cast(g)._then(d,h,void 0,u,null)}return u}e.race=function(e){return o(e,void 0)},e.prototype.race=function(){return o(this,void 0)}}},6182:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r,a,o){var s=e._getDomain,l=n(2524),c=l.tryCatch;function u(t,n,i,r){this.constructor$(t);var o=s();this._fn=null===o?n:l.domainBind(o,n),void 0!==i&&(i=e.resolve(i))._attachCancellationCallback(this),this._initialValue=i,this._currentCancellable=null,this._eachValues=r===a?Array(this._length):0===r?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function d(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function h(e,t,n,r){return"function"!==typeof t?i("expecting a function but got "+l.classString(t)):new u(e,t,n,r).promise()}function f(t){this.accum=t,this.array._gotAccum(t);var n=r(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(t){var n,i=this.array,r=i._promise,a=c(i._fn);r._pushContext(),(n=void 0!==i._eachValues?a.call(r._boundValue(),t,this.index,this.length):a.call(r._boundValue(),this.accum,t,this.index,this.length))instanceof e&&(i._currentCancellable=n);var s=r._popContext();return o.checkForgottenReturns(n,s,void 0!==i._eachValues?"Promise.each":"Promise.reduce",r),n}l.inherits(u,t),u.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==a&&this._eachValues.push(e)},u.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},u.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},u.prototype._iterate=function(t){var n,i;this._values=t;var r=t.length;if(void 0!==this._initialValue?(n=this._initialValue,i=0):(n=e.resolve(t[0]),i=1),this._currentCancellable=n,!n.isRejected())for(;i<r;++i){var a={accum:null,value:t[i],index:i,length:r,array:this};n=n._then(f,void 0,void 0,a,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(d,d,void 0,n,this)},e.prototype.reduce=function(e,t){return h(this,e,t,null)},e.reduce=function(e,t,n,i){return h(e,t,n,i)}}},4309:(e,t,n)=>{"use strict";var i,r=n(2524),a=r.getNativePromise();if(r.isNode&&"undefined"===typeof MutationObserver){var o=n.g.setImmediate,s=process.nextTick;i=r.isRecentNode?function(e){o.call(n.g,e)}:function(e){s.call(process,e)}}else if("function"===typeof a&&"function"===typeof a.resolve){var l=a.resolve();i=function(e){l.then(e)}}else i="undefined"===typeof MutationObserver||"undefined"!==typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!==typeof setImmediate?function(e){setImmediate(e)}:"undefined"!==typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,i=document.createElement("div");new MutationObserver((function(){e.classList.toggle("foo"),n=!1})).observe(i,t);return function(r){var a=new MutationObserver((function(){a.disconnect(),r()}));a.observe(e,t),n||(n=!0,i.classList.toggle("foo"))}}();e.exports=i}
2,9523:(e,t,n)=>{"use strict";e.exports=function(e,t,i){var r=e.PromiseInspection;function a(e){this.constructor$(e)}n(2524).inherits(a,t),a.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseFulfilled=function(e,t){var n=new r;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},a.prototype._promiseRejected=function(e,t){var n=new r;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},e.settle=function(e){return i.deprecated(".settle()",".reflect()"),new a(e).promise()},e.prototype.settle=function(){return e.settle(this)}}},9796:(e,t,n)=>{"use strict";e.exports=function(e,t,i){var r=n(2524),a=n(6503).RangeError,o=n(6503).AggregateError,s=r.isArray,l={};function c(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function u(e,t){if((0|t)!==t||t<0)return i("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var n=new c(e),r=n.promise();return n.setHowMany(t),n.init(),r}r.inherits(c,t),c.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(e){this._howMany=e},c.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)}
2,c.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},c.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new o,t=this.length();t<this._values.length;++t)this._values[t]!==l&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(e){this._values.push(e)},c.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new a(t)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(e,t){return u(e,t)},e.prototype.some=function(e){return u(this,e)},e._SomePromiseArray=c}},8656:e=>{"use strict";e.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},a=t.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},o=t.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},e.prototype.isPending=function(){return o.call(this._target())},e.prototype.isRejected=function(){return a.call(this._target())},e.prototype.isFulfilled=function(){return r.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),i.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},5138:(e,t,n)=>{"use strict";e.exports=function(e,t){var i=n(2524),r=i.errorObj,a=i.isObject;var o={}.hasOwnProperty;return function(n,s){if(a(n)){if(n instanceof e)return n;var l=function(e){try{return function(e){return e.then}(e)}catch(t){return r.e=t,r}}(n);if(l===r){s&&s._pushContext();var c=e.reject(l.e);return s&&s._popContext(),c}if("function"===typeof l){if(function(e){try{return o.call(e,"_promise0")}catch(t){return!1}}(n)){c=new e(t);return n._then(c._fulfill,c._reject,void 0,c,null),c}return function(n,a,o){var s=new e(t),l=s;o&&o._pushContext();s._captureStackTrace(),o&&o._popContext();var c=!0,u=i.tryCatch(a).call(n,d,h);c=!1,s&&u===r&&(s._rejectCallback(u.e,!0,!0),s=null);function d(e){s&&(s._resolveCallback(e),s=null)}function h(e){s&&(s._rejectCallback(e,c,!0),s=null)}return l}(n,l,s)}}return n}}},6962:(e,t,n)=>{"use strict";e.exports=function(e,t,i){var r=n(2524),a=e.TimeoutError;function o(e){this.handle=e}o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return l(+this).thenReturn(e)},l=e.delay=function(n,r){var a,l;return void 0!==r?(a=e.resolve(r)._then(s,null,null,n,void 0),i.cancellation()&&r instanceof e&&a._setOnCancel(r)):(a=new e(t),l=setTimeout((function(){a._fulfill()}),+n),i.cancellation()&&a._setOnCancel(new o(l)),a._captureStackTrace()),a._setAsyncGuaranteed(),a};e.prototype.delay=function(e){return l(e,this)};function c(e){return clearTimeout(this.handle),e}function u(e){throw clearTimeout(this.handle),e}e.prototype.timeout=function(e,t){var n,s;e=+e;var l=new o(setTimeout((function(){n.isPending()&&function(e,t,n){var i;i="string"!==typeof t?t instanceof Error?t:new a("operation timed out"):new a(t),r.markAsOriginatingFromRejection(i),e._attachExtraTrace(i),e._reject(i),null!=n&&n.cancel()}(n,t,s)}),e));return i.cancellation()?(s=this.then(),(n=s._then(c,u,void 0,l,void 0))._setOnCancel(l)):n=this._then(c,u,void 0,l,void 0),n}}},8182:(e,t,n)=>{"use strict";e.exports=function(e,t,i,r,a,o){var s=n(2524),l=n(6503).TypeError,c=n(2524).inherits,u=s.errorObj,d=s.tryCatch,h={};function f(e){setTimeout((function(){throw e}
2),0)}function p(t,n){var r=0,o=t.length,s=new e(a);return function a(){if(r>=o)return s._fulfill();var l=function(e){var t=i(e);return t!==e&&"function"===typeof e._isDisposable&&"function"===typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(t[r++]);if(l instanceof e&&l._isDisposable()){try{l=i(l._getDisposer().tryDispose(n),t.promise)}catch(c){return f(c)}if(l instanceof e)return l._then(a,f,null,null,null)}a()}(),s}function g(e,t,n){this._data=e,this._promise=t,this._context=n}function m(e,t,n){this.constructor$(e,t,n)}function v(e){return g.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function b(e){this.length=e,this.promise=null,this[e-1]=null}g.prototype.data=function(){return this._data},g.prototype.promise=function(){return this._promise},g.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():h},g.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var i=t!==h?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,i},g.isDisposer=function(e){return null!=e&&"function"===typeof e.resource&&"function"===typeof e.tryDispose},c(m,g),m.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},b.prototype._resultCancelled=function(){for(var t=this.length,n=0;n<t;++n){var i=this[n];i instanceof e&&i.cancel()}},e.using=function(){var n=arguments.length;if(n<2)return t("you must pass at least 2 arguments to Promise.using");var r,a=arguments[n-1];if("function"!==typeof a)return t("expecting a function but got "+s.classString(a));var l=!0;2===n&&Array.isArray(arguments[0])?(n=(r=arguments[0]).length,l=!1):(r=arguments,n--);for(var c=new b(n),h=0;h<n;++h){var f=r[h];if(g.isDisposer(f)){var m=f;(f=f.promise())._setDisposable(m)}else{var y=i(f);y instanceof e&&(f=y._then(v,null,null,{resources:c,index:h},void 0))}c[h]=f}var x=new Array(c.length);for(h=0;h<x.length;++h)x[h]=e.resolve(c[h]).reflect();var w=e.all(x).then((function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return u.e=n.error(),u;if(!n.isFulfilled())return void w.cancel();e[t]=n.value()}_._pushContext(),a=d(a);var i=l?a.apply(void 0,e):a(e),r=_._popContext();return o.checkForgottenReturns(i,r,"Promise.using",_),i})),_=w.lastly((function(){var t=new e.PromiseInspection(w);return p(c,t)}));return c.promise=_,_._setOnCancel(c),_},e.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},e.prototype.disposer=function(e){if("function"===typeof e)return new m(e,this,r());throw new l}}},2524:function(e,t,n){"use strict";var i=n(829),r="undefined"==typeof navigator,a={e:{}},o,s="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:void 0!==this?this:null;function l(){try{var e=o;return o=null,e.apply(this,arguments)}catch(t){return a.e=t,a}}function c(e){return o=e,l}var u=function(e,t){var n={}.hasOwnProperty;function i(){for(var i in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,i)&&"$"!==i.charAt(i.length-1)&&(this[i+"$"]=t.prototype[i])}return i.prototype=t.prototype,e.prototype=new i,e.prototype};function d(e){return null==e||!0===e||!1===e||"string"===typeof e||"number"===typeof e}function h(e){return"function"===typeof e||"object"===typeof e&&null!==e}function f(e){return d(e)?new Error(k(e)):e}function p(e,t){var n,i=e.length,r=new Array(i+1);for(n=0;n<i;++n)r[n]=e[n];return r[n]=t,r}function g(e,t,n){if(!i.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function m(e,t,n){if(d(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return i.defineProperty(e,t,r),e}function v(e){throw e}var b=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(i.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var r=[],a=Object.create(null);null!=e&&!t(e);){var o;try{o=n(e)}catch(u){return r}for(var s=0;s<o.length;++s){var l=o[s];if(!a[l]){a[l]=!0;var c=Object.getOwnPropertyDescriptor(e,l);null!=c&&null==c.get&&null==c.set&&r.push(l)}}e=i.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var a in n)if(r.call(n,a))i.push(a);else{for(var o=0;o<e.length;++o)if(r.call(e[o],a))continue e;i.push(a)}return i}}(),y=/this\s*\.\s*\S+\s*=/;function x(e){try{if("function"===typeof e){var t=i.names(e.prototype),n=i.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),a=y.test(e+"")&&i.names(e).length>0;if(n||r||a)return!0}return!1}catch(o){return!1}}function w(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}var _=/^[a-z$_][a-z$_0-9]*$/i;function D(e){return _.test(e)}function S(e,t,n){for(var i=new Array(e),r=0;r<e;++r)i[r]=t+r+n;return i}function k(e){try{return e+""}
2catch(t){return"[no string representation]"}}function C(e){return null!==e&&"object"===typeof e&&"string"===typeof e.message&&"string"===typeof e.name}function A(e){try{m(e,"isOperational",!0)}catch(t){}}function T(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function E(e){return C(e)&&i.propertyIsWritable(e,"stack")}var N="stack"in new Error?function(e){return E(e)?e:new Error(k(e))}:function(e){if(E(e))return e;try{throw new Error(k(e))}catch(t){return t}};function M(e){return{}.toString.call(e)}function P(e,t,n){for(var r=i.names(e),a=0;a<r.length;++a){var o=r[a];if(n(o))try{i.defineProperty(t,o,i.getDescriptor(e,o))}catch(s){}}}var U=function(e){return i.isArray(e)?e:null};if("undefined"!==typeof Symbol&&Symbol.iterator){var j="function"===typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],i=e[Symbol.iterator]();!(t=i.next()).done;)n.push(t.value);return n};U=function(e){return i.isArray(e)?e:null!=e&&"function"===typeof e[Symbol.iterator]?j(e):null}}var F="undefined"!==typeof process&&"[object process]"===M(process).toLowerCase(),R="undefined"!==typeof process&&!0;function O(e){return R?{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_JWT_SECRET:"122Codeman!"}[e]:void 0}function I(){if("function"===typeof Promise)try{var e=new Promise((function(){}));if("[object Promise]"==={}.toString.call(e))return Promise}catch(t){}}function L(e,t){return e.bind(t)}var B={isClass:x,isIdentifier:D,inheritedDataKeys:b,getDataPropertyOrDefault:g,thrower:v,isArray:i.isArray,asArray:U,notEnumerableProp:m,isPrimitive:d,isObject:h,isError:C,canEvaluate:r,errorObj:a,tryCatch:c,inherits:u,withAppended:p,maybeWrapAsError:f,toFastProperties:w,filledRange:S,toString:k,canAttachTrace:E,ensureErrorObject:N,originatesFromRejection:T,markAsOriginatingFromRejection:A,classString:M,copyDescriptors:P,hasDevTools:"undefined"!==typeof chrome&&chrome&&"function"===typeof chrome.loadTimes,isNode:F,hasEnvVariables:R,env:O,global:s,getNativePromise:I,domainBind:L};B.isRecentNode=B.isNode&&function(){var e=process.versions.node.split(".").map(Number);return 0===e[0]&&e[1]>10||e[0]>0}(),B.isNode&&B.toFastProperties(process);try{throw new Error}catch(W){B.lastLineError=W}e.exports=B},889:(e,t)=>{function n(e){return"function"==typeof e?e():e}t.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return t.none},flatMap:function(){return t.none},filter:function(){return t.none},toArray:function(){return[]},orElse:n,valueOrElse:n}),t.some=function(e){return new i(e)};var i=function(e){this._value=e};i.prototype.value=function(){return this._value},i.prototype.isNone=function(){return!1},i.prototype.isSome=function(){return!0},i.prototype.map=function(e){return new i(e(this._value))},i.prototype.flatMap=function(e){return e(this._value)},i.prototype.filter=function(e){return e(this._value)?this:t.none},i.prototype.toArray=function(){return[this._value]},i.prototype.orElse=function(e){return this},i.prototype.valueOrElse=function(e){return this._value},t.isOption=function(e){return e===t.none||e instanceof i},t.fromNullable=function(e){return null==e?t.none:new i(e)}},1497:(e,t,n)=>{"use strict";var i=n(3218);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,o){if(o!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5751:(e,t,n)=>{"use strict";var i=n(5043),r=n(7904);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function l(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?i.useLayoutEffect:i.useEffect;function p(e){var t=i.useRef(e);return f((function(){t.current=e})),i.useCallback((function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.current.apply(void 0,n)}),[])}var g=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],m={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},v=function(e){var t=Object.fromEntries(Object.entries(e).filter((function(e){return void 0!==d(e,2)[1]}))),n=i.useMemo((function(){return o(o({},m),t)}),[e]),a=n.ref,s=n.startOnMount,l=n.enableReinitialize,c=n.delay,h=n.onEnd,f=n.onStart,v=n.onPauseResume,b=n.onReset,y=n.onUpdate,x=u(n,g),w=i.useRef(),_=i.useRef(),D=i.useRef(!1),S=p((function(){return function(e,t){var n=t.decimal,i=t.decimals,a=t.duration,o=t.easingFn,s=t.end,l=t.formattingFn,c=t.numerals,u=t.prefix,d=t.separator,h=t.start,f=t.suffix,p=t.useEasing,g=t.useGrouping,m=t.useIndianSeparators,v=t.enableScrollSpy,b=t.scrollSpyDelay,y=t.scrollSpyOnce,x=t.plugin;return new r.CountUp(e,s,{startVal:h,duration:a,decimal:n,decimalPlaces:i,easingFn:o,formattingFn:l,numerals:c,separator:d,prefix:u,suffix:f,plugin:x,useEasing:p,useIndianSeparators:m,useGrouping:g,enableScrollSpy:v,scrollSpyDelay:b,scrollSpyOnce:y})}("string"===typeof a?a:a.current,x)})),k=p((function(e){var t=w.current;if(t&&!e)return t;var n=S();return w.current=n,n})),C=p((function(){var e=function(){return k(!0).start((function(){null===h||void 0===h||h({pauseResume:A,reset:T,start:N,update:E})}))};c&&c>0?_.current=setTimeout(e,1e3*c):e(),null===f||void 0===f||f({pauseResume:A,reset:T,update:E})})),A=p((function(){k().pauseResume(),null===v||void 0===v||v({reset:T,start:N,update:E})})),T=p((function(){k().el&&(_.current&&clearTimeout(_.current),k().reset(),null===b||void 0===b||b({pauseResume:A,start:N,update:E}))})),E=p((function(e){k().update(e),null===y||void 0===y||y({pauseResume:A,reset:T,start:N})}
2)),N=p((function(){T(),C()})),M=p((function(e){s&&(e&&T(),C())}));return i.useEffect((function(){D.current?l&&M(!0):(D.current=!0,M())}),[l,D,M,c,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.formattingFn]),i.useEffect((function(){return function(){T()}}),[T]),{start:N,pauseResume:A,reset:T,update:E,getCountUp:k}},b=["className","redraw","containerProps","children","style"]},2730:(e,t,n)=>{"use strict";var i=n(5043),r=n(8853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function g(e,t,n,i,r,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,i){var r=m.hasOwnProperty(t)?m[t]:null;(null!==r?0!==r.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null===t||"undefined"===typeof t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),_=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),A=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var U=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function F(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}var R,O=Object.assign;function I(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var L=!1;function B(e,t){if(!e||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var i=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){i=c}e.call(t.prototype)}else{try{throw Error()}catch(c){i=c}e()}}catch(c){if(c&&i&&"string"===typeof c.stack){for(var r=c.stack.split("\n"),a=i.stack.split("\n"),o=r.length-1,s=a.length-1;1<=o&&0<=s&&r[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(r[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||r[o]!==a[s]){var l="\n"+r[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function W(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case D:return"Fragment";case _:return"Portal";case k:return"Profiler";case S:return"StrictMode";case E:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=q(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=H(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));
vendor: 23,828 bytes, line 2
2if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),i=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=ge(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ve=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,De=null,Se=null;function ke(e){if(e=yr(e)){if("function"!==typeof _e)throw Error(a(280));var t=e.stateNode;t&&(t=wr(t),_e(e.stateNode,e.type,t))}}function Ce(e){De?Se?Se.push(e):Se=[e]:De=e}function Ae(){if(De){var e=De,t=Se;if(Se=De=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Te(e,t){return e(t)}function Ee(){}var Ne=!1;function Me(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Te(e,t,n)}finally{Ne=!1,(null!==De||null!==Se)&&(Ee(),Ae())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var i=wr(n);if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(u)try{var je={};Object.defineProperty(je,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ue){Ue=!1}function Fe(e,t,n,i,r,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Re=!1,Oe=null,Ie=!1,Le=null,Be={onError:function(e){Re=!0,Oe=e}};function We(e,t,n,i,r,a,o,s,l){Re=!1,Oe=null,Fe.apply(Be,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(ze(e)!==e)throw Error(a(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return He(r),e;if(o===i)return He(r),t;o=o.sibling}throw Error(a(188))}if(n.return!==i.return)n=r,i=o;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,i=o;break}if(l===i){s=!0,i=r,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,i=r;break}if(l===i){s=!0,i=o,n=r;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==i)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=r.unstable_scheduleCallback,Xe=r.unstable_cancelCallback,Ke=r.unstable_shouldYield,$e=r.unstable_requestPaint,Qe=r.unstable_now,Ze=r.unstable_getCurrentPriorityLevel,Je=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,it=r.unstable_IdlePriority,rt=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~r;0!==s?i=dt(s):0!==(a&=o)&&(i=dt(a))}else 0!==(o=n&~r)?i=dt(o):0!==a&&(i=dt(a));if(0===i)return 0;if(0!==t&&t!==i&&0===(t&r)&&((r=i&-i)>=(a=t&-t)||16===r&&0!==(4194240&a)))return t;if(0!==(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)r=1<<(n=31-ot(t)),i|=e[n],t&=~r;return i}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-ot(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,_t,Dt,St,kt,Ct=!1,At=[],Tt=null,Et=null,Nt=null,Mt=new Map,Pt=new Map,Ut=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Rt(e,t,n,i,r,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[r]},null!==t&&(null!==(t=yr(t))&&_t(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Ot(e){var t=br(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void kt(e.priority,(function(){Dt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yr(n))&&_t(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);xe=i,n.target.dispatchEvent(i),xe=null,t.shift()}return!0}function Lt(e,t,n){It(e)&&n.delete(t)}function Bt(){Ct=!1,null!==Tt&&It(Tt)&&(Tt=null),null!==Et&&It(Et)&&(Et=null),null!==Nt&&It(Nt)&&(Nt=null),Mt.forEach(Lt),Pt.forEach(Lt)}function Wt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bt)))}function zt(e){function t(t){return Wt(t,e)}if(0<At.length){Wt(At[0],e);for(var n=1;n<At.length;n++){var i=At[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Tt&&Wt(Tt,e),null!==Et&&Wt(Et,e),null!==Nt&&Wt(Nt,e),Mt.forEach(t),Pt.forEach(t),n=0;n<Ut.length;n++)(i=Ut[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Ut.length&&null===(n=Ut[0]).blockedOn;)Ot(n),null===n.blockedOn&&Ut.shift()}var Vt=x.ReactCurrentBatchConfig,Ht=!0;function qt(e,t,n,i){var r=yt,a=Vt.transition;Vt.transition=null;try{yt=1,Yt(e,t,n,i)}finally{yt=r,Vt.transition=a}}function Gt(e,t,n,i){var r=yt,a=Vt.transition;Vt.transition=null;try{yt=4,Yt(e,t,n,i)}finally{yt=r,Vt.transition=a}}function Yt(e,t,n,i){if(Ht){var r=Kt(e,t,n,i);if(null===r)Hi(e,t,i,Xt,n),Ft(e,i);else if(function(e,t,n,i,r){switch(t){case"focusin":return Tt=Rt(Tt,e,t,n,i,r),!0;case"dragenter":return Et=Rt(Et,e,t,n,i,r),!0;case"mouseover":return Nt=Rt(Nt,e,t,n,i,r),!0;case"pointerover":var a=r.pointerId;return Mt.set(a,Rt(Mt.get(a)||null,e,t,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,Pt.set(a,Rt(Pt.get(a)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i))i.stopPropagation();else if(Ft(e,i),4&t&&-1<jt.indexOf(e)){for(;null!==r;){var a=yr(r);if(null!==a&&wt(a),null===(a=Kt(e,t,n,i))&&Hi(e,t,i,Xt,n),a===r)break;r=a}null!==r&&i.stopPropagation()}else Hi(e,t,i,null,n)}}var Xt=null;function Kt(e,t,n,i){if(Xt=null,null!==(e=br(e=we(i))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function $t(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,i=n.length,r="value"in Qt?Qt.value:Qt.textContent,a=r.length;for(e=0;e<i&&n[e]===r[e];e++);var o=i-e;for(t=1;t<=o&&n[i-t]===r[a-t];t++);return Jt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,i,r,a){for(var o in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(r):r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=O({},cn,{view:0,detail:0}),hn=an(dn),fn=O({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=an(fn),gn=an(O({},fn,{dataTransfer:0})),mn=an(O({},dn,{relatedTarget:0})),vn=an(O({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=O({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(bn),xn=an(O({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Dn[e])&&!!t[e]}function kn(){return Sn}var Cn=O({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=an(Cn),Tn=an(O({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=an(O({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Nn=an(O({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=O({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=an(Mn),Un=[9,13,27,32],jn=u&&"CompositionEvent"in window,Fn=null;u&&"documentMode"in document&&(Fn=document.documentMode);var Rn=u&&"TextEvent"in window&&!Fn,On=u&&(!jn||Fn&&8<Fn&&11>=Fn),In=String.fromCharCode(32),Ln=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Un.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function qn(e,t,n,i){Ce(i),0<(t=Gi(t,"onChange")).length&&(n=new un("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function Xn(e){Ii(e,0)}function Kn(e){if(Y(xr(e)))return e}function $n(e,t){if("change"===e)return t}var Qn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),Jn="function"===typeof ei.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function ti(){Gn&&(Gn.detachEvent("onpropertychange",ni),Yn=Gn=null)}function ni(e){if("value"===e.propertyName&&Kn(Yn)){var t=[];qn(t,Yn,e,we(e)),Me(Xn,t)}}function ii(e,t,n){"focusin"===e?(ti(),Yn=n,(Gn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function ri(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Yn)}function ai(e,t){if("click"===e)return Kn(t)}function oi(e,t){if("input"===e||"change"===e)return Kn(t)}var si="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function li(e,t){if(si(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!d.call(t,r)||!si(e[r],t[r]))return!1}return!0}function ci(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ui(e,t){var n,i=ci(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ci(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hi(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(i){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function fi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pi(e){var t=hi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&fi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,a=Math.min(i.start,r);i=void 0===i.end?a:Math.min(i.end,r),!e.extend&&a>i&&(r=i,i=a,a=r),r=ui(n,a);var o=ui(n,i);r&&o&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gi=u&&"documentMode"in document&&11>=document.documentMode,mi=null,vi=null,bi=null,yi=!1;function xi(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yi||null==mi||mi!==X(i)||("selectionStart"in(i=mi)&&fi(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},bi&&li(bi,i)||(bi=i,0<(i=Gi(vi,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=mi)))}function wi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _i={animationend:wi("Animation","AnimationEnd"),animationiteration:wi("Animation","AnimationIteration"),animationstart:wi("Animation","AnimationStart"),transitionend:wi("Transition","TransitionEnd")},Di={},Si={};function ki(e){if(Di[e])return Di[e];if(!_i[e])return e;var t,n=_i[e];for(t in n)if(n.hasOwnProperty(t)&&t in Si)return Di[e]=n[t];return e}u&&(Si=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);var Ci=ki("animationend"),Ai=ki("animationiteration"),Ti=ki("animationstart"),Ei=ki("transitionend"),Ni=new Map,Mi="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pi(e,t){Ni.set(e,t),l(t,[e])}for(var Ui=0;Ui<Mi.length;Ui++){var ji=Mi[Ui];Pi(ji.toLowerCase(),"on"+(ji[0].toUpperCase()+ji.slice(1)))}Pi(Ci,"onAnimationEnd"),Pi(Ai,"onAnimationIteration"),Pi(Ti,"onAnimationStart"),Pi("dblclick","onDoubleClick"),Pi("focusin","onFocus"),Pi("focusout","onBlur"),Pi(Ei,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ri=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fi));function Oi(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,r,o,s,l,c){if(We.apply(this,arguments),Re){if(!Re)throw Error(a(198));var u=Oe;Re=!1,Oe=null,Ie||(Ie=!0,Le=u)}}(i,t,void 0,e),e.currentTarget=null}function Ii(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var s=i[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&r.isPropagationStopped())break e;Oi(r,s,c),a=l}else for(o=0;o<i.length;o++){if(l=(s=i[o]).instance,c=s.currentTarget,s=s.listener,l!==a&&r.isPropagationStopped())break e;Oi(r,s,c),a=l}}}if(Ie)throw e=Le,Ie=!1,Le=null,e}function Li(e,t){var n=t[gr];void 0===n&&(n=t[gr]=new Set);var i=e+"__bubble";n.has(i)||(Vi(t,e,2,!1),n.add(i))}function Bi(e,t,n){var i=0;t&&(i|=4),Vi(n,e,i,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function zi(e){if(!e[Wi]){e[Wi]=!0,o.forEach((function(t){"selectionchange"!==t&&(Ri.has(t)||Bi(t,!1,e),Bi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wi]||(t[Wi]=!0,Bi("selectionchange",!1,t))}}function Vi(e,t,n,i){switch($t(t)){case 1:var r=qt;break;case 4:r=Gt;break;default:r=Yt}n=r.bind(null,t,n,e),r=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),i?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Hi(e,t,n,i,r){var a=i;if(0===(1&t)&&0===(2&t)&&null!==i)e:for(;;){if(null===i)return;var o=i.tag;if(3===o||4===o){var s=i.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===o)for(o=i.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;o=o.return}for(;null!==s;){if(null===(o=br(s)))return;if(5===(l=o.tag)||6===l){i=a=o;continue e}s=s.parentNode}}i=i.return}Me((function(){var i=a,r=we(n),o=[];e:{var s=Ni.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case Ci:case Ai:case Ti:l=vn;break;case Ei:l=Nn;break;case"scroll":l=hn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=i;null!==p;){var g=(f=p).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==h&&(null!=(g=Pe(p,h))&&u.push(qi(p,g,f)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,r),o.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!br(c)&&!c[pr])&&(l||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=i,null!==(c=(c=n.relatedTarget||n.toElement)?br(c):null)&&(c!==(d=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=i),l!==c)){if(u=pn,g="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,g="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:xr(l),f=null==c?s:xr(c),(s=new u(g,p+"leave",l,n,r)).target=d,s.relatedTarget=f,g=null,br(r)===i&&((u=new u(h,p+"enter",c,n,r)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Yi(f))p++;for(f=0,g=h;g;g=Yi(g))f++;for(;0<p-f;
vendor: 86,725 bytes, line 2
2)u=Yi(u),p--;for(;0<f-p;)h=Yi(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Yi(u),h=Yi(h)}u=null}else u=null;null!==l&&Xi(o,s,l,u,!1),null!==c&&null!==d&&Xi(o,d,c,u,!0)}if("select"===(l=(s=i?xr(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=$n;else if(Hn(s))if(Qn)m=oi;else{m=ri;var v=ii}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ai);switch(m&&(m=m(e,i))?qn(o,m,n,r):(v&&v(e,s,i),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=i?xr(i):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(mi=v,vi=i,bi=null);break;case"focusout":bi=vi=mi=null;break;case"mousedown":yi=!0;break;case"contextmenu":case"mouseup":case"dragend":yi=!1,xi(o,n,r);break;case"selectionchange":if(gi)break;case"keydown":case"keyup":xi(o,n,r)}var b;if(jn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(On&&"ko"!==n.locale&&(zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&zn&&(b=en()):(Zt="value"in(Qt=r)?Qt.value:Qt.textContent,zn=!0)),0<(v=Gi(i,y)).length&&(y=new xn(y,e,null,n,r),o.push({event:y,listeners:v}),b?y.data=b:null!==(b=Wn(n))&&(y.data=b))),(b=Rn?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Ln=!0,In);case"textInput":return(e=t.data)===In&&Ln?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!jn&&Bn(e,t)?(e=en(),Jt=Zt=Qt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=Gi(i,"onBeforeInput")).length&&(r=new xn("onBeforeInput","beforeinput",null,n,r),o.push({event:r,listeners:i}),r.data=b))}Ii(o,t)}))}function qi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gi(e,t){for(var n=t+"Capture",i=[];null!==e;){var r=e,a=r.stateNode;5===r.tag&&null!==a&&(r=a,null!=(a=Pe(e,n))&&i.unshift(qi(e,a,r)),null!=(a=Pe(e,t))&&i.push(qi(e,a,r))),e=e.return}return i}function Yi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xi(e,t,n,i,r){for(var a=t._reactName,o=[];null!==n&&n!==i;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===i)break;5===s.tag&&null!==c&&(s=c,r?null!=(l=Pe(n,a))&&o.unshift(qi(n,l,s)):r||null!=(l=Pe(n,a))&&o.push(qi(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Ki=/\r\n?/g,$i=/\u0000|\uFFFD/g;function Qi(e){return("string"===typeof e?e:""+e).replace(Ki,"\n").replace($i,"")}function Zi(e,t,n){if(t=Qi(t),Qi(e)!==t&&n)throw Error(a(425))}function Ji(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ir="function"===typeof setTimeout?setTimeout:void 0,rr="function"===typeof clearTimeout?clearTimeout:void 0,ar="function"===typeof Promise?Promise:void 0,or="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ar?function(e){return ar.resolve(null).then(e).catch(sr)}:ir;function sr(e){setTimeout((function(){throw e}))}function lr(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return e.removeChild(r),void zt(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);zt(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ur(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,fr="__reactProps$"+dr,pr="__reactContainer$"+dr,gr="__reactEvents$"+dr,mr="__reactListeners$"+dr,vr="__reactHandles$"+dr;function br(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ur(e);null!==e;){if(n=e[hr])return n;e=ur(e)}return t}n=(e=n).parentNode}return null}function yr(e){return!(e=e[hr]||e[pr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wr(e){return e[fr]||null}var _r=[],Dr=-1;function Sr(e){return{current:e}}function kr(e){0>Dr||(e.current=_r[Dr],_r[Dr]=null,Dr--)}function Cr(e,t){Dr++,_r[Dr]=e.current,e.current=t}var Ar={},Tr=Sr(Ar),Er=Sr(!1),Nr=Ar;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Ar;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ur(){kr(Er),kr(Tr)}function jr(e,t,n){if(Tr.current!==Ar)throw Error(a(168));Cr(Tr,t),Cr(Er,n)}function Fr(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!==typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(a(108,V(e)||"Unknown",r));return O({},n,i)}function Rr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ar,Nr=Tr.current,Cr(Tr,e),Cr(Er,Er.current),!0}function Or(e,t,n){var i=e.stateNode;if(!i)throw Error(a(169));n?(e=Fr(e,t,Nr),i.__reactInternalMemoizedMergedChildContext=e,kr(Er),kr(Tr),Cr(Tr,e)):kr(Er),Cr(Er,n)}var Ir=null,Lr=!1,Br=!1;function Wr(e){null===Ir?Ir=[e]:Ir.push(e)}function zr(){if(!Br&&null!==Ir){Br=!0;var e=0,t=yt;try{var n=Ir;for(yt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Ir=null,Lr=!1}catch(r){throw null!==Ir&&(Ir=Ir.slice(e+1)),Ye(Je,zr),r}finally{yt=t,Br=!1}}return null}var Vr=[],Hr=0,qr=null,Gr=0,Yr=[],Xr=0,Kr=null,$r=1,Qr="";function Zr(e,t){Vr[Hr++]=Gr,Vr[Hr++]=qr,qr=e,Gr=t}function Jr(e,t,n){Yr[Xr++]=$r,Yr[Xr++]=Qr,Yr[Xr++]=Kr,Kr=e;var i=$r;e=Qr;var r=32-ot(i)-1;i&=~(1<<r),n+=1;var a=32-ot(t)+r;if(30<a){var o=r-r%5;a=(i&(1<<o)-1).toString(32),i>>=o,r-=o,$r=1<<32-ot(t)+r|n<<r|i,Qr=a+e}else $r=1<<a|n<<r|i,Qr=e}function ea(e){null!==e.return&&(Zr(e,1),Jr(e,1,0))}function ta(e){for(;e===qr;)qr=Vr[--Hr],Vr[Hr]=null,Gr=Vr[--Hr],Vr[Hr]=null;for(;e===Kr;)Kr=Yr[--Xr],Yr[Xr]=null,Qr=Yr[--Xr],Yr[Xr]=null,$r=Yr[--Xr],Yr[Xr]=null}var na=null,ia=null,ra=!1,aa=null;function oa(e,t){var n=Mc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ia=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ia=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Kr?{id:$r,overflow:Qr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ia=null,!0);default:return!1}}function la(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ca(e){if(ra){var t=ia;if(t){var n=t;if(!sa(e,t)){if(la(e))throw Error(a(418));t=cr(n.nextSibling);var i=na;t&&sa(e,t)?oa(i,n):(e.flags=-4097&e.flags|2,ra=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ra=!1,na=e}}}function ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ra)return ua(e),ra=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=ia)){if(la(e))throw ha(),Error(a(418));for(;t;)oa(e,t),t=cr(t.nextSibling)}if(ua(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ia=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ia=null}}else ia=na?cr(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ia;e;)e=cr(e.nextSibling)}function fa(){ia=na=null,ra=!1}function pa(e){null===aa?aa=[e]:aa.push(e)}var ga=x.ReactCurrentBatchConfig;function ma(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var i=n.stateNode}if(!i)throw Error(a(147,e));var r=i,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function va(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ba(e){return(0,e._init)(e._payload)}function ya(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Uc(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Oc(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,i){var a=n.type;return a===D?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===P&&ba(a)===t.type)?((i=r(t,n.props)).ref=ma(e,t,n),i.return=e,i):((i=jc(n.type,n.key,n.props,null,e.mode,i)).ref=ma(e,t,n),i.return=e,i)}function u(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ic(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,a){return null===t||7!==t.tag?((t=Fc(n,e.mode,i,a)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Oc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=jc(t.type,t.key,t.props,null,e.mode,n)).ref=ma(e,null,t),n.return=e,n;case _:return(t=Ic(t,e.mode,n)).return=e,t;case P:return h(e,(0,t._init)(t._payload),n)}if(te(t)||F(t))return(t=Fc(t,e.mode,n,null)).return=e,t;va(e,t)}return null}function f(e,t,n,i){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===r?c(e,t,n,i):null;case _:return n.key===r?u(e,t,n,i):null;case P:return f(e,t,(r=n._init)(n._payload),i)}if(te(n)||F(n))return null!==r?null:d(e,t,n,i,null);va(e,n)}return null}function p(e,t,n,i,r){if("string"===typeof i&&""!==i||"number"===typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"===typeof i&&null!==i){switch(i.$$typeof){case w:return c(t,e=e.get(null===i.key?n:i.key)||null,i,r);case _:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r);case P:return p(e,t,n,(0,i._init)(i._payload),r)}if(te(i)||F(i))return d(t,e=e.get(n)||null,i,r,null);va(t,i)}return null}function g(r,a,s,l){for(var c=null,u=null,d=a,g=a=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=f(r,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(r,d),a=o(v,a,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(r,d),ra&&Zr(r,g),c;if(null===d){for(;g<s.length;g++)null!==(d=h(r,s[g],l))&&(a=o(d,a,g),null===u?c=d:u.sibling=d,u=d);return ra&&Zr(r,g),c}for(d=i(r,d);g<s.length;g++)null!==(m=p(d,r,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=o(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(r,e)})),ra&&Zr(r,g),c}function m(r,s,l,c){var u=F(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,g=s,m=s=0,v=null,b=l.next();null!==g&&!b.done;m++,b=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var y=f(r,g,b.value,c);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(r,g),s=o(y,s,m),null===d?u=y:d.sibling=y,d=y,g=v}if(b.done)return n(r,g),ra&&Zr(r,m),u;if(null===g){for(;!b.done;m++,b=l.next())null!==(b=h(r,b.value,c))&&(s=o(b,s,m),null===d?u=b:d.sibling=b,d=b);return ra&&Zr(r,m),u}for(g=i(r,g);!b.done;m++,b=l.next())null!==(b=p(g,r,m,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=o(b,s,m),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach((function(e){return t(r,e)})),ra&&Zr(r,m),u}return function e(i,a,o,l){if("object"===typeof o&&null!==o&&o.type===D&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case w:e:{for(var c=o.key,u=a;null!==u;){if(u.key===c){if((c=o.type)===D){if(7===u.tag){n(i,u.sibling),(a=r(u,o.props.children)).return=i,i=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&ba(c)===u.type){n(i,u.sibling),(a=r(u,o.props)).ref=ma(i,u,o),a.return=i,i=a;break e}n(i,u);break}t(i,u),u=u.sibling}o.type===D?((a=Fc(o.props.children,i.mode,l,o.key)).return=i,i=a):((l=jc(o.type,o.key,o.props,null,i.mode,l)).ref=ma(i,a,o),l.return=i,i=l)}return s(i);case _:e:{for(u=o.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(i,a.sibling),(a=r(a,o.children||[])).return=i,i=a;break e}n(i,a);break}t(i,a),a=a.sibling}(a=Ic(o,i.mode,l)).return=i,i=a}return s(i);case P:return e(i,a,(u=o._init)(o._payload),l)}if(te(o))return g(i,a,o,l);if(F(o))return m(i,a,o,l);va(i,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(n(i,a.sibling),(a=r(a,o)).return=i,i=a):(n(i,a),(a=Oc(o,i.mode,l)).return=i,i=a),s(i)):n(i,a)}}var xa=ya(!0),wa=ya(!1),_a=Sr(null),Da=null,Sa=null,ka=null;function Ca(){ka=Sa=Da=null}function Aa(e){var t=_a.current;kr(_a),e._currentValue=t}function Ta(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ea(e,t){Da=e,ka=Sa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Na(e){var t=e._currentValue;if(ka!==e)if(e={context:e,memoizedValue:t,next:null},null===Sa){if(null===Da)throw Error(a(308));Sa=e,Da.dependencies={lanes:0,firstContext:e}}else Sa=Sa.next=e;return t}var Ma=null;function Pa(e){null===Ma?Ma=[e]:Ma.push(e)}function Ua(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,Pa(t)):(n.next=r.next,r.next=n),t.interleaved=n,ja(e,i)}function ja(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Fa=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ia(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,0!==(2&Tl)){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,ja(e,n)}return null===(r=i.interleaved)?(t.next=t,Pa(i)):(t.next=r.next,r.next=t),i.interleaved=t,ja(e,n)}function Ba(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Wa(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?r=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?r=a=t:a=a.next=t}else r=a=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function za(e,t,n,i){var r=e.updateQueue;Fa=!1;var a=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,c=l.next;l.next=null,null===o?a=c:o.next=c,o=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=r.baseState;for(o=0,u=c=l=null,s=a;;){var h=s.lane,f=s.eventTime;if((i&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(h=t,f=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=g.payload)?p.call(f,d,h):p)||void 0===h)break e;d=O({},d,h);break e;case 2:Fa=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=r.effects)?r.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,o|=h;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(h=s).next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}if(null===u&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,null!==(t=r.shared.interleaved)){r=t;do{o|=r.lane,r=r.next}while(r!==t)}else null===a&&(r.shared.lanes=0);Rl|=o,e.lanes=o,e.memoizedState=d}}function Va(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var Ha={},qa=Sr(Ha),Ga=Sr(Ha),Ya=Sr(Ha);function Xa(e){if(e===Ha)throw Error(a(174));return e}function Ka(e,t){switch(Cr(Ya,t),Cr(Ga,e),Cr(qa,Ha),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}kr(qa),Cr(qa,t)}function $a(){kr(qa),kr(Ga),kr(Ya)}function Qa(e){Xa(Ya.current);var t=Xa(qa.current),n=le(t,e.type);t!==n&&(Cr(Ga,e),Cr(qa,n))}function Za(e){Ga.current===e&&(kr(qa),kr(Ga))}var Ja=Sr(0);function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=[];function no(){for(var e=0;e<to.length;e++)to[e]._workInProgressVersionPrimary=null;to.length=0}var io=x.ReactCurrentDispatcher,ro=x.ReactCurrentBatchConfig,ao=0,oo=null,so=null,lo=null,co=!1,uo=!1,ho=0,fo=0;function po(){throw Error(a(321))}function go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!si(e[n],t[n]))return!1;return!0}function mo(e,t,n,i,r,o){if(ao=o,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,io.current=null===e||null===e.memoizedState?Jo:es,e=n(i,r),uo){o=0;do{if(uo=!1,ho=0,25<=o)throw Error(a(301));o+=1,lo=so=null,t.updateQueue=null,io.current=ts,e=n(i,r)}while(uo)}if(io.current=Zo,t=null!==so&&null!==so.next,ao=0,lo=so=oo=null,co=!1,t)throw Error(a(300));return e}function vo(){var e=0!==ho;return ho=0,e}function bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lo?oo.memoizedState=lo=e:lo=lo.next=e,lo}function yo(){if(null===so){var e=oo.alternate;e=null!==e?e.memoizedState:null}else e=so.next;var t=null===lo?oo.memoizedState:lo.next;if(null!==t)lo=t,so=e;else{if(null===e)throw Error(a(310));e={memoizedState:(so=e).memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},null===lo?oo.memoizedState=lo=e:lo=lo.next=e}return lo}function xo(e,t){return"function"===typeof t?t(e):t}function wo(e){var t=yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=so,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var s=r.next;r.next=o.next,o.next=s}i.baseQueue=r=o,n.pending=null}if(null!==r){o=r.next,i=i.baseState;var l=s=null,c=null,u=o;do{var d=u.lane;if((ao&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=i):c=c.next=h,oo.lanes|=d,Rl|=d}u=u.next}while(null!==u&&u!==o);null===c?s=i:c.next=l,si(i,t.memoizedState)||(ys=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=c,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{o=r.lane,oo.lanes|=o,Rl|=o,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _o(e){var t=yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{o=e(o,s.action),s=s.next}while(s!==r);si(o,t.memoizedState)||(ys=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Do(){}function So(e,t){var n=oo,i=yo(),r=t(),o=!si(i.memoizedState,r);if(o&&(i.memoizedState=r,ys=!0),i=i.queue,Ro(Ao.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||null!==lo&&1&lo.memoizedState.tag){if(n.flags|=2048,Mo(9,Co.bind(null,n,i,r,t),void 0,null),null===El)throw Error(a(349));0!==(30&ao)||ko(n,t,r)}return r}function ko(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Co(e,t,n,i){t.value=n,t.getSnapshot=i,To(t)&&Eo(e)}function Ao(e,t,n){return n((function(){To(t)&&Eo(e)}))}function To(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!si(e,n)}catch(i){return!0}}function Eo(e){var t=ja(e,1);null!==t&&nc(t,e,1,-1)}function No(e){var t=bo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:e},t.queue=e,e=e.dispatch=Xo.bind(null,oo,e),[t.memoizedState,e]}function Mo(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Po(){return yo().memoizedState}function Uo(e,t,n,i){var r=bo();oo.flags|=e,r.memoizedState=Mo(1|t,n,void 0,void 0===i?null:i)}function jo(e,t,n,i){var r=yo();i=void 0===i?null:i;var a=void 0;if(null!==so){var o=so.memoizedState;if(a=o.destroy,null!==i&&go(i,o.deps))return void(r.memoizedState=Mo(t,n,a,i))}oo.flags|=e,r.memoizedState=Mo(1|t,n,a,i)}function Fo(e,t){return Uo(8390656,8,e,t)}function Ro(e,t){return jo(2048,8,e,t)}function Oo(e,t){return jo(4,2,e,t)}function Io(e,t){return jo(4,4,e,t)}function Lo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Bo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,jo(4,4,Lo.bind(null,t,e),n)}function Wo(){}function zo(e,t){var n=yo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&go(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Vo(e,t){var n=yo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&go(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Ho(e,t,n){return 0===(21&ao)?(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n):(si(n,t)||(n=gt(),oo.lanes|=n,Rl|=n,e.baseState=!0),t)}function qo(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var i=ro.transition;ro.transition={};try{e(!1),t()}finally{yt=n,ro.transition=i}}function Go(){return yo().memoizedState}function Yo(e,t,n){var i=tc(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Ko(e))$o(t,n);else if(null!==(n=Ua(e,t,n,i))){nc(n,e,i,ec()),Qo(n,t,i)}}function Xo(e,t,n){var i=tc(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))$o(t,r);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(r.hasEagerState=!0,r.eagerState=s,si(s,o)){var l=t.interleaved;return null===l?(r.next=r,Pa(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(c){}null!==(n=Ua(e,t,r,i))&&(nc(n,e,i,r=ec()),Qo(n,t,i))}}function Ko(e){var t=e.alternate;return e===oo||null!==t&&t===oo}function $o(e,t){uo=co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qo(e,t,n){if(0!==(4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Zo={readContext:Na,useCallback:po,useContext:po,useEffect:po,useImperativeHandle:po,useInsertionEffect:po,useLayoutEffect:po,useMemo:po,useReducer:po,useRef:po,useState:po,useDebugValue:po,useDeferredValue:po,useTransition:po,useMutableSource:po,useSyncExternalStore:po,useId:po,unstable_isNewReconciler:!1},Jo={readContext:Na,useCallback:function(e,t){return bo().memoizedState=[e,void 0===t?null:t],e},useContext:Na,useEffect:Fo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Uo(4194308,4,Lo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var n=bo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=bo();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Yo.bind(null,oo,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},bo().memoizedState=e},useState:No,useDebugValue:Wo,useDeferredValue:function(e){return bo().memoizedState=e},useTransition:function(){var e=No(!1),t=e[0];return e=qo.bind(null,e[1]),bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=oo,r=bo();if(ra){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===El)throw Error(a(349));0!==(30&ao)||ko(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Fo(Ao.bind(null,i,o,e),[e]),i.flags|=2048,Mo(9,Co.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=bo(),t=El.identifierPrefix;if(ra){var n=Qr;t=":"+t+"R"+(n=($r&~(1<<32-ot($r)-1)).toString(32)+n),0<(n=ho++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Na,useCallback:zo,useContext:Na,useEffect:Ro,useImperativeHandle:Bo,useInsertionEffect:Oo,useLayoutEffect:Io,useMemo:Vo,useReducer:wo,useRef:Po,useState:function(){return wo(xo)},useDebugValue:Wo,useDeferredValue:function(e){return Ho(yo(),so.memoizedState,e)},useTransition:function(){return[wo(xo)[0],yo().memoizedState]},useMutableSource:Do,useSyncExternalStore:So,useId:Go,unstable_isNewReconciler:!1},ts={readContext:Na,useCallback:zo,useContext:Na,useEffect:Ro,useImperativeHandle:Bo,useInsertionEffect:Oo,useLayoutEffect:Io,useMemo:Vo,useReducer:_o,useRef:Po,useState:function(){return _o(xo)},useDebugValue:Wo,useDeferredValue:function(e){var t=yo();return null===so?t.memoizedState=e:Ho(t,so.memoizedState,e)},useTransition:function(){return[_o(xo)[0],yo().memoizedState]},useMutableSource:Do,useSyncExternalStore:So,useId:Go,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function is(e,t,n,i){n=null===(n=n(i,t=e.memoizedState))||void 0===n?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var rs={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=ec(),r=tc(e),a=Ia(i,r);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=La(e,a,r))&&(nc(t,e,r,i),Ba(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=ec(),r=tc(e),a=Ia(i,r);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=La(e,a,r))&&(nc(t,e,r,i),Ba(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),i=tc(e),r=Ia(n,i);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=La(e,r,i))&&(nc(t,e,i,n),Ba(t,e,i))}};function as(e,t,n,i,r,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!li(n,i)||!li(r,a))}function os(e,t,n){var i=!1,r=Ar,a=t.contextType;return"object"===typeof a&&null!==a?a=Na(a):(r=Pr(t)?Nr:Tr.current,a=(i=null!==(i=t.contextTypes)&&void 0!==i)?Mr(e,r):Ar),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=rs,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(e,t,n,i){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Ra(e);var a=t.contextType;"object"===typeof a&&null!==a?r.context=Na(a):(a=Pr(t)?Nr:Tr.current,r.context=Mr(e,a)),r.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(is(e,t,a,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&rs.enqueueReplaceState(r,r.state,null),za(e,n,r,i),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",i=t;do{n+=W(i),i=i.return}while(i);var r=n}catch(a){r="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:r,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Ia(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Hl||(Hl=!0,ql=i),ds(0,t)},n}function ps(e,t,n){(n=Ia(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"===typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof i&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new hs;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,i,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ia(-1,1)).tag=2,La(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var bs=x.ReactCurrentOwner,ys=!1;function xs(e,t,n,i){t.child=null===e?wa(t,null,n,i):xa(t,e.child,n,i)}function ws(e,t,n,i,r){n=n.render;var a=t.ref;return Ea(t,r),i=mo(e,t,n,i,a,r),n=vo(),null===e||ys?(ra&&n&&ea(t),t.flags|=1,xs(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hs(e,t,r))}function _s(e,t,n,i,r){if(null===e){var a=n.type;return"function"!==typeof a||Pc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jc(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ds(e,t,a,i,r))}if(a=e.child,0===(e.lanes&r)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:li)(o,i)&&e.ref===t.ref)return Hs(e,t,r)}return t.flags|=1,(e=Uc(a,i)).ref=t.ref,e.return=t,t.child=e}function Ds(e,t,n,i,r){if(null!==e){var a=e.memoizedProps;if(li(a,i)&&e.ref===t.ref){if(ys=!1,t.pendingProps=i=a,0===(e.lanes&r))return t.lanes=e.lanes,Hs(e,t,r);0!==(131072&e.flags)&&(ys=!0)}}return Cs(e,t,n,i,r)}function Ss(e,t,n){var i=t.pendingProps,r=i.children,a=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cr(Ul,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Cr(Ul,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==a?a.baseLanes:n,Cr(Ul,Pl),Pl|=i}else null!==a?(i=a.baseLanes|n,t.memoizedState=null):i=n,Cr(Ul,Pl),Pl|=i;return xs(e,t,r,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,i,r){var a=Pr(n)?Nr:Tr.current;return a=Mr(t,a),Ea(t,r),n=mo(e,t,n,i,a,r),i=vo(),null===e||ys?(ra&&i&&ea(t),t.flags|=1,xs(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hs(e,t,r))}function As(e,t,n,i,r){if(Pr(n)){var a=!0;Rr(t)}else a=!1;if(Ea(t,r),null===t.stateNode)Vs(e,t),os(t,n,i),ls(t,n,i,r),i=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=Na(c):c=Mr(t,c=Pr(n)?Nr:Tr.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==i||l!==c)&&ss(t,o,i,c),Fa=!1;var h=t.memoizedState;o.state=h,za(t,i,o,r),l=t.memoizedState,s!==i||h!==l||Er.current||Fa?("function"===typeof u&&(is(t,n,u,i),l=t.memoizedState),(s=Fa||as(t,n,s,i,h,l,c))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),o.props=i,o.state=l,o.context=c,i=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,Oa(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),o.props=c,d=t.pendingProps,h=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=Na(l):l=Mr(t,l=Pr(n)?Nr:Tr.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,o,i,l),Fa=!1,h=t.memoizedState,o.state=h,za(t,i,o,r);var p=t.memoizedState;s!==d||h!==p||Er.current||Fa?("function"===typeof f&&(is(t,n,f,i),p=t.memoizedState),(c=Fa||as(t,n,c,i,h,p,l)||!1)?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(i,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(i,p,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=p),o.props=i,o.state=p,o.context=l,i=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),i=!1)}return Ts(e,t,n,i,a,r)}function Ts(e,t,n,i,r,a){ks(e,t);var o=0!==(128&t.flags);if(!i&&!o)return r&&Or(t,n,!1),Hs(e,t,a);i=t.stateNode,bs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&o?(t.child=xa(t,e.child,null,a),t.child=xa(t,null,s,a)):xs(e,t,s,a),t.memoizedState=i.state,r&&Or(t,n,!0),t.child}function Es(e){var t=e.stateNode;t.pendingContext?jr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jr(0,t.context,!1),Ka(e,t.containerInfo)}function Ns(e,t,n,i,r){return fa(),pa(r),t.flags|=256,xs(e,t,n,i),t.child}var Ms,Ps,Us,js,Fs={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Os(e,t,n){var i,r=t.pendingProps,o=Ja.current,s=!1,l=0!==(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&0!==(2&o)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Cr(Ja,1&o),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Rc(l,r,0,null),e=Fc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Fs,e):Is(t,l));if(null!==(o=e.memoizedState)&&null!==(i=o.dehydrated))return function(e,t,n,i,r,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ls(e,t,s,i=us(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=Rc({mode:"visible",children:i.children},r,0,null),(o=Fc(o,r,s,null)).flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,0!==(1&t.mode)&&xa(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Fs,o);if(0===(1&t.mode))return Ls(e,t,s,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,Ls(e,t,s,i=us(o=Error(a(419)),i,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(i=El)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(i.suspendedLanes|s))?0:r)&&r!==o.retryLane&&(o.retryLane=r,ja(e,r),nc(i,e,r,-1))}return gc(),Ls(e,t,s,i=us(Error(a(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,ia=cr(r.nextSibling),na=t,ra=!0,aa=null,null!==e&&(Yr[Xr++]=$r,Yr[Xr++]=Qr,Yr[Xr++]=Kr,$r=e.id,Qr=e.overflow,Kr=t),t=Is(t,i.children),t.flags|=4096,t)}(e,t,l,r,i,o,n);if(s){s=r.fallback,l=t.mode,i=(o=e.child).sibling;var c={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==o?((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null):(r=Uc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==i?s=Uc(i,s):(s=Fc(s,l,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Fs,r}return e=(s=e.child).sibling,r=Uc(s,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Is(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ls(e,t,n,i){return null!==i&&pa(i),xa(t,e.child,null,n),(e=Is(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),Ta(e.return,t,n)}function Ws(e,t,n,i,r){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r)}function zs(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;if(xs(e,t,i.children,n),0!==(2&(i=Ja.current)))i=1&i|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Cr(Ja,i),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===eo(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ws(t,!1,r,n,a);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===eo(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ws(t,!0,n,null,a);break;case"together":Ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Uc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Uc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!ra)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Ys(e,t,n){var i=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Pr(t.type)&&Ur(),Gs(t),null;case 3:return i=t.stateNode,$a(),kr(Er),kr(Tr),no(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(oc(aa),aa=null))),Ps(e,t),Gs(t),null;case 5:Za(t);var r=Xa(Ya.current);if(n=t.type,null!==e&&null!=t.stateNode)Us(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(a(166));return Gs(t),null}if(e=Xa(qa.current),da(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[hr]=t,i[fr]=o,e=0!==(1&t.mode),n){case"dialog":Li("cancel",i),Li("close",i);break;case"iframe":case"object":case"embed":Li("load",i);break;case"video":case"audio":for(r=0;r<Fi.length;r++)Li(Fi[r],i);break;case"source":Li("error",i);break;case"img":case"image":case"link":Li("error",i),Li("load",i);break;case"details":Li("toggle",i);break;case"input":$(i,o),Li("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Li("invalid",i);break;case"textarea":re(i,o),Li("invalid",i)}for(var l in be(n,o),r=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"===typeof c?i.textContent!==c&&(!0!==o.suppressHydrationWarning&&Zi(i.textContent,c,e),r=["children",c]):"number"===typeof c&&i.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Zi(i.textContent,c,e),r=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Li("scroll",i)}switch(n){case"input":G(i),J(i,o,!0);break;case"textarea":G(i),oe(i);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(i.onclick=Ji)}i=r,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[hr]=t,e[fr]=i,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,i),n){case"dialog":Li("cancel",e),Li("close",e),r=i;break;case"iframe":case"object":case"embed":Li("load",e),r=i;break;case"video":case"audio":for(r=0;r<Fi.length;r++)Li(Fi[r],e);r=i;break;case"source":Li("error",e),r=i;break;case"img":case"image":case"link":Li("error",e),Li("load",e),r=i;break;case"details":Li("toggle",e),r=i;break;case"input":$(e,i),r=K(e,i),Li("invalid",e);break;case"option":default:r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=O({},i,{value:void 0}),Li("invalid",e);break;case"textarea":re(e,i),r=ie(e,i),Li("invalid",e)}for(o in be(n,r),c=r)if(c.hasOwnProperty(o)){var u=c[o];"style"===o?me(e,u):"dangerouslySetInnerHTML"===o?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===o?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=u&&"onScroll"===o&&Li("scroll",e):null!=u&&y(e,o,u,l))}switch(n){case"input":G(e),J(e,i,!1);break;case"textarea":G(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+H(i.value));break;case"select":e.multiple=!!i.multiple,null!=(o=i.value)?ne(e,!!i.multiple,o,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,i);else{if("string"!==typeof i&&null===t.stateNode)throw Error(a(166));if(n=Xa(Ya.current),Xa(qa.current),da(t)){if(i=t.stateNode,n=t.memoizedProps,i[hr]=t,(o=i.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Zi(i.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zi(i.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[hr]=t,t.stateNode=i}return Gs(t),null;case 13:if(kr(Ja),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ra&&null!==ia&&0!==(1&t.mode)&&0===(128&t.flags))ha(),fa(),t.flags|=98560,o=!1;else if(o=da(t),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[hr]=t}else fa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),o=!1}else null!==aa&&(oc(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&Ja.current)?0===jl&&(jl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return $a(),Ps(e,t),null===e&&zi(t.stateNode.containerInfo),Gs(t),null;case 10:return Aa(t.type._context),Gs(t),null;case 19:if(kr(Ja),null===(o=t.memoizedState))return Gs(t),null;if(i=0!==(128&t.flags),null===(l=o.rendering))if(i)qs(o,!1);else{if(0!==jl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=eo(e))){for(t.flags|=128,qs(o,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Cr(Ja,1&Ja.current|2),t.child}e=e.sibling}null!==o.tail&&Qe()>zl&&(t.flags|=128,i=!0,qs(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=eo(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ra)return Gs(t),null}else 2*Qe()-o.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,i=!0,qs(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Qe(),t.sibling=null,n=Ja.current,Cr(Ja,i?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!==(1&t.mode)?0!==(1073741824&Pl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Xs(e,t){switch(ta(t),t.tag){case 1:return Pr(t.type)&&Ur(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return $a(),kr(Er),kr(Tr),no(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Za(t),null;case 13:if(kr(Ja),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));fa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return kr(Ja),null;case 4:return $a(),null;case 10:return Aa(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ms=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Us=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,Xa(qa.current);var a,o=null;switch(n){case"input":r=K(e,r),i=K(e,i),o=[];break;case"select":r=O({},r,{value:void 0}),i=O({},i,{value:void 0}),o=[];break;case"textarea":r=ie(e,r),i=ie(e,i),o=[];break;default:"function"!==typeof r.onClick&&"function"===typeof i.onClick&&(e.onclick=Ji)}for(u in be(n,i),n=null,r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var l=r[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var c=i[u];if(l=null!=r?r[u]:void 0,i.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(o=o||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Li("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},js=function(e,t,n,i){n!==i&&(t.flags|=4)};var Ks=!1,$s=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Zs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(i){Sc(e,t,i)}else n.current=null}function el(e,t,n){try{n()}catch(i){Sc(e,t,i)}}var tl=!1;function nl(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,void 0!==a&&el(t,n,a)}r=r.next}while(r!==i)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[fr],delete t[gr],delete t[mr],delete t[vr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ji));else if(4!==i&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(rt,n)}catch(s){}switch(n.tag){case 5:$s||Js(n,t);case 6:var i=ul,r=dl;ul=null,hl(e,t,n),dl=r,null!==(ul=i)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lr(e.parentNode,n):1===e.nodeType&&lr(e,n),zt(e)):lr(ul,n.stateNode));break;case 4:i=ul,r=dl,ul=n.stateNode.containerInfo,dl=!0,hl(e,t,n),ul=i,dl=r;break;case 0:case 11:case 14:case 15:if(!$s&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var a=r,o=a.destroy;a=a.tag,void 0!==o&&(0!==(2&a)||0!==(4&a))&&el(n,t,o),r=r.next}while(r!==i)}hl(e,t,n);break;case 1:if(!$s&&(Js(n,t),"function"===typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){Sc(n,t,s)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?($s=(i=$s)||null!==n.memoizedState,hl(e,t,n),$s=i):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var i=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));fl(o,s,r),ul=null,dl=!1;var c=r.alternate;null!==c&&(c.return=null),r.return=null}catch(u){Sc(r,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&i){try{nl(3,e,e.return),il(3,e)}catch(m){Sc(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Sc(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&i&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),vl(e),512&i&&null!==n&&Js(n,n.return),32&e.flags){var r=e.stateNode;try{he(r,"")}catch(m){Sc(e,e.return,m)}}if(4&i&&null!=(r=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===o.type&&null!=o.name&&Q(r,o),ye(l,s);var u=ye(l,o);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?me(r,h):"dangerouslySetInnerHTML"===d?de(r,h):"children"===d?he(r,h):y(r,d,h,u)}switch(l){case"input":Z(r,o);break;case"textarea":ae(r,o);break;case"select":var f=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?ne(r,!!o.multiple,p,!1):f!==!!o.multiple&&(null!=o.defaultValue?ne(r,!!o.multiple,o.defaultValue,!0):ne(r,!!o.multiple,o.multiple?[]:"",!1))}r[fr]=o}catch(m){Sc(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&i){if(null===e.stateNode)throw Error(a(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(m){Sc(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(m){Sc(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(r=e.child).flags&&(o=null!==r.memoizedState,r.stateNode.isHidden=o,!o||null!==r.alternate&&null!==r.alternate.memoizedState||(Wl=Qe())),4&i&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($s=(u=$s)||d,gl(t,e),$s=u):gl(t,e),vl(e),8192&i){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(h=Zs=d;null!==Zs;){switch(p=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Js(f,f.return);var g=f.stateNode;if("function"===typeof g.componentWillUnmount){i=f,n=f.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Sc(i,n,m)}}break;case 5:Js(f,f.return);break;case 22:if(null!==f.memoizedState){wl(h);continue}}null!==p?(p.return=f,Zs=p):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{r=h.stateNode,u?"function"===typeof(o=r.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=h.stateNode,s=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(m){Sc(e,e.return,m)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Sc(e,e.return,m)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),vl(e),4&i&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var i=n;break e}n=n.return}throw Error(a(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(he(r,""),i.flags&=-33),cl(e,sl(e),r);break;case 3:case 4:var o=i.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(a(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,yl(e,t,n)}function yl(e,t,n){for(var i=0!==(1&e.mode);null!==Zs;){var r=Zs,a=r.child;if(22===r.tag&&i){var o=null!==r.memoizedState||Ks;if(!o){var s=r.alternate,l=null!==s&&null!==s.memoizedState||$s;s=Ks;var c=$s;if(Ks=o,($s=l)&&!c)for(Zs=r;null!==Zs;)l=(o=Zs).child,22===o.tag&&null!==o.memoizedState?_l(r):null!==l?(l.return=o,Zs=l):_l(r);for(;null!==a;)Zs=a,yl(a,t,n),a=a.sibling;Zs=r,Ks=s,$s=c}xl(e)}else 0!==(8772&r.subtreeFlags)&&null!==a?(a.return=r,Zs=a):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$s||il(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!$s)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Va(t,o,i);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Va(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&zt(h)}}}break;default:throw Error(a(163))}$s||512&t.flags&&rl(t)}catch(f){Sc(t,t.return,f)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function _l(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Sc(t,n,l)}break;case 1:var i=t.stateNode;if("function"===typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(l){Sc(t,r,l)}}var a=t.return;try{rl(t)}catch(l){Sc(t,a,l)}break;case 5:var o=t.return;try{rl(t)}catch(l){Sc(t,o,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Dl,Sl=Math.ceil,kl=x.ReactCurrentDispatcher,Cl=x.ReactCurrentOwner,Al=x.ReactCurrentBatchConfig,Tl=0,El=null,Nl=null,Ml=0,Pl=0,Ul=Sr(0),jl=0,Fl=null,Rl=0,Ol=0,Il=0,Ll=null,Bl=null,Wl=0,zl=1/0,Vl=null,Hl=!1,ql=null,Gl=null,Yl=!1,Xl=null,Kl=0,$l=0,Ql=null,Zl=-1,Jl=0;function ec(){return 0!==(6&Tl)?Qe():-1!==Zl?Zl:Zl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Ml?Ml&-Ml:null!==ga.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:$t(e.type)}function nc(e,t,n,i){if(50<$l)throw $l=0,Ql=null,Error(a(185));vt(e,n,i),0!==(2&Tl)&&e===El||(e===El&&(0===(2&Tl)&&(Ol|=n),4===jl&&sc(e,Ml)),ic(e,i),1===n&&0===Tl&&0===(1&t.mode)&&(zl=Qe()+500,Lr&&zr()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,l=r[o];-1===l?0!==(s&n)&&0===(s&i)||(r[o]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var i=ht(e,e===El?Ml:0);if(0===i)null!==n&&Xe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Xe(n),1===t)0===e.tag?function(e){Lr=!0,Wr(e)}(lc.bind(null,e)):Wr(lc.bind(null,e)),or((function(){0===(6&Tl)&&zr()})),n=null;else{switch(xt(i)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Ec(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Zl=-1,Jl=0,0!==(6&Tl))throw Error(a(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var i=ht(e,e===El?Ml:0);if(0===i)return null;if(0!==(30&i)||0!==(i&e.expiredLanes)||t)t=mc(e,i);else{t=i;var r=Tl;Tl|=2;var o=pc();for(El===e&&Ml===t||(Vl=null,zl=Qe()+500,hc(e,t));;)try{bc();break}catch(l){fc(e,l)}Ca(),kl.current=o,Tl=r,null!==Nl?t=0:(El=null,Ml=0,t=jl)}if(0!==t){if(2===t&&(0!==(r=pt(e))&&(i=r,t=ac(e,r))),1===t)throw n=Fl,hc(e,0),sc(e,i),ic(e,Qe()),n;if(6===t)sc(e,i);else{if(r=e.current.alternate,0===(30&i)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],a=r.getSnapshot;r=r.value;try{if(!si(a(),r))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=mc(e,i))&&(0!==(o=pt(e))&&(i=o,t=ac(e,o))),1===t))throw n=Fl,hc(e,0),sc(e,i),ic(e,Qe()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(a(345));case 2:case 5:wc(e,Bl,Vl);break;case 3:if(sc(e,i),(130023424&i)===i&&10<(t=Wl+500-Qe())){if(0!==ht(e,0))break;if(((r=e.suspendedLanes)&i)!==i){ec(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ir(wc.bind(null,e,Bl,Vl),t);break}wc(e,Bl,Vl);break;case 4:if(sc(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var s=31-ot(i);o=1<<s,(s=t[s])>r&&(r=s),i&=~o}if(i=r,10<(i=(120>(i=Qe()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Sl(i/1960))-i)){e.timeoutHandle=ir(wc.bind(null,e,Bl,Vl),i);break}wc(e,Bl,Vl);break;default:throw Error(a(329))}}}return ic(e,Qe()),e.callbackNode===n?rc.bind(null,e):null}function ac(e,t){var n=Ll;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Bl,Bl=n,null!==t&&oc(t)),e}function oc(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~Il,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),i=1<<n;e[n]=-1,t&=~i}}function lc(e){if(0!==(6&Tl))throw Error(a(327));_c();var t=ht(e,0);if(0===(1&t))return ic(e,Qe()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var i=pt(e);0!==i&&(t=i,n=ac(e,i))}if(1===n)throw n=Fl,hc(e,0),sc(e,t),ic(e,Qe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Bl,Vl),ic(e,Qe()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(zl=Qe()+500,Lr&&zr())}}function uc(e){null!==Xl&&0===Xl.tag&&0===(6&Tl)&&_c();var t=Tl;Tl|=1;var n=Al.transition,i=yt;try{if(Al.transition=null,yt=1,e)return e()}finally{yt=i,Al.transition=n,0===(6&(Tl=t))&&zr()}}function dc(){Pl=Ul.current,kr(Ul)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==Nl)for(n=Nl.return;null!==n;){var i=n;switch(ta(i),i.tag){case 1:null!==(i=i.type.childContextTypes)&&void 0!==i&&Ur();break;case 3:$a(),kr(Er),kr(Tr),no();break;case 5:Za(i);break;case 4:$a();break;case 13:case 19:kr(Ja);break;case 10:Aa(i.type._context);break;case 22:case 23:dc()}n=n.return}if(El=e,Nl=e=Uc(e.current,null),Ml=Pl=t,jl=0,Fl=null,Il=Ol=Rl=0,Bl=Ll=null,null!==Ma){for(t=0;t<Ma.length;t++)if(null!==(i=(n=Ma[t]).interleaved)){n.interleaved=null;var r=i.next,a=n.pending;if(null!==a){var o=a.next;a.next=r,i.next=o}n.pending=i}Ma=null}return e}function fc(e,t){for(;;){var n=Nl;try{if(Ca(),io.current=Zo,co){for(var i=oo.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}co=!1}if(ao=0,lo=so=oo=null,uo=!1,ho=0,Cl.current=null,null===n||null===n.return){jl=1,Fl=t,Nl=null;break}e:{var o=e,s=n.return,l=n,c=t;if(t=Ml,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&gs(o,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){gs(o,u,t),gc();break e}c=Error(a(426))}else if(ra&&1&l.mode){var v=ms(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),pa(cs(c,l));break e}}o=c=cs(c,l),4!==jl&&(jl=2),null===Ll?Ll=[o]:Ll.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Wa(o,fs(0,c,t));break e;case 1:l=c;var b=o.type,y=o.stateNode;if(0===(128&o.flags)&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Gl||!Gl.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t,Wa(o,ps(o,l,t));break e}}o=o.return}while(null!==o)}xc(n)}catch(x){t=x,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function pc(){var e=kl.current;return kl.current=Zo,null===e?Zo:e}function gc(){0!==jl&&3!==jl&&2!==jl||(jl=4),null===El||0===(268435455&Rl)&&0===(268435455&Ol)||sc(El,Ml)}function mc(e,t){var n=Tl;Tl|=2;var i=pc();for(El===e&&Ml===t||(Vl=null,hc(e,t));;)try{vc();break}catch(r){fc(e,r)}if(Ca(),Tl=n,kl.current=i,null!==Nl)throw Error(a(261));return El=null,Ml=0,jl}function vc(){for(;null!==Nl;)yc(Nl)}function bc(){for(;null!==Nl&&!Ke();)yc(Nl)}function yc(e){var t=Dl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?xc(e):Nl=t,Cl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ys(n,t,Pl)))return void(Nl=n)}else{if(null!==(n=Xs(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return jl=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===jl&&(jl=5)}function wc(e,t,n){var i=yt,r=Al.transition;try{Al.transition=null,yt=1,function(e,t,n,i){do{_c()}while(null!==Xl);if(0!==(6&Tl))throw Error(a(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-ot(n),a=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~a}}(e,o),e===El&&(Nl=El=null,Ml=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yl||(Yl=!0,Ec(tt,(function(){return _c(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Al.transition,Al.transition=null;var s=yt;yt=1;var l=Tl;Tl|=4,Cl.current=null,function(e,t){if(er=Ht,fi(e=hi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==r&&3!==h.nodeType||(l=s+r),h!==o||0!==i&&3!==h.nodeType||(c=s+i),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===r&&(l=s),f===o&&++d===i&&(c=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},Ht=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(w){Sc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}g=tl,tl=!1}(e,n),ml(n,e),pi(tr),Ht=!!er,tr=er=null,e.current=n,bl(n,e,r),$e(),Tl=l,yt=s,Al.transition=o}else e.current=n;if(Yl&&(Yl=!1,Xl=e,Kl=r),o=e.pendingLanes,0===o&&(Gl=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Qe()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(Hl)throw Hl=!1,e=ql,ql=null,e;0!==(1&Kl)&&0!==e.tag&&_c(),o=e.pendingLanes,0!==(1&o)?e===Ql?$l++:($l=0,Ql=e):$l=0,zr()}(e,t,n,i)}finally{Al.transition=r,yt=i}return null}function _c(){if(null!==Xl){var e=xt(Kl),t=Al.transition,n=yt;try{if(Al.transition=null,yt=16>e?16:e,null===Xl)var i=!1;else{if(e=Xl,Xl=null,Kl=0,0!==(6&Tl))throw Error(a(331));var r=Tl;for(Tl|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(0!==(16&Zs.flags)){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var h=d.child;if(null!==h)h.return=d,Zs=h;else for(;null!==Zs;){var f=(d=Zs).sibling,p=d.return;if(al(d),d===u){Zs=null;break}if(null!==f){f.return=p,Zs=f;break}Zs=p}}}var g=o.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Zs=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(o=Zs).flags))switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var b=o.sibling;if(null!==b){b.return=o.return,Zs=b;break e}Zs=o.return}}var y=e.current;for(Zs=y;null!==Zs;){var x=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Zs=x;else e:for(s=y;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(Tl=r,zr(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(rt,e)}catch(_){}i=!0}return i}finally{yt=n,Al.transition=t}}return!1}function Dc(e,t,n){e=La(e,t=fs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),ic(e,t))}function Sc(e,t,n){if(3===e.tag)Dc(e,e,n);else for(;null!==t;){if(3===t.tag){Dc(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof i.componentDidCatch&&(null===Gl||!Gl.has(i))){t=La(t,e=ps(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),ic(t,e));break}}t=t.return}}function kc(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,El===e&&(Ml&n)===n&&(4===jl||3===jl&&(130023424&Ml)===Ml&&500>Qe()-Wl?hc(e,0):Il|=n),ic(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=ja(e,t))&&(vt(e,t,n),ic(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(a(314))}null!==i&&i.delete(t),Cc(e,n)}function Ec(e,t){return Ye(e,t)}function Nc(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mc(e,t,n,i){return new Nc(e,t,n,i)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Uc(e,t){var n=e.alternate;return null===n?((n=Mc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jc(e,t,n,i,r,o){var s=2;if(i=e,"function"===typeof e)Pc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case D:return Fc(n.children,r,o,t);case S:s=8,r|=8;break;case k:return(e=Mc(12,n,t,2|r)).elementType=k,e.lanes=o,e;case E:return(e=Mc(13,n,t,r)).elementType=E,e.lanes=o,e;case N:return(e=Mc(19,n,t,r)).elementType=N,e.lanes=o,e;case U:return Rc(n,r,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case A:s=9;break e;case T:s=11;break e;case M:s=14;break e;case P:s=16,i=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Mc(s,n,t,r)).elementType=e,t.type=i,t.lanes=o,t}function Fc(e,t,n,i){return(e=Mc(7,e,i,t)).lanes=n,e}function Rc(e,t,n,i){return(e=Mc(22,e,i,t)).elementType=U,e.lanes=n,e.stateNode={isHidden:!1},e}function Oc(e,t,n){return(e=Mc(6,e,null,t)).lanes=n,e}function Ic(e,t,n){return(t=Mc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lc(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,i,r,a,o,s,l){return e=new Lc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Mc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function Wc(e){if(!e)return Ar;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Pr(n))return Fr(e,n,t)}return t}function zc(e,t,n,i,r,a,o,s,l){return(e=Bc(n,i,!0,e,0,a,0,s,l)).context=Wc(null),n=e.current,(a=Ia(i=ec(),r=tc(n))).callback=void 0!==t&&null!==t?t:null,La(n,a,r),e.current.lanes=r,vt(e,r,i),ic(e,i),e}function Vc(e,t,n,i){var r=t.current,a=ec(),o=tc(r);return n=Wc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ia(a,o)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=La(r,t,o))&&(nc(e,r,o,a),Ba(e,r,o)),o}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Dl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Er.current)ys=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Es(t),fa();break;case 5:Qa(t);break;case 1:Pr(t.type)&&Rr(t);break;case 4:Ka(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;Cr(_a,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Cr(Ja,1&Ja.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Os(e,t,n):(Cr(Ja,1&Ja.current),null!==(e=Hs(e,t,n))?e.sibling:null);Cr(Ja,1&Ja.current);break;case 19:if(i=0!==(n&t.childLanes),0!==(128&e.flags)){if(i)return zs(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Cr(Ja,Ja.current),i)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);ys=0!==(131072&e.flags)}else ys=!1,ra&&0!==(1048576&t.flags)&&Jr(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Vs(e,t),e=t.pendingProps;var r=Mr(t,Tr.current);Ea(t,n),r=mo(null,t,i,e,r,n);var o=vo();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pr(i)?(o=!0,Rr(t)):o=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ra(t),r.updater=rs,t.stateNode=r,r._reactInternals=t,ls(t,i,e,n),t=Ts(null,t,i,!0,o,n)):(t.tag=0,ra&&o&&ea(t),xs(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===M)return 14}return 2}(i),e=ns(i,e),r){case 0:t=Cs(null,t,i,e,n);break e;case 1:t=As(null,t,i,e,n);break e;case 11:t=ws(null,t,i,e,n);break e;case 14:t=_s(null,t,i,ns(i.type,e),n);break e}throw Error(a(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,Cs(e,t,i,r=t.elementType===i?r:ns(i,r),n);case 1:return i=t.type,r=t.pendingProps,As(e,t,i,r=t.elementType===i?r:ns(i,r),n);case 3:e:{if(Es(t),null===e)throw Error(a(387));i=t.pendingProps,r=(o=t.memoizedState).element,Oa(e,t),za(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ns(e,t,i,n,r=cs(Error(a(423)),t));break e}if(i!==r){t=Ns(e,t,i,n,r=cs(Error(a(424)),t));break e}for(ia=cr(t.stateNode.containerInfo.firstChild),na=t,ra=!0,aa=null,n=wa(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fa(),i===r){t=Hs(e,t,n);break e}xs(e,t,i,n)}t=t.child}return t;case 5:return Qa(t),null===e&&ca(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,s=r.children,nr(i,r)?s=null:null!==o&&nr(i,o)&&(t.flags|=32),ks(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Os(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=xa(t,null,i,n):xs(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,ws(e,t,i,r=t.elementType===i?r:ns(i,r),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,Cr(_a,i._currentValue),i._currentValue=s,null!==o)if(si(o.value,s)){if(o.children===r.children&&!Er.current){t=Hs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var c=l.firstContext;null!==c;){if(c.context===i){if(1===o.tag){(c=Ia(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),Ta(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ta(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}xs(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Ea(t,n),i=i(r=Na(r)),t.flags|=1,xs(e,t,i,n),t.child;case 14:return r=ns(i=t.type,t.pendingProps),_s(e,t,i,r=ns(i.type,r),n);case 15:return Ds(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:ns(i,r),Vs(e,t),t.tag=1,Pr(i)?(e=!0,Rr(t)):e=!1,Ea(t,n),os(t,i,r),ls(t,i,r,n),Ts(null,t,i,!0,e,n);case 19:return zs(e,t,n);case 22:return Ss(e,t,n)}throw Error(a(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function Jc(e,t,n,i,r){var a=n._reactRootContainer;if(a){var o=a;if("function"===typeof r){var s=r;r=function(){var e=Hc(o);s.call(e)}}Vc(t,o,e,r)}else o=function(e,t,n,i,r){if(r){if("function"===typeof i){var a=i;i=function(){var e=Hc(o);a.call(e)}}var o=zc(t,i,e,0,null,!1,0,"",Zc);return e._reactRootContainer=o,e[pr]=o.current,zi(8===e.nodeType?e.parentNode:e),uc(),o}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof i){var s=i;i=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[pr]=l.current,zi(8===e.nodeType?e.parentNode:e),uc((function(){Vc(t,l,n,i)})),l}(n,t,e,r,i);return Hc(o)}Kc.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Vc(e,t,null,null)},Kc.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Vc(null,e,null,null)})),t[pr]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ut.length&&0!==t&&t<Ut[n].priority;n++);Ut.splice(n,0,e),0===n&&Ot(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ic(t,Qe()),0===(6&Tl)&&(zl=Qe()+500,zr()))}break;case 13:uc((function(){var t=ja(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Gc(e,1)}},_t=function(e){if(13===e.tag){var t=ja(e,134217728);if(null!==t)nc(t,e,134217728,ec());Gc(e,134217728)}},Dt=function(e){if(13===e.tag){var t=tc(e),n=ja(e,t);if(null!==n)nc(n,e,t,ec());Gc(e,t)}},St=function(){return yt},kt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},_e=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=wr(i);if(!r)throw Error(a(90));Y(i),Z(i,r)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Ee=uc;var eu={usingClientEntryPoint:!1,Events:[yr,xr,wr,Ce,Ae,cc]},tu={findFiberByHostInstance:br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{rt=iu.inject(nu),at=iu}catch(ue){}}
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(a(200));return function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!$c(e))throw Error(a(299));var n=!1,i="",r=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,i,r),e[pr]=t.current,zi(8===e.nodeType?e.parentNode:e),new Xc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(a(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$c(e))throw Error(a(405));var i=null!=n&&n.hydratedSources||null,r=!1,o="",s=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=zc(t,null,e,1,null!=n?n:null,r,0,o,s),e[pr]=t.current,zi(e),i)for(e=0;e<i.length;e++)r=(r=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Kc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(a(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[pr]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Jc(e,t,n,!1,i)},t.version="18.3.1-next-f1338f8080-20240426"},4391:(e,t,n)=>{"use strict";var i=n(7950);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(9853))&&i.__esModule?i:{default:i},a=n(5043);var o=function(e){var t,n,i=(0,a.useRef)(null);return t=e,n=i.current,(0,r.default)(t,n)&&(i.current=e),i.current},s=function(e,t){(0,a.useEffect)(e,[o(t),e])};t.default=s},6678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.drawNeedle=void 0;var i=n(5760),r=n(7110);t.drawNeedle=function(e,t,n,a,o,s,l,c){var u=n.percent,d=n.needleColor,h=n.needleBaseColor,f=n.hideText,p=n.animate,g=n.needleScale,m=n.textComponent,v=a.current/500*15,b=[0,-v/2];o.current.selectAll("*").remove(),o.current.attr("transform","translate("+l.current+", "+l.current+")");var y=t?t.percent:0,x=(0,r.calculateRotation)(y||u,l,a,g);o.current.append("path").attr("d",x).attr("fill",d),o.current.append("circle").attr("cx",b[0]).attr("cy",b[1]).attr("r",v).attr("fill",h),f||m||(0,r.addText)(u,n,l,a,c),!e&&p?o.current.transition().delay(n.animDelay).ease(i.easeElastic).duration(n.animateDuration).tween("progress",(function(){var e=(0,i.interpolateNumber)(y,u);return function(t){var n=e(t);return s.current.select(".needle path").attr("d",(0,r.calculateRotation)(n,l,a,g))}})):s.current.select(".needle path").attr("d",(0,r.calculateRotation)(u,l,a,g))}},9483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(5043)),r=n(5760),a=u(n(5173)),o=n(7110),s=n(9151),l=n(6678),c=u(n(438));
2function u(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=-Math.PI/2,m=Math.PI/2,v=["marginInPercent","arcPadding","percent","nrOfLevels","animDelay"],b={style:{width:"100%"},marginInPercent:.05,cornerRadius:6,nrOfLevels:3,percent:.4,arcPadding:.05,arcWidth:.2,colors:["#00FF00","#FF0000"],textColor:"#fff",needleColor:"#464A4F",needleBaseColor:"#464A4F",hideText:!1,animate:!0,animDelay:500,formatTextValue:null,fontSize:null,animateDuration:3e3,textComponent:void 0,needleScale:.55,customNeedleComponent:null},y=function(e){var t=(0,i.useMemo)((function(){return f(f({},b),e)}),[e]),n=(0,i.useRef)({}),a=(0,i.useRef)({}),u=(0,i.useRef)({}),d=(0,i.useRef)({}),h=(0,i.useRef)({}),p=(0,i.useRef)({}),y=(0,i.useRef)({}),x=(0,i.useRef)({}),w=(0,i.useRef)({}),_=(0,i.useRef)(0),D=(0,i.useRef)([]),S=(0,i.useRef)((0,r.arc)()),k=(0,i.useRef)([]),C=(0,i.useRef)((0,r.pie)()),A=(0,i.useRef)(t),T=(0,i.useRef)({}),E=(0,i.useCallback)((function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(e)return(0,s.renderChart)(i,r,u,x,d,y,a,h,S,p,C,n,t,w,k),void(!F&&(0,l.drawNeedle)(i,r,t,u,p,w,y,a));w.current.select("svg").remove(),n.current=w.current.append("svg"),a.current=n.current.append("g"),h.current=a.current.append("g").attr("class","doughnut"),C.current.value((function(e){return e.value})).startAngle(g).endAngle(m).sort(null),p.current=a.current.append("g").attr("class","needle"),(0,s.renderChart)(i,r,u,x,d,y,a,h,S,p,C,n,t,w,k),!F&&(0,l.drawNeedle)(i,r,t,u,p,w,y,a)}),[t]);(0,i.useLayoutEffect)((function(){(0,o.setArcData)(t,_,D,k),w.current=(0,r.select)(T),E()}),[t,E]),(0,c.default)((function(){(t.nrOfLevels||A.current.arcsLength.every((function(e){return t.arcsLength.includes(e)}))||A.current.colors.every((function(e){return t.colors.includes(e)})))&&(0,o.setArcData)(t,_,D,k);var e=!v.some((function(e){return A.current[e]!==t[e]}));E(!0,e,A.current),A.current=t}),[t.nrOfLevels,t.arcsLength,t.colors,t.percent,t.needleColor,t.needleBaseColor]),(0,i.useEffect)((function(){var e=function(){var e=!0;(0,s.renderChart)(e,A,u,x,d,y,a,h,S,p,C,n,t,w,k),!F&&(0,l.drawNeedle)(e,A,t,u,p,w,y,a)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[t]);var N=t.id,M=t.style,P=t.className,U=t.textComponent,j=t.textComponentContainerClassName,F=t.customNeedleComponent,R=t.customNeedleStyle,O=t.customNeedleComponentClassName;return i.default.createElement("div",{id:N,className:P,style:M},i.default.createElement("div",{ref:function(e){return T=e}},i.default.createElement("div",{className:j,style:{position:"relative",top:"50%"}},U)),F&&i.default.createElement("div",{className:O,style:f({position:"relative"},R)},F))},x=y;t.default=x,y.propTypes={id:a.default.string,className:a.default.string,style:a.default.object,marginInPercent:a.default.number,cornerRadius:a.default.number,nrOfLevels:a.default.number,percent:a.default.number,arcPadding:a.default.number,arcWidth:a.default.number,arcsLength:a.default.array,colors:a.default.array,textColor:a.default.string,needleColor:a.default.string,needleBaseColor:a.default.string,hideText:a.default.bool,animate:a.default.bool,formatTextValue:a.default.func,fontSize:a.default.string,animateDuration:a.default.number,animDelay:a.default.number,textComponent:a.default.element,textComponentContainerClassName:a.default.string,needleScale:a.default.number,customNeedleComponent:a.default.element,customNeedleComponentClassName:a.default.string,customNeedleStyle:a.default.object}},9151:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.renderChart=void 0;var i=n(7110);t.renderChart=function(e,t,n,r,a,o,s,l,c,u,d,h,f,p,g){(0,i.updateDimensions)(f,p,r,n,a),h.current.attr("width",n.current+r.current.left+r.current.right).attr("height",a.current+r.current.top+r.current.bottom),s.current.attr("transform","translate("+r.current.left+", "+r.current.top+")"),(0,i.calculateRadius)(n,a,o,r,s),l.current.attr("transform","translate("+o.current+", "+o.current+")"),c.current.outerRadius(o.current).innerRadius(o.current*(1-f.arcWidth)).cornerRadius(f.cornerRadius).padAngle(f.arcPadding),l.current.selectAll(".arc").remove(),s.current.selectAll(".text-group").remove(),l.current.selectAll(".arc").data(d.current(g.current)).enter().append("g").attr("class","arc").append("path").attr("d",c.current).style("fill",(function(e){return e.data.color}))}},7110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setArcData=t.addText=t.calculateRotation=t.updateDimensions=t.centerGraph=t.calculateRadius=void 0;var i=n(5760);t.calculateRadius=function(e,t,n,i,a){e.current<2*t.current?n.current=(e.current-i.current.left-i.current.right)/2:n.current=t.current-i.current.top-i.current.bottom,r(e,a,n,i)};var r=function(e,t,n,i){i.current.left=e.current/2-n.current+i.current.right,t.current.attr("transform","translate("+i.current.left+", "+i.current.top+")")};t.centerGraph=r;t.updateDimensions=function(e,t,n,i,r){var a=e.marginInPercent,o=t.current.node().getBoundingClientRect(),s=o.width,l=o.height;n.current.left=s*a,n.current.right=s*a,i.current=s-n.current.left-n.current.right,n.current.top=l*a,n.current.bottom=l*a,r.current=i.current/2-n.current.top-n.current.bottom};t.calculateRotation=function(e,t,n,i){var r=t.current*i,a=n.current/500*15,o=s(e),l=[0,-a/2],c=[l[0]-r*Math.cos(o),l[1]-r*Math.sin(o)],u=[l[0]-a*Math.cos(o-Math.PI/2),l[1]-a*Math.sin(o-Math.PI/2)],d=[l[0]-a*Math.cos(o+Math.PI/2),l[1]-a*Math.sin(o+Math.PI/2)];return"M ".concat(u[0]," ").concat(u[1]," L ").concat(c[0]," ").concat(c[1]," L ").concat(d[0]," ").concat(d[1])};t.addText=function(e,t,n,i,r){var a=t.formatTextValue,s=t.fontSize,l=a?a(o(e)):o(e)+"%";r.current.append("g").attr("class","text-group").attr("transform","translate(".concat(n.current,", ").concat(n.current/2+20,")")).append("text").text(l).style("font-size",(function(){return s||"".concat(i.current/11/(l.length>10?l.length/10:1),"px")})).style("fill",t.textColor).style("text-anchor","middle")};t.setArcData=function(e,t,n,i){t.current=e.arcsLength?e.arcsLength.length:e.nrOfLevels,t.current===e.colors.length?n.current=e.colors:n.current=a(e,t),i.current=[];for(var r=0;r<t.current;r++){var o={value:e.arcsLength&&e.arcsLength.length>r?e.arcsLength[r]:1,color:n.current[r]};i.current.push(o)}};var a=function(e,t){for(var n=e.colors,r=(0,i.scaleLinear)().domain([1,t.current]).range([n[0],n[n.length-1]]).interpolate(i.interpolateHsl),a=[],o=1;o<=t.current;o++)a.push(r(o));return a},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round(100*e*Math.pow(10,t))/Math.pow(10,t)},s=function(e){return e*Math.PI}},4713:(e,t,n)=>{"use strict";var i;((i=n(9483))&&i.__esModule?i:{default:i}).default},1153:(e,t,n)=>{"use strict";var i=n(5043),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var i,a={},c=null,u=null;for(i in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,i)&&!l.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===a[i]&&(a[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,g(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,_=Object.prototype.hasOwnProperty,D={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,i){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)_.call(t,r)&&!S.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=i;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:D.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,r,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case i:l=!0}}if(l)return o=o(l=e),e=""===a?"."+T(l,0):a,w(o)?(r="",null!=e&&(r=e.replace(A,"$&/")+"/"),E(o,t,r,"",(function(e){return e}))):null!=o&&(C(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+T(s=e[c],c);l+=E(s,t,r,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=E(s=s.value,t,r,u=a+T(s,c++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var i=[],r=0;return E(e,i,"","",(function(e){return t.call(n,e,r++)})),i}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},U={transition:null},j={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:U,ReactCurrentOwner:D};function F(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=o,t.PureComponent=y,t.StrictMode=a,t.Suspense=u,t.__SECRET_INT
vendor: 6,363 bytes, line 2
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.act=F,t.cloneElement=function(e,t,i){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=D.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=i;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:n,type:e.type,key:a,ref:o,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=U.transition;U.transition={};try{e()}finally{U.transition=t}},t.unstable_act=F,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(!(0<a(r,t)))break e;e[i]=t,e[n]=r,n=i}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,o=r>>>1;i<o;){var s=2*(i+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<r&&0>a(u,l)?(e[i]=u,e[c]=n,i=c):(e[i]=l,e[s]=n,i=s);else{if(!(c<r&&0>a(u,n)))break e;e[i]=u,e[c]=n,i=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=i(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(c,t)}t=i(u)}}function w(e){if(m=!1,x(e),!g)if(null!==i(c))g=!0,U(_);else{var t=i(u);null!==t&&j(w,t.startTime-e)}}function _(e,n){g=!1,m&&(m=!1,b(C),C=-1),p=!0;var a=f;try{for(x(n),h=i(c);null!==h&&(!(h.expirationTime>n)||e&&!E());){var o=h.callback;if("function"===typeof o){h.callback=null,f=h.priorityLevel;var s=o(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?h.callback=s:h===i(c)&&r(c),x(n)}else r(c);h=i(c)}if(null!==h)var l=!0;else{var d=i(u);null!==d&&j(w,d.startTime-n),l=!1}return l}finally{h=null,f=a,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var D,S=!1,k=null,C=-1,A=5,T=-1;function E(){return!(t.unstable_now()-T<A)}function N(){if(null!==k){var e=t.unstable_now();T=e;var n=!0;try{n=k(!0,e)}finally{n?D():(S=!1,k=null)}}else S=!1}if("function"===typeof y)D=function(){y(N)};else if("undefined"!==typeof MessageChannel){var M=new MessageChannel,P=M.port2;M.port1.onmessage=N,D=function(){P.postMessage(null)}}else D=function(){v(N,0)};function U(e){k=e,S||(S=!0,D())}function j(e,n){C=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,U(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return i(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,r,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(u,e),null===i(c)&&e===i(u)&&(m?(b(C),C=-1):m=!0,j(w,a-o))):(e.sortIndex=s,n(c,e),g||p||(g=!0,U(_))),e},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},9844:function(e){(function(){var t,n,i,r,a,o,s,l=[].slice,c={}.hasOwnProperty;t=function(){var e,t,n,i,r,o;
2if(o=arguments[0],r=2<=arguments.length?l.call(arguments,1):[],a(Object.assign))Object.assign.apply(null,arguments);else for(e=0,n=r.length;e<n;e++)if(null!=(i=r[e]))for(t in i)c.call(i,t)&&(o[t]=i[t]);return o},a=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},o=function(e){var t;return!!e&&("function"===(t=typeof e)||"object"===t)},i=function(e){return a(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},r=function(e){var t;if(i(e))return!e.length;for(t in e)if(c.call(e,t))return!1;return!0},s=function(e){var t,n;return o(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&"function"===typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return a(e.valueOf)?e.valueOf():e},e.exports.assign=t,e.exports.isFunction=a,e.exports.isObject=o,e.exports.isArray=i,e.exports.isEmpty=r,e.exports.isPlainObject=s,e.exports.getValue=n}).call(this)},8125:function(e){(function(){e.exports=function(){function e(e,t,n){if(this.options=e.options,this.stringify=e.stringify,this.parent=e,null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));if(null==n)throw new Error("Missing attribute value. "+this.debugInfo(t));this.name=this.stringify.attName(t),this.value=this.stringify.attValue(n)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)},e.prototype.debugInfo=function(e){return null==(e=e||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e}()}).call(this)},8484:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(n)}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)},t}(t)}).call(this)},7952:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(n)}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).comment(this)},t}(t)}).call(this)},6938:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n,i,r,a,o){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!r)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!a)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==a.indexOf("#")&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(o&&!a.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.eleName(n),this.attributeName=this.stringify.attName(i),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(o),this.defaultValueType=a}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},t}(t)}).call(this)},6305:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.eleName(n),this.value=this.stringify.dtdElementValue(i)}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},t}(t)}).call(this)},1102:function(e,t,n){(function(){var t,i,r={}.hasOwnProperty;i=n(9844).isObject,t=n(2333),e.exports=function(e){function t(e,n,r,a){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(null==a)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!n,this.name=this.stringify.eleName(r),i(a)){if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(null!=a.pubID&&(this.pubID=this.stringify.dtdPubID(a.pubID)),null!=a.sysID&&(this.sysID=this.stringify.dtdSysID(a.sysID)),null!=a.nData&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}else this.value=this.stringify.dtdEntityValue(a)}return function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},t}(t)}).call(this)},3231:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.eleName(n),null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},t}(t)}).call(this)},5257:function(e,t,n){(function(){var t,i,r={}.hasOwnProperty;i=n(9844).isObject,t=n(2333),e.exports=function(e){function t(e,n,r,a){var o;t.__super__.constructor.call(this,e),i(n)&&(n=(o=n).version,r=o.encoding,a=o.standalone),n||(n="1.0"),this.version=this.stringify.xmlVersion(n),null!=r&&(this.encoding=this.stringify.xmlEncoding(r)),null!=a&&(this.standalone=this.stringify.xmlStandalone(a))}return function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),t.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},t}(t)}).call(this)},6575:function(e,t,n){(function(){var t,i,r,a,o,s,l={}.hasOwnProperty;s=n(9844).isObject,o=n(2333),t=n(6938),r=n(1102),i=n(6305),a=n(3231),e.exports=function(e){function n(e,t,i){var r,a;n.__super__.constructor.call(this,e),this.name="!DOCTYPE",this.documentObject=e,s(t)&&(t=(r=t).pubID,i=r.sysID),null==i&&(i=(a=[t,i])[0],t=a[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=i&&(this.sysID=this.stringify.dtdSysID(i))}return function(e,t){for(var n in t)l.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(n,e),n.prototype.element=function(e,t){var n;return n=new i(this,e,t),this.children.push(n),this},n.prototype.attList=function(e,n,i,r,a){var o;return o=new t(this,e,n,i,r,a),this.children.push(o),this},n.prototype.entity=function(e,t){var n;return n=new r(this,!1,e,t),this.children.push(n),this},n.prototype.pEntity=function(e,t){var n;return n=new r(this,!0,e,t),this.children.push(n),this},n.prototype.notation=function(e,t){var n;return n=new a(this,e,t),this.children.push(n),this},n.prototype.toString=function(e){return this.options.writer.set(e).docType(this)}
2,n.prototype.ele=function(e,t){return this.element(e,t)},n.prototype.att=function(e,t,n,i,r){return this.attList(e,t,n,i,r)},n.prototype.ent=function(e,t){return this.entity(e,t)},n.prototype.pent=function(e,t){return this.pEntity(e,t)},n.prototype.not=function(e,t){return this.notation(e,t)},n.prototype.up=function(){return this.root()||this.documentObject},n}(o)}).call(this)},4016:function(e,t,n){(function(){var t,i,r,a,o={}.hasOwnProperty;a=n(9844).isPlainObject,t=n(2333),r=n(4283),i=n(5759),e.exports=function(e){function t(e){t.__super__.constructor.call(this,null),this.name="?xml",e||(e={}),e.writer||(e.writer=new i),this.options=e,this.stringify=new r(e),this.isDocument=!0}return function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),t.prototype.end=function(e){var t;return e?a(e)&&(t=e,e=this.options.writer.set(t)):e=this.options.writer,e.document(this)},t.prototype.toString=function(e){return this.options.writer.set(e).document(this)},t}(t)}).call(this)},8169:function(e,t,n){(function(){var t,i,r,a,o,s,l,c,u,d,h,f,p,g,m,v,b,y,x,w,_={}.hasOwnProperty;w=n(9844),y=w.isObject,b=w.isFunction,x=w.isPlainObject,v=w.getValue,d=n(2369),i=n(8484),r=n(7952),f=n(8087),m=n(1638),h=n(2724),c=n(5257),u=n(6575),a=n(6938),s=n(1102),o=n(6305),l=n(3231),t=n(8125),g=n(4283),p=n(5759),e.exports=function(){function e(e,t,n){var i;this.name="?xml",e||(e={}),e.writer?x(e.writer)&&(i=e.writer,e.writer=new p(i)):e.writer=new p(e),this.options=e,this.writer=e.writer,this.stringify=new g(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.node=function(e,t,n){var i,r;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=v(e),null===t&&null==n&&(t=(i=[{},null])[0],n=i[1]),null==t&&(t={}),t=v(t),y(t)||(n=(r=[t,n])[0],t=r[1]),this.currentNode=new d(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},e.prototype.element=function(e,t,n){return this.currentNode&&this.currentNode instanceof u?this.dtdElement.apply(this,arguments):this.node(e,t,n)},e.prototype.attribute=function(e,n){var i,r;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=v(e)),y(e))for(i in e)_.call(e,i)&&(r=e[i],this.attribute(i,r));else b(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[e]=new t(this,e,n));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new m(this,e),this.onData(this.writer.text(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.cd
2ata(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new r(this,e),this.onData(this.writer.comment(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new f(this,e),this.onData(this.writer.raw(t,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(e,t){var n,i,r,a,o;if(this.openCurrent(),null!=e&&(e=v(e)),null!=t&&(t=v(t)),Array.isArray(e))for(n=0,a=e.length;n<a;n++)i=e[n],this.instruction(i);else if(y(e))for(i in e)_.call(e,i)&&(r=e[i],this.instruction(i,r));else b(t)&&(t=t.apply()),o=new h(this,e,t),this.onData(this.writer.processingInstruction(o,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(e,t,n){var i;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return i=new c(this,e,t,n),this.onData(this.writer.declaration(i,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(e,t,n){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new u(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new o(this,e,t),this.onData(this.writer.dtdElement(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(e,t,n,i,r){var o;return this.openCurrent(),o=new a(this,e,t,n,i,r),this.onData(this.writer.dtdAttList(o,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new s(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new s(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new l(this,e,t),this.onData(this.writer.dtdNotation(n,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){if(!e.isOpen)return!this.root&&0===this.currentLevel&&e instanceof d&&(this.root=e),this.onData(this.writer.openNode(e,this.currentLevel),this.currentLevel),e.isOpen=!0},e.prototype.closeNode=function(e){if(!e.isClosed)return this.onData(this.writer.closeNode(e,this.currentLevel),this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},2249:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.isDummy=!0}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return""},t}(t)}).call(this)},2369:function(e,t,n){(function(){var t,i,r,a,o,s,l={}.hasOwnProperty;s=n(9844),o=s.isObject,a=s.isFunction,r=s.getValue,i=n(2333),t=n(8125),e.exports=function(e){function n(e,t,i){if(n.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(t),this.attributes={},null!=i&&this.attribute(i),e.isDocument&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this)}return function(e,t){for(var n in t)l.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(n,e),n.prototype.clone=function(){var e,t,n,i;for(t in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},i=this.attributes)l.call(i,t)&&(e=i[t],n.attributes[t]=e.clone());
2return n.children=[],this.children.forEach((function(e){var t;return(t=e.clone()).parent=n,n.children.push(t)})),n},n.prototype.attribute=function(e,n){var i,s;if(null!=e&&(e=r(e)),o(e))for(i in e)l.call(e,i)&&(s=e[i],this.attribute(i,s));else a(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[e]=new t(this,e,n));return this},n.prototype.removeAttribute=function(e){var t,n,i;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=r(e),Array.isArray(e))for(n=0,i=e.length;n<i;n++)t=e[n],delete this.attributes[t];else delete this.attributes[e];return this},n.prototype.toString=function(e){return this.options.writer.set(e).element(this)},n.prototype.att=function(e,t){return this.attribute(e,t)},n.prototype.a=function(e,t){return this.attribute(e,t)},n}(i)}).call(this)},2333:function(e,t,n){(function(){var t,i,r,a,o,s,l,c,u,d,h,f,p,g,m={}.hasOwnProperty;g=n(9844),p=g.isObject,f=g.isFunction,h=g.isEmpty,d=g.getValue,s=null,t=null,i=null,r=null,a=null,c=null,u=null,l=null,o=null,e.exports=function(){function e(e){this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],s||(s=n(2369),t=n(8484),i=n(7952),r=n(5257),a=n(6575),c=n(8087),u=n(1638),l=n(2724),o=n(2249))}return e.prototype.element=function(e,t,n){var i,r,a,o,s,l,c,u,g,v,b;if(l=null,null===t&&null==n&&(t=(g=[{},null])[0],n=g[1]),null==t&&(t={}),t=d(t),p(t)||(n=(v=[t,n])[0],t=v[1]),null!=e&&(e=d(e)),Array.isArray(e))for(a=0,c=e.length;a<c;a++)r=e[a],l=this.element(r);else if(f(e))l=this.element(e.apply());else if(p(e)){for(s in e)if(m.call(e,s))if(b=e[s],f(b)&&(b=b.apply()),p(b)&&h(b)&&(b=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))l=this.attribute(s.substr(this.stringify.convertAttKey.length),b);else if(!this.options.separateArrayItems&&Array.isArray(b))for(o=0,u=b.length;o<u;o++)r=b[o],(i={})[s]=r,l=this.element(i);else p(b)?(l=this.element(s)).element(b):l=this.element(s,b)}else l=this.options.skipNullNodes&&null===n?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(null==l)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return l},e.prototype.insertBefore=function(e,t,n){var i,r,a;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return r=this.parent.children.indexOf(this),a=this.parent.children.splice(r),i=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,a),i},e.prototype.insertAfter=function(e,t,n){var i,r,a;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return r=this.parent.children.indexOf(this),a=this.parent.children.splice(r+1),i=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,a),i},e.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},e.prototype.node=function(e,t,n){var i,r;return null!=e&&(e=d(e)),t||(t={}),t=d(t),p(t)||(n=(r=[t,n])[0],t=r[1]),i=new s(this,e,t),null!=n&&i.text(n),this.children.push(i),i},e.prototype.text=function(e){var t;return t=new u(this,e),this.children.push(t),this},e.prototype.cdata=function(e){var n;return n=new t(this,e),this.children.push(n),this},e.prototype.comment=function(e){var t;return t=new i(this,e),this.children.push(t),this},e.prototype.commentBefore=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.commentAfter=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},e.prototype.raw=function(e){var t;return t=new c(this,e),this.children.push(t),this},e.prototype.dummy=function(){var e;return e=new o(this),this.children.push(e),e},e.prototype.instruction=function(e,t){var n,i,r,a,o;if(null!=e&&(e=d(e)),null!=t&&(t=d(t)),Array.isArray(e))for(a=0,o=e.length;a<o;a++)n=e[a],this.instruction(n);else if(p(e))for(n in e)m.call(e,n)&&(i=e[n],this.instruction(n,i));else f(t)&&(t=t.apply()),r=new l(this,e,t),this.children.push(r);return this},e.prototype.instructionBefore=function(e,t){var n,i;return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,i),this},e.prototype.instructionAfter=function(e,t){var n,i;return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,i),this},e.prototype.declaration=function(e,t,n){var i,a;return i=this.document(),a=new r(i,e,t,n),i.children[0]instanceof r?i.children[0]=a:i.children.unshift(a),i.root()||i},e.prototype.doctype=function(e,t){var n,i,r,o,s,l,c,u,d;for(n=this.document(),i=new a(n,e,t),r=o=0,l=(u=n.children).length;o<l;r=++o)if(u[r]instanceof a)return n.children[r]=i,i;for(r=s=0,c=(d=n.children).length;s<c;r=++s)if(d[r].isRoot)return n.children.splice(r,0,i),i;return n.children.push(i),i},e.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},e.prototype.root=function(){var e;
2for(e=this;e;){if(e.isDocument)return e.rootObject;if(e.isRoot)return e;e=e.parent}},e.prototype.document=function(){var e;for(e=this;e;){if(e.isDocument)return e;e=e.parent}},e.prototype.end=function(e){return this.document().end(e)},e.prototype.prev=function(){var e;for(e=this.parent.children.indexOf(this);e>0&&this.parent.children[e-1].isDummy;)e-=1;if(e<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},e.prototype.next=function(){var e;for(e=this.parent.children.indexOf(this);e<this.parent.children.length-1&&this.parent.children[e+1].isDummy;)e+=1;if(-1===e||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},e.prototype.importDocument=function(e){var t;return(t=e.root().clone()).parent=this,t.isRoot=!1,this.children.push(t),this},e.prototype.debugInfo=function(e){var t,n;return null!=(e=e||this.name)||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(n=this.parent)?n.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},e.prototype.ele=function(e,t,n){return this.element(e,t,n)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.doc=function(){return this.document()},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t){return this.doctype(e,t)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.u=function(){return this.up()},e.prototype.importXMLBuilder=function(e){return this.importDocument(e)},e}()}).call(this)},2724:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(n),i&&(this.value=this.stringify.insValue(i))}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)},t}(t)}).call(this)},8087:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(n)}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).raw(this)},t}(t)}).call(this)},4330:function(e,t,n){(function(){var t,i,r,a,o,s,l,c,u,d,h,f,p,g,m={}.hasOwnProperty;l=n(5257),c=n(6575),t=n(8484),i=n(7952),d=n(2369),f=n(8087),p=n(1638),h=n(2724),u=n(2249),r=n(6938),a=n(6305),o=n(1102),s=n(3231),g=n(7651),e.exports=function(e){function n(e,t){n.__super__.constructor.call(this,t),this.stream=e}return function(e,t){for(var n in t)m.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(n,e),n.prototype.document=function(e){var t,n,r,a,o,s,d,f;for(n=0,a=(s=e.children).length;n<a;n++)(t=s[n]).isLastRootNode=!1;for(e.children[e.children.length-1].isLastRootNode=!0,f=[],r=0,o=(d=e.children).length;r<o;r++)if(!((t=d[r])instanceof u))switch(!1){case!(t instanceof l):f.push(this.declaration(t));break;case!(t instanceof c):f.push(this.docType(t));break;case!(t instanceof i):f.push(this.comment(t));break;case!(t instanceof h):f.push(this.processingInstruction(t));break;
2default:f.push(this.element(t))}return f},n.prototype.attribute=function(e){return this.stream.write(" "+e.name+'="'+e.value+'"')},n.prototype.cdata=function(e,t){return this.stream.write(this.space(t)+"<![CDATA["+e.text+"]]>"+this.endline(e))},n.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))},n.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write('<?xml version="'+e.version+'"'),null!=e.encoding&&this.stream.write(' encoding="'+e.encoding+'"'),null!=e.standalone&&this.stream.write(' standalone="'+e.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(e))},n.prototype.docType=function(e,n){var l,c,u,d;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e)),c=0,u=(d=e.children).length;c<u;c++)switch(l=d[c],!1){case!(l instanceof r):this.dtdAttList(l,n+1);break;case!(l instanceof a):this.dtdElement(l,n+1);break;case!(l instanceof o):this.dtdEntity(l,n+1);break;case!(l instanceof s):this.dtdNotation(l,n+1);break;case!(l instanceof t):this.cdata(l,n+1);break;case!(l instanceof i):this.comment(l,n+1);break;case!(l instanceof h):this.processingInstruction(l,n+1);break;default:throw new Error("Unknown DTD node type: "+l.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(e))},n.prototype.element=function(e,n){var r,a,o,s,l,c,g,v;for(l in n||(n=0),v=this.space(n),this.stream.write(v+"<"+e.name),c=e.attributes)m.call(c,l)&&(r=c[l],this.attribute(r));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?this.stream.write("></"+e.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)this.stream.write(">"),this.stream.write(e.children[0].value),this.stream.write("</"+e.name+">");else{for(this.stream.write(">"+this.newline),o=0,s=(g=e.children).length;o<s;o++)switch(a=g[o],!1){case!(a instanceof t):this.cdata(a,n+1);break;case!(a instanceof i):this.comment(a,n+1);break;case!(a instanceof d):this.element(a,n+1);break;case!(a instanceof f):this.raw(a,n+1);break;case!(a instanceof p):this.text(a,n+1);break;case!(a instanceof h):this.processingInstruction(a,n+1);break;case!(a instanceof u):break;default:throw new Error("Unknown XML node type: "+a.constructor.name)}this.stream.write(v+"</"+e.name+">")}return this.stream.write(this.endline(e))},n.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+"<?"+e.target),e.value&&this.stream.write(" "+e.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(e))},n.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},n.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},n.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType),"#DEFAULT"!==e.defaultValueType&&this.stream.write(" "+e.defaultValueType),e.defaultValue&&this.stream.write(' "'+e.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+"<!ELEMENT "+e.name+" "+e.value),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+"<!ENTITY"),e.pe&&this.stream.write(" %"),this.stream.write(" "+e.name),e.value?this.stream.write(' "'+e.value+'"'):(e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.nData&&this.stream.write(" NDATA "+e.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+"<!NOTATION "+e.name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.pubID?this.stream.write(' PUBLIC "'+e.pubID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},n.prototype.endline=function(e){return e.isLastRootNode?"":this.newline},n}(g)}).call(this)},5759:function(e,t,n){(function(){var t,i,r,a,o,s,l,c,u,d,h,f,p,g,m={}.hasOwnProperty;l=n(5257),c=n(6575),t=n(8484),i=n(7952),d=n(2369),f=n(8087),p=n(1638),h=n(2724),u=n(2249),r=n(6938),a=n(6305),o=n(1102),s=n(3231),g=n(7651),e.exports=function(e){function n(e){n.__super__.constructor.call(this,e)}return function(e,t){for(var n in t)m.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(n,e),n.prototype.document=function(e){var t,n,r,a,o;for(this.textispresent=!1,a="",n=0,r=(o=e.children).length;n<r;n++)(t=o[n])instanceof u||(a+=function(){switch(!1){case!(t instanceof l):return this.declaration(t);case!(t instanceof c):return this.docType(t);case!(t instanceof i):return this.comment(t);case!(t instanceof h):return this.processingInstruction(t);
2default:return this.element(t,0)}}.call(this));return this.pretty&&a.slice(-this.newline.length)===this.newline&&(a=a.slice(0,-this.newline.length)),a},n.prototype.attribute=function(e){return" "+e.name+'="'+e.value+'"'},n.prototype.cdata=function(e,t){return this.space(t)+"<![CDATA["+e.text+"]]>"+this.newline},n.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline},n.prototype.declaration=function(e,t){var n;return n=this.space(t),n+='<?xml version="'+e.version+'"',null!=e.encoding&&(n+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(n+=' standalone="'+e.standalone+'"'),n+=this.spacebeforeslash+"?>",n+=this.newline},n.prototype.docType=function(e,n){var l,c,u,d,f;if(n||(n=0),d=this.space(n),d+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?d+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(d+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(d+=" [",d+=this.newline,c=0,u=(f=e.children).length;c<u;c++)l=f[c],d+=function(){switch(!1){case!(l instanceof r):return this.dtdAttList(l,n+1);case!(l instanceof a):return this.dtdElement(l,n+1);case!(l instanceof o):return this.dtdEntity(l,n+1);case!(l instanceof s):return this.dtdNotation(l,n+1);case!(l instanceof t):return this.cdata(l,n+1);case!(l instanceof i):return this.comment(l,n+1);case!(l instanceof h):return this.processingInstruction(l,n+1);default:throw new Error("Unknown DTD node type: "+l.constructor.name)}}.call(this);d+="]"}return d+=this.spacebeforeslash+">",d+=this.newline},n.prototype.element=function(e,n){var r,a,o,s,l,c,g,v,b,y,x,w,_;for(g in n||(n=0),_=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),v="",v+=(w=this.space(n))+"<"+e.name,b=e.attributes)m.call(b,g)&&(r=b[g],v+=this.attribute(r));if(0===e.children.length||e.children.every((function(e){return""===e.value})))this.allowEmpty?v+="></"+e.name+">"+this.newline:v+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===e.children.length&&null!=e.children[0].value)v+=">",v+=e.children[0].value,v+="</"+e.name+">"+this.newline;else{if(this.dontprettytextnodes)for(o=0,l=(y=e.children).length;o<l;o++)if(null!=(a=y[o]).value){this.textispresent++,_=!0;break}for(this.textispresent&&(this.newline="",this.pretty=!1,w=this.space(n)),v+=">"+this.newline,s=0,c=(x=e.children).length;s<c;s++)a=x[s],v+=function(){switch(!1){case!(a instanceof t):return this.cdata(a,n+1);case!(a instanceof i):return this.comment(a,n+1);case!(a instanceof d):return this.element(a,n+1);case!(a instanceof f):return this.raw(a,n+1);case!(a instanceof p):return this.text(a,n+1);case!(a instanceof h):return this.processingInstruction(a,n+1);case!(a instanceof u):return"";default:throw new Error("Unknown XML node type: "+a.constructor.name)}}.call(this);_&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),v+=w+"</"+e.name+">"+this.newline}return v},n.prototype.processingInstruction=function(e,t){var n;return n=this.space(t)+"<?"+e.target,e.value&&(n+=" "+e.value),n+=this.spacebeforeslash+"?>"+this.newline},n.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},n.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},n.prototype.dtdAttList=function(e,t){var n;return n=this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(n+=" "+e.defaultValueType),e.defaultValue&&(n+=' "'+e.defaultValue+'"'),n+=this.spacebeforeslash+">"+this.newline},n.prototype.dtdElement=function(e,t){return this.space(t)+"<!ELEMENT "+e.name+" "+e.value+this.spacebeforeslash+">"+this.newline},n.prototype.dtdEntity=function(e,t){var n;return n=this.space(t)+"<!ENTITY",e.pe&&(n+=" %"),n+=" "+e.name,e.value?n+=' "'+e.value+'"':(e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),e.nData&&(n+=" N
2DATA "+e.nData)),n+=this.spacebeforeslash+">"+this.newline},n.prototype.dtdNotation=function(e,t){var n;return n=this.space(t)+"<!NOTATION "+e.name,e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?n+=' PUBLIC "'+e.pubID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),n+=this.spacebeforeslash+">"+this.newline},n.prototype.openNode=function(e,t){var n,i,r,a;if(t||(t=0),e instanceof d){for(i in r=this.space(t)+"<"+e.name,a=e.attributes)m.call(a,i)&&(n=a[i],r+=this.attribute(n));return r+=(e.children?">":"/>")+this.newline}return r=this.space(t)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?r+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(r+=' SYSTEM "'+e.sysID+'"'),r+=(e.children?" [":">")+this.newline},n.prototype.closeNode=function(e,t){switch(t||(t=0),!1){case!(e instanceof d):return this.space(t)+"</"+e.name+">"+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}},n}(g)}).call(this)},4283:function(e){(function(){var t={}.hasOwnProperty;e.exports=function(){function e(e){var n,i,r,a,o;for(r in this.assertLegalChar=(n=this.assertLegalChar,i=this,function(){return n.apply(i,arguments)}),e||(e={}),this.noDoubleEncoding=e.noDoubleEncoding,a=e.stringify||{})t.call(a,r)&&(o=a[r],this[r]=o)}return e.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},e.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},e.prototype.cdata=function(e){return e=(e=""+e||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e)},e.prototype.comment=function(e){if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return""+e||""},e.prototype.attName=function(e){return""+e||""},e.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},e.prototype.insTarget=function(e){return""+e||""},e.prototype.insValue=function(e){if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},e.prototype.xmlVersion=function(e){if(!(e=""+e||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return e},e.prototype.xmlStandalone=function(e){return e?"yes":"no"},e.prototype.dtdPubID=function(e){return""+e||""},e.prototype.dtdSysID=function(e){return""+e||""},e.prototype.dtdElementValue=function(e){return""+e||""},e.prototype.dtdAttType=function(e){return""+e||""},e.prototype.dtdAttDefault=function(e){return null!=e?""+e||"":e},e.prototype.dtdEntityValue=function(e){return""+e||""},e.prototype.dtdNData=function(e){return""+e||""},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t;if(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},e.prototype.elEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},e.prototype.attEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},e}()}).call(this)},1638:function(e,t,n){(function(){var t,i={}.hasOwnProperty;t=n(2333),e.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(n)}return function(e,t){for(var n in t)i.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.set(e).text(this)},t}(t)}).call(this)},7651:function(e){(function(){var t={}.hasOwnProperty;e.exports=function(){function e(e){var n,i,r,a,o,s,l,c,u;for(n in e||(e={}),this.pretty=e.pretty||!1,this.allowEmpty=null!=(i=e.allowEmpty)&&i,this.pretty?(this.indent=null!=(r=e.indent)?r:"  ",this.newline=null!=(a=e.newline)?a:"\n",this.offset=null!=(o=e.offset)?o:0,this.dontprettytextnodes=null!=(s=e.dontprettytextnodes)?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=null!=(l=e.spacebeforeslash)?l:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,c=e.writer||{})t.call(c,n)&&(u=c[n],this[n]=u)}return e.prototype.set=function(e){var n,i,r;for(n in e||(e={}),"pretty"in e&&(this.pretty=e.pretty),"allowEmpty"in e&&(this.allowEmpty=e.allowEmpty),this.pretty?(this.indent="indent"in e?e.indent:"  ",this.newline="newline"in e?e.newline:"\n",this.offset="offset"in e?e.offset:0,this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,i=e.writer||{})t.call(i,n)&&(r=i[n],this[n]=r);return this},e.prototype.space=function(e){var t;return this.pretty&&(t=(e||0)+this.offset+1)>0?new Array(t).join(this.indent):""},e}()}).call(this)},6400:function(e,t,n){(function(){var t,i,r,a,o,s,l;l=n(9844),o=l.assign,s=l.isFunction,t=n(4016),i=n(8169),a=n(5759),r=n(4330),e.exports.create=function(e,n,i,r){var a,s;if(null==e)throw new Error("Root element needs a name.");return r=o({}
2,n,i,r),s=(a=new t(r)).element(e),r.headless||(a.declaration(r),null==r.pubID&&null==r.sysID||a.doctype(r)),s},e.exports.begin=function(e,n,r){var a;return s(e)&&(n=(a=[e,n])[0],r=a[1],e={}),n?new i(e,n,r):new t(e)},e.exports.stringWriter=function(e){return new a(e)},e.exports.streamWriter=function(e,t){return new r(e,t)}}).call(this)},477:()=>{},5760:(e,t,n)=>{"use strict";function i(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function r(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function a(e){let t,n,a;function s(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<a){if(0!==t(i,i))return a;do{const t=r+a>>>1;n(e[t],i)<0?r=t+1:a=t}while(r<a)}return r}return 2!==e.length?(t=i,n=(t,n)=>i(e(t),n),a=(t,n)=>e(t)-n):(t=e===i||e===r?e:o,n=e,a=e),{left:s,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=s(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<a){if(0!==t(i,i))return a;do{const t=r+a>>>1;n(e[t],i)<=0?r=t+1:a=t}while(r<a)}return r}}}function o(){return 0}function s(e){return null===e?NaN:+e}n.r(t),n.d(t,{Adder:()=>E,Delaunay:()=>ll,FormatSpecifier:()=>Au,InternMap:()=>P,InternSet:()=>U,Node:()=>nm,Path:()=>So,Voronoi:()=>nl,ZoomTransform:()=>hC,active:()=>fa,arc:()=>$D,area:()=>rS,areaRadial:()=>fS,ascending:()=>i,autoType:()=>zl,axisBottom:()=>yt,axisLeft:()=>xt,axisRight:()=>bt,axisTop:()=>vt,bin:()=>fe,bisect:()=>h,bisectCenter:()=>d,bisectLeft:()=>u,bisectRight:()=>c,bisector:()=>a,blob:()=>Mc,blur:()=>f,blur2:()=>p,blurImage:()=>g,brush:()=>za,brushSelection:()=>La,brushX:()=>Ba,brushY:()=>Wa,buffer:()=>Uc,chord:()=>po,chordDirected:()=>mo,chordTranspose:()=>go,cluster:()=>Kg,color:()=>hi,contourDensity:()=>Us,contours:()=>ks,count:()=>x,create:()=>SD,creator:()=>An,cross:()=>S,csv:()=>Ic,csvFormat:()=>El,csvFormatBody:()=>Nl,csvFormatRow:()=>Pl,csvFormatRows:()=>Ml,csvFormatValue:()=>Ul,csvParse:()=>Al,csvParseRows:()=>Tl,cubehelix:()=>gs,cumsum:()=>k,curveBasis:()=>ik,curveBasisClosed:()=>ak,curveBasisOpen:()=>sk,curveBumpX:()=>vS,curveBumpY:()=>bS,curveBundle:()=>ck,curveCardinal:()=>hk,curveCardinalClosed:()=>pk,curveCardinalOpen:()=>mk,curveCatmullRom:()=>yk,curveCatmullRomClosed:()=>wk,curveCatmullRomOpen:()=>Dk,curveLinear:()=>eS,curveLinearClosed:()=>kk,curveMonotoneX:()=>Uk,curveMonotoneY:()=>jk,curveNatural:()=>Ok,curveStep:()=>Lk,curveStepAfter:()=>Wk,curveStepBefore:()=>Bk,descending:()=>r,deviation:()=>A,difference:()=>Qe,disjoint:()=>Ze,dispatch:()=>Ct,drag:()=>gl,dragDisable:()=>Gn,dragEnable:()=>Yn,dsv:()=>Oc,dsvFormat:()=>kl,easeBack:()=>kc,easeBackIn:()=>Dc,easeBackInOut:()=>kc,easeBackOut:()=>Sc,easeBounce:()=>xc,easeBounceIn:()=>yc,easeBounceInOut:()=>wc,easeBounceOut:()=>xc,easeCircle:()=>lc,easeCircleIn:()=>
2oc,easeCircleInOut:()=>lc,easeCircleOut:()=>sc,easeCubic:()=>ca,easeCubicIn:()=>sa,easeCubicInOut:()=>ca,easeCubicOut:()=>la,easeElastic:()=>Tc,easeElasticIn:()=>Ac,easeElasticInOut:()=>Ec,easeElasticOut:()=>Tc,easeExp:()=>ac,easeExpIn:()=>ic,easeExpInOut:()=>ac,easeExpOut:()=>rc,easeLinear:()=>Hl,easePoly:()=>$l,easePolyIn:()=>Xl,easePolyInOut:()=>$l,easePolyOut:()=>Kl,easeQuad:()=>Yl,easeQuadIn:()=>ql,easeQuadInOut:()=>Yl,easeQuadOut:()=>Gl,easeSin:()=>tc,easeSinIn:()=>Jl,easeSinInOut:()=>tc,easeSinOut:()=>ec,every:()=>qe,extent:()=>T,fcumsum:()=>M,filter:()=>Ye,flatGroup:()=>z,flatRollup:()=>V,forceCenter:()=>Yc,forceCollide:()=>ou,forceLink:()=>cu,forceManyBody:()=>bu,forceRadial:()=>yu,forceSimulation:()=>vu,forceX:()=>xu,forceY:()=>wu,format:()=>Pu,formatDefaultLocale:()=>Ou,formatLocale:()=>Ru,formatPrefix:()=>Uu,formatSpecifier:()=>Cu,fsum:()=>N,geoAlbers:()=>ug,geoAlbersUsa:()=>dg,geoArea:()=>Wd,geoAzimuthalEqualArea:()=>gg,geoAzimuthalEqualAreaRaw:()=>pg,geoAzimuthalEquidistant:()=>vg,geoAzimuthalEquidistantRaw:()=>mg,geoBounds:()=>_h,geoCentroid:()=>jh,geoCircle:()=>qh,geoClipAntimeridian:()=>nf,geoClipCircle:()=>rf,geoClipExtent:()=>hf,geoClipRectangle:()=>df,geoConicConformal:()=>Dg,geoConicConformalRaw:()=>_g,geoConicEqualArea:()=>cg,geoConicEqualAreaRaw:()=>lg,geoConicEquidistant:()=>Ag,geoConicEquidistantRaw:()=>Cg,geoContains:()=>Ef,geoDistance:()=>xf,geoEqualEarth:()=>jg,geoEqualEarthRaw:()=>Ug,geoEquirectangular:()=>kg,geoEquirectangularRaw:()=>Sg,geoGnomonic:()=>Rg,geoGnomonicRaw:()=>Fg,geoGraticule:()=>Pf,geoGraticule10:()=>Uf,geoIdentity:()=>Og,geoInterpolate:()=>jf,geoLength:()=>vf,geoMercator:()=>yg,geoMercatorRaw:()=>bg,geoNaturalEarth1:()=>Lg,geoNaturalEarth1Raw:()=>Ig,geoOrthographic:()=>Wg,geoOrthographicRaw:()=>Bg,geoPath:()=>qp,geoProjection:()=>ag,geoProjectionMutator:()=>og,geoRotation:()=>zh,geoStereographic:()=>Vg,geoStereographicRaw:()=>zg,geoStream:()=>vd,geoTransform:()=>Gp,geoTransverseMercator:()=>qg,geoTransverseMercatorRaw:()=>Hg,gray:()=>Ko,greatest:()=>xe,greatestIndex:()=>Oe,group:()=>L,groupSort:()=>ee,groups:()=>B,hcl:()=>rs,hierarchy:()=>Qg,histogram:()=>fe,hsl:()=>ki,html:()=>qc,image:()=>Bc,index:()=>G,indexes:()=>Y,interpolate:()=>Zi,interpolateArray:()=>Hi,interpolateBasis:()=>Mi,interpolateBasisClosed:()=>Pi,interpolateBlues:()=>Q_,interpolateBrBG:()=>c_,interpolateBuGn:()=>A_,interpolateBuPu:()=>E_,interpolateCividis:()=>lD,interpolateCool:()=>dD,interpolateCubehelix:()=>mv,interpolateCubehelixDefault:()=>cD,interpolateCubehelixLong:()=>vv,interpolateDate:()=>Gi,interpolateDiscrete:()=>iv,interpolateGnBu:()=>M_,interpolateGreens:()=>J_,interpolateGreys:()=>tD,interpolateHcl:()=>fv,interpolateHclLong:()=>pv,interpolateHsl:()=>cv,interpolateHslLong:()=>uv,interpolateHue:()=>rv,interpolateInferno:()=>_D,interpolateLab:()=>dv,interpolateMagma:()=>wD,interpolateNumber:()=>Yi,interpolateNumberArray:()=>zi,interpolateObject:()=>Xi,interpolateOrRd:()=>U_,interpolateOranges:()=>sD,interpolatePRGn:()=>d_,interpolatePiYG:()=>f_,interpolatePlasma:()=>DD,interpolatePuBu:()=>O_,interpolatePuBuGn:()=>F_,interpolatePuOr:()=>g_,interpolatePuRd:()=>L_,interpolatePurples:()=>iD,interpolateRainbow:()=>fD,interpolateRdBu:()=>v_,interpolateRdGy:()=>y_,interpolateRdPu:()=>W_,interpolateRdYlBu:()=>w_,interpolateRdYlGn:()=>D_,interpolateReds:()=>aD,interpolateRgb:()=>Ii,interpolateRgbBasis:()=>Bi,interpolateRgbBasisClosed:()=>Wi,interpolateRound:()=>av,interpolateSinebow:()=>vD,interpolateSpectral:()=>k_,interpolateString:()=>Qi,interpolateTransformCss:()=>Rr,interpolateTransformSvg:()=>Or,interpolateTurbo:()=>bD,interpolateViridis:()=>xD,interpolateWarm:()=>uD,interpolateYlGn:()=>
2q_,interpolateYlGnBu:()=>V_,interpolateYlOrBr:()=>Y_,interpolateYlOrRd:()=>K_,interpolateZoom:()=>sv,interrupt:()=>Nr,intersection:()=>Je,interval:()=>cC,isoFormat:()=>oC,isoParse:()=>lC,json:()=>zc,lab:()=>$o,lch:()=>is,least:()=>Fe,leastIndex:()=>Re,line:()=>iS,lineRadial:()=>hS,link:()=>_S,linkHorizontal:()=>DS,linkRadial:()=>kS,linkVertical:()=>SS,local:()=>CD,map:()=>Xe,matcher:()=>Pt,max:()=>pe,maxIndex:()=>ge,mean:()=>Ce,median:()=>Ae,medianIndex:()=>Te,merge:()=>Ee,min:()=>me,minIndex:()=>ve,mode:()=>Ne,namespace:()=>Yt,namespaces:()=>Gt,nice:()=>de,now:()=>dr,pack:()=>Am,packEnclose:()=>dm,packSiblings:()=>km,pairs:()=>Me,partition:()=>Um,path:()=>ko,pathRound:()=>Co,permute:()=>$,pie:()=>sS,piecewise:()=>bv,pointRadial:()=>pS,pointer:()=>er,pointers:()=>TD,polygonArea:()=>xv,polygonCentroid:()=>wv,polygonContains:()=>Cv,polygonHull:()=>kv,polygonLength:()=>Av,precisionFixed:()=>Iu,precisionPrefix:()=>Lu,precisionRound:()=>Bu,quadtree:()=>Zc,quantile:()=>we,quantileIndex:()=>De,quantileSorted:()=>_e,quantize:()=>yv,quickselect:()=>be,radialArea:()=>fS,radialLine:()=>hS,randomBates:()=>jv,randomBernoulli:()=>Ov,randomBeta:()=>Bv,randomBinomial:()=>Wv,randomCauchy:()=>Vv,randomExponential:()=>Fv,randomGamma:()=>Lv,randomGeometric:()=>Iv,randomInt:()=>Nv,randomIrwinHall:()=>Uv,randomLcg:()=>Kv,randomLogNormal:()=>Pv,randomLogistic:()=>Hv,randomNormal:()=>Mv,randomPareto:()=>Rv,randomPoisson:()=>qv,randomUniform:()=>Ev,randomWeibull:()=>zv,range:()=>Ue,rank:()=>je,reduce:()=>Ke,reverse:()=>$e,rgb:()=>mi,ribbon:()=>Oo,ribbonArrow:()=>Io,rollup:()=>H,rollups:()=>q,scaleBand:()=>eb,scaleDiverging:()=>Hw,scaleDivergingLog:()=>qw,scaleDivergingPow:()=>Yw,scaleDivergingSqrt:()=>Xw,scaleDivergingSymlog:()=>Gw,scaleIdentity:()=>gb,scaleImplicit:()=>Zv,scaleLinear:()=>pb,scaleLog:()=>Sb,scaleOrdinal:()=>Jv,scalePoint:()=>nb,scalePow:()=>Ub,scaleQuantile:()=>Ob,scaleQuantize:()=>Ib,scaleRadial:()=>Rb,scaleSequential:()=>Ow,scaleSequentialLog:()=>Iw,scaleSequentialPow:()=>Bw,scaleSequentialQuantile:()=>zw,scaleSequentialSqrt:()=>Ww,scaleSequentialSymlog:()=>Lw,scaleSqrt:()=>jb,scaleSymlog:()=>Tb,scaleThreshold:()=>Lb,scaleTime:()=>Uw,scaleUtc:()=>jw,scan:()=>Ie,schemeAccent:()=>Qw,schemeBlues:()=>$_,schemeBrBG:()=>l_,schemeBuGn:()=>C_,schemeBuPu:()=>T_,schemeCategory10:()=>$w,schemeDark2:()=>Zw,schemeGnBu:()=>N_,schemeGreens:()=>Z_,schemeGreys:()=>eD,schemeObservable10:()=>Jw,schemeOrRd:()=>P_,schemeOranges:()=>oD,schemePRGn:()=>u_,schemePaired:()=>e_,schemePastel1:()=>t_,schemePastel2:()=>n_,schemePiYG:()=>h_,schemePuBu:()=>R_,schemePuBuGn:()=>j_,schemePuOr:()=>p_,schemePuRd:()=>I_,schemePurples:()=>nD,schemeRdBu:()=>m_,schemeRdGy:()=>b_,schemeRdPu:()=>B_,schemeRdYlBu:()=>x_,schemeRdYlGn:()=>__,schemeReds:()=>rD,schemeSet1:()=>i_,schemeSet2:()=>r_,schemeSet3:()=>a_,schemeSpectral:()=>S_,schemeTableau10:()=>o_,schemeYlGn:()=>H_,schemeYlGnBu:()=>z_,schemeYlOrBr:()=>G_,schemeYlOrRd:()=>X_,select:()=>Wn,selectAll:()=>ED,selection:()=>Bn,selector:()=>Tt,selectorAll:()=>Mt,shuffle:()=>Le,shuffler:()=>Be,some:()=>Ge,sort:()=>Q,stack:()=>Gk,stackOffsetDiverging:()=>Xk,stackOffsetExpand:()=>Yk,stackOffsetNone:()=>zk,stackOffsetSilhouette:()=>Kk,stackOffsetWiggle:()=>$k,stackOrderAppearance:()=>Qk,stackOrderAscending:()=>Jk,stackOrderDescending:()=>tC,stackOrderInsideOut:()=>nC,stackOrderNone:()=>Vk,stackOrderReverse:()=>iC,stratify:()=>Lm,style:()=>an,subset:()=>it,sum:()=>We,superset:()=>tt,svg:()=>Gc,symbol:()=>JS,symbolAsterisk:()=>AS,symbolCircle:()=>TS,symbolCross:()=>ES,symbolDiamond:()=>PS,symbolDiamond2:()=>US,symbolPlus:()=>jS,symbolSquare:()=>FS,symbolSquare2:()=>RS,symbolStar:()=>BS,symbolTimes:()=>$S,symbolTriangle:()=>zS,symbolTriangle2:()=>HS,symbolWye:()=>KS,symbolX:()=>$S,symbols:()=>QS,symbolsFill:()=>QS,symbolsStroke:()=>ZS,text:()=>Fc,thresholdFreedmanDiaconis:()=>Se,thresholdScott:()=>ke,thresholdSturges:()=>he,tickFormat:()=>hb,tickIncrement:()=>ce,tickStep:()=>ue,ticks:()=>le,timeDay:()=>ly,timeDays:()=>cy,timeFormat:()=>lx,timeFormatDefaultLocale:()=>Ew,timeFormatLocale:()=>ox,timeFriday:()=>xy,timeFridays:()=>Ay,timeHour:()=>ry,timeHours:()=>ay,timeInterval:()=>Kb,timeMillisecond:()=>$b,timeMilliseconds:()=>Qb,timeMinute:()=>ey,timeMinutes:()=>ty,timeMonday:()=>my,timeMondays:()=>Dy,timeMonth:()=>Hy,timeMonths:()=>qy,timeParse:()=>cx,timeSaturday:()=>wy,timeSaturdays:()=>Ty,timeSecond:()=>Zb,timeSeconds:()=>Jb,timeSunday:()=>gy,timeSundays:()=>_y,timeThursday:()=>yy,timeThursdays:()=>Cy,timeTickInterval:()=>nx,timeTicks:()=>tx,timeTuesday:()=>vy,timeTuesdays:()=>Sy,timeWednesday:()=>by,timeWednesdays:()=>ky,timeWeek:()=>gy,timeWeeks:()=>_y,timeYear:()=>Xy,timeYears:()=>Ky,timeout:()=>yr,timer:()=>pr,timerFlush:()=>gr,transition:()=>ra,transpose:()=>ze,tree:()=>Xm,treemap:()=>Jm,treemapBinary:()=>ev,treemapDice:()=>Pm,treemapResquarify:()=>nv,treemapSlice:()=>Km,treemapSliceDice:()=>tv,treemapSquarify:()=>Zm,tsv:()=>Lc,tsvFormat:()=>Ol,tsvFormatBody:()=>Il,tsvFormatRow:()=>Bl,tsvFormatRows:()=>Ll,tsvFormatValue:()=>Wl,tsvParse:()=>Fl,tsvParseRows:()=>Rl,union:()=>rt,unixDay:()=>hy,unixDays:()=>
2fy,utcDay:()=>uy,utcDays:()=>dy,utcFormat:()=>ux,utcFriday:()=>Fy,utcFridays:()=>zy,utcHour:()=>oy,utcHours:()=>sy,utcMillisecond:()=>$b,utcMilliseconds:()=>Qb,utcMinute:()=>ny,utcMinutes:()=>iy,utcMonday:()=>My,utcMondays:()=>Iy,utcMonth:()=>Gy,utcMonths:()=>Yy,utcParse:()=>dx,utcSaturday:()=>Ry,utcSaturdays:()=>Vy,utcSecond:()=>Zb,utcSeconds:()=>Jb,utcSunday:()=>Ny,utcSundays:()=>Oy,utcThursday:()=>jy,utcThursdays:()=>Wy,utcTickInterval:()=>ex,utcTicks:()=>Jy,utcTuesday:()=>Py,utcTuesdays:()=>Ly,utcWednesday:()=>Uy,utcWednesdays:()=>By,utcWeek:()=>Ny,utcWeeks:()=>Oy,utcYear:()=>$y,utcYears:()=>Qy,variance:()=>C,window:()=>en,xml:()=>Hc,zip:()=>He,zoom:()=>DC,zoomIdentity:()=>fC,zoomTransform:()=>pC});const l=a(i),c=l.right,u=l.left,d=a(s).center,h=c;function f(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const i=y(t),r=e.slice();return i(e,r,0,n,1),i(r,e,0,n,1),i(e,r,0,n,1),e}const p=m(y),g=m((function(e){const t=y(e);return(e,n,i,r,a)=>{t(e,n,(i<<=2)+0,(r<<=2)+0,a<<=2),t(e,n,i+1,r+1,a),t(e,n,i+2,r+2,a),t(e,n,i+3,r+3,a)}}));function m(e){return function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((i=+i)>=0))throw new RangeError("invalid ry");let{data:r,width:a,height:o}=t;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");
vendor: 5,722 bytes, line 2
2if(!((o=Math.floor(void 0!==o?o:r.length/a))>=0))throw new RangeError("invalid height");if(!a||!o||!n&&!i)return t;const s=n&&e(n),l=i&&e(i),c=r.slice();return s&&l?(v(s,c,r,a,o),v(s,r,c,a,o),v(s,c,r,a,o),b(l,r,c,a,o),b(l,c,r,a,o),b(l,r,c,a,o)):s?(v(s,r,c,a,o),v(s,c,r,a,o),v(s,r,c,a,o)):l&&(b(l,r,c,a,o),b(l,c,r,a,o),b(l,r,c,a,o)),t}}function v(e,t,n,i,r){for(let a=0,o=i*r;a<o;)e(t,n,a,a+=i,1)}function b(e,t,n,i,r){for(let a=0,o=i*r;a<i;++a)e(t,n,a,a+o,i)}function y(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(n,i,r,a,o)=>{if(!((a-=o)>=r))return;let s=e*i[r];const l=o*e;for(let e=r,t=r+l;e<t;e+=o)s+=i[Math.min(a,e)];for(let e=r,c=a;e<=c;e+=o)s+=i[Math.min(a,e+l)],n[e]=s/t,s-=i[Math.max(r,e-l)]}}(e);const n=e-t,i=2*e+1;return(e,r,a,o,s)=>{if(!((o-=s)>=a))return;let l=t*r[a];const c=s*t,u=c+s;for(let t=a,n=a+c;t<n;t+=s)l+=r[Math.min(o,t)];for(let t=a,d=o;t<=d;t+=s)l+=r[Math.min(o,t+c)],e[t]=(l+n*(r[Math.max(a,t-u)]+r[Math.min(o,t+u)]))/i,l-=r[Math.max(a,t-c)]}}function x(e,t){let n=0;if(void 0===t)for(let i of e)null!=i&&(i=+i)>=i&&++n;else{let i=-1;for(let r of e)null!=(r=t(r,++i,e))&&(r=+r)>=r&&++n}return n}function w(e){return 0|e.length}function _(e){return!(e>0)}function D(e){return"object"!==typeof e||"length"in e?e:Array.from(e)}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i="function"===typeof t[t.length-1]&&function(e){return t=>e(...t)}(t.pop()),r=(t=t.map(D)).map(w),a=t.length-1,o=new Array(a+1).fill(0),s=[];if(a<0||r.some(_))return s;for(;;){s.push(o.map(((e,n)=>t[n][e])));let e=a;for(;++o[e]===r[e];){if(0===e)return i?s.map(i):s;o[e--]=0}}}function k(e,t){var n=0,i=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:r=>n+=+t(r,i++,e)||0)}function C(e,t){let n,i=0,r=0,a=0;if(void 0===t)for(let o of e)null!=o&&(o=+o)>=o&&(n=o-r,r+=n/++i,a+=n*(o-r));else{let o=-1;for(let s of e)null!=(s=t(s,++o,e))&&(s=+s)>=s&&(n=s-r,r+=n/++i,a+=n*(s-r))}if(i>1)return a/(i-1)}function A(e,t){const n=C(e,t);return n?Math.sqrt(n):n}function T(e,t){let n,i;if(void 0===t)for(const r of e)null!=r&&(void 0===n?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(void 0===n?a>=a&&(n=i=a):(n>a&&(n=a),i<a&&(i=a)))}return[n,i]}class E{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let i=0;i<this._n&&i<32;i++){const r=t[i],a=e+r,o=Math.abs(e)<Math.abs(r)?e-(a-r):r-(a-e);o&&(t[n++]=o),e=a}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,i,r=this._n,a=0;if(r>0){for(a=e[--r];r>0&&(t=a,n=e[--r],a=t+n,i=n-(a-t),!i););r>0&&(i<0&&e[r-1]<0||i>0&&e[r-1]>0)&&(n=2*i,t=a+n,n==t-a&&(a=t))}return a}}function N(e,t){const n=new E;if(void 0===t)for(let i of e)(i=+i)&&n.add(i);else{let i=-1;for(let r of e)(r=+t(r,++i,e))&&n.add(r)}return+n}function M(e,t){const n=new E;let i=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):r=>n.add(+t(r,++i,e)||0))}class P extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(j(this,e))}has(e){return super.has(j(this,e))}set(e,t){return super.set(F(this,e),t)}delete(e){return super.delete(R(this,e))}}class U extends Set{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const n of e)this.add(n)}has(e){return super.has(j(this,e))}add(e){return super.add(F(this,e))}delete(e){return super.delete(R(this,e))}}function j(e,t){let{_intern:n,_key:i}=e;const r=i(t);return n.has(r)?n.get(r):t}function F(e,t){let{_intern:n,_key:i}=e;const r=i(t);return n.has(r)?n.get(r):(n.set(r,t),t)}function R(e,t){let{_intern:n,_key:i}=e;const r=i(t);return n.has(r)&&(t=n.get(r),n.delete(r)),t}function O(e){return null!==e&&"object"===typeof e?e.valueOf():e}function I(e){return e}function L(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return K(e,I,I,n)}function B(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return K(e,Array.from,I,n)}function W(e,t){for(let n=1,i=t.length;n<i;++n)e=e.flatMap((e=>e.pop().map((t=>{let[n,i]=t;return[...e,n,i]}))));return e}function z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return W(B(e,...n),n)}function V(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return W(q(e,t,...i),i)}function H(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return K(e,I,t,i)}function q(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return K(e,Array.from,t,i)}function G(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return K(e,I,X,n)}function Y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return K(e,Array.from,X,n)}function X(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function K(e,t,n,i){return function e(r,a){if(a>=i.length)return n(r);const o=new P,s=i[a++];let l=-1;for(const t of r){const e=s(t,++l,r),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[t,n]of o)o.set(t,e(n,a));return t(o)}(e,0)}function $(e,t){return Array.from(t,(t=>e[t]))}function Q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[r]=n;if(r&&2!==r.length||n.length>1){const t=Uint32Array.from(e,((e,t)=>
vendor: 4,554 bytes, line 2
2t));return n.length>1?(n=n.map((t=>e.map(t))),t.sort(((e,t)=>{for(const i of n){const n=J(i[e],i[t]);if(n)return n}}))):(r=e.map(r),t.sort(((e,t)=>J(r[e],r[t])))),$(e,t)}return e.sort(Z(r))}function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;if(e===i)return J;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const i=e(t,n);return i||0===i?i:(0===e(n,n))-(0===e(t,t))}}function J(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function ee(e,t,n){return(2!==t.length?Q(H(e,t,n),((e,t)=>{let[n,r]=e,[a,o]=t;return i(r,o)||i(n,a)})):Q(L(e,n),((e,n)=>{let[r,a]=e,[o,s]=n;return t(a,s)||i(r,o)}))).map((e=>{let[t]=e;return t}))}var te=Array.prototype,ne=te.slice;te.map;function ie(e){return()=>e}const re=Math.sqrt(50),ae=Math.sqrt(10),oe=Math.sqrt(2);function se(e,t,n){const i=(t-e)/Math.max(0,n),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=re?10:a>=ae?5:a>=oe?2:1;let s,l,c;return r<0?(c=Math.pow(10,-r)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,r)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?se(e,t,2*n):[s,l,c]}function le(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const i=t<e,[r,a,o]=i?se(t,e,n):se(e,t,n);if(!(a>=r))return[];const s=a-r+1,l=new Array(s);if(i)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(r+c)/-o;else for(let c=0;c<s;++c)l[c]=(r+c)*o;return l}function ce(e,t,n){return se(e=+e,t=+t,n=+n)[2]}function ue(e,t,n){n=+n;const i=(t=+t)<(e=+e),r=i?ce(t,e,n):ce(e,t,n);return(i?-1:1)*(r<0?1/-r:r)}function de(e,t,n){let i;for(;;){const r=ce(e,t,n);if(r===i||0===r||!isFinite(r))return[e,t];r>0?(e=Math.floor(e/r)*r,t=Math.ceil(t/r)*r):r<0&&(e=Math.ceil(e*r)/r,t=Math.floor(t*r)/r),i=r}}function he(e){return Math.max(1,Math.ceil(Math.log(x(e))/Math.LN2)+1)}function fe(){var e=I,t=T,n=he;function i(i){Array.isArray(i)||(i=Array.from(i));var r,a,o,s=i.length,l=new Array(s);for(r=0;r<s;++r)l[r]=e(i[r],r,i);var c=t(l),u=c[0],d=c[1],f=n(l,u,d);if(!Array.isArray(f)){const e=d,n=+f;if(t===T&&([u,d]=de(u,d,n)),(f=le(u,d,n))[0]<=u&&(o=ce(u,d,n)),f[f.length-1]>=d)if(e>=d&&t===T){const e=ce(u,d,n);isFinite(e)&&(e>0?d=(Math.floor(d/e)+1)*e:e<0&&(d=(Math.ceil(d*-e)+1)/-e))}else f.pop()}for(var p=f.length,g=0,m=p;f[g]<=u;)++g;for(;f[m-1]>d;)--m;(g||m<p)&&(f=f.slice(g,m),p=m-g);var v,b=new Array(p+1);for(r=0;r<=p;++r)(v=b[r]=[]).x0=r>0?f[r-1]:u,v.x1=r<p?f[r]:d;if(isFinite(o)){if(o>0)for(r=0;r<s;++r)null!=(a=l[r])&&u<=a&&a<=d&&b[Math.min(p,Math.floor((a-u)/o))].push(i[r]);else if(o<0)for(r=0;r<s;++r)if(null!=(a=l[r])&&u<=a&&a<=d){const e=Math.floor((u-a)*o);b[Math.min(p,e+(f[e]<=a))].push(i[r])}}else for(r=0;r<s;++r)null!=(a=l[r])&&u<=a&&a<=d&&b[h(f,a,0,p)].push(i[r]);return b}return i.value=function(t){return arguments.length?(e="function"===typeof t?t:ie(t),i):e},i.domain=function(e){return arguments.length?(t="function"===typeof e?e:ie([e[0],e[1]]),i):t},i.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:ie(Array.isArray(e)?ne.call(e):e),i):n},i}function pe(e,t){let n;if(void 0===t)for(const i of e)null!=i&&(n<i||void 0===n&&i>=i)&&(n=i);else{let i=-1;for(let r of e)null!=(r=t(r,++i,e))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function ge(e,t){let n,i=-1,r=-1;if(void 0===t)for(const a of e)++r,null!=a&&(n<a||void 0===n&&a>=a)&&(n=a,i=r);else for(let a of e)null!=(a=t(a,++r,e))&&(n<a||void 0===n&&a>=a)&&(n=a,i=r);return i}function me(e,t){let n;if(void 0===t)for(const i of e)null!=i&&(n>i||void 0===n&&i>=i)&&(n=i);else{let i=-1;for(let r of e)null!=(r=t(r,++i,e))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function ve(e,t){let n,i=-1,r=-1;if(void 0===t)for(const a of e)++r,null!=a&&(n>a||void 0===n&&a>=a)&&(n=a,i=r);else for(let a of e)null!=(a=t(a,++r,e))&&(n>a||void 0===n&&a>=a)&&(n=a,i=r);return i}function be(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,r=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=t&&t<=i))return e;for(r=void 0===r?J:Z(r);i>n;){if(i-n>600){const a=i-n+1,o=t-n+1,s=Math.log(a),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(a-l)/a)*(o-a/2<0?-1:1);be(e,t,Math.max(n,Math.floor(t-o*l/a+c)),Math.min(i,Math.floor(t+(a-o)*l/a+c)),r)}const a=e[t];let o=n,s=i;for(ye(e,n,t),r(e[i],a)>0&&ye(e,n,i);o<s;){for(ye(e,o,s),++o,--s;r(e[o],a)<0;)++o;for(;r(e[s],a)>0;)--s}
20===r(e[n],a)?ye(e,n,s):(++s,ye(e,s,i)),s<=t&&(n=s+1),t<=s&&(i=s-1)}return e}function ye(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function xe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r=!1;if(1===n.length){let a;for(const o of e){const e=n(o);(r?i(e,a)>0:0===i(e,e))&&(t=o,a=e,r=!0)}}else for(const i of e)(r?n(i,t)>0:0===n(i,i))&&(t=i,r=!0);return t}function we(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(i=+i)>=i&&(yield i)}}(e,n)),(i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return me(e);if(t>=1)return pe(e);var i,r=(i-1)*t,a=Math.floor(r),o=pe(be(e,a).subarray(0,a+1));return o+(me(e.subarray(a+1))-o)*(r-a)}}function _e(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,r=(i-1)*t,a=Math.floor(r),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(r-a)}}function De(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;if(!isNaN(t=+t)){if(i=Float64Array.from(e,((t,i)=>s(n(e[i],i,e)))),t<=0)return ve(i);if(t>=1)return ge(i);var i,r=Uint32Array.from(e,((e,t)=>t)),a=i.length-1,o=Math.floor(a*t);return be(r,o,0,a,((e,t)=>J(i[e],i[t]))),(o=xe(r.subarray(0,o+1),(e=>i[e])))>=0?o:-1}}function Se(e,t,n){const i=x(e),r=we(e,.75)-we(e,.25);return i&&r?Math.ceil((n-t)/(2*r*Math.pow(i,-1/3))):1}function ke(e,t,n){const i=x(e),r=A(e);return i&&r?Math.ceil((n-t)*Math.cbrt(i)/(3.49*r)):1}function Ce(e,t){let n=0,i=0;if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(a=+a)>=a&&(++n,i+=a)}if(n)return i/n}function Ae(e,t){return we(e,.5,t)}function Te(e,t){return De(e,.5,t)}function Ee(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function Ne(e,t){const n=new P;if(void 0===t)for(let a of e)null!=a&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let i=-1;for(let r of e)null!=(r=t(r,++i,e))&&r>=r&&n.set(r,(n.get(r)||0)+1)}let i,r=0;for(const[a,o]of n)o>r&&(r=o,i=a);return i}function Me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe;const n=[];let i,r=!1;for(const a of e)r&&n.push(t(i,a)),i=a,r=!0;return n}function Pe(e,t){return[e,t]}function Ue(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(r);++i<r;)a[i]=e+i*n;return a}function je(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(e);const r=new Float64Array(n.length);2!==t.length&&(n=n.map(t),t=i);const a=(e,i)=>t(n[e],n[i]);let o,s;return(e=Uint32Array.from(n,((e,t)=>t))).sort(t===i?(e,t)=>J(n[e],n[t]):Z(a)),e.forEach(((e,t)=>{const n=a(e,void 0===o?e:o);n>=0?((void 0===o||n>0)&&(o=e,s=t),r[e]=s):r[e]=NaN})),r}function Fe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r=!1;if(1===n.length){let a;for(const o of e){const e=n(o);(r?i(e,a)<0:0===i(e,e))&&(t=o,a=e,r=!0)}}else for(const i of e)(r?n(i,t)<0:0===n(i,i))&&(t=i,r=!0);return t}function Re(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(1===n.length)return ve(e,n);let r=-1,a=-1;for(const i of e)++a,(r<0?0===n(i,i):n(i,t)<0)&&(t=i,r=a);return r}function Oe(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(1===n.length)return ge(e,n);let r=-1,a=-1;for(const i of e)++a,(r<0?0===n(i,i):n(i,t)>0)&&(t=i,r=a);return r}function Ie(e,t){const n=Re(e,t);return n<0?void 0:n}const Le=Be(Math.random);function Be(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length)-(n=+n);for(;i;){const r=e()*i--|0,a=t[i+n];t[i+n]=t[r+n],t[r+n]=a}return t}}function We(e,t){let n=0;if(void 0===t)for(let i of e)(i=+i)&&(n+=i);else{let i=-1;for(let r of e)(r=+t(r,++i,e))&&(n+=r)}return n}function ze(e){if(!(r=e.length))return[];for(var t=-1,n=me(e,Ve),i=new Array(n);++t<n;)for(var r,a=-1,o=i[t]=new Array(r);++a<r;)o[a]=e[a][t];return i}function Ve(e){return e.length}function He(){return ze(arguments)}function qe(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const i of e)if(!t(i,++n,e))return!1;return!0}function Ge(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const i of e)if(t(i,++n,e))return!0;return!1}function Ye(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");const n=[];let i=-1;for(const r of e)t(r,++i,e)&&n.push(r);return n}function Xe(e,t){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!==typeof t)throw new TypeError("mapper is not a function");return Array.from(e,((n,i)=>t(n,i,e)))}function Ke(e,t,n){if("function"!==typeof t)throw new TypeError("reducer is not a function");const i=e[Symbol.iterator]();let r,a,o=-1;if(arguments.length<3){if(({done:r,value:n}=i.next()),r)return;++o}for(;({done:r,value:a}=i.next()),!r;)n=t(n,a,++o,e);return n}function $e(e){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function Qe(e){e=new U(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(const r of n)for(const t of r)e.delete(t);return e}function Ze(e,t){const n=t[Symbol.iterator](),i=new U;for(const r of e){if(i.has(r))return!1;let e,t;for(;({value:e,done:t}=n.next())&&!t;){if(Object.is(r,e))return!1;i.add(e)}}return!0}function Je(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e=new U(e),n=n.map(et);e:for(const r of e)for(const t of n)if(!t.has(r)){e.delete(r);continue e}return e}function et(e){return e instanceof U?e:new U(e)}function tt(e,t){const n=e[Symbol.iterator](),i=new Set;for(const r of t){const e=nt(r);if(i.has(e))continue;let t,a;for(;({value:t,done:a}=n.next());){if(a)return!1;const n=nt(t);
vendor: 12,122 bytes, line 2
2if(i.add(n),Object.is(e,n))break}}return!0}function nt(e){return null!==e&&"object"===typeof e?e.valueOf():e}function it(e,t){return tt(t,e)}function rt(){const e=new U;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(const r of n)for(const t of r)e.add(t);return e}function at(e){return e}var ot=1,st=2,lt=3,ct=4,ut=1e-6;function dt(e){return"translate("+e+",0)"}function ht(e){return"translate(0,"+e+")"}function ft(e){return t=>+e(t)}function pt(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function gt(){return!this.__axis}function mt(e,t){var n=[],i=null,r=null,a=6,o=6,s=3,l="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,c=e===ot||e===ct?-1:1,u=e===ct||e===st?"x":"y",d=e===ot||e===lt?dt:ht;function h(h){var f=null==i?t.ticks?t.ticks.apply(t,n):t.domain():i,p=null==r?t.tickFormat?t.tickFormat.apply(t,n):at:r,g=Math.max(a,0)+s,m=t.range(),v=+m[0]+l,b=+m[m.length-1]+l,y=(t.bandwidth?pt:ft)(t.copy(),l),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),_=x.selectAll(".tick").data(f,t).order(),D=_.exit(),S=_.enter().append("g").attr("class","tick"),k=_.select("line"),C=_.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(S),k=k.merge(S.append("line").attr("stroke","currentColor").attr(u+"2",c*a)),C=C.merge(S.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",e===ot?"0em":e===lt?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),_=_.transition(h),k=k.transition(h),C=C.transition(h),D=D.transition(h).attr("opacity",ut).attr("transform",(function(e){return isFinite(e=y(e))?d(e+l):this.getAttribute("transform")})),S.attr("opacity",ut).attr("transform",(function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+l)}))),D.remove(),w.attr("d",e===ct||e===st?o?"M"+c*o+","+v+"H"+l+"V"+b+"H"+c*o:"M"+l+","+v+"V"+b:o?"M"+v+","+c*o+"V"+l+"H"+b+"V"+c*o:"M"+v+","+l+"H"+b),_.attr("opacity",1).attr("transform",(function(e){return d(y(e)+l)})),k.attr(u+"2",c*a),C.attr(u,c*g).text(p),x.filter(gt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===st?"start":e===ct?"end":"middle"),x.each((function(){this.__axis=y}))}return h.scale=function(e){return arguments.length?(t=e,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),h):n.slice()},h.tickValues=function(e){return arguments.length?(i=null==e?null:Array.from(e),h):i&&i.slice()},h.tickFormat=function(e){return arguments.length?(r=e,h):r},h.tickSize=function(e){return arguments.length?(a=o=+e,h):a},h.tickSizeInner=function(e){return arguments.length?(a=+e,h):a},h.tickSizeOuter=function(e){return arguments.length?(o=+e,h):o},h.tickPadding=function(e){return arguments.length?(s=+e,h):s},h.offset=function(e){return arguments.length?(l=+e,h):l},h}function vt(e){return mt(ot,e)}function bt(e){return mt(st,e)}function yt(e){return mt(lt,e)}function xt(e){return mt(ct,e)}var wt={value:()=>{}};function _t(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e);i[e]=[]}return new Dt(i)}function Dt(e){this._=e}function St(e,t){for(var n,i=0,r=e.length;i<r;++i)if((n=e[i]).name===t)return n.value}function kt(e,t,n){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=wt,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}Dt.prototype=_t.prototype={constructor:Dt,on:function(e,t){var n,i,r=this._,a=(i=r,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++o<s;)if(n=(e=a[o]).type)r[n]=kt(r[n],e.name,t);else if(null==t)for(n in r)r[n]=kt(r[n],e.name,null);return this}for(;++o<s;)if((n=(e=a[o]).type)&&(n=St(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Dt(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(i=this._[e]).length;a<n;++a)i[a].value.apply(t,r)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,a=i.length;r<a;++r)i[r].value.apply(t,n)}};const Ct=_t;function At(){}function Tt(e){return null==e?At:function(){return this.querySelector(e)}}function Et(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Nt(){return[]}function Mt(e){return null==e?Nt:function(){return this.querySelectorAll(e)}}function Pt(e){return function(){return this.matches(e)}}function Ut(e){return function(t){return t.matches(e)}}var jt=Array.prototype.find;function Ft(){return this.firstElementChild}var Rt=Array.prototype.filter;function Ot(){return Array.from(this.children)}function It(e){return new Array(e.length)}function Lt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Bt(e,t,n,i,r,a){for(var o,s=0,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],i[s]=o):n[s]=new Lt(e,a[s]);for(;s<l;++s)(o=t[s])&&(r[s]=o)}function Wt(e,t,n,i,r,a,o){var s,l,c,u=new Map,d=t.length,h=a.length,f=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(f[s]=c=o.call(l,l.__data__,s,t)+"",u.has(c)?r[s]=l:u.set(c,l));for(s=0;s<h;++s)c=o.call(e,a[s],s,a)+"",(l=u.get(c))?(i[s]=l,l.__data__=a[s],u.delete(c)):n[s]=new Lt(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(f[s])===l&&(r[s]=l)}function zt(e){return e.__data__}function Vt(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Ht(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Lt.prototype={constructor:Lt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var qt="http://www.w3.org/1999/xhtml";const Gt={svg:"http://www.w3.org/2000/svg",xhtml:qt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Yt(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Gt.hasOwnProperty(t)?{space:Gt[t],local:e}:e}function Xt(e){return function(){this.removeAttribute(e)}}function Kt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $t(e,t){return function(){this.setAttribute(e,t)}}function Qt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Zt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Jt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function en(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function tn(e){return function(){this.style.removeProperty(e)}}function nn(e,t,n){return function(){this.style.setProperty(e,t,n)}}function rn(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function an(e,t){return e.style.getPropertyValue(t)||en(e).getComputedStyle(e,null).getPropertyValue(t)}function on(e){return function(){delete this[e]}}function sn(e,t){return function(){this[e]=t}}function ln(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function cn(e){return e.trim().split(/^|\s+/)}function un(e){return e.classList||new dn(e)}function dn(e){this._node=e,this._names=cn(e.getAttribute("class")||"")}function hn(e,t){for(var n=un(e),i=-1,r=t.length;++i<r;)n.add(t[i])}function fn(e,t){for(var n=un(e),i=-1,r=t.length;++i<r;)n.remove(t[i])}function pn(e){return function(){hn(this,e)}}function gn(e){return function(){fn(this,e)}}function mn(e,t){return function(){(t.apply(this,arguments)?hn:fn)(this,e)}}function vn(){this.textContent=""}function bn(e){return function(){this.textContent=e}}function yn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function xn(){this.innerHTML=""}function wn(e){return function(){this.innerHTML=e}}function _n(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Dn(){this.nextSibling&&this.parentNode.appendChild(this)}function Sn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qt&&t.documentElement.namespaceURI===qt?t.createElement(e):t.createElementNS(n,e)}}function Cn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function An(e){var t=Yt(e);return(t.local?Cn:kn)(t)}function Tn(){return null}function En(){var e=this.parentNode;e&&e.removeChild(this)}function Nn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Pn(e){return function(){var t=this.__on;if(t){for(var n,i=0,r=-1,a=t.length;i<a;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?t.length=r:delete this.__on}}}function Un(e,t,n){return function(){var i,r=this.__on,a=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(r)for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),void(i.value=t);this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jn(e,t,n){var i=en(e),r=i.CustomEvent;"function"===typeof r?r=new r(t,n):(r=i.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function Fn(e,t){return function(){return jn(this,e,t)}}function Rn(e,t){return function(){return jn(this,e,t.apply(this,arguments))}}dn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var On=[null];function In(e,t){this._groups=e,this._parents=t}function Ln(){return new In([[document.documentElement]],On)}In.prototype=Ln.prototype={constructor:In,select:function(e){"function"!==typeof e&&(e=Tt(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var a,o,s=t[r],l=s.length,c=i[r]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=e.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new In(i,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return Et(e.apply(this,arguments))}}(e):Mt(e);for(var t=this._groups,n=t.length,i=[],r=[],a=0;a<n;++a)for(var o,s=t[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(i.push(e.call(o,o.__data__,c,s)),r.push(o));return new In(i,r)},selectChild:function(e){return this.select(null==e?Ft:function(e){return function(){return jt.call(this.children,e)}}("function"===typeof e?e:Ut(e)))},selectChildren:function(e){return this.selectAll(null==e?Ot:function(e){return function(){return Rt.call(this.children,e)}}("function"===typeof e?e:Ut(e)))},filter:function(e){"function"!==typeof e&&(e=Pt(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var a,o=t[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&e.call(a,a.__data__,c,o)&&l.push(a);return new In(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,zt);
vendor: 8,885 bytes, line 2
2var n=t?Wt:Bt,i=this._parents,r=this._groups;"function"!==typeof e&&(e=function(e){return function(){return e}}(e));for(var a=r.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=i[c],d=r[c],h=d.length,f=Vt(e.call(u,u&&u.__data__,c,i)),p=f.length,g=s[c]=new Array(p),m=o[c]=new Array(p);n(u,d,g,m,l[c]=new Array(h),f,t);for(var v,b,y=0,x=0;y<p;++y)if(v=g[y]){for(y>=x&&(x=y+1);!(b=m[x])&&++x<p;);v._next=b||null}}return(o=new In(o,i))._enter=s,o._exit=l,o},enter:function(){return new In(this._enter||this._groups.map(It),this._parents)},exit:function(){return new In(this._exit||this._groups.map(It),this._parents)},join:function(e,t,n){var i=this.enter(),r=this,a=this.exit();return"function"===typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(r=t(r))&&(r=r.selection()),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,r=n.length,a=i.length,o=Math.min(r,a),s=new Array(r),l=0;l<o;++l)for(var c,u=n[l],d=i[l],h=u.length,f=s[l]=new Array(h),p=0;p<h;++p)(c=u[p]||d[p])&&(f[p]=c);for(;l<r;++l)s[l]=n[l];return new In(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,r=e[t],a=r.length-1,o=r[a];--a>=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Ht);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a<i;++a){for(var o,s=n[a],l=s.length,c=r[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(t)}return new In(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,a=i.length;r<a;++r){var o=i[r];if(o)return o}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var r,a=t[n],o=0,s=a.length;o<s;++o)(r=a[o])&&e.call(r,r.__data__,o,a);return this},attr:function(e,t){var n=Yt(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?Kt:Xt:"function"===typeof t?n.local?Jt:Zt:n.local?Qt:$t)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?tn:"function"===typeof t?rn:nn)(e,t,null==n?"":n)):an(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?on:"function"===typeof t?ln:sn)(e,t)):this.node()[e]},classed:function(e,t){var n=cn(e+"");if(arguments.length<2){for(var i=un(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"===typeof t?mn:t?pn:gn)(n,t))},text:function(e){return arguments.length?this.each(null==e?vn:("function"===typeof e?yn:bn)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?xn:("function"===typeof e?_n:wn)(e)):this.node().innerHTML},raise:function(){return this.each(Dn)},lower:function(){return this.each(Sn)},append:function(e){var t="function"===typeof e?e:An(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:An(e),i=null==t?Tn:"function"===typeof t?t:Tt(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(En)},clone:function(e){return this.select(e?Mn:Nn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,r,a=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),o=a.length;if(!(arguments.length<2)){for(s=t?Un:Pn,i=0;i<o;++i)this.each(s(a[i],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(i=0,l=s[c];i<o;++i)if((r=a[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"===typeof t?Rn:Fn)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,r=e[t],a=0,o=r.length;a<o;++a)(i=r[a])&&(yield i)}};const Bn=Ln;function Wn(e){return"string"===typeof e?new In([[document.querySelector(e)]],[document.documentElement]):new In([[e]],On)}const zn={passive:!1},Vn={capture:!0,passive:!1};function Hn(e){e.stopImmediatePropagation()}function qn(e){e.preventDefault(),e.stopImmediatePropagation()}function Gn(e){var t=e.document.documentElement,n=Wn(e).on("dragstart.drag",qn,Vn);"onselectstart"in t?n.on("selectstart.drag",qn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yn(e,t){var n=e.document.documentElement,i=Wn(e).on("dragstart.drag",null);t&&(i.on("click.drag",qn,Vn),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Xn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function $n(){}var Qn=.7,Zn=1/Qn,Jn="\\s*([+-]?\\d+)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ti="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ni=/^#([0-9a-f]{3,8})$/,ii=new RegExp("^rgb\\(".concat(Jn,",").concat(Jn,",").concat(Jn,"\\)$")),ri=new RegExp("^rgb\\(".concat(ti,",").concat(ti,",").concat(ti,"\\)$")),ai=new RegExp("^rgba\\(".concat(Jn,",").concat(Jn,",").concat(Jn,",").concat(ei,"\\)$")),oi=new RegExp("^rgba\\(".concat(ti,",").concat(ti,",").concat(ti,",").concat(ei,"\\)$")),si=new RegExp("^hsl\\(".concat(ei,",").concat(ti,",").concat(ti,"\\)$")),li=new RegExp("^hsla\\(".concat(ei,",").concat(ti,",").concat(ti,",").concat(ei,"\\)$")),ci={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ui(){return this.rgb().formatHex()}function di(){return this.rgb().formatRgb()}function hi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ni.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?fi(t):3===n?
vendor: 7,382 bytes, line 2
2new vi(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?pi(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?pi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ii.exec(e))?new vi(t[1],t[2],t[3],1):(t=ri.exec(e))?new vi(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ai.exec(e))?pi(t[1],t[2],t[3],t[4]):(t=oi.exec(e))?pi(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=si.exec(e))?Di(t[1],t[2]/100,t[3]/100,1):(t=li.exec(e))?Di(t[1],t[2]/100,t[3]/100,t[4]):ci.hasOwnProperty(e)?fi(ci[e]):"transparent"===e?new vi(NaN,NaN,NaN,0):null}function fi(e){return new vi(e>>16&255,e>>8&255,255&e,1)}function pi(e,t,n,i){return i<=0&&(e=t=n=NaN),new vi(e,t,n,i)}function gi(e){return e instanceof $n||(e=hi(e)),e?new vi((e=e.rgb()).r,e.g,e.b,e.opacity):new vi}function mi(e,t,n,i){return 1===arguments.length?gi(e):new vi(e,t,n,null==i?1:i)}function vi(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function bi(){return"#".concat(_i(this.r)).concat(_i(this.g)).concat(_i(this.b))}function yi(){const e=xi(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(wi(this.r),", ").concat(wi(this.g),", ").concat(wi(this.b)).concat(1===e?")":", ".concat(e,")"))}function xi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _i(e){return((e=wi(e))<16?"0":"")+e.toString(16)}function Di(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ci(e,t,n,i)}function Si(e){if(e instanceof Ci)return new Ci(e.h,e.s,e.l,e.opacity);if(e instanceof $n||(e=hi(e)),!e)return new Ci;if(e instanceof Ci)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,s=a-r,l=(a+r)/2;return s?(o=t===a?(n-i)/s+6*(n<i):n===a?(i-t)/s+2:(t-n)/s+4,s/=l<.5?a+r:2-a-r,o*=60):s=l>0&&l<1?0:o,new Ci(o,s,l,e.opacity)}function ki(e,t,n,i){return 1===arguments.length?Si(e):new Ci(e,t,n,null==i?1:i)}function Ci(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Ai(e){return(e=(e||0)%360)<0?e+360:e}function Ti(e){return Math.max(0,Math.min(1,e||0))}function Ei(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ni(e,t,n,i,r){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*i+o*r)/6}function Mi(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],a=e[i+1],o=i>0?e[i-1]:2*r-a,s=i<t-1?e[i+2]:2*a-r;return Ni((n-i/t)*t,o,r,a,s)}}function Pi(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t),r=e[(i+t-1)%t],a=e[i%t],o=e[(i+1)%t],s=e[(i+2)%t];return Ni((n-i/t)*t,r,a,o,s)}}Xn($n,hi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ui,formatHex:ui,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Si(this).formatHsl()},formatRgb:di,toString:di}),Xn(vi,mi,Kn($n,{brighter(e){return e=null==e?Zn:Math.pow(Zn,e),new vi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Qn:Math.pow(Qn,e),new vi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vi(wi(this.r),wi(this.g),wi(this.b),xi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bi,formatHex:bi,formatHex8:function(){return"#".concat(_i(this.r)).concat(_i(this.g)).concat(_i(this.b)).concat(_i(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:yi,toString:yi})),Xn(Ci,ki,Kn($n,{brighter(e){return e=null==e?Zn:Math.pow(Zn,e),new Ci(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Qn:Math.pow(Qn,e),new Ci(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new vi(Ei(e>=240?e-240:e+120,r,i),Ei(e,r,i),Ei(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new Ci(Ai(this.h),Ti(this.s),Ti(this.l),xi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=xi(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(Ai(this.h),", ").concat(100*Ti(this.s),"%, ").concat(100*Ti(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));const Ui=e=>()=>e;function ji(e,t){return function(n){return e+n*t}}function Fi(e,t){var n=t-e;return n?ji(e,n>180||n<-180?n-360*Math.round(n/360):n):Ui(isNaN(e)?t:e)}function Ri(e){return 1===(e=+e)?Oi:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):Ui(isNaN(t)?n:t)}}function Oi(e,t){var n=t-e;return n?ji(e,n):Ui(isNaN(e)?t:e)}const Ii=function e(t){var n=Ri(t);function i(e,t){var i=n((e=mi(e)).r,(t=mi(t)).r),r=n(e.g,t.g),a=n(e.b,t.b),o=Oi(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function Li(e){return function(t){var n,i,r=t.length,a=new Array(r),o=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=mi(t[n]),a[n]=i.r||0,o[n]=i.g||0,s[n]=i.b||0;return a=e(a),o=e(o),s=e(s),i.opacity=1,function(e){return i.r=a(e),i.g=o(e),i.b=s(e),i+""}}}var Bi=Li(Mi),Wi=Li(Pi);function zi(e,t){t||(t=[]);var n,i=e?Math.min(t.length,e.length):0,r=t.slice();return function(a){for(n=0;n<i;++n)r[n]=e[n]*(1-a)+t[n]*a;return r}}function Vi(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Hi(e,t){return(Vi(t)?zi:qi)(e,t)}function qi(e,t){var n,i=t?t.length:0,r=e?Math.min(i,e.length):0,a=new Array(r),o=new Array(i);for(n=0;n<r;++n)a[n]=Zi(e[n],t[n]);for(;n<i;++n)o[n]=t[n];return function(e){for(n=0;n<r;++n)o[n]=a[n](e);return o}}function Gi(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Yi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Xi(e,t){var n,i={},r={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?i[n]=Zi(e[n],t[n]):r[n]=t[n];return function(e){for(n in i)r[n]=i[n](e);return r}}var Ki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$i=new RegExp(Ki.source,"g");function Qi(e,t){var n,i,r,a=Ki.lastIndex=$i.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(n=Ki.exec(e))&&(i=$i.exec(t));)(r=i.index)>a&&(r=t.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Yi(n,i)})),a=$i.lastIndex;return a<t.length&&(r=t.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)s[(n=l[i]).i]=n.x(e);return s.join("")})}function Zi(e,t){var n,i=typeof t;return null==t||"boolean"===i?Ui(t):("number"===i?Yi:"string"===i?(n=hi(t))?(t=n,Ii):Qi:t instanceof hi?Ii:t instanceof Date?Gi:Vi(t)?zi:Array.isArray(t)?qi:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Xi:Yi)(e,t)}function Ji(e){let t;for(;t=e.sourceEvent;)e=t;return e}function er(e,t){if(e=Ji(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}}return[e.pageX,e.pageY]}
vendor: 4,132 bytes, line 2
2var tr,nr,ir=0,rr=0,ar=0,or=0,sr=0,lr=0,cr="object"===typeof performance&&performance.now?performance:Date,ur="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function dr(){return sr||(ur(hr),sr=cr.now()+lr)}function hr(){sr=0}function fr(){this._call=this._time=this._next=null}function pr(e,t,n){var i=new fr;return i.restart(e,t,n),i}function gr(){dr(),++ir;for(var e,t=tr;t;)(e=sr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ir}function mr(){sr=(or=cr.now())+lr,ir=rr=0;try{gr()}finally{ir=0,function(){var e,t,n=tr,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:tr=t);nr=e,br(i)}(),sr=0}}function vr(){var e=cr.now(),t=e-or;t>1e3&&(lr-=t,or=e)}function br(e){ir||(rr&&(rr=clearTimeout(rr)),e-sr>24?(e<1/0&&(rr=setTimeout(mr,e-cr.now()-lr)),ar&&(ar=clearInterval(ar))):(ar||(or=cr.now(),ar=setInterval(vr,1e3)),ir=1,ur(mr)))}function yr(e,t,n){var i=new fr;return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}fr.prototype=pr.prototype={constructor:fr,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?dr():+n)+(null==t?0:+t),this._next||nr===this||(nr?nr._next=this:tr=this,nr=this),this._call=e,this._time=n,br()},stop:function(){this._call&&(this._call=null,this._time=1/0,br())}};var xr=Ct("start","end","cancel","interrupt"),wr=[],_r=1,Dr=2,Sr=5,kr=6;function Cr(e,t,n,i,r,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var i,r=e.__transition;function a(e){n.state=_r,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var c,u,d,h;if(n.state!==_r)return l();for(c in r)if((h=r[c]).name===n.name){if(3===h.state)return yr(o);4===h.state?(h.state=kr,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=kr,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(yr((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))})),n.state=Dr,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Dr){for(n.state=3,i=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=h);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=Sr,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===Sr&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=kr,n.timer.stop(),delete r[t],r)return;delete e.__transition}r[t]=n,n.timer=pr(a,0,n.time)}(e,n,{name:t,index:i,group:r,on:xr,tween:wr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Ar(e,t){var n=Er(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function Tr(e,t){var n=Er(e,t);if(n.state>3)throw new Error("too late; already running");return n}function Er(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Nr(e,t){var n,i,r,a=e.__transition,o=!0;if(a){for(r in t=null==t?null:t+"",a)(n=a[r]).name===t?(i=n.state>Dr&&n.state<Sr,n.state=kr,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[r]):o=!1;o&&delete e.__transition}}var Mr,Pr=180/Math.PI,Ur={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jr(e,t,n,i,r,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),e*i<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(t,e)*Pr,skewX:Math.atan(l)*Pr,scaleX:o,scaleY:s}}function Fr(e,t,n,i){function r(e){return e.length?e.pop()+" ":""}return function(a,o){var s=[],l=[];return a=e(a),o=e(o),function(e,i,r,a,o,s){if(e!==r||i!==a){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:Yi(e,r)},{i:l-2,x:Yi(i,a)})}else(r||a)&&o.push("translate("+r+t+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Yi(e,t)}
vendor: 7,125 bytes, line 2
2)):t&&n.push(r(n)+"rotate("+t+i)}(a.rotate,o.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Yi(e,t)}):t&&n.push(r(n)+"skewX("+t+i)}(a.skewX,o.skewX,s,l),function(e,t,n,i,a,o){if(e!==n||t!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Yi(e,n)},{i:s-2,x:Yi(t,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(e){for(var t,n=-1,i=l.length;++n<i;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var Rr=Fr((function(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ur:jr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Or=Fr((function(e){return null==e?Ur:(Mr||(Mr=document.createElementNS("http://www.w3.org/2000/svg","g")),Mr.setAttribute("transform",e),(e=Mr.transform.baseVal.consolidate())?jr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Ur)}),", ",")",")");function Ir(e,t){var n,i;return function(){var r=Tr(this,e),a=r.tween;if(a!==n)for(var o=0,s=(i=n=a).length;o<s;++o)if(i[o].name===t){(i=i.slice()).splice(o,1);break}r.tween=i}}function Lr(e,t,n){var i,r;if("function"!==typeof n)throw new Error;return function(){var a=Tr(this,e),o=a.tween;if(o!==i){r=(i=o).slice();for(var s={name:t,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===t){r[l]=s;break}l===c&&r.push(s)}a.tween=r}}function Br(e,t,n){var i=e._id;return e.each((function(){var e=Tr(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return Er(e,i).value[t]}}function Wr(e,t){var n;return("number"===typeof t?Yi:t instanceof hi?Ii:(n=hi(t))?(t=n,Ii):Qi)(e,t)}function zr(e){return function(){this.removeAttribute(e)}}function Vr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Hr(e,t,n){var i,r,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===i?r:r=t(i=o,n)}}function qr(e,t,n){var i,r,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===i?r:r=t(i=o,n)}}function Gr(e,t,n){var i,r,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(e))===(s=l+"")?null:o===i&&s===r?a:(r=s,a=t(i=o,l));this.removeAttribute(e)}}function Yr(e,t,n){var i,r,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:o===i&&s===r?a:(r=s,a=t(i=o,l));this.removeAttributeNS(e.space,e.local)}}function Xr(e,t){var n,i;function r(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,r)),n}return r._value=t,r}function Kr(e,t){var n,i;function r(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,r)),n}return r._value=t,r}function $r(e,t){return function(){Ar(this,e).delay=+t.apply(this,arguments)}}function Qr(e,t){return t=+t,function(){Ar(this,e).delay=t}}function Zr(e,t){return function(){Tr(this,e).duration=+t.apply(this,arguments)}}function Jr(e,t){return t=+t,function(){Tr(this,e).duration=t}}var ea=Bn.prototype.constructor;function ta(e){return function(){this.style.removeProperty(e)}}var na=0;function ia(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function ra(e){return Bn().transition(e)}function aa(){return++na}var oa=Bn.prototype;function sa(e){return e*e*e}function la(e){return--e*e*e+1}function ca(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}ia.prototype=ra.prototype={constructor:ia,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Tt(e));for(var i=this._groups,r=i.length,a=new Array(r),o=0;o<r;++o)for(var s,l,c=i[o],u=c.length,d=a[o]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,Cr(d[h],t,n,h,d,Er(s,n)));return new ia(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Mt(e));for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s)for(var l,c=i[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,f=e.call(l,l.__data__,d,c),p=Er(l,n),g=0,m=f.length;g<m;++g)(h=f[g])&&Cr(h,t,n,g,f,p);a.push(f),o.push(l)}return new ia(a,o,t,n)},selectChild:oa.selectChild,selectChildren:oa.selectChildren,filter:function(e){"function"!==typeof e&&(e=Pt(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var a,o=t[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&e.call(a,a.__data__,c,o)&&l.push(a);return new ia(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,r=n.length,a=Math.min(i,r),o=new Array(i),s=0;s<a;++s)for(var l,c=t[s],u=n[s],d=c.length,h=o[s]=new Array(d),f=0;f<d;++f)(l=c[f]||u[f])&&(h[f]=l);for(;s<i;++s)o[s]=t[s];return new ia(o,this._parents,this._name,this._id)},selection:function(){return new ea(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=aa(),i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=Er(o,t);Cr(o,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ia(i,this._parents,e,n)},call:oa.call,nodes:oa.nodes,node:oa.node,size:oa.size,empty:oa.empty,each:oa.each,on:function(e,t){var n=this._id;return arguments.length<2?Er(this.node(),n).on.on(e):this.each(function(e,t,n){var i,r,a=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Ar:Tr;return function(){var o=a(this,e),s=o.on;s!==i&&(r=(i=s).copy()).on(t,n),o.on=r}}(n,e,t))},attr:function(e,t){var n=Yt(e),i="transform"===n?Or:Wr;return this.attrTween(e,"function"===typeof t?(n.local?Yr:Gr)(n,i,Br(this,"attr."+e,t)):null==t?(n.local?Vr:zr)(n):(n.local?qr:Hr)(n,i,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var i=Yt(e);return this.tween(n,(i.local?Xr:Kr)(i,t))},style:function(e,t,n){var i="transform"===(e+="")?Rr:Wr;return null==t?this.styleTween(e,function(e,t){var n,i,r;return function(){var a=an(this,e),o=(this.style.removeProperty(e),an(this,e));return a===o?null:a===n&&o===i?r:r=t(n=a,i=o)}}(e,i)).on("end.style."+e,ta(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var i,r,a;return function(){var o=an(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=an(this,e)),o===l?null:o===i&&l===r?a:(r=l,a=t(i=o,s))}}(e,i,Br(this,"style."+e,t))).each(function(e,t){var n,i,r,a,o="style."+t,s="end."+o;return function(){var l=Tr(this,e),c=l.on,u=null==l.value[o]?a||(a=ta(t)):void 0;c===n&&r===u||(i=(n=c).copy()).on(s,r=u),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,r,a=n+"";return function(){var o=an(this,e);return o===a?null:o===i?r:r=t(i=o,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!==typeof t)throw new Error;return this.tween(i,function(e,t,n){var i,r;
vendor: 9,918 bytes, line 2
2function a(){var a=t.apply(this,arguments);return a!==r&&(i=(r=a)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,a,n)),i}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Br(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,function(e){var t,n;function i(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,r=Er(this.node(),n).tween,a=0,o=r.length;a<o;++a)if((i=r[a]).name===e)return i.value;return null}return this.each((null==t?Ir:Lr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?$r:Qr)(t,e)):Er(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Zr:Jr)(t,e)):Er(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!==typeof t)throw new Error;return function(){Tr(this,e).ease=t}}(t,e)):Er(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;Tr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,r=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0===--r&&a()}};n.each((function(){var n=Tr(this,i),r=n.on;r!==e&&((t=(e=r).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===r&&a()}))},[Symbol.iterator]:oa[Symbol.iterator]};var ua={time:null,delay:0,duration:250,ease:ca};function da(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}Bn.prototype.interrupt=function(e){return this.each((function(){Nr(this,e)}))},Bn.prototype.transition=function(e){var t,n;e instanceof ia?(t=e._id,e=e._name):(t=aa(),(n=ua).time=dr(),e=null==e?null:e+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)(o=s[c])&&Cr(o,e,t,c,s,n||da(o,t));return new ia(i,this._parents,e,t)};var ha=[null];function fa(e,t){var n,i,r=e.__transition;if(r)for(i in t=null==t?null:t+"",r)if((n=r[i]).state>_r&&n.name===t)return new ia([[e]],ha,t,+i);return null}const pa=e=>()=>e;function ga(e,t){let{sourceEvent:n,target:i,selection:r,mode:a,dispatch:o}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function ma(e){e.preventDefault(),e.stopImmediatePropagation()}var va={name:"drag"},ba={name:"space"},ya={name:"handle"},xa={name:"center"};const{abs:wa,max:_a,min:Da}=Math;function Sa(e){return[+e[0],+e[1]]}function ka(e){return[Sa(e[0]),Sa(e[1])]}var Ca={name:"x",handles:["w","e"].map(ja),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Aa={name:"y",handles:["n","s"].map(ja),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Ta={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ja),input:function(e){return null==e?null:ka(e)},output:function(e){return e}},Ea={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Na={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ma={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Pa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ua={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ja(e){return{type:e}}function Fa(e){return!e.ctrlKey&&!e.button}function Ra(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Oa(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ia(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function La(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Ba(){return Va(Ca)}function Wa(){return Va(Aa)}function za(){return Va(Ta)}function Va(e){var t,n=Ra,i=Fa,r=Oa,a=!0,o=Ct("start","brush","end"),s=6;function l(t){var n=t.property("__brush",g).selectAll(".overlay").data([ja("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ea.overlay).merge(n).each((function(){var e=Ia(this).extent;Wn(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([ja("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ea.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return Ea[e.type]})),t.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var e=Wn(this),t=Ia(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-s/2:t[0][0]-s/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-s/2:t[0][1]-s/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+s:s})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+s:s}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(e,t,n){var i=e.__brush.emitter;return!i||n&&i.clean?new d(e,t,n):i}function d(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function h(n){if((!t||n.touches)&&i.apply(this,arguments)){var r,o,s,l,d,h,f,p,g,m,v,b=this,y=n.target.__data__.type,x="selection"===(a&&n.metaKey?y="overlay":y)?va:a&&n.altKey?xa:ya,w=e===Aa?null:Pa[y],_=e===Ca?null:Ua[y],D=Ia(b),S=D.extent,k=D.selection,C=S[0][0],A=S[0][1],T=S[1][0],E=S[1][1],N=0,M=0,P=w&&_&&a&&n.shiftKey,U=Array.from(n.touches||[n],(e=>{const t=e.identifier;return(e=er(e,b)).point0=e.slice(),e.identifier=t,e}));Nr(b);var j=u(b,arguments,!0).beforestart();if("overlay"===y){k&&(g=!0);const t=[U[0],U[1]||U[0]];D.selection=k=[[r=e===Aa?C:Da(t[0][0],t[1][0]),s=e===Ca?A:Da(t[0][1],t[1][1])],[d=e===Aa?T:_a(t[0][0],t[1][0]),f=e===Ca?E:_a(t[0][1],t[1][1])]],U.length>1&&L(n)}else r=k[0][0],s=k[0][1],d=k[1][0],f=k[1][1];o=r,l=s,h=d,p=f;var F=Wn(b).attr("pointer-events","none"),R=F.selectAll(".overlay").attr("cursor",Ea[y]);if(n.touches)j.moved=I,j.ended=B;else{var O=Wn(n.view).on("mousemove.brush",I,!0).on("mouseup.brush",B,!0);a&&O.on("keydown.brush",(function(e){switch(e.keyCode){case 16:P=w&&_;break;case 18:x===ya&&(w&&(d=h-N*w,r=o+N*w),_&&(f=p-M*_,s=l+M*_),x=xa,L(e));break;case 32:x!==ya&&x!==xa||(w<0?d=h-N:w>0&&(r=o-N),_<0?f=p-M:_>0&&(s=l-M),x=ba,R.attr("cursor",Ea.selection),L(e));break;default:return}ma(e)}),!0).on("keyup.brush",(function(e){switch(e.keyCode){case 16:P&&(m=v=P=!1,L(e));break;case 18:x===xa&&(w<0?d=h:w>0&&(r=o),_<0?f=p:_>0&&(s=l),x=ya,L(e));break;case 32:x===ba&&(e.altKey?(w&&(d=h-N*w,r=o+N*w),_&&(f=p-M*_,s=l+M*_),x=xa):(w<0?d=h:w>0&&(r=o),_<0?f=p:_>0&&(s=l),x=ya),R.attr("cursor",Ea[y]),L(e));break;default:return}ma(e)}),!0),Gn(n.view)}c.call(b),j.start(n,x.name)}function I(e){for(const t of e.changedTouches||[e])for(const e of U)e.identifier===t.identifier&&(e.cur=er(t,b));if(P&&!m&&!v&&1===U.length){const e=U[0];wa(e.cur[0]-e[0])>wa(e.cur[1]-e[1])?v=!0:m=!0}for(const t of U)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,ma(e),L(e)}function L(e){const t=U[0],n=t.point0;var i;switch(N=t[0]-n[0],M=t[1]-n[1],x){case ba:case va:w&&(N=_a(C-r,Da(T-d,N)),o=r+N,h=d+N),_&&(M=_a(A-s,Da(E-f,M)),l=s+M,p=f+M);break;case ya:U[1]?(w&&(o=_a(C,Da(T,U[0][0])),h=_a(C,Da(T,U[1][0])),w=1),_&&(l=_a(A,Da(E,U[0][1])),p=_a(A,Da(E,U[1][1])),_=1)):(w<0?(N=_a(C-r,Da(T-r,N)),o=r+N,h=d):w>0&&(N=_a(C-d,Da(T-d,N)),o=r,h=d+N),_<0?(M=_a(A-s,Da(E-s,M)),l=s+M,p=f):_>0&&(M=_a(A-f,Da(E-f,M)),l=s,p=f+M));break;case xa:w&&(o=_a(C,Da(T,r-N*w)),h=_a(C,Da(T,d+N*w))),_&&(l=_a(A,Da(E,s-M*_)),p=_a(A,Da(E,f+M*_)))}h<o&&(w*=-1,i=r,r=d,d=i,i=o,o=h,h=i,y in Na&&R.attr("cursor",Ea[y=Na[y]])),p<l&&(_*=-1,i=s,s=f,f=i,i=l,l=p,p=i,y in Ma&&R.attr("cursor",Ea[y=Ma[y]])),D.selection&&(k=D.selection),m&&(o=k[0][0],h=k[1][0]),v&&(l=k[0][1],p=k[1][1]),k[0][0]===o&&k[0][1]===l&&k[1][0]===h&&k[1][1]===p||(D.selection=[[o,l],[h,p]],c.call(b),j.brush(e,x.name))}function B(e){if(function(e){e.stopImmediatePropagation()}(e),e.touches){if(e.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500)}
2else Yn(e.view,g),O.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),R.attr("cursor",Ea.overlay),D.selection&&(k=D.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(k)&&(D.selection=null,c.call(b)),j.end(e,x.name)}}function f(e){u(this,arguments).moved(e)}function p(e){u(this,arguments).ended(e)}function g(){var t=this.__brush||{selection:null};return t.extent=ka(n.apply(this,arguments)),t.dim=e,t}return l.move=function(t,n,i){t.tween?t.on("start.brush",(function(e){u(this,arguments).beforestart().start(e)})).on("interrupt.brush end.brush",(function(e){u(this,arguments).end(e)})).tween("brush",(function(){var t=this,i=t.__brush,r=u(t,arguments),a=i.selection,o=e.input("function"===typeof n?n.apply(this,arguments):n,i.extent),s=Zi(a,o);function l(e){i.selection=1===e&&null===o?null:s(e),c.call(t),r.brush()}return null!==a&&null!==o?l:l(1)})):t.each((function(){var t=this,r=arguments,a=t.__brush,o=e.input("function"===typeof n?n.apply(t,r):n,a.extent),s=u(t,r).beforestart();Nr(t),a.selection=null===o?null:o,c.call(t),s.start(i).brush(i).end(i)}))},l.clear=function(e,t){l.move(e,null,t)},d.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(e,t){return this.starting?(this.starting=!1,this.emit("start",e,t)):this.emit("brush",e),this},brush:function(e,t){return this.emit("brush",e,t),this},end:function(e,t){return 0===--this.active&&(delete this.state.emitter,this.emit("end",e,t)),this},emit:function(t,n,i){var r=Wn(this.that).datum();o.call(t,this.that,new ga(t,{sourceEvent:n,target:l,selection:e.output(this.state.selection),mode:i,dispatch:o}),r)}},l.extent=function(e){return arguments.length?(n="function"===typeof e?e:pa(ka(e)),l):n},l.filter=function(e){return arguments.length?(i="function"===typeof e?e:pa(!!e),l):i},l.touchable=function(e){return arguments.length?(r="function"===typeof e?e:pa(!!e),l):r},l.handleSize=function(e){return arguments.length?(s=+e,l):s},l.keyModifiers=function(e){return arguments.length?(a=!!e,l):a},l.on=function(){var e=o.on.apply(o,arguments);return e===o?l:e},l}var Ha,qa,Ga,Ya,Xa,Ka,$a,Qa,Za,Ja,eo,to,no,io,ro=Math.abs,ao=Math.cos,oo=Math.sin,so=Math.PI,lo=so/2,co=2*so,uo=Math.max,ho=1e-12;function fo(e,t){return Array.from({length:t-e},((t,n)=>e+n))}function po(){return vo(!1,!1)}function go(){return vo(!1,!0)}function mo(){return vo(!0,!1)}function vo(e,t){var n=0,i=null,r=null,a=null;function o(o){var s,l=o.length,c=new Array(l),u=fo(0,l),d=new Array(l*l),h=new Array(l),f=0;o=Float64Array.from({length:l*l},t?(e,t)=>o[t%l][t/l|0]:(e,t)=>o[t/l|0][t%l]);for(let t=0;t<l;++t){let n=0;for(let i=0;i<l;++i)n+=o[t*l+i]+e*o[i*l+t];f+=c[t]=n}s=(f=uo(0,co-n*l)/f)?n:co/l;{let t=0;i&&u.sort(((e,t)=>i(c[e],c[t])));for(const n of u){const i=t;if(e){const e=fo(1+~l,l).filter((e=>e<0?o[~e*l+n]:o[n*l+e]));r&&e.sort(((e,t)=>r(e<0?-o[~e*l+n]:o[n*l+e],t<0?-o[~t*l+n]:o[n*l+t])));for(const i of e)if(i<0){(d[~i*l+n]||(d[~i*l+n]={source:null,target:null})).target={index:n,startAngle:t,endAngle:t+=o[~i*l+n]*f,value:o[~i*l+n]}}else{(d[n*l+i]||(d[n*l+i]={source:null,target:null})).source={index:n,startAngle:t,endAngle:t+=o[n*l+i]*f,value:o[n*l+i]}}h[n]={index:n,startAngle:i,endAngle:t,value:c[n]}}else{const e=fo(0,l).filter((e=>o[n*l+e]||o[e*l+n]));r&&e.sort(((e,t)=>r(o[n*l+e],o[n*l+t])));for(const i of e){let e;if(n<i?(e=d[n*l+i]||(d[n*l+i]={source:null,target:null}),e.source={index:n,startAngle:t,endAngle:t+=o[n*l+i]*f,value:o[n*l+i]}):(e=d[i*l+n]||(d[i*l+n]={source:null,target:null}),e.target={index:n,startAngle:t,endAngle:t+=o[n*l+i]*f,value:o[n*l+i]},n===i&&(e.source=e.target)),e.source&&e.target&&e.source.value<e.target.value){const t=e.source;e.source=e.target,e.target=t}}h[n]={index:n,startAngle:i,endAngle:t,value:c[n]}}t+=s}}return(d=Object.values(d)).groups=h,a?d.sort(a):d}return o.padAngle=function(e){return arguments.length?(n=uo(0,e),o):n},o.sortGroups=function(e){return arguments.length?(i=e,o):i},o.sortSubgroups=function(e){return arguments.length?(r=e,o):r},o.sortChords=function(e){return arguments.length?(null==e?a=null:(t=e,a=function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)})._=e,o):a&&a._;var t},o}function bo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yo=Math.PI,xo=2*yo,wo=1e-6,_o=xo-wo;function Do(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class So{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Do:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: ".concat(e));if(t>15)return Do;const n=10**t;return function(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append(Ha||(Ha=bo(["M",",",""])),this._x0=this._x1=+e,this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(qa||(qa=bo(["Z"]))))}lineTo(e,t){this._append(Ga||(Ga=bo(["L",",",""])),this._x1=+e,this._y1=+t)}quadraticCurveTo(e,t,n,i){this._append(Ya||(Ya=bo(["Q",",",",",",",""])),+e,+t,this._x1=+n,this._y1=+i)}bezierCurveTo(e,t,n,i,r,a){this._append(Xa||(Xa=bo(["C",",",",",",",",",",",""])),+e,+t,+n,+i,this._x1=+r,this._y1=+a)}arcTo(e,t,n,i,r){if(e=+e,t=+t,n=+n,i=+i,(r=+r)<0)throw new Error("negative radius: ".concat(r));let a=this._x1,o=this._y1,s=n-e,l=i-t,c=a-e,u=o-t,d=c*c+u*u;if(null===this._x1)this._append(Ka||(Ka=bo(["M",",",""])),this._x1=e,this._y1=t);else if(d>wo)if(Math.abs(u*s-l*c)>wo&&r){let h=n-a,f=i-o,p=s*s+l*l,g=h*h+f*f,m=Math.sqrt(p),v=Math.sqrt(d),b=r*Math.tan((yo-Math.acos((p+d-g)/(2*m*v)))/2),y=b/v,x=b/m;Math.abs(y-1)>wo&&this._append(Qa||(Qa=bo(["L",",",""])),e+y*c,t+y*u),this._append(Za||(Za=bo(["A",",",",0,0,",",",",",""])),r,r,+(u*h>c*f),this._x1=e+x*s,this._y1=t+x*l)}else this._append($a||($a=bo(["L",",",""])),this._x1=e,this._y1=t);else;}arc(e,t,n,i,r,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error("negative radius: ".concat(n));let o=n*Math.cos(i),s=n*Math.sin(i),l=e+o,c=t+s,u=1^a,d=a?i-r:r-i;null===this._x1?this._append(Ja||(Ja=bo(["M",",",""])),l,c):(Math.abs(this._x1-l)>wo||Math.abs(this._y1-c)>wo)&&this._append(eo||(eo=bo(["L",",",""])),l,c),n&&(d<0&&(d=d%xo+xo),d>_o?this._append(to||(to=bo(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,e-o,t
2-s,n,n,u,this._x1=l,this._y1=c):d>wo&&this._append(no||(no=bo(["A",",",",0,",",",",",",",""])),n,n,+(d>=yo),u,this._x1=e+n*Math.cos(r),this._y1=t+n*Math.sin(r)))}rect(e,t,n,i){this._append(io||(io=bo(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+i,-n)}toString(){return this._}}function ko(){return new So}function Co(){return new So(+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:3))}ko.prototype=So.prototype;var Ao=Array.prototype.slice;function To(e){return function(){return e}}function Eo(e){return e.source}function No(e){return e.target}function Mo(e){return e.radius}function Po(e){return e.startAngle}function Uo(e){return e.endAngle}function jo(){return 0}function Fo(){return 10}function Ro(e){var t=Eo,n=No,i=Mo,r=Mo,a=Po,o=Uo,s=jo,l=null;function c(){var c,u=t.apply(this,arguments),d=n.apply(this,arguments),h=s.apply(this,arguments)/2,f=Ao.call(arguments),p=+i.apply(this,(f[0]=u,f)),g=a.apply(this,f)-lo,m=o.apply(this,f)-lo,v=+r.apply(this,(f[0]=d,f)),b=a.apply(this,f)-lo,y=o.apply(this,f)-lo;if(l||(l=c=ko()),h>ho&&(ro(m-g)>2*h+ho?m>g?(g+=h,m-=h):(g-=h,m+=h):g=m=(g+m)/2,ro(y-b)>2*h+ho?y>
vendor: 4,741 bytes, line 2
2b?(b+=h,y-=h):(b-=h,y+=h):b=y=(b+y)/2),l.moveTo(p*ao(g),p*oo(g)),l.arc(0,0,p,g,m),g!==b||m!==y)if(e){var x=v-+e.apply(this,arguments),w=(b+y)/2;l.quadraticCurveTo(0,0,x*ao(b),x*oo(b)),l.lineTo(v*ao(w),v*oo(w)),l.lineTo(x*ao(y),x*oo(y))}else l.quadraticCurveTo(0,0,v*ao(b),v*oo(b)),l.arc(0,0,v,b,y);if(l.quadraticCurveTo(0,0,p*ao(g),p*oo(g)),l.closePath(),c)return l=null,c+""||null}return e&&(c.headRadius=function(t){return arguments.length?(e="function"===typeof t?t:To(+t),c):e}),c.radius=function(e){return arguments.length?(i=r="function"===typeof e?e:To(+e),c):i},c.sourceRadius=function(e){return arguments.length?(i="function"===typeof e?e:To(+e),c):i},c.targetRadius=function(e){return arguments.length?(r="function"===typeof e?e:To(+e),c):r},c.startAngle=function(e){return arguments.length?(a="function"===typeof e?e:To(+e),c):a},c.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:To(+e),c):o},c.padAngle=function(e){return arguments.length?(s="function"===typeof e?e:To(+e),c):s},c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.context=function(e){return arguments.length?(l=null==e?null:e,c):l},c}function Oo(){return Ro()}function Io(){return Ro(Fo)}const Lo=Math.PI/180,Bo=180/Math.PI,Wo=.96422,zo=1,Vo=.82521,Ho=4/29,qo=6/29,Go=3*qo*qo,Yo=qo*qo*qo;function Xo(e){if(e instanceof Qo)return new Qo(e.l,e.a,e.b,e.opacity);if(e instanceof as)return os(e);e instanceof vi||(e=gi(e));var t,n,i=ts(e.r),r=ts(e.g),a=ts(e.b),o=Zo((.2225045*i+.7168786*r+.0606169*a)/zo);return i===r&&r===a?t=n=o:(t=Zo((.4360747*i+.3850649*r+.1430804*a)/Wo),n=Zo((.0139322*i+.0971045*r+.7141733*a)/Vo)),new Qo(116*o-16,500*(t-o),200*(o-n),e.opacity)}function Ko(e,t){return new Qo(e,0,0,null==t?1:t)}function $o(e,t,n,i){return 1===arguments.length?Xo(e):new Qo(e,t,n,null==i?1:i)}function Qo(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function Zo(e){return e>Yo?Math.pow(e,1/3):e/Go+Ho}function Jo(e){return e>qo?e*e*e:Go*(e-Ho)}function es(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ts(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ns(e){if(e instanceof as)return new as(e.h,e.c,e.l,e.opacity);if(e instanceof Qo||(e=Xo(e)),0===e.a&&0===e.b)return new as(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Bo;return new as(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function is(e,t,n,i){return 1===arguments.length?ns(e):new as(n,t,e,null==i?1:i)}function rs(e,t,n,i){return 1===arguments.length?ns(e):new as(e,t,n,null==i?1:i)}function as(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function os(e){if(isNaN(e.h))return new Qo(e.l,0,0,e.opacity);var t=e.h*Lo;return new Qo(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Xn(Qo,$o,Kn($n,{brighter(e){return new Qo(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Qo(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new vi(es(3.1338561*(t=Wo*Jo(t))-1.6168667*(e=zo*Jo(e))-.4906146*(n=Vo*Jo(n))),es(-.9787684*t+1.9161415*e+.033454*n),es(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Xn(as,rs,Kn($n,{brighter(e){return new as(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new as(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return os(this).rgb()}}));var ss=-.14861,ls=1.78277,cs=-.29227,us=-.90649,ds=1.97294,hs=ds*us,fs=ds*ls,ps=ls*cs-us*ss;function gs(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof ms)return new ms(e.h,e.s,e.l,e.opacity);e instanceof vi||(e=gi(e));var t=e.r/255,n=e.g/255,i=e.b/255,r=(ps*i+hs*t-fs*n)/(ps+hs-fs),a=i-r,o=(ds*(n-r)-cs*a)/us,s=Math.sqrt(o*o+a*a)/(ds*r*(1-r)),l=s?Math.atan2(o,a)*Bo-120:NaN;return new ms(l<0?l+360:l,s,r,e.opacity)}(e):new ms(e,t,n,null==i?1:i)}function ms(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Xn(ms,gs,Kn($n,{brighter(e){return e=null==e?Zn:Math.pow(Zn,e),new ms(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Qn:Math.pow(Qn,e),new ms(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Lo,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new vi(255*(t+n*(ss*i+ls*r)),255*(t+n*(cs*i+us*r)),255*(t+n*(ds*i)),this.opacity)}}));var vs=Array.prototype.slice;function bs(e,t){return e-t}const ys=e=>()=>e;function xs(e,t){for(var n,i=-1,r=t.length;++i<r;)if(n=ws(e,t[i]))return n;return 0}function ws(e,t){for(var n=t[0],i=t[1],r=-1,a=0,o=e.length,s=o-1;a<o;s=a++){var l=e[a],c=l[0],u=l[1],d=e[s],h=d[0],f=d[1];if(_s(l,d,t))return 0;u>i!==f>i&&n<(h-c)*(i-u)/(f-u)+c&&(r=-r)}return r}
vendor: 6,655 bytes, line 2
2function _s(e,t,n){var i,r,a,o;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(r=e[i=+(e[0]===t[0])],a=n[i],o=t[i],r<=a&&a<=o||o<=a&&a<=r)}function Ds(){}var Ss=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function ks(){var e=1,t=1,n=he,i=s;function r(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(bs);else{const n=T(e,Cs);for(t=le(...de(n[0],n[1],t),t);t[t.length-1]>=n[1];)t.pop();for(;t[1]<n[0];)t.shift()}return t.map((t=>a(e,t)))}function a(n,r){const a=null==r?NaN:+r;if(isNaN(a))throw new Error("invalid value: ".concat(r));var s=[],l=[];return function(n,i,r){var a,s,l,c,u,d,h=new Array,f=new Array;a=s=-1,c=As(n[0],i),Ss[c<<1].forEach(p);for(;++a<e-1;)l=c,c=As(n[a+1],i),Ss[l|c<<1].forEach(p);Ss[c|0].forEach(p);for(;++s<t-1;){for(a=-1,c=As(n[s*e+e],i),u=As(n[s*e],i),Ss[c<<1|u<<2].forEach(p);++a<e-1;)l=c,c=As(n[s*e+e+a+1],i),d=u,u=As(n[s*e+a+1],i),Ss[l|c<<1|u<<2|d<<3].forEach(p);Ss[c|u<<3].forEach(p)}a=-1,u=n[s*e]>=i,Ss[u<<2].forEach(p);for(;++a<e-1;)d=u,u=As(n[s*e+a+1],i),Ss[u<<2|d<<3].forEach(p);function p(e){var t,n,i=[e[0][0]+a,e[0][1]+s],l=[e[1][0]+a,e[1][1]+s],c=o(i),u=o(l);(t=f[c])?(n=h[u])?(delete f[t.end],delete h[n.start],t===n?(t.ring.push(l),r(t.ring)):h[t.start]=f[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete f[t.end],t.ring.push(l),f[t.end=u]=t):(t=h[u])?(n=f[c])?(delete h[t.start],delete f[n.end],t===n?(t.ring.push(l),r(t.ring)):h[n.start]=f[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(i),h[t.start=c]=t):h[c]=f[u]={start:c,end:u,ring:[i,l]}}Ss[u<<3].forEach(p)}(n,a,(function(e){i(e,n,a),function(e){for(var t=0,n=e.length,i=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)i+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return i}(e)>0?s.push([e]):l.push(e)})),l.forEach((function(e){for(var t,n=0,i=s.length;n<i;++n)if(-1!==xs((t=s[n])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:r,coordinates:s}}function o(t){return 2*t[0]+t[1]*(e+1)*4}function s(n,i,r){n.forEach((function(n){var a=n[0],o=n[1],s=0|a,l=0|o,c=Ts(i[l*e+s]);a>0&&a<e&&s===a&&(n[0]=Es(a,Ts(i[l*e+s-1]),c,r)),o>0&&o<t&&l===o&&(n[1]=Es(o,Ts(i[(l-1)*e+s]),c,r))}))}return r.contour=a,r.size=function(n){if(!arguments.length)return[e,t];var i=Math.floor(n[0]),a=Math.floor(n[1]);if(!(i>=0&&a>=0))throw new Error("invalid size");return e=i,t=a,r},r.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?ys(vs.call(e)):ys(e),r):n},r.smooth=function(e){return arguments.length?(i=e?s:Ds,r):i===s},r}function Cs(e){return isFinite(e)?e:NaN}function As(e,t){return null!=e&&+e>=t}function Ts(e){return null==e||isNaN(e=+e)?-1/0:e}function Es(e,t,n,i){const r=i-t,a=n-t,o=isFinite(r)||isFinite(a)?r/a:Math.sign(r)/Math.sign(a);return isNaN(o)?e:e+o-.5}function Ns(e){return e[0]}function Ms(e){return e[1]}function Ps(){return 1}function Us(){var e=Ns,t=Ms,n=Ps,i=960,r=500,a=20,o=2,s=3*a,l=i+2*s>>o,c=r+2*s>>o,u=ys(20);function d(i){var r=new Float32Array(l*c),u=Math.pow(2,-o),d=-1;for(const a of i){var h=(e(a,++d,i)+s)*u,f=(t(a,d,i)+s)*u,g=+n(a,d,i);if(g&&h>=0&&h<l&&f>=0&&f<c){var m=Math.floor(h),v=Math.floor(f),b=h-m-.5,y=f-v-.5;r[m+v*l]+=(1-b)*(1-y)*g,r[m+1+v*l]+=b*(1-y)*g,r[m+1+(v+1)*l]+=b*y*g,r[m+(v+1)*l]+=(1-b)*y*g}}return p({data:r,width:l,height:c},a*u),r}function h(e){var t=d(e),n=u(t),i=Math.pow(2,2*o);return Array.isArray(n)||(n=le(Number.MIN_VALUE,pe(t)/i,n)),ks().size([l,c]).thresholds(n.map((e=>e*i)))(t).map(((e,t)=>(e.value=+n[t],f(e))))}function f(e){return e.coordinates.forEach(g),e}function g(e){e.forEach(m)}function m(e){e.forEach(v)}function v(e){e[0]=e[0]*Math.pow(2,o)-s,e[1]=e[1]*Math.pow(2,o)-s}function b(){return l=i+2*(s=3*a)>>o,c=r+2*s>>o,h}return h.contours=function(e){var t=d(e),n=ks().size([l,c]),i=Math.pow(2,2*o),r=e=>{e=+e;var r=f(n.contour(t,e*i));return r.value=e,r};return Object.defineProperty(r,"max",{get:()=>pe(t)/i}),r},h.x=function(t){return arguments.length?(e="function"===typeof t?t:ys(+t),h):e},h.y=function(e){return arguments.length?(t="function"===typeof e?e:ys(+e),h):t},h.weight=function(e){return arguments.length?(n="function"===typeof e?e:ys(+e),h):n},h.size=function(e){if(!arguments.length)return[i,r];var t=+e[0],n=+e[1];if(!(t>=0&&n>=0))throw new Error("invalid size");return i=t,r=n,b()},h.cellSize=function(e){if(!arguments.length)return 1<<o;if(!((e=+e)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(e)/Math.LN2),b()},h.thresholds=function(e){return arguments.length?(u="function"===typeof e?e:Array.isArray(e)?ys(vs.call(e)):ys(e),h):u},h.bandwidth=function(e){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return a=(Math.sqrt(4*e*e+1)-1)/2,b()},h}const js=134217729;function Fs(e,t,n,i,r){let a,o,s,l,c=t[0],u=i[0],d=0,h=0;u>c===u>-c?(a=c,c=t[++d]):(a=u,u=i[++h]);let f=0;if(d<e&&h<n)for(u>c===u>-c?(o=c+a,s=a-(o-c),c=t[++d]):(o=u+a,s=a-(o-u),u=i[++h]),a=o,0!==s&&(r[f++]=s);d<e&&h<n;)u>c===u>-c?(o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d]):(o=a+u,l=o-a,s=a-(o-l)+(u-l),u=i[++h]),a=o,0!==s&&(r[f++]=s);for(;d<e;)o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d],a=o,0!==s&&(r[f++]=s);for(;h<n;)o=a+u,l=o-a,s=a-(o-l)+(u-l),u=i[++h],a=o,0!==s&&(r[f++]=s);return 0===a&&0!==f||(r[f++]=a),f}function Rs(e){return new Float64Array(e)}const Os=Rs(4),Is=Rs(8),Ls=Rs(12),Bs=Rs(16),Ws=Rs(4);function zs(e,t,n,i,r,a){const o=(t-a)*(n-r),s=(e-r)*(i-a),l=o-s,c=Math.abs(o+s);return Math.abs(l)>=33306690738754716e-32*c?l:-function(e,t,n,i,r,a,o){let s,l,c,u,d,h,f,p,g,m,v,b,y,x,w,_,D,S;const k=e-r,C=n-r,A=t-a,T=i-a;x=k*T,h=js*k,f=h-(h-k),p=k-f,h=js*T,g=h-(h-T),m=T-g,w=p*m-(x-f*g-p*g-f*m),_=A*C,h=js*A,f=h-(h-A),p=A-f,h=js*C,g=h-(h-C),m=C-g,D=p*m-(_-f*g-p*g-f*m),v=w-D,d=w-v,Os[0]=w-(v+d)+(d-D),b=x+v,d=b-x,y=x-(b-d)+(v-d),v=y-_,d=y-v,Os[1]=y-(v+d)+(d-_),S=b+v,d=S-b,Os[2]=b-(S-d)+(v-d),Os[3]=S;let E=function(e,t){let n=t[0];for(let i=1;i<e;i++)n+=t[i];return n}(4,Os),N=22204460492503146e-32*o;if(E>=N||-E>=N)return E;if(d=e-k,s=e-(k+d)+(d-r),d=n-C,c=n-(C+d)+(d-r),d=t-A,l=t-(A+d)+(d-a),d=i-T,u=i-(T+d)+(d-a),0===s&&0===l&&0===c&&0===u)return E;if(N=11093356479670487e-47*o+33306690738754706e-32*Math.abs(E),E+=k*u+T*s-(A*c+C*l),E>=N||-E>=N)return E;x=s*T,h=js*s,f=h-(h-s),p=s-f,h=js*T,g=h-(h-T),m=T-g,w=p*m-(x-f*g-p*g-f*m),_=l*C,h=js*l,f=h-(h-l),p=l-f,h=js*C,g=h-(h-C),m=C-g,D=p*m-(_-f*g-p*g-f*m),v=w-D,d=w-v,Ws[
vendor: 5,150 bytes, line 2
20]=w-(v+d)+(d-D),b=x+v,d=b-x,y=x-(b-d)+(v-d),v=y-_,d=y-v,Ws[1]=y-(v+d)+(d-_),S=b+v,d=S-b,Ws[2]=b-(S-d)+(v-d),Ws[3]=S;const M=Fs(4,Os,4,Ws,Is);x=k*u,h=js*k,f=h-(h-k),p=k-f,h=js*u,g=h-(h-u),m=u-g,w=p*m-(x-f*g-p*g-f*m),_=A*c,h=js*A,f=h-(h-A),p=A-f,h=js*c,g=h-(h-c),m=c-g,D=p*m-(_-f*g-p*g-f*m),v=w-D,d=w-v,Ws[0]=w-(v+d)+(d-D),b=x+v,d=b-x,y=x-(b-d)+(v-d),v=y-_,d=y-v,Ws[1]=y-(v+d)+(d-_),S=b+v,d=S-b,Ws[2]=b-(S-d)+(v-d),Ws[3]=S;const P=Fs(M,Is,4,Ws,Ls);x=s*u,h=js*s,f=h-(h-s),p=s-f,h=js*u,g=h-(h-u),m=u-g,w=p*m-(x-f*g-p*g-f*m),_=l*c,h=js*l,f=h-(h-l),p=l-f,h=js*c,g=h-(h-c),m=c-g,D=p*m-(_-f*g-p*g-f*m),v=w-D,d=w-v,Ws[0]=w-(v+d)+(d-D),b=x+v,d=b-x,y=x-(b-d)+(v-d),v=y-_,d=y-v,Ws[1]=y-(v+d)+(d-_),S=b+v,d=S-b,Ws[2]=b-(S-d)+(v-d),Ws[3]=S;const U=Fs(P,Ls,4,Ws,Bs);return Bs[U-1]}(e,t,n,i,r,a,c)}Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(8),Rs(8),Rs(8),Rs(4),Rs(8),Rs(8),Rs(8),Rs(12);Rs(192),Rs(192);Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(8),Rs(8),Rs(8),Rs(8),Rs(8),Rs(8),Rs(8),Rs(8),Rs(8),Rs(4),Rs(4),Rs(4),Rs(8),Rs(16),Rs(16),Rs(16),Rs(32),Rs(32),Rs(48),Rs(64);Rs(1152),Rs(1152);Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(4),Rs(24),Rs(24),Rs(24),Rs(24),Rs(24),Rs(24),Rs(24),Rs(24),Rs(24),Rs(24),Rs(1152),Rs(1152),Rs(1152),Rs(1152),Rs(1152),Rs(2304),Rs(2304),Rs(3456),Rs(5760),Rs(8),Rs(8),Rs(8),Rs(16),Rs(24),Rs(48),Rs(48),Rs(96),Rs(192),Rs(384),Rs(384),Rs(384),Rs(768);Rs(96),Rs(96),Rs(96),Rs(1152);const Vs=Math.pow(2,-52),Hs=new Uint32Array(512);class qs{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qs,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zs;const i=e.length,r=new Float64Array(2*i);for(let a=0;a<i;a++){const i=e[a];r[2*a]=t(i),r[2*a+1]=n(i)}return new qs(r)}constructor(e){const t=e.length>>1;if(t>0&&"number"!==typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:i,_hullHash:r}=this,a=e.length>>1;let o=1/0,s=1/0,l=-1/0,c=-1/0;for(let S=0;S<a;S++){const t=e[2*S],n=e[2*S+1];t<o&&(o=t),n<s&&(s=n),t>l&&(l=t),n>c&&(c=n),this._ids[S]=S}const u=(o+l)/2,d=(s+c)/2;let h,f,p;for(let S=0,k=1/0;S<a;S++){const t=Gs(u,d,e[2*S],e[2*S+1]);t<k&&(h=S,k=t)}const g=e[2*h],m=e[2*h+1];for(let S=0,k=1/0;S<a;S++){if(S===h)continue;const t=Gs(g,m,e[2*S],e[2*S+1]);t<k&&t>0&&(f=S,k=t)}let v=e[2*f],b=e[2*f+1],y=1/0;for(let S=0;S<a;S++){if(S===h||S===f)continue;const t=Xs(g,m,v,b,e[2*S],e[2*S+1]);t<y&&(p=S,y=t)}let x=e[2*p],w=e[2*p+1];if(y===1/0){for(let i=0;i<a;i++)this._dists[i]=e[2*i]-e[0]||e[2*i+1]-e[1];Ks(this._ids,this._dists,0,a-1);const t=new Uint32Array(a);let n=0;for(let e=0,i=-1/0;e<a;e++){const r=this._ids[e],a=this._dists[r];a>i&&(t[n++]=r,i=a)}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(zs(g,m,v,b,x,w)<0){const e=f,t=v,n=b;f=p,v=x,b=w,p=e,x=t,w=n}const _=function(e,t,n,i,r,a){const o=n-e,s=i-t,l=r-e,c=a-t,u=o*o+s*s,d=l*l+c*c,h=.5/(o*c-s*l),f=e+(c*u-s*d)*h,p=t+(o*d-l*u)*h;return{x:f,y:p}}(g,m,v,b,x,w);this._cx=_.x,this._cy=_.y;for(let S=0;S<a;S++)this._dists[S]=Gs(e[2*S],e[2*S+1],_.x,_.y);Ks(this._ids,this._dists,0,a-1),this._hullStart=h;let D=3;n[h]=t[p]=f,n[f]=t[h]=p,n[p]=t[f]=h,i[h]=0,i[f]=1,i[p]=2,r.fill(-1),r[this._hashKey(g,m)]=h,r[this._hashKey(v,b)]=f,r[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,f,p,-1,-1,-1);for(let S,k,C=0;C<this._ids.length;C++){const a=this._ids[C],o=e[2*a],s=e[2*a+1];if(C>0&&Math.abs(o-S)<=Vs&&Math.abs(s-k)<=Vs)continue;if(S=o,k=s,a===h||a===f||a===p)continue;let l=0;for(let e=0,t=this._hashKey(o,s);e<this._hashSize&&(l=r[(t+e)%this._hashSize],-1===l||l===n[l]);e++);l=t[l];let c,u=l;for(;c=n[u],zs(o,s,e[2*u],e[2*u+1],e[2*c],e[2*c+1])>=0;)if(u=c,u===l){u=-1;break}if(-1===u)continue;let d=this._addTriangle(u,a,n[u],-1,-1,i[u]);i[a]=this._legalize(d+2),i[u]=d,D++;let g=n[u];for(;c=n[g],zs(o,s,e[2*g],e[2*g+1],e[2*c],e[2*c+1])<0;)d=this._addTriangle(g,a,c,i[a],-1,i[g]),i[a]=this._legalize(d+2),n[g]=g,D--,g=c;if(u===l)for(;c=t[u],zs(o,s,e[2*c],e[2*c+1],e[2*u],e[2*u+1])<0;)d=this._addTriangle(c,a,u,-1,i[u],i[c]),this._legalize(d+2),i[c]=d,n[u]=u,D--,u=c;this._hullStart=t[a]=u,n[u]=t[g]=a,n[a]=g,r[this._hashKey(o,s)]=a,r[this._hashKey(e[2*u],e[2*u+1])]=u}this.hull=new Uint32Array(D);for(let S=0,k=this._hullStart;S<D;S++)this.hull[S]=k,k=n[k];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:i}=this;let r=0,a=0;for(;;){const o=n[e],s=e-e%3;if(a=s+(e+2)%3,-1===o){if(0===r)break;e=Hs[--r];continue}
vendor: 12,976 bytes, line 2
2const l=o-o%3,c=s+(e+1)%3,u=l+(o+2)%3,d=t[a],h=t[e],f=t[c],p=t[u];if(Ys(i[2*d],i[2*d+1],i[2*h],i[2*h+1],i[2*f],i[2*f+1],i[2*p],i[2*p+1])){t[e]=p,t[o]=d;const i=n[u];if(-1===i){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,i),this._link(o,n[a]),this._link(a,u);const s=l+(o+1)%3;r<Hs.length&&(Hs[r++]=s)}else{if(0===r)break;e=Hs[--r]}}return a}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,i,r,a){const o=this.trianglesLen;return this._triangles[o]=e,this._triangles[o+1]=t,this._triangles[o+2]=n,this._link(o,i),this._link(o+1,r),this._link(o+2,a),this.trianglesLen+=3,o}}function Gs(e,t,n,i){const r=e-n,a=t-i;return r*r+a*a}function Ys(e,t,n,i,r,a,o,s){const l=e-o,c=t-s,u=n-o,d=i-s,h=r-o,f=a-s,p=u*u+d*d,g=h*h+f*f;return l*(d*g-p*f)-c*(u*g-p*h)+(l*l+c*c)*(u*f-d*h)<0}function Xs(e,t,n,i,r,a){const o=n-e,s=i-t,l=r-e,c=a-t,u=o*o+s*s,d=l*l+c*c,h=.5/(o*c-s*l),f=(c*u-s*d)*h,p=(o*d-l*u)*h;return f*f+p*p}function Ks(e,t,n,i){if(i-n<=20)for(let r=n+1;r<=i;r++){const i=e[r],a=t[i];let o=r-1;for(;o>=n&&t[e[o]]>a;)e[o+1]=e[o--];e[o+1]=i}else{let r=n+1,a=i;$s(e,n+i>>1,r),t[e[n]]>t[e[i]]&&$s(e,n,i),t[e[r]]>t[e[i]]&&$s(e,r,i),t[e[n]]>t[e[r]]&&$s(e,n,r);const o=e[r],s=t[o];for(;;){do{r++}while(t[e[r]]<s);do{a--}while(t[e[a]]>s);if(a<r)break;$s(e,r,a)}e[n+1]=e[a],e[a]=o,i-r+1>=a-n?(Ks(e,t,r,i),Ks(e,t,n,a-1)):(Ks(e,t,n,a-1),Ks(e,t,r,i))}}function $s(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function Qs(e){return e[0]}function Zs(e){return e[1]}const Js=1e-6;class el{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+="L".concat(this._x1=+e,",").concat(this._y1=+t)}arc(e,t,n){const i=(e=+e)+(n=+n),r=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+="M".concat(i,",").concat(r):(Math.abs(this._x1-i)>Js||Math.abs(this._y1-r)>Js)&&(this._+="L"+i+","+r),n&&(this._+="A".concat(n,",").concat(n,",0,1,1,").concat(e-n,",").concat(t,"A").concat(n,",").concat(n,",0,1,1,").concat(this._x1=i,",").concat(this._y1=r))}rect(e,t,n,i){this._+="M".concat(this._x0=this._x1=+e,",").concat(this._y0=this._y1=+t,"h").concat(+n,"v").concat(+i,"h").concat(-n,"Z")}value(){return this._||null}}class tl{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class nl{constructor(e){let[t,n,i,r]=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,960,500];if(!((i=+i)>=(t=+t))||!((r=+r)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=i,this.xmin=t,this.ymax=r,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:i}=this;let r,a;const o=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let p,g,m=0,v=0,b=n.length;m<b;m+=3,v+=2){const i=2*n[m],s=2*n[m+1],l=2*n[m+2],c=e[i],u=e[i+1],d=e[s],h=e[s+1],f=e[l],b=e[l+1],y=d-c,x=h-u,w=f-c,_=b-u,D=2*(y*_-x*w);if(Math.abs(D)<1e-9){if(void 0===r){r=a=0;for(const n of t)r+=e[2*n],a+=e[2*n+1];r/=t.length,a/=t.length}const n=1e9*Math.sign((r-c)*_-(a-u)*w);p=(c+f)/2-n*_,g=(u+b)/2+n*w}else{const e=1/D,t=y*y+x*x,n=w*w+_*_;p=c+(_*t-x*n)*e,g=u+(y*n-w*t)*e}o[v]=p,o[v+1]=g}let s,l,c,u=t[t.length-1],d=4*u,h=e[2*u],f=e[2*u+1];i.fill(0);for(let p=0;p<t.length;++p)u=t[p],s=d,l=h,c=f,d=4*u,h=e[2*u],f=e[2*u+1],i[s+2]=i[d]=c-f,i[s+3]=i[d+1]=h-l}render(e){const t=null==e?e=new el:void 0,{delaunay:{halfedges:n,inedges:i,hull:r},circumcenters:a,vectors:o}=this;if(r.length<=1)return null;for(let c=0,u=n.length;c<u;++c){const t=n[c];if(t<c)continue;const i=2*Math.floor(c/3),r=2*Math.floor(t/3),o=a[i],s=a[i+1],l=a[r],u=a[r+1];this._renderSegment(o,s,l,u,e)}let s,l=r[r.length-1];for(let c=0;c<r.length;++c){s=l,l=r[c];const t=2*Math.floor(i[l]/3),n=a[t],u=a[t+1],d=4*s,h=this._project(n,u,o[d+2],o[d+3]);h&&this._renderSegment(n,u,h[0],h[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new el:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new el:void 0,i=this._clip(e);if(null===i||!i.length)return;t.moveTo(i[0],i[1]);let r=i.length;for(;i[0]===i[r-2]&&i[1]===i[r-1]&&r>1;)r-=2;for(let a=2;a<r;a+=2)i[a]===i[a-2]&&i[a+1]===i[a-1]||t.lineTo(i[a],i[a+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new tl;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,i,r){let a;const o=this._regioncode(e,t),s=this._regioncode(n,i);0===o&&0===s?(r.moveTo(e,t),r.lineTo(n,i)):(a=this._clipSegment(e,t,n,i,o,s))&&(r.moveTo(a[0],a[1]),r.lineTo(a[2],a[3]))}contains(e,t,n){return(t=+t)===t&&(n=+n)===n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let i=0,r=t.length;i<r;i+=2)for(let a=0,o=e.length;a<o;a+=2)if(t[i]===e[a]&&t[i+1]===e[a+1]&&t[(i+2)%r]===e[(a+o-2)%o]&&t[(i+3)%r]===e[(a+o-1)%o]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:i,triangles:r}}=this,a=n[e];if(-1===a)return null;const o=[];let s=a;do{const n=Math.floor(s/3);if(o.push(t[2*n],t[2*n+1]),s=s%3===2?s-2:s+1,r[s]!==e)break;s=i[s]}while(s!==a&&-1!==s);return o}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,i=4*e;return this._simplify(n[i]||n[i+1]?this._clipInfinite(e,t,n[i],n[i+1],n[i+2],n[i+3]):this._clipFinite(e,t))}_clipFinite(e,t){const n=t.length;let i,r,a,o,s=null,l=t[n-2],c=t[n-1],u=this._regioncode(l,c),d=0;for(let h=0;h<n;h+=2)if(i=l,r=c,l=t[h],c=t[h+1],a=u,u=this._regioncode(l,c),0===a&&0===u)o=d,d=0,s?s.push(l,c):s=[l,c];else{let t,n,h,f,p;if(0===a){if(null===(t=this._clipSegment(i,r,l,c,a,u)))continue;[n,h,f,p]=t}else{if(null===(t=this._clipSegment(l,c,i,r,u,a)))continue;[f,p,n,h]=t,o=d,d=this._edgecode(n,h),o&&d&&this._edge(e,o,d,s,s.length),s?s.push(n,h):s=[n,h]}o=d,d=this._edgecode(f,p),o&&d&&this._edge(e,o,d,s,s.length),s?s.push(f,p):s=[f,p]}if(s)o=d,d=this._edgecode(s[0],s[1]),o&&d&&this._edge(e,o,d,s,s.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return s}_clipSegment(e,t,n,i,r,a){const o=r<a;for(o&&([e,t,n,i,r,a]=[n,i,e,t,a,r]);;){if(0===r&&0===a)return o?[n,i,e,t]:[e,t,n,i];if(r&a)return null;let s,l,c=r||a;8&c?(s=e+(n-e)*(this.ymax-t)/(i-t),l=this.ymax):4&c?(s=e+(n-e)*(this.ymin-t)/(i-t),l=this.ymin):2&c?(l=t+(i-t)*(this.xmax-e)/(n-e),s=this.xmax):(l=t+(i-t)*(this.xmin-e)/(n-e),s=this.xmin),r?(e=s,t=l,r=this._regioncode(e,t)):(n=s,i=l,a=this._regioncode(n,i))}}_clipInfinite(e,t,n,i,r,a){let o,s=Array.from(t);if((o=this._project(s[0],s[1],n,i))&&s.unshift(o[0],o[1]),(o=this._project(s[s.length-2],s[s.length-1],r,a))&&s.push(o[0],o[1]),s=this._clipFinite(e,s))for(let l,c=0,u=s.length,d=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)l=d,d=this._edgecode(s[c],s[c+1]),l&&d&&(c=this._edge(e,l,d,s,c),u=s.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(e,t,n,i,r){for(;t!==n;){let n,a;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,a=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,a=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,a=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,a=this.ymin}i[r]===n&&i[r+1]===a||!this.contains(e,n,a)||(i.splice(r,0,n,a),r+=2)}return r}_project(e,t,n,i){let r,a,o,s=1/0;if(i<0){if(t<=this.ymin)return null;(r=(this.ymin-t)/i)<s&&(o=this.ymin,a=e+(s=r)*n)}else if(i>0){if(t>=this.ymax)return null;(r=(this.ymax-t)/i)<s&&(o=this.ymax,a=e+(s=r)*n)}if(n>0){if(e>=this.xmax)return null;(r=(this.xmax-e)/n)<s&&(a=this.xmax,o=t+(s=r)*i)}else if(n<0){if(e<=this.xmin)return null;(r=(this.xmin-e)/n)<s&&(a=this.xmin,o=t+(s=r)*i)}return[a,o]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const n=(t+2)%e.length,i=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[i]||e[t+1]===e[n+1]&&e[n+1]===e[i+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}}const il=2*Math.PI,rl=Math.pow;function al(e){return e[0]}function ol(e){return e[1]}function sl(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class ll{static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:al,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ol,i=arguments.length>3?arguments[3]:void 0;return new ll("length"in e?function(e,t,n,i){const r=e.length,a=new Float64Array(2*r);for(let o=0;o<r;++o){const r=e[o];a[2*o]=t.call(i,r,o,e),a[2*o+1]=n.call(i,r,o,e)}return a}(e,t,n,i):Float64Array.from(function*(e,t,n,i){let r=0;for(const a of e)yield t.call(i,a,r,e),yield n.call(i,a,r,e),++r}(e,t,n,i)))}constructor(e){this._delaunator=new qs(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let i=0;i<t.length;i+=3){const e=2*t[i],r=2*t[i+1],a=2*t[i+2];if((n[a]-n[e])*(n[r+1]-n[e+1])-(n[r]-n[e])*(n[a+1]-n[e+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],i=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],r=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]);for(let a=0,o=t.length/2;a<o;++a){const e=sl(t[2*a],t[2*a+1],r);t[2*a]=e[0],t[2*a+1]=e[1]}this._delaunator=new qs(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,r=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),o=this._hullIndex.fill(-1);for(let s=0,l=n.length;s<l;++s){const e=r[s%3===2?s-2:s+1];-1!==n[s]&&-1!==a[e]||(a[e]=s)}for(let s=0,l=i.length;s<l;++s)o[i[s]]=s;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],a[i[0]]=1,2===i.length&&(a[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(e){return new nl(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:i,halfedges:r,triangles:a,collinear:o}=this;if(o){const t=o.indexOf(e);return t>0&&(yield o[t-1]),void(t<o.length-1&&(yield o[t+1]))}const s=t[e];if(-1===s)return;let l=s,c=-1;do{if(yield c=a[l],l=l%3===2?l-2:l+1,a[l]!==e)return;if(l=r[l],-1===l){const t=n[(i[e]+1)%n.length];return void(t!==c&&(yield t))}}while(l!==s)}find(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((e=+e)!==e||(t=+t)!==t)return-1;const i=n;let r;for(;(r=this._step(n,e,t))>=0&&r!==n&&r!==i;)n=r;return r}_step(e,t,n){const{inedges:i,hull:r,_hullIndex:a,halfedges:o,triangles:s,points:l}=this;if(-1===i[e]||!l.length)return(e+1)%(l.length>>1);let c=e,u=rl(t-l[2*e],2)+rl(n-l[2*e+1],2);const d=i[e];let h=d;do{let i=s[h];const d=rl(t-l[2*i],2)+rl(n-l[2*i+1],2);if(d<u&&(u=d,c=i),h=h%3===2?h-2:h+1,s[h]!==e)break;if(h=o[h],-1===h){if(h=r[(a[e]+1)%r.length],h!==i&&rl(t-l[2*h],2)+rl(n-l[2*h+1],2)<u)return h;break}}while(h!==d);return c}render(e){const t=null==e?e=new el:void 0,{points:n,halfedges:i,triangles:r}=this;for(let a=0,o=i.length;a<o;++a){const t=i[a];if(t<a)continue;const o=2*r[a],s=2*r[t];e.moveTo(n[o],n[o+1]),e.lineTo(n[s],n[s+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"===typeof e.moveTo||(t=e,e=null),t=void 0==t?2:+t;const n=null==e?e=new el:void 0,{points:i}=this;for(let r=0,a=i.length;r<a;r+=2){const n=i[r],a=i[r+1];e.moveTo(n+t,a),e.arc(n,a,t,0,il)}return n&&n.value()}renderHull(e){const t=null==e?e=new el:void 0,{hull:n,points:i}=this,r=2*n[0],a=n.length;e.moveTo(i[r],i[r+1]);for(let o=1;o<a;++o){const t=2*n[o];e.lineTo(i[t],i[t+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new tl;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new el:void 0,{points:i,triangles:r}=this,a=2*r[e*=3],o=2*r[e+1],s=2*r[e+2];return t.moveTo(i[a],i[a+1]),t.lineTo(i[o],i[o+1]),t.lineTo(i[s],i[s+1]),t.closePath(),n&&n.value(
vendor: 10,631 bytes, line 2
2)}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new tl;return this.renderTriangle(e,t),t.value()}}const cl=e=>()=>e;function ul(e,t){let{sourceEvent:n,subject:i,target:r,identifier:a,active:o,x:s,y:l,dx:c,dy:u,dispatch:d}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}function dl(e){return!e.ctrlKey&&!e.button}function hl(){return this.parentNode}function fl(e,t){return null==t?{x:e.x,y:e.y}:t}function pl(){return navigator.maxTouchPoints||"ontouchstart"in this}function gl(){var e,t,n,i,r=dl,a=hl,o=fl,s=pl,l={},c=Ct("start","drag","end"),u=0,d=0;function h(e){e.on("mousedown.drag",f).filter(s).on("touchstart.drag",m).on("touchmove.drag",v,zn).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(o,s){if(!i&&r.call(this,o,s)){var l=y(this,a.call(this,o,s),o,s,"mouse");l&&(Wn(o.view).on("mousemove.drag",p,Vn).on("mouseup.drag",g,Vn),Gn(o.view),Hn(o),n=!1,e=o.clientX,t=o.clientY,l("start",o))}}function p(i){if(qn(i),!n){var r=i.clientX-e,a=i.clientY-t;n=r*r+a*a>d}l.mouse("drag",i)}function g(e){Wn(e.view).on("mousemove.drag mouseup.drag",null),Yn(e.view,n),qn(e),l.mouse("end",e)}function m(e,t){if(r.call(this,e,t)){var n,i,o=e.changedTouches,s=a.call(this,e,t),l=o.length;for(n=0;n<l;++n)(i=y(this,s,e,t,o[n].identifier,o[n]))&&(Hn(e),i("start",e,o[n]))}}function v(e){var t,n,i=e.changedTouches,r=i.length;for(t=0;t<r;++t)(n=l[i[t].identifier])&&(qn(e),n("drag",e,i[t]))}function b(e){var t,n,r=e.changedTouches,a=r.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),t=0;t<a;++t)(n=l[r[t].identifier])&&(Hn(e),n("end",e,r[t]))}function y(e,t,n,i,r,a){var s,d,f,p=c.copy(),g=er(a||n,t);if(null!=(f=o.call(e,new ul("beforestart",{sourceEvent:n,target:h,identifier:r,active:u,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),i)))return s=f.x-g[0]||0,d=f.y-g[1]||0,function n(a,o,c){var m,v=g;switch(a){case"start":l[r]=n,m=u++;break;case"end":delete l[r],--u;case"drag":g=er(c||o,t),m=u}p.call(a,e,new ul(a,{sourceEvent:o,subject:f,target:h,identifier:r,active:m,x:g[0]+s,y:g[1]+d,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:p}),i)}}return h.filter=function(e){return arguments.length?(r="function"===typeof e?e:cl(!!e),h):r},h.container=function(e){return arguments.length?(a="function"===typeof e?e:cl(e),h):a},h.subject=function(e){return arguments.length?(o="function"===typeof e?e:cl(e),h):o},h.touchable=function(e){return arguments.length?(s="function"===typeof e?e:cl(!!e),h):s},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,h):Math.sqrt(d)},h}ul.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var ml={},vl={},bl=34,yl=10,xl=13;function wl(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function _l(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var i in e)i in t||n.push(t[i]=i)})),n}function Dl(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function Sl(e){var t,n=e.getUTCHours(),i=e.getUTCMinutes(),r=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+Dl(-t,6):t>9999?"+"+Dl(t,6):Dl(t,4))+"-"+Dl(e.getUTCMonth()+1,2)+"-"+Dl(e.getUTCDate(),2)+(a?"T"+Dl(n,2)+":"+Dl(i,2)+":"+Dl(r,2)+"."+Dl(a,3)+"Z":r?"T"+Dl(n,2)+":"+Dl(i,2)+":"+Dl(r,2)+"Z":i||n?"T"+Dl(n,2)+":"+Dl(i,2)+"Z":"")}function kl(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function i(e,t){var i,r=[],a=e.length,o=0,s=0,l=a<=0,c=!1;function u(){if(l)return vl;if(c)return c=!1,ml;var t,i,r=o;if(e.charCodeAt(r)===bl){for(;o++<a&&e.charCodeAt(o)!==bl||e.charCodeAt(++o)===bl;);return(t=o)>=a?l=!0:(i=e.charCodeAt(o++))===yl?c=!0:i===xl&&(c=!0,e.charCodeAt(o)===yl&&++o),e.slice(r+1,t-1).replace(/""/g,'"')}for(;o<a;){if((i=e.charCodeAt(t=o++))===yl)c=!0;else if(i===xl)c=!0,e.charCodeAt(o)===yl&&++o;else if(i!==n)continue;return e.slice(r,t)}return l=!0,e.slice(r,a)}for(e.charCodeAt(a-1)===yl&&--a,e.charCodeAt(a-1)===xl&&--a;(i=u())!==vl;){for(var d=[];i!==ml&&i!==vl;)d.push(i),i=u();t&&null==(d=t(d,s++))||r.push(d)}return r}function r(t,n){return t.map((function(t){return n.map((function(e){return o(t[e])})).join(e)}))}function a(t){return t.map(o).join(e)}function o(e){return null==e?"":e instanceof Date?Sl(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,r,a=i(e,(function(e,i){if(n)return n(e,i-1);r=e,n=t?function(e,t){var n=wl(e);return function(i,r){return t(n(i),r,e)}}(e,t):wl(e)}));return a.columns=r||[],a},parseRows:i,format:function(t,n){return null==n&&(n=_l(t)),[n.map(o).join(e)].concat(r(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=_l(e)),r(e,t).join("\n")},formatRows:function(e){return e.map(a).join("\n")},formatRow:a,formatValue:o}}var Cl=kl(","),Al=Cl.parse,Tl=Cl.parseRows,El=Cl.format,Nl=Cl.formatBody,Ml=Cl.formatRows,Pl=Cl.formatRow,Ul=Cl.formatValue,jl=kl("\t"),Fl=jl.parse,Rl=jl.parseRows,Ol=jl.format,Il=jl.formatBody,Ll=jl.formatRows,Bl=jl.formatRow,Wl=jl.formatValue;function zl(e){for(var t in e){var n,i,r=e[t].trim();if(r)if("true"===r)r=!0;else if("false"===r)r=!1;else if("NaN"===r)r=NaN;else if(isNaN(n=+r)){if(!(i=r.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Vl&&i[4]&&!i[7]&&(r=r.replace(/-/g,"/").replace(/T/," ")),r=new Date(r)}else r=n;else r=null;e[t]=r}return e}const Vl=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Hl=e=>+e;function ql(e){return e*e}function Gl(e){return e*(2-e)}function Yl(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var Xl=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Kl=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),$l=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),Ql=Math.PI,Zl=Ql/2;function Jl(e){return 1===+e?1:1-Math.cos(e*Zl)}function ec(e){return Math.sin(e*Zl)}function tc(e){return(1-Math.cos(Ql*e))/2}function nc(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function ic(e){return nc(1-+e)}function rc(e){return 1-nc(e)}function ac(e){return((e*=2)<=1?nc(1-e):2-nc(e-1))/2}function oc(e){return 1-Math.sqrt(1-e*e)}function sc(e){return Math.sqrt(1- --e*e)}function lc(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var cc=4/11,uc=6/11,dc=8/11,hc=3/4,fc=9/11,pc=10/11,gc=15/16,mc=21/22,vc=63/64,bc=1/cc/cc;function yc(e){return 1-xc(1-e)}function xc(e){return(e=+e)<cc?bc*e*e:e<dc?bc*(e-=uc)*e+hc:e<pc?bc*(e-=fc)*e+gc:bc*(e-=mc)*e+vc}function wc(e){return((e*=2)<=1?1-xc(1-e):xc(e-1)+1)/2}var _c=1.70158,Dc=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(_c),Sc=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(_c),kc=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(_c),Cc=2*Math.PI,Ac=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Cc);function r(e){return t*nc(- --e)*Math.sin((i-e)/n)}return r.amplitude=function(t){return e(t,n*Cc)},r.period=function(n){return e(t,n)},r}(1,.3),Tc=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Cc);function r(e){return 1-t*nc(e=+e)*Math.sin((e+i)/n)}return r.amplitude=function(t){return e(t,n*Cc)},r.period=function(n){return e(t,n)},r}(1,.3),Ec=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=Cc);function r(e){return((e=2*e-1)<0?t*nc(-e)*Math.sin((i-e)/n):2-t*nc(e)*Math.sin((i+e)/n))/2}return r.amplitude=function(t){return e(t,n*Cc)},r.period=function(n){return e(t,n)},r}(1,.3);function Nc(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function Mc(e,t){return fetch(e,t).then(Nc)}function Pc(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function Uc(e,t){return fetch(e,t).then(Pc)}function jc(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Fc(e,t){return fetch(e,t).then(jc)}function Rc(e){return function(t,n,i){return 2===arguments.length&&"function"===typeof n&&(i=n,n=void 0),Fc(t,n).then((function(t){return e(t,i)}))}}function Oc(e,t,n,i){3===arguments.length&&"function"===typeof n&&(i=n,n=void 0);var r=kl(e);return Fc(t,n).then((function(e){return r.parse(e,i)}))}var Ic=Rc(Al),Lc=Rc(Fl);function Bc(e,t){return new Promise((function(n,i){var r=new Image;for(var a in t)r[a]=t[a];r.onerror=i,r.onload=function(){n(r)},r.src=e}))}function Wc(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function zc(e,t){return fetch(e,t).then(Wc)}function Vc(e){return(t,n)=>Fc(t,n).then((t=>(new DOMParser).parseFromString(t,e)))}const Hc=Vc("application/xml");var qc=Vc("text/html"),Gc=Vc("image/svg+xml");function Yc(e,t){var n,i=1;function r(){var r,a,o=n.length,s=0,l=0;for(r=0;r<o;++r)s+=(a=n[r]).x,l+=a.y;for(s=(s/o-e)*i,l=(l/o-t)*i,r=0;r<o;++r)(a=n[r]).x-=s,a.y-=l}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r.strength=function(e){return arguments.length?(i=+e,r):i},r}function Xc(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var r,a,o,s,l,c,u,d,h,f=e._root,p={data:i},g=e._x0,m=e._y0,v=e._x1,b=e._y1;if(!f)return e._root=p,e;for(;f.length;)if((c=t>=(a=(g+v)/2))?g=a:v=a,(u=n>=(o=(m+b)/2))?m=o:b=o,r=f,!(f=f[d=u<<1|c]))return r[d]=p,e;if(s=+e._x.call(null,f.data),l=+e._y.call(null,f.data),t===s&&n===l)return p.next=f,r?r[d]=p:e._root=p,e;do{r=r?r[d]=new Array(4):e._root=new Array(4),(c=t>=(a=(g+v)/2))?g=a:v=a,(u=n>=(o=(m+b)/2))?m=o:b=o}while((d=u<<1|c)===(h=(l>=o)<<1|s>=a));return r[h]=f,r[d]=p,e}function Kc(e,t,n,i,r){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=r}function $c(e){return e[0]}function Qc(e){return e[1]}function Zc(e,t,n){var i=new Jc(null==t?$c:t,null==n?Qc:n,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}
vendor: 4,621 bytes, line 2
2function Jc(e,t,n,i,r,a){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=r,this._y1=a,this._root=void 0}function eu(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var tu=Zc.prototype=Jc.prototype;function nu(e){return function(){return e}}function iu(e){return 1e-6*(e()-.5)}function ru(e){return e.x+e.vx}function au(e){return e.y+e.vy}function ou(e){var t,n,i,r=1,a=1;function o(){for(var e,o,l,c,u,d,h,f=t.length,p=0;p<a;++p)for(o=Zc(t,ru,au).visitAfter(s),e=0;e<f;++e)l=t[e],d=n[l.index],h=d*d,c=l.x+l.vx,u=l.y+l.vy,o.visit(g);function g(e,t,n,a,o){var s=e.data,f=e.r,p=d+f;if(!s)return t>c+p||a<c-p||n>u+p||o<u-p;if(s.index>l.index){var g=c-s.x-s.vx,m=u-s.y-s.vy,v=g*g+m*m;v<p*p&&(0===g&&(v+=(g=iu(i))*g),0===m&&(v+=(m=iu(i))*m),v=(p-(v=Math.sqrt(v)))/v*r,l.vx+=(g*=v)*(p=(f*=f)/(h+f)),l.vy+=(m*=v)*p,s.vx-=g*(p=1-p),s.vy-=m*p)}}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function l(){if(t){var i,r,a=t.length;for(n=new Array(a),i=0;i<a;++i)r=t[i],n[r.index]=+e(r,i,t)}}return"function"!==typeof e&&(e=nu(null==e?1:+e)),o.initialize=function(e,n){t=e,i=n,l()},o.iterations=function(e){return arguments.length?(a=+e,o):a},o.strength=function(e){return arguments.length?(r=+e,o):r},o.radius=function(t){return arguments.length?(e="function"===typeof t?t:nu(+t),l(),o):e},o}function su(e){return e.index}function lu(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function cu(e){var t,n,i,r,a,o,s=su,l=function(e){return 1/Math.min(r[e.source.index],r[e.target.index])},c=nu(30),u=1;function d(i){for(var r=0,s=e.length;r<u;++r)for(var l,c,d,h,f,p,g,m=0;m<s;++m)c=(l=e[m]).source,h=(d=l.target).x+d.vx-c.x-c.vx||iu(o),f=d.y+d.vy-c.y-c.vy||iu(o),h*=p=((p=Math.sqrt(h*h+f*f))-n[m])/p*i*t[m],f*=p,d.vx-=h*(g=a[m]),d.vy-=f*g,c.vx+=h*(g=1-g),c.vy+=f*g}function h(){if(i){var o,l,c=i.length,u=e.length,d=new Map(i.map(((e,t)=>[s(e,t,i),e])));for(o=0,r=new Array(c);o<u;++o)(l=e[o]).index=o,"object"!==typeof l.source&&(l.source=lu(d,l.source)),"object"!==typeof l.target&&(l.target=lu(d,l.target)),r[l.source.index]=(r[l.source.index]||0)+1,r[l.target.index]=(r[l.target.index]||0)+1;for(o=0,a=new Array(u);o<u;++o)l=e[o],a[o]=r[l.source.index]/(r[l.source.index]+r[l.target.index]);t=new Array(u),f(),n=new Array(u),p()}}function f(){if(i)for(var n=0,r=e.length;n<r;++n)t[n]=+l(e[n],n,e)}function p(){if(i)for(var t=0,r=e.length;t<r;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),d.initialize=function(e,t){i=e,o=t,h()},d.links=function(t){return arguments.length?(e=t,h(),d):e},d.id=function(e){return arguments.length?(s=e,d):s},d.iterations=function(e){return arguments.length?(u=+e,d):u},d.strength=function(e){return arguments.length?(l="function"===typeof e?e:nu(+e),f(),d):l},d.distance=function(e){return arguments.length?(c="function"===typeof e?e:nu(+e),p(),d):c},d}tu.copy=function(){var e,t,n=new Jc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=eu(i),n;for(e=[{source:i,target:n._root=new Array(4)}];i=e.pop();)for(var r=0;r<4;++r)(t=i.source[r])&&(t.length?e.push({source:t,target:i.target[r]=new Array(4)}):i.target[r]=eu(t));return n},tu.add=function(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return Xc(this.cover(t,n),t,n,e)},tu.addAll=function(e){var t,n,i,r,a=e.length,o=new Array(a),s=new Array(a),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(r=+this._y.call(null,t))||(o[n]=i,s[n]=r,i<l&&(l=i),i>u&&(u=i),r<c&&(c=r),r>d&&(d=r));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<a;++n)Xc(this,o[n],s[n],e[n]);return this},tu.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,r=this._x1,a=this._y1;if(isNaN(n))r=(n=Math.floor(e))+1,a=(i=Math.floor(t))+1;else{for(var o,s,l=r-n||1,c=this._root;n>e||e>=r||i>t||t>=a;)switch(s=(t<i)<<1|e<n,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:r=n+l,a=i+l;break;case 1:n=r-l,a=i+l;break;case 2:r=n+l,i=a-l;break;case 3:n=r-l,i=a-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=a,this},tu.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},tu.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},tu.find=function(e,t,n){var i,r,a,o,s,l,c,u=this._x0,d=this._y0,h=this._x1,f=this._y1,p=[],g=this._root;for(g&&p.push(new Kc(g,u,d,h,f)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,f=t+n,n
vendor: 7,075 bytes, line 2
2*=n);l=p.pop();)if(!(!(g=l.node)||(r=l.x0)>h||(a=l.y0)>f||(o=l.x1)<u||(s=l.y1)<d))if(g.length){var m=(r+o)/2,v=(a+s)/2;p.push(new Kc(g[3],m,v,o,s),new Kc(g[2],r,v,m,s),new Kc(g[1],m,a,o,v),new Kc(g[0],r,a,m,v)),(c=(t>=v)<<1|e>=m)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var b=e-+this._x.call(null,g.data),y=t-+this._y.call(null,g.data),x=b*b+y*y;if(x<n){var w=Math.sqrt(n=x);u=e-w,d=t-w,h=e+w,f=t+w,i=g.data}}return i},tu.remove=function(e){if(isNaN(a=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,i,r,a,o,s,l,c,u,d,h,f=this._root,p=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!f)return this;if(f.length)for(;;){if((c=a>=(s=(p+m)/2))?p=s:m=s,(u=o>=(l=(g+v)/2))?g=l:v=l,t=f,!(f=f[d=u<<1|c]))return this;if(!f.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;f.data!==e;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):t?(r?t[d]=r:delete t[d],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=r,this)},tu.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},tu.root=function(){return this._root},tu.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},tu.visit=function(e){var t,n,i,r,a,o,s=[],l=this._root;for(l&&s.push(new Kc(l,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(l=t.node,i=t.x0,r=t.y0,a=t.x1,o=t.y1)&&l.length){var c=(i+a)/2,u=(r+o)/2;(n=l[3])&&s.push(new Kc(n,c,u,a,o)),(n=l[2])&&s.push(new Kc(n,i,u,c,o)),(n=l[1])&&s.push(new Kc(n,c,r,a,u)),(n=l[0])&&s.push(new Kc(n,i,r,c,u))}return this},tu.visitAfter=function(e){var t,n=[],i=[];for(this._root&&n.push(new Kc(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var r=t.node;if(r.length){var a,o=t.x0,s=t.y0,l=t.x1,c=t.y1,u=(o+l)/2,d=(s+c)/2;(a=r[0])&&n.push(new Kc(a,o,s,u,d)),(a=r[1])&&n.push(new Kc(a,u,s,l,d)),(a=r[2])&&n.push(new Kc(a,o,d,u,c)),(a=r[3])&&n.push(new Kc(a,u,d,l,c))}i.push(t)}for(;t=i.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},tu.x=function(e){return arguments.length?(this._x=e,this):this._x},tu.y=function(e){return arguments.length?(this._y=e,this):this._y};const uu=1664525,du=1013904223,hu=4294967296;function fu(e){return e.x}function pu(e){return e.y}var gu=10,mu=Math.PI*(3-Math.sqrt(5));function vu(e){var t,n=1,i=.001,r=1-Math.pow(i,1/300),a=0,o=.6,s=new Map,l=pr(d),c=Ct("tick","end"),u=function(){let e=1;return()=>(e=(uu*e+du)%hu)/hu}();function d(){h(),c.call("tick",t),n<i&&(l.stop(),c.call("end",t))}function h(i){var l,c,u=e.length;void 0===i&&(i=1);for(var d=0;d<i;++d)for(n+=(a-n)*r,s.forEach((function(e){e(n)})),l=0;l<u;++l)null==(c=e[l]).fx?c.x+=c.vx*=o:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=o:(c.y=c.fy,c.vy=0);return t}function f(){for(var t,n=0,i=e.length;n<i;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var r=gu*Math.sqrt(.5+n),a=n*mu;t.x=r*Math.cos(a),t.y=r*Math.sin(a)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function p(t){return t.initialize&&t.initialize(e,u),t}return null==e&&(e=[]),f(),t={tick:h,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,f(),s.forEach(p),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(i=+e,t):i},alphaDecay:function(e){return arguments.length?(r=+e,t):+r},alphaTarget:function(e){return arguments.length?(a=+e,t):a},velocityDecay:function(e){return arguments.length?(o=1-e,t):1-o},randomSource:function(e){return arguments.length?(u=e,s.forEach(p),t):u},force:function(e,n){return arguments.length>1?(null==n?s.delete(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,i){var r,a,o,s,l,c=0,u=e.length;for(null==i?i=1/0:i*=i,c=0;c<u;++c)(o=(r=t-(s=e[c]).x)*r+(a=n-s.y)*a)<i&&(l=s,i=o);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}}function bu(){var e,t,n,i,r,a=nu(-30),o=1,s=1/0,l=.81;function c(n){var r,a=e.length,o=Zc(e,fu,pu).visitAfter(d);for(i=n,r=0;r<a;++r)t=e[r],o.visit(h)}function u(){if(e){var t,n,i=e.length;for(r=new Array(i),t=0;t<i;++t)n=e[t],r[n.index]=+a(n,t,e)}}function d(e){var t,n,i,a,o,s=0,l=0;if(e.length){for(i=a=o=0;o<4;++o)(t=e[o])&&(n=Math.abs(t.value))&&(s+=t.value,l+=n,i+=n*t.x,a+=n*t.y);e.x=i/l,e.y=a/l}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=r[t.data.index]}while(t=t.next)}e.value=s}function h(e,a,c,u){if(!e.value)return!0;var d=e.x-t.x,h=e.y-t.y,f=u-a,p=d*d+h*h;if(f*f/l<p)return p<s&&(0===d&&(p+=(d=iu(n))*d),0===h&&(p+=(h=iu(n))*h),p<o&&(p=Math.sqrt(o*p)),t.vx+=d*e.value*i/p,t.vy+=h*e.value*i/p),!0;if(!(e.length||p>=s)){(e.data!==t||e.next)&&(0===d&&(p+=(d=iu(n))*d),0===h&&(p+=(h=iu(n))*h),p<o&&(p=Math.sqrt(o*p)));do{e.data!==t&&(f=r[e.data.index]*i/p,t.vx+=d*f,t.vy+=h*f)}while(e=e.next)}}return c.initialize=function(t,i){e=t,n=i,u()},c.strength=function(e){return arguments.length?(a="function"===typeof e?e:nu(+e),u(),c):a},c.distanceMin=function(e){return arguments.length?(o=e*e,c):Math.sqrt(o)},c.distanceMax=function(e){return arguments.length?(s=e*e,c):Math.sqrt(s)},c.theta=function(e){return arguments.length?(l=e*e,c):Math.sqrt(l)},c}function yu(e,t,n){var i,r,a,o=nu(.1);function s(e){for(var o=0,s=i.length;o<s;++o){var l=i[o],c=l.x-t||1e-6,u=l.y-n||1e-6,d=Math.sqrt(c*c+u*u),h=(a[o]-d)*r[o]*e/d;l.vx+=c*h,l.vy+=u*h}}function l(){if(i){var t,n=i.length;for(r=new Array(n),a=new Array(n),t=0;t<n;++t)a[t]=+e(i[t],t,i),r[t]=isNaN(a[t])?0:+o(i[t],t,i)}}return"function"!==typeof e&&(e=nu(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){i=e,l()},s.strength=function(e){return arguments.length?(o="function"===typeof e?e:nu(+e),l(),s):o},s.radius=function(t){return arguments.length?(e="function"===typeof t?t:nu(+t),l(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s}function xu(e){var t,n,i,r=nu(.1);function a(e){for(var r,a=0,o=t.length;a<o;++a)(r=t[a]).vx+=(i[a]-r.x)*n[a]*e}function o(){if(t){var a,o=t.length;for(n=new Array(o),i=new Array(o),a=0;a<o;++a)n[a]=isNaN(i[a]=+e(t[a],a,t))?0:+r(t[a],a,t)}}return"function"!==typeof e&&(e=nu(null==e?0:+e)),a.initialize=function(e){t=e,o()},a.strength=function(e){return arguments.length?(r="function"===typeof e?e:nu(+e),o(),a):r},a.x=function(t){return arguments.length?(e="function"===typeof t?t:nu(+t),o(),a):e},a}function wu(e){var t,n,i,r=nu(.1);function a(e){for(var r,a=0,o=t.length;a<o;++a)(r=t[a]).vy+=(i[a]-r.y)*n[a]*e}function o(){if(t){var a,o=t.length;for(n=new Array(o),i=new Array(o),a=0;a<o;++a)n[a]=isNaN(i[a]=+e(t[a],a,t))?0:+r(t[a],a,t)}}return"function"!==typeof e&&(e=nu(null==e?0:+e)),a.initialize=function(e){t=e,o()},a.strength=function(e){return arguments.length?(r="function"===typeof e?e:nu(+e),o(),a):r},a.y=function(t){return arguments.length?(e="function"===typeof t?t:nu(+t),o(),a):e},a}function _u(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>
vendor: 3,177 bytes, line 2
21?i[0]+i.slice(2):i,+e.slice(n+1)]}function Du(e){return(e=_u(Math.abs(e)))?e[1]:NaN}var Su,ku=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cu(e){if(!(t=ku.exec(e)))throw new Error("invalid format: "+e);var t;return new Au({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Au(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Tu(e,t){var n=_u(e,t);if(!n)return e+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}Cu.prototype=Au.prototype,Au.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Eu={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tu(100*e,t),r:Tu,s:function(e,t){var n=_u(e,t);if(!n)return e+"";var i=n[0],r=n[1],a=r-(Su=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+_u(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Nu(e){return e}var Mu,Pu,Uu,ju=Array.prototype.map,Fu=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Ru(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?Nu:(t=ju.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var r=e.length,a=[],o=0,s=t[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),a.push(e.substring(r-=s,r+s)),!((l+=s+1)>i));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),r=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Nu:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ju.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Cu(e)).fill,n=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,g=e.comma,m=e.precision,v=e.trim,b=e.type;"n"===b?(g=!0,b="g"):Eu[b]||(void 0===m&&(m=12),v=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var y="$"===h?r:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===h?a:/[%p]/.test(b)?l:"",w=Eu[b],_=/[defgprs%]/.test(b);function D(e){var r,a,l,h=y,D=x;if("c"===b)D=w(e)+D,e="";else{var S=(e=+e)<0||1/e<0;
vendor: 9,333 bytes, line 2
2if(e=isNaN(e)?u:w(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,i=1,r=-1;i<n;++i)switch(e[i]){case".":r=t=i;break;case"0":0===r&&(r=i),t=i;break;default:if(!+e[i])break e;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==d&&(S=!1),h=(S?"("===d?d:c:"-"===d||"("===d?"":d)+h,D=("s"===b?Fu[8+Su/3]:"")+D+(S&&"("===d?")":""),_)for(r=-1,a=e.length;++r<a;)if(48>(l=e.charCodeAt(r))||l>57){D=(46===l?o+e.slice(r+1):e.slice(r))+D,e=e.slice(0,r);break}}g&&!f&&(e=i(e,1/0));var k=h.length+e.length+D.length,C=k<p?new Array(p-k+1).join(t):"";switch(g&&f&&(e=i(C+e,C.length?p-D.length:1/0),C=""),n){case"<":e=h+e+D+C;break;case"=":e=h+C+e+D;break;case"^":e=C.slice(0,k=C.length>>1)+h+e+D+C.slice(k);break;default:e=C+h+e+D}return s(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),D.toString=function(){return e+""},D}return{format:d,formatPrefix:function(e,t){var n=d(((e=Cu(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(Du(t)/3))),r=Math.pow(10,-i),a=Fu[8+i/3];return function(e){return n(r*e)+a}}}}function Ou(e){return Mu=Ru(e),Pu=Mu.format,Uu=Mu.formatPrefix,Mu}function Iu(e){return Math.max(0,-Du(Math.abs(e)))}function Lu(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Du(t)/3)))-Du(Math.abs(e)))}function Bu(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Du(t)-Du(e))+1}Ou({thousands:",",grouping:[3],currency:["$",""]});var Wu=1e-6,zu=1e-12,Vu=Math.PI,Hu=Vu/2,qu=Vu/4,Gu=2*Vu,Yu=180/Vu,Xu=Vu/180,Ku=Math.abs,$u=Math.atan,Qu=Math.atan2,Zu=Math.cos,Ju=Math.ceil,ed=Math.exp,td=(Math.floor,Math.hypot),nd=Math.log,id=Math.pow,rd=Math.sin,ad=Math.sign||function(e){return e>0?1:e<0?-1:0},od=Math.sqrt,sd=Math.tan;function ld(e){return e>1?0:e<-1?Vu:Math.acos(e)}function cd(e){return e>1?Hu:e<-1?-Hu:Math.asin(e)}function ud(e){return(e=rd(e/2))*e}function dd(){}function hd(e,t){e&&pd.hasOwnProperty(e.type)&&pd[e.type](e,t)}var fd={Feature:function(e,t){hd(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)hd(n[i].geometry,t)}},pd={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)e=n[i],t.point(e[0],e[1],e[2])},LineString:function(e,t){gd(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)gd(n[i],t,0)},Polygon:function(e,t){md(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)md(n[i],t)},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)hd(n[i],t)}};function gd(e,t,n){var i,r=-1,a=e.length-n;for(t.lineStart();++r<a;)i=e[r],t.point(i[0],i[1],i[2]);t.lineEnd()}function md(e,t){var n=-1,i=e.length;for(t.polygonStart();++n<i;)gd(e[n],t,1);t.polygonEnd()}function vd(e,t){e&&fd.hasOwnProperty(e.type)?fd[e.type](e,t):hd(e,t)}var bd,yd,xd,wd,_d,Dd,Sd,kd,Cd,Ad,Td,Ed,Nd,Md,Pd,Ud,jd=new E,Fd=new E,Rd={point:dd,lineStart:dd,lineEnd:dd,polygonStart:function(){jd=new E,Rd.lineStart=Od,Rd.lineEnd=Id},polygonEnd:function(){var e=+jd;Fd.add(e<0?Gu+e:e),this.lineStart=this.lineEnd=this.point=dd},sphere:function(){Fd.add(Gu)}};function Od(){Rd.point=Ld}function Id(){Bd(bd,yd)}function Ld(e,t){Rd.point=Bd,bd=e,yd=t,xd=e*=Xu,wd=Zu(t=(t*=Xu)/2+qu),_d=rd(t)}function Bd(e,t){var n=(e*=Xu)-xd,i=n>=0?1:-1,r=i*n,a=Zu(t=(t*=Xu)/2+qu),o=rd(t),s=_d*o,l=wd*a+s*Zu(r),c=s*i*rd(r);jd.add(Qu(c,l)),xd=e,wd=a,_d=o}function Wd(e){return Fd=new E,vd(e,Rd),2*Fd}function zd(e){return[Qu(e[1],e[0]),cd(e[2])]}function Vd(e){var t=e[0],n=e[1],i=Zu(n);return[i*Zu(t),i*rd(t),rd(n)]}function Hd(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function qd(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Gd(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Yd(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Xd(e){var t=od(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Kd,$d,Qd,Zd,Jd,eh,th,nh,ih,rh,ah,oh,sh,lh,ch,uh,dh={point:hh,lineStart:ph,lineEnd:gh,polygonStart:function(){dh.point=mh,dh.lineStart=vh,dh.lineEnd=bh,Md=new E,Rd.polygonStart()},polygonEnd:function(){Rd.polygonEnd(),dh.point=hh,dh.lineStart=ph,dh.lineEnd=gh,jd<0?(Dd=-(kd=180),Sd=-(Cd=90)):Md>Wu?Cd=90:Md<-Wu&&(Sd=-90),Ud[0]=Dd,Ud[1]=kd},sphere:function(){Dd=-(kd=180),Sd=-(Cd=90)}};function hh(e,t){Pd.push(Ud=[Dd=e,kd=e]),t<Sd&&(Sd=t),t>Cd&&(Cd=t)}function fh(e,t){var n=Vd([e*Xu,t*Xu]);if(Nd){var i=qd(Nd,n),r=qd([i[1],-i[0],0],i);Xd(r),r=zd(r);var a,o=e-Ad,s=o>0?1:-1,l=r[0]*Yu*s,c=Ku(o)>180;c^(s*Ad<l&&l<s*e)?(a=r[1]*Yu)>Cd&&(Cd=a):c^(s*Ad<(l=(l+360)%360-180)&&l<s*e)?(a=-r[1]*Yu)<Sd&&(Sd=a):(t<Sd&&(Sd=t),t>Cd&&(Cd=t)),c?e<Ad?yh(Dd,e)>yh(Dd,kd)&&(kd=e):yh(e,kd)>yh(Dd,kd)&&(Dd=e):kd>=Dd?(e<Dd&&(Dd=e),e>kd&&(kd=e)):e>Ad?yh(Dd,e)>yh(Dd,kd)&&(kd=e):yh(e,kd)>yh(Dd,kd)&&(Dd=e)}else Pd.push(Ud=[Dd=e,kd=e]);t<Sd&&(Sd=t),t>Cd&&(Cd=t),Nd=n,Ad=e}function ph(){dh.point=fh}function gh(){Ud[0]=Dd,Ud[1]=kd,dh.point=hh,Nd=null}function mh(e,t){if(Nd){var n=e-Ad;Md.add(Ku(n)>180?n+(n>0?360:-360):n)}else Td=e,Ed=t;Rd.point(e,t),fh(e,t)}function vh(){Rd.lineStart()}function bh(){mh(Td,Ed),Rd.lineEnd(),Ku(Md)>Wu&&(Dd=-(kd=180)),Ud[0]=Dd,Ud[1]=kd,Nd=null}function yh(e,t){return(t-=e)<0?t+360:t}function xh(e,t){return e[0]-t[0]}function wh(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function _h(e){var t,n,i,r,a,o,s;if(Cd=kd=-(Dd=Sd=1/0),Pd=[],vd(e,dh),n=Pd.length){for(Pd.sort(xh),t=1,a=[i=Pd[0]];t<n;++t)wh(i,(r=Pd[t])[0])||wh(i,r[1])?(yh(i[0],r[1])>yh(i[0],i[1])&&(i[1]=r[1]),yh(r[0],i[1])>yh(i[0],i[1])&&(i[0]=r[0])):a.push(i=r);for(o=-1/0,t=0,i=a[n=a.length-1];t<=n;i=r,++t)r=a[t],(s=yh(i[1],r[0]))>o&&(o=s,Dd=r[0],kd=i[1])}return Pd=Ud=null,Dd===1/0||Sd===1/0?[[NaN,NaN],[NaN,NaN]]:[[Dd,Sd],[kd,Cd]]}var Dh={sphere:dd,point:Sh,lineStart:Ch,lineEnd:Eh,polygonStart:function(){Dh.lineStart=Nh,Dh.lineEnd=Mh},polygonEnd:function(){Dh.lineStart=Ch,Dh.lineEnd=Eh}};function Sh(e,t){e*=Xu;var n=Zu(t*=Xu);kh(n*Zu(e),n*rd(e),rd(t))}function kh(e,t,n){++Kd,Qd+=(e-Qd)/Kd,Zd+=(t-Zd)/Kd,Jd+=(n-Jd)/Kd}function Ch(){Dh.point=Ah}function Ah(e,t){e*=Xu;var n=Zu(t*=Xu);lh=n*Zu(e),ch=n*rd(e),uh=rd(t),Dh.point=Th,kh(lh,ch,uh)}function Th(e,t){e*=Xu;var n=Zu(t*=Xu),i=n*Zu(e),r=n*rd(e),a=rd(t),o=Qu(od((o=ch*a-uh*r)*o+(o=uh*i-lh*a)*o+(o=lh*r-ch*i)*o),lh*i+ch*r+uh*a);$d+=o,eh+=o*(lh+(lh=i)),th+=o*(ch+(ch=r)),nh+=o*(uh+(uh=a)),kh(lh,ch,uh)}function Eh(){Dh.point=Sh}function Nh(){Dh.point=Ph}function Mh(){Uh(oh,sh),Dh.point=Sh}function Ph(e,t){oh=e,sh=t,e*=Xu,t*=Xu,Dh.point=Uh;var n=Zu(t);lh=n*Zu(e),ch=n*rd(e),uh=rd(t),kh(lh,ch,uh)}function Uh(e,t){e*=Xu;var n=Zu(t*=Xu),i=n*Zu(e),r=n*rd(e),a=rd(t),o=ch*a-uh*r,s=uh*i-lh*a,l=lh*r-ch*i,c=td(o,s,l),u=cd(c),d=c&&-u/c;ih.add(d*o),rh.add(d*s),ah.add(d*l),$d+=u,eh+=u*(lh+(lh=i)),th+=u*(ch+(ch=r)),nh+=u*(uh+(uh=a)),kh(lh,ch,uh)}function jh(e){Kd=$d=Qd=Zd=Jd=eh=th=nh=0,ih=new E,rh=new E,ah=new E,vd(e,Dh);var t=+ih,n=+rh,i=+ah,r=td(t,n,i);return r<zu&&(t=eh,n=th,i=nh,$d<Wu&&(t=Qd,n=Zd,i=Jd),(r=td(t,n,i))<zu)?[NaN,NaN]:[Qu(n,t)*Yu,cd(i/r)*Yu]}function Fh(e){return function(){return e}}function Rh(e,t){function n(n,i){return n=e(n,i),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,i){return(n=t.invert(n,i))&&e.invert(n[0],n[1])}),n}function Oh(e,t){return Ku(e)>Vu&&(e-=Math.round(e/Gu)*Gu),[e,t]}function Ih(e,t,n){return(e%=Gu)?t||n?Rh(Bh(e),Wh(t,n)):Bh(e):t||n?Wh(t,n):Oh}function Lh(e){return function(t,n){return Ku(t+=e)>Vu&&(t-=Math.round(t/Gu)*Gu),[t,n]}}function Bh(e){var t=Lh(e);return t.invert=Lh(-e),t}function Wh(e,t){var n=Zu(e),i=rd(e),r=Zu(t),a=rd(t);function o(e,t){var o=Zu(t),s=Zu(e)*o,l=rd(e)*o,c=rd(t),u=c*n+s*i;return[Qu(l*r-u*a,s*n-c*i),cd(u*r+l*a)]}return o.invert=function(e,t){var o=Zu(t),s=Zu(e)*o,l=rd(e)*o,c=rd(t),u=c*r-l*a;return[Qu(l*r+c*a,s*n+u*i),cd(u*n-s*i)]},o}function zh(e){function t(t){return(t=e(t[0]*Xu,t[1]*Xu))[0]*=Yu,t[1]*=Yu,t}return e=Ih(e[0]*Xu,e[1]*Xu,e.length>2?e[2]*Xu:0),t.invert=function(t){return(t=e.invert(t[0]*Xu,t[1]*Xu))[0]*=Yu,t[1]*=Yu,t},t}function Vh(e,t,n,i,r,a){if(n){var o=Zu(t),s=rd(t),l=i*n;null==r?(r=t+i*Gu,a=t-l/2):(r=Hh(o,r),a=Hh(o,a),(i>0?r<a:r>a)&&(r+=i*Gu));for(var c,u=r;i>0?u>a:u<a;u-=l)c=zd([o,-s*Zu(u),-s*rd(u)]),e.point(c[0],c[1])}}function Hh(e,t){(t=Vd(t))[0]-=e,Xd(t);var n=ld(-t[1]);return((-t[2]<0?-n:n)+Gu-Wu)%Gu}function qh(){var e,t,n=Fh([0,0]),i=Fh(90),r=Fh(2),a={point:function(n,i){e.push(n=t(n,i)),n[0]*=Yu,n[1]*=Yu}};function o(){var o=n.apply(this,arguments),s=i.apply(this,arguments)*Xu,l=r.apply(this,arguments)*Xu;return e=[],t=Ih(-o[0]*Xu,-o[1]*Xu,0).invert,Vh(a,s,l,1),o={type:"Polygon",coordinates:[e]},e=t=null,o}return o.center=function(e){return arguments.length?(n="function"===typeof e?e:Fh([+e[0],+e[1]]),o):n},o.radius=function(e){return arguments.length?(i="function"===typeof e?e:Fh(+e),o):i},o.precision=function(e){return arguments.length?(r="function"===typeof e?e:Fh(+e),o):r},o}function Gh(){var e,t=[];return{point:function(t,n,i){e.push([t,n,i])},lineStart:function(){t.push(e=[])},lineEnd:dd,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Yh(e,t){return Ku(e[0]-t[0])<Wu&&Ku(e[1]-t[1])<Wu}function Xh(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function Kh(e,t,n,i,r){var a,o,s=[],l=[];
vendor: 8,881 bytes, line 2
2if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,i=e[0],o=e[t];if(Yh(i,o)){if(!i[2]&&!o[2]){for(r.lineStart(),a=0;a<t;++a)r.point((i=e[a])[0],i[1]);return void r.lineEnd()}o[0]+=2*Wu}s.push(n=new Xh(i,e,null,!0)),l.push(n.o=new Xh(i,null,n,!1)),s.push(n=new Xh(o,e,null,!1)),l.push(n.o=new Xh(o,null,n,!0))}})),s.length){for(l.sort(t),$h(s),$h(l),a=0,o=l.length;a<o;++a)l[a].e=n=!n;for(var c,u,d=s[0];;){for(var h=d,f=!0;h.v;)if((h=h.n)===d)return;c=h.z,r.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(a=0,o=c.length;a<o;++a)r.point((u=c[a])[0],u[1]);else i(h.x,h.n.x,1,r);h=h.n}else{if(f)for(c=h.p.z,a=c.length-1;a>=0;--a)r.point((u=c[a])[0],u[1]);else i(h.x,h.p.x,-1,r);h=h.p}c=(h=h.o).z,f=!f}while(!h.v);r.lineEnd()}}}function $h(e){if(t=e.length){for(var t,n,i=0,r=e[0];++i<t;)r.n=n=e[i],n.p=r,r=n;r.n=n=e[0],n.p=r}}function Qh(e){return Ku(e[0])<=Vu?e[0]:ad(e[0])*((Ku(e[0])+Vu)%Gu-Vu)}function Zh(e,t){var n=Qh(t),i=t[1],r=rd(i),a=[rd(n),-Zu(n),0],o=0,s=0,l=new E;1===r?i=Hu+Wu:-1===r&&(i=-Hu-Wu);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,f=d[h-1],p=Qh(f),g=f[1]/2+qu,m=rd(g),v=Zu(g),b=0;b<h;++b,p=x,m=_,v=D,f=y){var y=d[b],x=Qh(y),w=y[1]/2+qu,_=rd(w),D=Zu(w),S=x-p,k=S>=0?1:-1,C=k*S,A=C>Vu,T=m*_;if(l.add(Qu(T*k*rd(C),v*D+T*Zu(C))),o+=A?S+k*Gu:S,A^p>=n^x>=n){var N=qd(Vd(f),Vd(y));Xd(N);var M=qd(a,N);Xd(M);var P=(A^S>=0?-1:1)*cd(M[2]);(i>P||i===P&&(N[0]||N[1]))&&(s+=A^S>=0?1:-1)}}return(o<-Wu||o<Wu&&l<-zu)^1&s}function Jh(e,t,n,i){return function(r){var a,o,s,l=t(r),c=Gh(),u=t(c),d=!1,h={point:f,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=b,h.lineEnd=y,o=[],a=[]},polygonEnd:function(){h.point=f,h.lineStart=g,h.lineEnd=m,o=Ee(o);var e=Zh(a,i);o.length?(d||(r.polygonStart(),d=!0),Kh(o,tf,e,n,r)):e&&(d||(r.polygonStart(),d=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),d&&(r.polygonEnd(),d=!1),o=a=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function f(t,n){e(t,n)&&r.point(t,n)}function p(e,t){l.point(e,t)}function g(){h.point=p,l.lineStart()}function m(){h.point=f,l.lineEnd()}function v(e,t){s.push([e,t]),u.point(e,t)}function b(){u.lineStart(),s=[]}function y(){v(s[0][0],s[0][1]),u.lineEnd();var e,t,n,i,l=u.clean(),h=c.result(),f=h.length;if(s.pop(),a.push(s),s=null,f)if(1&l){if((t=(n=h[0]).length-1)>0){for(d||(r.polygonStart(),d=!0),r.lineStart(),e=0;e<t;++e)r.point((i=n[e])[0],i[1]);r.lineEnd()}}else f>1&&2&l&&h.push(h.pop().concat(h.shift())),o.push(h.filter(ef))}return h}}function ef(e){return e.length>1}function tf(e,t){return((e=e.x)[0]<0?e[1]-Hu-Wu:Hu-e[1])-((t=t.x)[0]<0?t[1]-Hu-Wu:Hu-t[1])}Oh.invert=Oh;const nf=Jh((function(){return!0}),(function(e){var t,n=NaN,i=NaN,r=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,o){var s=a>0?Vu:-Vu,l=Ku(a-n);Ku(l-Vu)<Wu?(e.point(n,i=(i+o)/2>0?Hu:-Hu),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(s,i),e.point(a,i),t=0):r!==s&&l>=Vu&&(Ku(n-r)<Wu&&(n-=r*Wu),Ku(a-s)<Wu&&(a-=s*Wu),i=function(e,t,n,i){var r,a,o=rd(e-n);return Ku(o)>Wu?$u((rd(t)*(a=Zu(i))*rd(n)-rd(i)*(r=Zu(t))*rd(e))/(r*a*o)):(t+i)/2}(n,i,a,o),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(s,i),t=0),e.point(n=a,i=o),r=s},lineEnd:function(){e.lineEnd(),n=i=NaN},clean:function(){return 2-t}}}),(function(e,t,n,i){var r;if(null==e)r=n*Hu,i.point(-Vu,r),i.point(0,r),i.point(Vu,r),i.point(Vu,0),i.point(Vu,-r),i.point(0,-r),i.point(-Vu,-r),i.point(-Vu,0),i.point(-Vu,r);else if(Ku(e[0]-t[0])>Wu){var a=e[0]<t[0]?Vu:-Vu;r=n*a/2,i.point(-a,r),i.point(0,r),i.point(a,r)}else i.point(t[0],t[1])}),[-Vu,-Hu]);function rf(e){var t=Zu(e),n=2*Xu,i=t>0,r=Ku(t)>Wu;function a(e,n){return Zu(e)*Zu(n)>t}function o(e,n,i){var r=[1,0,0],a=qd(Vd(e),Vd(n)),o=Hd(a,a),s=a[0],l=o-s*s;if(!l)return!i&&e;var c=t*o/l,u=-t*s/l,d=qd(r,a),h=Yd(r,c);Gd(h,Yd(a,u));var f=d,p=Hd(h,f),g=Hd(f,f),m=p*p-g*(Hd(h,h)-1);if(!(m<0)){var v=od(m),b=Yd(f,(-p-v)/g);if(Gd(b,h),b=zd(b),!i)return b;var y,x=e[0],w=n[0],_=e[1],D=n[1];w<x&&(y=x,x=w,w=y);var S=w-x,k=Ku(S-Vu)<Wu;if(!k&&D<_&&(y=_,_=D,D=y),k||S<Wu?k?_+D>0^b[1]<(Ku(b[0]-x)<Wu?_:D):_<=b[1]&&b[1]<=D:S>Vu^(x<=b[0]&&b[0]<=w)){var C=Yd(f,(-p+v)/g);return Gd(C,h),[b,zd(C)]}}}function s(t,n){var r=i?e:Vu-e,a=0;return t<-r?a|=1:t>r&&(a|=2),n<-r?a|=4:n>r&&(a|=8),a}return Jh(a,(function(e){var t,n,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,h){var f,p=[d,h],g=a(d,h),m=i?g?0:s(d,h):g?s(d+(d<0?Vu:-Vu),h):0;if(!t&&(c=l=g)&&e.lineStart(),g!==l&&(!(f=o(t,p))||Yh(t,f)||Yh(p,f))&&(p[2]=1),g!==l)u=0,g?(e.lineStart(),f=o(p,t),e.point(f[0],f[1])):(f=o(t,p),e.point(f[0],f[1],2),e.lineEnd()),t=f;else if(r&&t&&i^g){var v;m&n||!(v=o(p,t,!0))||(u=0,i?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1],3)))}!g||t&&Yh(t,p)||e.point(p[0],p[1]),t=p,l=g,n=m},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}}),(function(t,i,r,a){Vh(a,e,n,r,t,i)}),i?[0,-e]:[-Vu,e-Vu])}var af,of,sf,lf,cf=1e9,uf=-cf;function df(e,t,n,i){function r(r,a){return e<=r&&r<=n&&t<=a&&a<=i}function a(r,a,s,c){var u=0,d=0;if(null==r||(u=o(r,s))!==(d=o(a,s))||l(r,a)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?i:t)}while((u=(u+s+4)%4)!==d);else c.point(a[0],a[1])}function o(i,r){return Ku(i[0]-e)<Wu?r>0?0:3:Ku(i[0]-n)<Wu?r>0?2:1:Ku(i[1]-t)<Wu?r>0?1:0:r>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=o(e,1),i=o(t,1);return n!==i?n-i:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(o){var l,c,u,d,h,f,p,g,m,v,b,y=o,x=Gh(),w={point:_,lineStart:function(){w.point=D,c&&c.push(u=[]);v=!0,m=!1,p=g=NaN},lineEnd:function(){l&&(D(d,h),f&&m&&x.rejoin(),l.push(x.result()));w.point=_,m&&y.lineEnd()},polygonStart:function(){y=x,l=[],c=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,r=c.length;n<r;++n)for(var a,o,s=c[n],l=1,u=s.length,d=s[0],h=d[0],f=d[1];l<u;++l)a=h,o=f,h=(d=s[l])[0],f=d[1],o<=i?f>i&&(h-a)*(i-o)>(f-o)*(e-a)&&++t:f<=i&&(h-a)*(i-o)<(f-o)*(e-a)&&--t;return t}(),n=b&&t,r=(l=Ee(l)).length;(n||r)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),r&&Kh(l,s,t,a,o),o.polygonEnd());y=o,l=c=u=null}};function _(e,t){r(e,t)&&y.point(e,t)}function D(a,o){var s=r(a,o);if(c&&u.push([a,o]),v)d=a,h=o,f=s,v=!1,s&&(y.lineStart(),y.point(a,o));else if(s&&m)y.point(a,o);else{var l=[p=Math.max(uf,Math.min(cf,p)),g=Math.max(uf,Math.min(cf,g))],x=[a=Math.max(uf,Math.min(cf,a)),o=Math.max(uf,Math.min(cf,o))];!function(e,t,n,i,r,a){var o,s=e[0],l=e[1],c=0,u=1,d=t[0]-s,h=t[1]-l;if(o=n-s,d||!(o>0)){if(o/=d,d<0){if(o<c)return;o<u&&(u=o)}else if(d>0){if(o>u)return;o>c&&(c=o)}if(o=r-s,d||!(o<0)){if(o/=d,d<0){if(o>u)return;o>c&&(c=o)}else if(d>0){if(o<c)return;o<u&&(u=o)}if(o=i-l,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<u&&(u=o)}else if(h>0){if(o>u)return;o>c&&(c=o)}if(o=a-l,h||!(o<0)){if(o/=h,h<0){if(o>u)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<u&&(u=o)}return c>0&&(e[0]=s+c*d,e[1]=l+c*h),u<1&&(t[0]=s+u*d,t[1]=l+u*h),!0}}}}}(l,x,e,t,n,i)?s&&(y.lineStart(),y.point(a,o),b=!1):(m||(y.lineStart(),y.point(l[0],l[1])),y.point(x[0],x[1]),s||y.lineEnd(),b=!1)}p=a,g=o,m=s}return w}}function hf(){var e,t,n,i=0,r=0,a=960,o=500;return n={stream:function(n){return e&&t===n?e:e=df(i,r,a,o)(t=n)},extent:function(s){return arguments.length?(i=+s[0][0],r=+s[0][1],a=+s[1][0],o=+s[1][1],e=t=null,n):[[i,r],[a,o]]}}}var ff={sphere:dd,point:dd,lineStart:function(){ff.point=gf,ff.lineEnd=pf},lineEnd:dd,polygonStart:dd,polygonEnd:dd};function pf(){ff.point=ff.lineEnd=dd}function gf(e,t){of=e*=Xu,sf=rd(t*=Xu),lf=Zu(t),ff.point=mf}function mf(e,t){e*=Xu;var n=rd(t*=Xu),i=Zu(t),r=Ku(e-of),a=Zu(r),o=i*rd(r),s=lf*n-sf*i*a,l=sf*n+lf*i*a;af.add(Qu(od(o*o+s*s),l)),of=e,sf=n,lf=i}function vf(e){return af=new E,vd(e,ff),+af}var bf=[null,null],yf={type:"LineString",coordinates:bf};function xf(e,t){return bf[0]=e,bf[1]=t,vf(yf)}var wf={Feature:function(e,t){return Df(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)if(Df(n[i].geometry,t))return!0;return!1}},_f={Sphere:function(){return!0},Point:function(e,t){return Sf(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Sf(n[i],t))return!0;return!1},LineString:function(e,t){return kf(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(kf(n[i],t))return!0;return!1},Polygon:function(e,t){return Cf(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Cf(n[i],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)if(Df(n[i],t))return!0;return!1}};function Df(e,t){return!(!e||!_f.hasOwnProperty(e.type))&&_f[e.type](e,t)}function Sf(e,t){return 0===xf(e,t)}function kf(e,t){for(var n,i,r,a=0,o=e.length;a<o;a++){if(0===(i=xf(e[a],t)))return!0;
vendor: 13,543 bytes, line 2
2if(a>0&&(r=xf(e[a],e[a-1]))>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<zu*r)return!0;n=i}return!1}function Cf(e,t){return!!Zh(e.map(Af),Tf(t))}function Af(e){return(e=e.map(Tf)).pop(),e}function Tf(e){return[e[0]*Xu,e[1]*Xu]}function Ef(e,t){return(e&&wf.hasOwnProperty(e.type)?wf[e.type]:Df)(e,t)}function Nf(e,t,n){var i=Ue(e,t-Wu,n).concat(t);return function(e){return i.map((function(t){return[e,t]}))}}function Mf(e,t,n){var i=Ue(e,t-Wu,n).concat(t);return function(e){return i.map((function(t){return[t,e]}))}}function Pf(){var e,t,n,i,r,a,o,s,l,c,u,d,h=10,f=h,p=90,g=360,m=2.5;function v(){return{type:"MultiLineString",coordinates:b()}}function b(){return Ue(Ju(i/p)*p,n,p).map(u).concat(Ue(Ju(s/g)*g,o,g).map(d)).concat(Ue(Ju(t/h)*h,e,h).filter((function(e){return Ku(e%p)>Wu})).map(l)).concat(Ue(Ju(a/f)*f,r,f).filter((function(e){return Ku(e%g)>Wu})).map(c))}return v.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},v.outline=function(){return{type:"Polygon",coordinates:[u(i).concat(d(o).slice(1),u(n).reverse().slice(1),d(s).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.extentMajor(e).extentMinor(e):v.extentMinor()},v.extentMajor=function(e){return arguments.length?(i=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],i>n&&(e=i,i=n,n=e),s>o&&(e=s,s=o,o=e),v.precision(m)):[[i,s],[n,o]]},v.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],r=+n[1][1],t>e&&(n=t,t=e,e=n),a>r&&(n=a,a=r,r=n),v.precision(m)):[[t,a],[e,r]]},v.step=function(e){return arguments.length?v.stepMajor(e).stepMinor(e):v.stepMinor()},v.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],v):[p,g]},v.stepMinor=function(e){return arguments.length?(h=+e[0],f=+e[1],v):[h,f]},v.precision=function(h){return arguments.length?(m=+h,l=Nf(a,r,90),c=Mf(t,e,m),u=Nf(s,o,90),d=Mf(i,n,m),v):m},v.extentMajor([[-180,-90+Wu],[180,90-Wu]]).extentMinor([[-180,-80-Wu],[180,80+Wu]])}function Uf(){return Pf()()}function jf(e,t){var n=e[0]*Xu,i=e[1]*Xu,r=t[0]*Xu,a=t[1]*Xu,o=Zu(i),s=rd(i),l=Zu(a),c=rd(a),u=o*Zu(n),d=o*rd(n),h=l*Zu(r),f=l*rd(r),p=2*cd(od(ud(a-i)+o*l*ud(r-n))),g=rd(p),m=p?function(e){var t=rd(e*=p)/g,n=rd(p-e)/g,i=n*u+t*h,r=n*d+t*f,a=n*s+t*c;return[Qu(r,i)*Yu,Qu(a,od(i*i+r*r))*Yu]}:function(){return[n*Yu,i*Yu]};return m.distance=p,m}const Ff=e=>e;var Rf,Of,If,Lf,Bf=new E,Wf=new E,zf={point:dd,lineStart:dd,lineEnd:dd,polygonStart:function(){zf.lineStart=Vf,zf.lineEnd=Gf},polygonEnd:function(){zf.lineStart=zf.lineEnd=zf.point=dd,Bf.add(Ku(Wf)),Wf=new E},result:function(){var e=Bf/2;return Bf=new E,e}};function Vf(){zf.point=Hf}function Hf(e,t){zf.point=qf,Rf=If=e,Of=Lf=t}function qf(e,t){Wf.add(Lf*e-If*t),If=e,Lf=t}function Gf(){qf(Rf,Of)}const Yf=zf;var Xf=1/0,Kf=Xf,$f=-Xf,Qf=$f,Zf={point:function(e,t){e<Xf&&(Xf=e);e>$f&&($f=e);t<Kf&&(Kf=t);t>Qf&&(Qf=t)},lineStart:dd,lineEnd:dd,polygonStart:dd,polygonEnd:dd,result:function(){var e=[[Xf,Kf],[$f,Qf]];return $f=Qf=-(Kf=Xf=1/0),e}};const Jf=Zf;var ep,tp,np,ip,rp=0,ap=0,op=0,sp=0,lp=0,cp=0,up=0,dp=0,hp=0,fp={point:pp,lineStart:gp,lineEnd:bp,polygonStart:function(){fp.lineStart=yp,fp.lineEnd=xp},polygonEnd:function(){fp.point=pp,fp.lineStart=gp,fp.lineEnd=bp},result:function(){var e=hp?[up/hp,dp/hp]:cp?[sp/cp,lp/cp]:op?[rp/op,ap/op]:[NaN,NaN];return rp=ap=op=sp=lp=cp=up=dp=hp=0,e}};function pp(e,t){rp+=e,ap+=t,++op}function gp(){fp.point=mp}function mp(e,t){fp.point=vp,pp(np=e,ip=t)}function vp(e,t){var n=e-np,i=t-ip,r=od(n*n+i*i);sp+=r*(np+e)/2,lp+=r*(ip+t)/2,cp+=r,pp(np=e,ip=t)}function bp(){fp.point=pp}function yp(){fp.point=wp}function xp(){_p(ep,tp)}function wp(e,t){fp.point=_p,pp(ep=np=e,tp=ip=t)}function _p(e,t){var n=e-np,i=t-ip,r=od(n*n+i*i);sp+=r*(np+e)/2,lp+=r*(ip+t)/2,cp+=r,up+=(r=ip*e-np*t)*(np+e),dp+=r*(ip+t),hp+=3*r,pp(np=e,ip=t)}const Dp=fp;function Sp(e){this._context=e}Sp.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Gu)}},result:dd};var kp,Cp,Ap,Tp,Ep,Np=new E,Mp={point:dd,lineStart:function(){Mp.point=Pp},lineEnd:function(){kp&&Up(Cp,Ap),Mp.point=dd},polygonStart:function(){kp=!0},polygonEnd:function(){kp=null},result:function(){var e=+Np;return Np=new E,e}};function Pp(e,t){Mp.point=Up,Cp=Tp=e,Ap=Ep=t}function Up(e,t){Tp-=e,Ep-=t,Np.add(od(Tp*Tp+Ep*Ep)),Tp=e,Ep=t}const jp=Mp;var Fp,Rp,Op,Ip;let Lp,Bp,Wp,zp;class Vp{constructor(e){this._append=null==e?Hp:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError("invalid digits: ".concat(e));if(t>15)return Hp;if(t!==Lp){const e=10**t;Lp=t,Bp=function(t){let n=1;this._+=t[0];for(const i=t.length;n<i;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}return Bp}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append(Fp||(Fp=bo(["M",",",""])),e,t),this._point=1;break;case 1:this._append(Rp||(Rp=bo(["L",",",""])),e,t);break;default:if(this._append(Op||(Op=bo(["M",",",""])),e,t),this._radius!==Wp||this._append!==Bp){const e=this._radius,t=this._;this._="",this._append(Ip||(Ip=bo(["m0,","a",","," 0 1,1 0,","a",","," 0 1,1 0,","z"])),e,e,e,-2*e,e,e,2*e),Wp=e,Bp=this._append,zp=this._,this._=t}this._+=zp}}result(){const e=this._;return this._="",e.length?e:null}}function Hp(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function qp(e,t){let n,i,r=3,a=4.5;function o(e){return e&&("function"===typeof a&&i.pointRadius(+a.apply(this,arguments)),vd(e,n(i))),i.result()}return o.area=function(e){return vd(e,n(Yf)),Yf.result()},o.measure=function(e){return vd(e,n(jp)),jp.result()},o.bounds=function(e){return vd(e,n(Jf)),Jf.result()},o.centroid=function(e){return vd(e,n(Dp)),Dp.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Ff):(e=t).stream,o):e},o.context=function(e){return arguments.length?(i=null==e?(t=null,new Vp(r)):new Sp(t=e),"function"!==typeof a&&i.pointRadius(a),o):t},o.pointRadius=function(e){return arguments.length?(a="function"===typeof e?e:(i.pointRadius(+e),+e),o):a},o.digits=function(e){if(!arguments.length)return r;if(null==e)r=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError("invalid digits: ".concat(e));r=t}return null===t&&(i=new Vp(r)),o},o.projection(e).digits(r).context(t)}function Gp(e){return{stream:Yp(e)}}function Yp(e){return function(t){var n=new Xp;for(var i in e)n[i]=e[i];return n.stream=t,n}}function Xp(){}function Kp(e,t,n){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),vd(n,e.stream(Jf)),t(Jf.result()),null!=i&&e.clipExtent(i),e}function $p(e,t,n){return Kp(e,(function(n){var i=t[1][0]-t[0][0],r=t[1][1]-t[0][1],a=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),o=+t[0][0]+(i-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(r-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])}),n)}function Qp(e,t,n){return $p(e,[[0,0],t],n)}function Zp(e,t,n){return Kp(e,(function(n){var i=+t,r=i/(n[1][0]-n[0][0]),a=(i-r*(n[1][0]+n[0][0]))/2,o=-r*n[0][1];e.scale(150*r).translate([a,o])}),n)}function Jp(e,t,n){return Kp(e,(function(n){var i=+t,r=i/(n[1][1]-n[0][1]),a=-r*n[0][0],o=(i-r*(n[1][1]+n[0][1]))/2;e.scale(150*r).translate([a,o])}),n)}Xp.prototype={constructor:Xp,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var eg=16,tg=Zu(30*Xu);function ng(e,t){return+t?function(e,t){function n(i,r,a,o,s,l,c,u,d,h,f,p,g,m){var v=c-i,b=u-r,y=v*v+b*b;if(y>4*t&&g--){var x=o+h,w=s+f,_=l+p,D=od(x*x+w*w+_*_),S=cd(_/=D),k=Ku(Ku(_)-1)<Wu||Ku(a-d)<Wu?(a+d)/2:Qu(w,x),C=e(k,S),A=C[0],T=C[1],E=A-i,N=T-r,M=b*E-v*N;(M*M/y>t||Ku((v*E+b*N)/y-.5)>.3||o*h+s*f+l*p<tg)&&(n(i,r,a,o,s,l,A,T,k,x/=D,w/=D,_,g,m),m.point(A,T),n(A,T,k,x,w,_,c,u,d,h,f,p,g,m))}}return function(t){var i,r,a,o,s,l,c,u,d,h,f,p,g={point:m,lineStart:v,lineEnd:y,polygonStart:function(){t.polygonStart(),g.lineStart=x},polygonEnd:function(){t.polygonEnd(),g.lineStart=v}};function m(n,i){n=e(n,i),t.point(n[0],n[1])}function v(){u=NaN,g.point=b,t.lineStart()}function b(i,r){var a=Vd([i,r]),o=e(i,r);n(u,d,c,h,f,p,u=o[0],d=o[1],c=i,h=a[0],f=a[1],p=a[2],eg,t),t.point(u,d)}function y(){g.point=m,t.lineEnd()}function x(){v(),g.point=w,g.lineEnd=_}function w(e,t){b(i=e,t),r=u,a=d,o=h,s=f,l=p,g.point=b}function _(){n(u,d,c,h,f,p,r,a,i,o,s,l,eg,t),g.lineEnd=y,y()}return g}}(e,t):function(e){return Yp({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)}var ig=Yp({point:function(e,t){this.stream.point(e*Xu,t*Xu)}});function rg(e,t,n,i,r,a){if(!a)return function(e,t,n,i,r){function a(a,o){return[t+e*(a*=i),n-e*(o*=r)]}return a.invert=function(a,o){return[(a-t)/e*i,(n-o)/e*r]},a}(e,t,n,i,r);var o=Zu(a),s=rd(a),l=o*e,c=s*e,u=o/e,d=s/e,h=(s*n-o*t)/e,f=(s*t+o*n)/e;function p(e,a){return[l*(e*=i)-c*(a*=r)+t,n-c*e-l*a]}return p.invert=function(e,t){return[i*(u*e-d*t+h),r*(f-d*e-u*t)]},p}function ag(e){return og((function(){return e}))()}function og(e){var t,n,i,r,a,o,s,l,c,u,d=150,h=480,f=250,p=0,g=0,m=0,v=0,b=0,y=0,x=1,w=1,_=null,D=nf,S=null,k=Ff,C=.5;function A(e){return l(e[0]*Xu,e[1]*Xu)}function T(e){return(e=l.invert(e[0],e[1]))&&[e[0]*Yu,e[1]*Yu]}function E(){var e=rg(d,0,0,x,w,y).apply(null,t(p,g)),i=rg(d,h-e[0],f-e[1],x,w,y);return n=Ih(m,v,b),s=Rh(t,i),l=Rh(n,s),o=ng(s,C),N()}function N(){return c=u=null,A}return A.stream=function(e){return c&&u===e?c:c=ig(function(e){return Yp({point:function(t,n){var i=e(t,n);return this.stream.point(i[0],i[1])}})}(n)(D(o(k(u=e)))))},A.preclip=function(e){return arguments.length?(D=e,_=void 0,N()):D},A.postclip=function(e){return arguments.length?(k=e,S=i=r=a=null,N()):k},A.clipAngle=function(e){return arguments.length?(D=+e?rf(_=e*Xu):(_=null,nf),N()):_*Yu},A.clipExtent=function(e){return arguments.length?(k=null==e?(S=i=r=a=null,Ff):df(S=+e[0][0],i=+e[0][1],r=+e[1][0],a=+e[1][1]),N()):null==S?null:[[S,i],[r,a]]},A.scale=function(e){return arguments.length?(d=+e,E()):d},A.translate=function(e){return arguments.length?(h=+e[0],f=+e[1],E()):[h,f]},A.center=function(e){return arguments.length?(p=e[0]%360*Xu,g=e[1]%360*Xu,E()):[p*Yu,g*Yu]},A.rotate=function(e){return arguments.length?(m=e[0]%360*Xu,v=e[1]%360*Xu,b=e.length>2?e[2]%360*Xu:0,E()):[m*Yu,v*Yu,b*Yu]},A.angle=function(e){return arguments.length?(y=e%360*Xu,E()):y*Yu},A.reflectX=function(e){return arguments.length?(x=e?-1:1,E()):x<0},A.reflectY=function(e){return arguments.length?(w=e?-1:1,E()):w<0},A.precision=function(e){return arguments.length?(o=ng(s,C=e*e),N()):od(C)},A.fitExtent=function(e,t){return $p(A,e,t)},A.fitSize=function(e,t){return Qp(A,e,t)},A.fitWidth=function(e,t){return Zp(A,e,t)},A.fitHeight=function(e,t){return Jp(A,e,t)},function(){return t=e.apply(this,arguments),A.invert=t.invert&&T,E()}}function sg(e){var t=0,n=Vu/3,i=og(e),r=i(t,n);return r.parallels=function(e){return arguments.length?i(t=e[0]*Xu,n=e[1]*Xu):[t*Yu,n*Yu]},r}function lg(e,t){var n=rd(e),i=(n+rd(t))/2;if(Ku(i)<Wu)return function(e){var t=Zu(e);function n(e,n){return[e*t,rd(n)/t]}return n.invert=function(e,n){return[e/t,cd(n*t)]},n}(e);var r=1+n*(2*i-n),a=od(r)/i;function o(e,t){var n=od(r-2*i*rd(t))/i;return[n*rd(e*=i),a-n*Zu(e)]}return o.invert=function(e,t){var n=a-t,o=Qu(e,Ku(n))*ad(n);return n*i<0&&(o-=Vu*ad(e)*ad(n)),[o/i,cd((r-(e*e+n*n)*i*i)/(2*i))]},o}function cg(){return sg(lg).scale(155.424).center([0,33.6442])}function ug(){return cg().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function dg(){var e,t,n,i,r,a,o=ug(),s=cg().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=cg().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){a=[e,t]}};function u(e){var t=e[0],o=e[1];return a=null,n.point(t,o),a||(i.point(t,o),a)||(r.point(t,o),a)}function d(){return e=t=null,u}return u.invert=function(e){var t=o.scale(),n=o.translate(),i=(e[0]-n[0])/t,r=(e[1]-n[1])/t;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?s:r>=.166&&r<.234&&i>=-.214&&i<-.115?l:o).invert(e)},u.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,i){for(var r=-1;++r<t;)e[r].point(n,i)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}([o.stream(t=n),s.stream(n),l.stream(n)])},u.precision=function(e){return arguments.length?(o.precision(e),s.precision(e),l.precision(e),d()):o.precision()},u.scale=function(e){return arguments.length?(o.scale(e),s.scale(.35*e),l.scale(e),u.translate(o.translate())):o.scale()},u.translate=function(e){if(!arguments.length)return o.translate();var t=o.scale(),a=+e[0],u=+e[1];return n=o.translate(e).clipExtent([[a-.455*t,u-.238*t],[a+.455*t,u+.238*t]]).stream(c),i=s.translate([a-.307
2*t,u+.201*t]).clipExtent([[a-.425*t+Wu,u+.12*t+Wu],[a-.214*t-Wu,u+.234*t-Wu]]).stream(c),r=l.translate([a-.205*t,u+.212*t]).clipExtent([[a-.214*t+Wu,u+.166*t+Wu],[a-.115*t-Wu,u+.234*t-Wu]]).stream(c),d()},u.fitExtent=function(e,t){return $p(u,e,t)},u.fitSize=function(e,t){return Qp(u,e,t)},u.fitWidth=function(e,t){return Zp(u,e,t)},u.fitHeight=function(e,t){return Jp(u,e,t)},u.scale(1070)}function hg(e){return function(t,n){var i=Zu(t),r=Zu(n),a=e(i*r);return a===1/0?[2,0]:[a*r*rd(t),a*rd(n)]}}function fg(e){return function(t,n){var i=od(t*t+n*n),r=e(i),a=rd(r),o=Zu(r);return[Qu(t*a,i*o),cd(i&&n*a/i)]}}var pg=hg((function(e){return od(2/(1+e))}));function gg(){return ag(pg).scale(124.75).clipAngle(179.999)}pg.invert=fg((function(e){return 2*cd(e/2)}));var mg=hg((function(e){return(e=ld(e))&&e/rd(e)}));function vg(){return ag(mg).scale(79.4188).clipAngle(179.999)}function bg(e,t){return[e,nd(sd((Hu+t)/2))]}function yg(){return xg(bg).scale(961/Gu)}function xg(e){var t,n,i,r=ag(e),a=r.center,o=r.scale,s=r.translate,l=r.clipExtent,c=null;function u(){var a=Vu*o(),s=r(zh(r.rotate()).invert([0,0]));
vendor: 7,660 bytes, line 2
2return l(null==c?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:e===bg?[[Math.max(s[0]-a,c),t],[Math.min(s[0]+a,n),i]]:[[c,Math.max(s[1]-a,t)],[n,Math.min(s[1]+a,i)]])}return r.scale=function(e){return arguments.length?(o(e),u()):o()},r.translate=function(e){return arguments.length?(s(e),u()):s()},r.center=function(e){return arguments.length?(a(e),u()):a()},r.clipExtent=function(e){return arguments.length?(null==e?c=t=n=i=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],i=+e[1][1]),u()):null==c?null:[[c,t],[n,i]]},u()}function wg(e){return sd((Hu+e)/2)}function _g(e,t){var n=Zu(e),i=e===t?rd(e):nd(n/Zu(t))/nd(wg(t)/wg(e)),r=n*id(wg(e),i)/i;if(!i)return bg;function a(e,t){r>0?t<-Hu+Wu&&(t=-Hu+Wu):t>Hu-Wu&&(t=Hu-Wu);var n=r/id(wg(t),i);return[n*rd(i*e),r-n*Zu(i*e)]}return a.invert=function(e,t){var n=r-t,a=ad(i)*od(e*e+n*n),o=Qu(e,Ku(n))*ad(n);return n*i<0&&(o-=Vu*ad(e)*ad(n)),[o/i,2*$u(id(r/a,1/i))-Hu]},a}function Dg(){return sg(_g).scale(109.5).parallels([30,30])}function Sg(e,t){return[e,t]}function kg(){return ag(Sg).scale(152.63)}function Cg(e,t){var n=Zu(e),i=e===t?rd(e):(n-Zu(t))/(t-e),r=n/i+e;if(Ku(i)<Wu)return Sg;function a(e,t){var n=r-t,a=i*e;return[n*rd(a),r-n*Zu(a)]}return a.invert=function(e,t){var n=r-t,a=Qu(e,Ku(n))*ad(n);return n*i<0&&(a-=Vu*ad(e)*ad(n)),[a/i,r-ad(i)*od(e*e+n*n)]},a}function Ag(){return sg(Cg).scale(131.154).center([0,13.9389])}mg.invert=fg((function(e){return e})),bg.invert=function(e,t){return[e,2*$u(ed(t))-Hu]},Sg.invert=Sg;var Tg=1.340264,Eg=-.081106,Ng=893e-6,Mg=.003796,Pg=od(3)/2;function Ug(e,t){var n=cd(Pg*rd(t)),i=n*n,r=i*i*i;return[e*Zu(n)/(Pg*(Tg+3*Eg*i+r*(7*Ng+9*Mg*i))),n*(Tg+Eg*i+r*(Ng+Mg*i))]}function jg(){return ag(Ug).scale(177.158)}function Fg(e,t){var n=Zu(t),i=Zu(e)*n;return[n*rd(e)/i,rd(t)/i]}function Rg(){return ag(Fg).scale(144.049).clipAngle(60)}function Og(){var e,t,n,i,r,a,o,s=1,l=0,c=0,u=1,d=1,h=0,f=null,p=1,g=1,m=Yp({point:function(e,t){var n=y([e,t]);this.stream.point(n[0],n[1])}}),v=Ff;function b(){return p=s*u,g=s*d,a=o=null,y}function y(n){var i=n[0]*p,r=n[1]*g;if(h){var a=r*e-i*t;i=i*e+r*t,r=a}return[i+l,r+c]}return y.invert=function(n){var i=n[0]-l,r=n[1]-c;if(h){var a=r*e+i*t;i=i*e-r*t,r=a}return[i/p,r/g]},y.stream=function(e){return a&&o===e?a:a=m(v(o=e))},y.postclip=function(e){return arguments.length?(v=e,f=n=i=r=null,b()):v},y.clipExtent=function(e){return arguments.length?(v=null==e?(f=n=i=r=null,Ff):df(f=+e[0][0],n=+e[0][1],i=+e[1][0],r=+e[1][1]),b()):null==f?null:[[f,n],[i,r]]},y.scale=function(e){return arguments.length?(s=+e,b()):s},y.translate=function(e){return arguments.length?(l=+e[0],c=+e[1],b()):[l,c]},y.angle=function(n){return arguments.length?(t=rd(h=n%360*Xu),e=Zu(h),b()):h*Yu},y.reflectX=function(e){return arguments.length?(u=e?-1:1,b()):u<0},y.reflectY=function(e){return arguments.length?(d=e?-1:1,b()):d<0},y.fitExtent=function(e,t){return $p(y,e,t)},y.fitSize=function(e,t){return Qp(y,e,t)},y.fitWidth=function(e,t){return Zp(y,e,t)},y.fitHeight=function(e,t){return Jp(y,e,t)},y}function Ig(e,t){var n=t*t,i=n*n;return[e*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),t*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}function Lg(){return ag(Ig).scale(175.295)}function Bg(e,t){return[Zu(t)*rd(e),rd(t)]}function Wg(){return ag(Bg).scale(249.5).clipAngle(90+Wu)}function zg(e,t){var n=Zu(t),i=1+Zu(e)*n;return[n*rd(e)/i,rd(t)/i]}function Vg(){return ag(zg).scale(250).clipAngle(142)}function Hg(e,t){return[nd(sd((Hu+t)/2)),-e]}function qg(){var e=xg(Hg),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)}function Gg(e,t){return e.parent===t.parent?1:2}function Yg(e,t){return e+t.x}function Xg(e,t){return Math.max(e,t.y)}function Kg(){var e=Gg,t=1,n=1,i=!1;function r(r){var a,o=0;r.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Yg,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Xg,0)}(n)):(t.x=a?o+=e(t,a):0,t.y=0,a=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(r),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),c=s.x-e(s,l)/2,u=l.x+e(l,s)/2;return r.eachAfter(i?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r}function $g(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function Qg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Jg)):void 0===t&&(t=Zg);for(var n,i,r,a,o,s=new nm(e),l=[s];n=l.pop();)if((r=t(n.data))&&(o=(r=Array.from(r)).length))for(n.children=r,a=o-1;a>=0;--a)l.push(i=r[a]=new nm(r[a])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(tm)}function Zg(e){return e.children}function Jg(e){return Array.isArray(e)?e[1]:null}function em(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function tm(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function nm(e){this.data=e,this.depth=this.height=0,this.parent=null}function im(e){return null==e?null:rm(e)}function rm(e){if("function"!==typeof e)throw new Error;return e}function am(){return 0}function om(e){return function(){return e}}Ug.invert=function(e,t){for(var n,i=t,r=i*i,a=r*r*r,o=0;o<12&&(a=(r=(i-=n=(i*(Tg+Eg*r+a*(Ng+Mg*r))-t)/(Tg+3*Eg*r+a*(7*Ng+9*Mg*r)))*i)*r*r,!(Ku(n)<zu));++o);return[Pg*e*(Tg+3*Eg*r+a*(7*Ng+9*Mg*r))/Zu(i),cd(rd(i)/Pg)]},Fg.invert=fg($u),Ig.invert=function(e,t){var n,i=t,r=25;do{var a=i*i,o=a*a;i-=n=(i*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-t)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Ku(n)>Wu&&--r>0);return[e/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]},Bg.invert=fg(cd),zg.invert=fg((function(e){return 2*$u(e)})),Hg.invert=function(e,t){return[-t,2*$u(ed(e))-Hu]},nm.prototype=Qg.prototype={constructor:nm,count:function(){return this.eachAfter($g)},each:function(e,t){let n=-1;for(const i of this)e.call(t,i,++n,this);return this},eachAfter:function(e,t){for(var n,i,r,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),n=a.children)for(i=0,r=n.length;i<r;++i)o.push(n[i]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,i,r=this,a=[r],o=-1;r=a.pop();)if(e.call(t,r,++o,this),n=r.children)for(i=n.length-1;i>=0;--i)a.push(n[i]);return this},find:function(e,t){let n=-1;for(const i of this)if(e.call(t,i,++n,this))return i},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;e=n.pop(),t=i.pop();for(;e===t;)r=e,e=n.pop(),t=i.pop();return r}(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Qg(this).eachBefore(em)},[Symbol.iterator]:function*(){var e,t,n,i,r=this,a=[r];do{for(e=a.reverse(),a=[];r=e.pop();
vendor: 24,843 bytes, line 2
2)if(yield r,t=r.children)for(n=0,i=t.length;n<i;++n)a.push(t[n])}while(a.length)}};const sm=1664525,lm=1013904223,cm=4294967296;function um(){let e=1;return()=>(e=(sm*e+lm)%cm)/cm}function dm(e){return hm(e,um())}function hm(e,t){for(var n,i,r=0,a=(e=function(e,t){let n,i,r=e.length;for(;r;)i=t()*r--|0,n=e[r],e[r]=e[i],e[i]=n;return e}(Array.from(e),t)).length,o=[];r<a;)n=e[r],i&&gm(i,n)?++r:(i=vm(o=fm(o,n)),r=0);return i}function fm(e,t){var n,i;if(mm(t,e))return[t];for(n=0;n<e.length;++n)if(pm(t,e[n])&&mm(bm(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(i=n+1;i<e.length;++i)if(pm(bm(e[n],e[i]),t)&&pm(bm(e[n],t),e[i])&&pm(bm(e[i],t),e[n])&&mm(ym(e[n],e[i],t),e))return[e[n],e[i],t];throw new Error}function pm(e,t){var n=e.r-t.r,i=t.x-e.x,r=t.y-e.y;return n<0||n*n<i*i+r*r}function gm(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function mm(e,t){for(var n=0;n<t.length;++n)if(!gm(e,t[n]))return!1;return!0}function vm(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return bm(e[0],e[1]);case 3:return ym(e[0],e[1],e[2])}}function bm(e,t){var n=e.x,i=e.y,r=e.r,a=t.x,o=t.y,s=t.r,l=a-n,c=o-i,u=s-r,d=Math.sqrt(l*l+c*c);return{x:(n+a+l/d*u)/2,y:(i+o+c/d*u)/2,r:(d+r+s)/2}}function ym(e,t,n){var i=e.x,r=e.y,a=e.r,o=t.x,s=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=i-o,f=i-c,p=r-s,g=r-u,m=l-a,v=d-a,b=i*i+r*r-a*a,y=b-o*o-s*s+l*l,x=b-c*c-u*u+d*d,w=f*p-h*g,_=(p*x-g*y)/(2*w)-i,D=(g*m-p*v)/w,S=(f*y-h*x)/(2*w)-r,k=(h*v-f*m)/w,C=D*D+k*k-1,A=2*(a+_*D+S*k),T=_*_+S*S-a*a,E=-(Math.abs(C)>1e-6?(A+Math.sqrt(A*A-4*C*T))/(2*C):T/A);return{x:i+_+D*E,y:r+S+k*E,r:E}}function xm(e,t,n){var i,r,a,o,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(r=t.r+n.r,r*=r,o=e.r+n.r,r>(o*=o)?(i=(c+o-r)/(2*c),a=Math.sqrt(Math.max(0,o/c-i*i)),n.x=e.x-i*s-a*l,n.y=e.y-i*l+a*s):(i=(c+r-o)/(2*c),a=Math.sqrt(Math.max(0,r/c-i*i)),n.x=t.x+i*s-a*l,n.y=t.y+i*l+a*s)):(n.x=t.x+n.r,n.y=t.y)}function wm(e,t){var n=e.r+t.r-1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function _m(e){var t=e._,n=e.next._,i=t.r+n.r,r=(t.x*n.r+n.x*t.r)/i,a=(t.y*n.r+n.y*t.r)/i;return r*r+a*a}function Dm(e){this._=e,this.next=null,this.previous=null}function Sm(e,t){if(!(a=(e=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}(e)).length))return 0;var n,i,r,a,o,s,l,c,u,d,h;if((n=e[0]).x=0,n.y=0,!(a>1))return n.r;if(i=e[1],n.x=-i.r,i.x=n.r,i.y=0,!(a>2))return n.r+i.r;xm(i,n,r=e[2]),n=new Dm(n),i=new Dm(i),r=new Dm(r),n.next=r.previous=i,i.next=n.previous=r,r.next=i.previous=n;e:for(l=3;l<a;++l){xm(n._,i._,r=e[l]),r=new Dm(r),c=i.next,u=n.previous,d=i._.r,h=n._.r;do{if(d<=h){if(wm(c._,r._)){i=c,n.next=i,i.previous=n,--l;continue e}d+=c._.r,c=c.next}else{if(wm(u._,r._)){(n=u).next=i,i.previous=n,--l;continue e}h+=u._.r,u=u.previous}}while(c!==u.next);for(r.previous=n,r.next=i,n.next=i.previous=i=r,o=_m(n);(r=r.next)!==i;)(s=_m(r))<o&&(n=r,o=s);i=n.next}for(n=[i._],r=i;(r=r.next)!==i;)n.push(r._);for(r=hm(n,t),l=0;l<a;++l)(n=e[l]).x-=r.x,n.y-=r.y;return r.r}function km(e){return Sm(e,um()),e}function Cm(e){return Math.sqrt(e.value)}function Am(){var e=null,t=1,n=1,i=am;function r(r){const a=um();return r.x=t/2,r.y=n/2,e?r.eachBefore(Tm(e)).eachAfter(Em(i,.5,a)).eachBefore(Nm(1)):r.eachBefore(Tm(Cm)).eachAfter(Em(am,1,a)).eachAfter(Em(i,r.r/Math.min(t,n),a)).eachBefore(Nm(Math.min(t,n)/(2*r.r))),r}return r.radius=function(t){return arguments.length?(e=im(t),r):e},r.size=function(e){return arguments.length?(t=+e[0],n=+e[1],r):[t,n]},r.padding=function(e){return arguments.length?(i="function"===typeof e?e:om(+e),r):i},r}function Tm(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Em(e,t,n){return function(i){if(r=i.children){var r,a,o,s=r.length,l=e(i)*t||0;if(l)for(a=0;a<s;++a)r[a].r+=l;if(o=Sm(r,n),l)for(a=0;a<s;++a)r[a].r-=l;i.r=o+l}}}function Nm(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Mm(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Pm(e,t,n,i,r){for(var a,o=e.children,s=-1,l=o.length,c=e.value&&(i-t)/e.value;++s<l;)(a=o[s]).y0=n,a.y1=r,a.x0=t,a.x1=t+=a.value*c}function Um(){var e=1,t=1,n=0,i=!1;function r(r){var a=r.height+1;return r.x0=r.y0=n,r.x1=e,r.y1=t/a,r.eachBefore(function(e,t){return function(i){i.children&&Pm(i,i.x0,e*(i.depth+1)/t,i.x1,e*(i.depth+2)/t);var r=i.x0,a=i.y0,o=i.x1-n,s=i.y1-n;o<r&&(r=o=(r+o)/2),s<a&&(a=s=(a+s)/2),i.x0=r,i.y0=a,i.x1=o,i.y1=s}}(t,a)),i&&r.eachBefore(Mm),r}return r.round=function(e){return arguments.length?(i=!!e,r):i},r.size=function(n){return arguments.length?(e=+n[0],t=+n[1],r):[e,t]},r.padding=function(e){return arguments.length?(n=+e,r):n},r}var jm={depth:-1},Fm={},Rm={};function Om(e){return e.id}function Im(e){return e.parentId}function Lm(){var e,t=Om,n=Im;function i(i){var r,a,o,s,l,c,u,d,h=Array.from(i),f=t,p=n,g=new Map;if(null!=e){const t=h.map(((t,n)=>function(e){e="".concat(e);let t=e.length;Wm(e,t-1)&&!Wm(e,t-2)&&(e=e.slice(0,-1));return"/"===e[0]?e:"/".concat(e)}(e(t,n,i)))),n=t.map(Bm),r=new Set(t).add("");for(const e of n)r.has(e)||(r.add(e),t.push(e),n.push(Bm(e)),h.push(Rm));f=(e,n)=>t[n],p=(e,t)=>n[t]}for(o=0,r=h.length;o<r;++o)a=h[o],c=h[o]=new nm(a),null!=(u=f(a,o,i))&&(u+="")&&(d=c.id=u,g.set(d,g.has(d)?Fm:c)),null!=(u=p(a,o,i))&&(u+="")&&(c.parent=u);for(o=0;o<r;++o)if(u=(c=h[o]).parent){if(!(l=g.get(u)))throw new Error("missing: "+u);if(l===Fm)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===Rm&&1===s.children.length;)s=s.children[0],--r;for(let e=h.length-1;e>=0&&(c=h[e]).data===Rm;--e)c.data=null}if(s.parent=jm,s.eachBefore((function(e){e.depth=e.parent.depth+1,--r})).eachBefore(tm),s.parent=null,r>0)throw new Error("cycle");return s}return i.id=function(e){return arguments.length?(t=im(e),i):t},i.parentId=function(e){return arguments.length?(n=im(e),i):n},i.path=function(t){return arguments.length?(e=im(t),i):e},i}function Bm(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Wm(e,t););return e.slice(0,t)}function Wm(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(0===(1&n))return!0}return!1}function zm(e,t){return e.parent===t.parent?1:2}function Vm(e){var t=e.children;return t?t[0]:e.t}function Hm(e){var t=e.children;return t?t[t.length-1]:e.t}function qm(e,t,n){var i=n/(t.i-e.i);t.c-=i,t.s+=n,e.c+=i,t.z+=n,t.m+=n}function Gm(e,t,n){return e.a.parent===t.parent?e.a:n}function Ym(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function Xm(){var e=zm,t=1,n=1,i=null;function r(r){var l=function(e){for(var t,n,i,r,a,o=new Ym(e,0),s=[o];t=s.pop();)if(i=t._.children)for(t.children=new Array(a=i.length),r=a-1;r>=0;--r)s.push(n=t.children[r]=new Ym(i[r],r)),n.parent=t;return(o.parent=new Ym(null,0)).children=[o],o}(r);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),i)r.eachBefore(s);else{var c=r,u=r,d=r;r.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,f=h-c.x,p=t/(u.x+h+f),g=n/(d.depth||1);r.eachBefore((function(e){e.x=(e.x+f)*p,e.y=e.depth*g}))}return r}function a(t){var n=t.children,i=t.parent.children,r=t.i?i[t.i-1]:null;if(n){!function(e){for(var t,n=0,i=0,r=e.children,a=r.length;--a>=0;)(t=r[a]).z+=n,t.m+=n,n+=t.s+(i+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,n,i){if(n){for(var r,a=t,o=t,s=n,l=a.parent.children[0],c=a.m,u=o.m,d=s.m,h=l.m;s=Hm(s),a=Vm(a),s&&a;)l=Vm(l),(o=Hm(o)).a=t,(r=s.z+d-a.z-c+e(s._,a._))>0&&(qm(Gm(s,t,i),t,r),c+=r,u+=r),d+=s.m,c+=a.m,h+=l.m,u+=o.m;s&&!Hm(o)&&(o.t=s,o.m+=d-u),a&&!Vm(l)&&(l.t=a,l.m+=c-h,i=t)}return i}(t,r,t.parent.A||i[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r}function Km(e,t,n,i,r){for(var a,o=e.children,s=-1,l=o.length,c=e.value&&(r-n)/e.value;++s<l;)(a=o[s]).x0=t,a.x1=i,a.y0=n,a.y1=n+=a.value*c}Ym.prototype=Object.create(nm.prototype);var $m=(1+Math.sqrt(5))/2;function Qm(e,t,n,i,r,a){for(var o,s,l,c,u,d,h,f,p,g,m,v=[],b=t.children,y=0,x=0,w=b.length,_=t.value;y<w;){l=r-n,c=a-i;do{u=b[x++].value}while(!u&&x<w);for(d=h=u,m=u*u*(g=Math.max(c/l,l/c)/(_*e)),p=Math.max(h/m,m/d);x<w;++x){if(u+=s=b[x].value,s<d&&(d=s),s>h&&(h=s),m=u*u*g,(f=Math.max(h/m,m/d))>p){u-=s;break}p=f}v.push(o={value:u,dice:l<c,children:b.slice(y,x)}),o.dice?Pm(o,n,i,r,_?i+=c*u/_:a):Km(o,n,i,_?n+=l*u/_:r,a),_-=u,y=x}return v}const Zm=function e(t){function n(e,n,i,r,a){Qm(t,e,n,i,r,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}($m);function Jm(){var e=Zm,t=!1,n=1,i=1,r=[0],a=am,o=am,s=am,l=am,c=am;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=i,e.eachBefore(d),r=[0],t&&e.eachBefore(Mm),e}function d(t){var n=r[t.depth],i=t.x0+n,u=t.y0+n,d=t.x1-n,h=t.y1-n;d<i&&(i=d=(i+d)/2),h<u&&(u=h=(u+h)/2),t.x0=i,t.y0=u,t.x1=d,t.y1=h,t.children&&(n=r[t.depth+1]=a(t)/2,i+=c(t)-n,u+=o(t)-n,(d-=s(t)-n)<i&&(i=d=(i+d)/2),(h-=l(t)-n)<u&&(u=h=(u+h)/2),e(t,i,u,d,h))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],i=+e[1],u):[n,i]},u.tile=function(t){return arguments.length?(e=rm(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a="function"===typeof e?e:om(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o="function"===typeof e?e:om(+e),u):o},u.paddingRight=function(e){return arguments.length?(s="function"===typeof e?e:om(+e),u):s},u.paddingBottom=function(e){return arguments.length?(l="function"===typeof e?e:om(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"===typeof e?e:om(+e),u):c},u}function ev(e,t,n,i,r){var a,o,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a<l;++a)c[a+1]=o+=s[a].value;!function e(t,n,i,r,a,o,l){if(t>=n-1){var u=s[t];return u.x0=r,u.y0=a,u.x1=o,void(u.y1=l)}var d=c[t],h=i/2+d,f=t+1,p=n-1;for(;f<p;){var g=f+p>>>1;c[g]<h?f=g+1:p=g}h-c[f-1]<c[f]-h&&t+1<f&&--f;var m=c[f]-d,v=i-m;if(o-r>l-a){var b=i?(r*v+o*m)/i:o;e(t,f,m,r,a,b,l),e(f,n,v,b,a,o,l)}else{var y=i?(a*v+l*m)/i:l;e(t,f,m,r,a,o,y),e(f,n,v,r,y,o,l)}}(0,l,e.value,t,n,i,r)}function tv(e,t,n,i,r){(1&e.depth?Km:Pm)(e,t,n,i,r)}const nv=function e(t){function n(e,n,i,r,a){if((o=e._squarify)&&o.ratio===t)for(var o,s,l,c,u,d=-1,h=o.length,f=e.value;++d<h;){for(l=(s=o[d]).children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?Pm(s,n,i,r,f?i+=(a-i)*s.value/f:a):Km(s,n,i,f?n+=(r-n)*s.value/f:r,a),f-=s.value}else e._squarify=o=Qm(t,e,n,i,r,a),o.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}($m);function iv(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function rv(e,t){var n=Fi(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}function av(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ov(e){return((e=Math.exp(e))+1/e)/2}const sv=function e(t,n,i){function r(e,r){var a,o,s=e[0],l=e[1],c=e[2],u=r[0],d=r[1],h=r[2],f=u-s,p=d-l,g=f*f+p*p;if(g<1e-12)o=Math.log(h/c)/t,a=function(e){return[s+e*f,l+e*p,c*Math.exp(t*e*o)]};else{var m=Math.sqrt(g),v=(h*h-c*c+i*g)/(2*c*n*m),b=(h*h-c*c-i*g)/(2*h*n*m),y=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(b*b+1)-b);o=(x-y)/t,a=function(e){var i=e*o,r=ov(y),a=c/(n*m)*(r*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*i+y)-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[s+a*f,l+a*p,c*r/ov(t*i+y)]}}return a.duration=1e3*o*t/Math.SQRT2,a}return r.rho=function(t){var n=Math.max(.001,+t),i=n*n;return e(n,i,i*i)},r}(Math.SQRT2,2,4);function lv(e){return function(t,n){var i=e((t=ki(t)).h,(n=ki(n)).h),r=Oi(t.s,n.s),a=Oi(t.l,n.l),o=Oi(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=r(e),t.l=a(e),t.opacity=o(e),t+""}}}const cv=lv(Fi);var uv=lv(Oi);function dv(e,t){var n=Oi((e=$o(e)).l,(t=$o(t)).l),i=Oi(e.a,t.a),r=Oi(e.b,t.b),a=Oi(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=i(t),e.b=r(t),e.opacity=a(t),e+""}}function hv(e){return function(t,n){var i=e((t=rs(t)).h,(n=rs(n)).h),r=Oi(t.c,n.c),a=Oi(t.l,n.l),o=Oi(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=r(e),t.l=a(e),t.opacity=o(e),t+""}}}const fv=hv(Fi);var pv=hv(Oi);function gv(e){return function t(n){function i(t,i){var r=e((t=gs(t)).h,(i=gs(i)).h),a=Oi(t.s,i.s),o=Oi(t.l,i.l),s=Oi(t.opacity,i.opacity);return function(e){return t.h=r(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,i.gamma=t,i}(1)}const mv=gv(Fi);var vv=gv(Oi);function bv(e,t){void 0===t&&(t=e,e=Zi);for(var n=0,i=t.length-1,r=t[0],a=new Array(i<0?0:i);n<i;)a[n]=e(r,r=t[++n]);return function(e){var t=Math.max(0,Math.min(i-1,Math.floor(e*=i)));return a[t](e-t)}}function yv(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e(i/(t-1));return n}function xv(e){for(var t,n=-1,i=e.length,r=e[i-1],a=0;++n<i;)t=r,r=e[n],a+=t[1]*r[0]-t[0]*r[1];return a/2}function wv(e){for(var t,n,i=-1,r=e.length,a=0,o=0,s=e[r-1],l=0;++i<r;)t=s,s=e[i],l+=n=t[0]*s[1]-s[0]*t[1],a+=(t[0]+s[0])*n,o+=(t[1]+s[1])*n;return[a/(l*=3),o/l]}function _v(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Dv(e,t){return e[0]-t[0]||e[1]-t[1]}function Sv(e){const t=e.length,n=[0,1];let i,r=2;for(i=2;i<t;++i){for(;r>1&&_v(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function kv(e){if((n=e.length)<3)return null;var t,n,i=new Array(n),r=new Array(n);for(t=0;t<n;++t)i[t]=[+e[t][0],+e[t][1],t];for(i.sort(Dv),t=0;t<n;++t)r[t]=[i[t][0],-i[t][1]];var a=Sv(i),o=Sv(r),s=o[0]===a[0],l=o[o.length-1]===a[a.length-1],c=[];for(t=a.length-1;t>=0;--t)c.push(e[i[a[t]][2]]);for(t=+s;t<o.length-l;++t)c.push(e[i[o[t]][2]]);return c}function Cv(e,t){for(var n,i,r=e.length,a=e[r-1],o=t[0],s=t[1],l=a[0],c=a[1],u=!1,d=0;d<r;++d)n=(a=e[d])[0],(i=a[1])>s!==c>s&&o<(l-n)*(s-i)/(c-i)+n&&(u=!u),l=n,c=i;return u}function Av(e){for(var t,n,i=-1,r=e.length,a=e[r-1],o=a[0],s=a[1],l=0;++i<r;)t=o,n=s,t-=o=(a=e[i])[0],n-=s=a[1],l+=Math.hypot(t,n);return l}const Tv=Math.random,Ev=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(Tv),Nv=function e(t){function n(e,n){return arguments.length<2&&(n=e,e=0),e=Math.floor(e),n=Math.floor(n)-e,function(){return Math.floor(t()*n+e)}}return n.source=e,n}(Tv),Mv=function e(t){function n(e,n){var i,r;return e=null==e?0:+e,n=null==n?1:+n,function(){var a;if(null!=i)a=i,i=null;else do{i=2*t()-1,a=2*t()-1,r=i*i+a*a}while(!r||r>1);return e+n*a*Math.sqrt(-2*Math.log(r)/r)}}return n.source=e,n}(Tv),Pv=function e(t){var n=Mv.source(t);function i(){var e=n.apply(this,arguments);return function(){return Math.exp(e())}}return i.source=e,i}(Tv),Uv=function e(t){function n(e){return(e=+e)<=0?()=>0:function(){for(var n=0,i=e;i>1;--i)n+=t();return n+i*t()}}return n.source=e,n}(Tv),jv=function e(t){var n=Uv.source(t);function i(e){if(0===(e=+e))return t;var i=n(e);return function(){return i()/e}}return i.source=e,i}(Tv),Fv=function e(t){function n(e){return function(){return-Math.log1p(-t())/e}}return n.source=e,n}(Tv),Rv=function e(t){function n(e){if((e=+e)<0)throw new RangeError("invalid alpha");return e=1/-e,function(){return Math.pow(1-t(),e)}}return n.source=e,n}(Tv),Ov=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+e)}}return n.source=e,n}(Tv),Iv=function e(t){function n(e){if((e=+e)<0||e>1)throw new RangeError("invalid p");return 0===e?()=>1/0:1===e?()=>1:(e=Math.log1p(-e),function(){return 1+Math.floor(Math.log1p(-t())/e)})}return n.source=e,n}(Tv),Lv=function e(t){var n=Mv.source(t)();function i(e,i){if((e=+e)<0)throw new RangeError("invalid k");if(0===e)return()=>0;if(i=null==i?1:+i,1===e)return()=>-Math.log1p(-t())*i;var r=(e<1?e+1:e)-1/3,a=1/(3*Math.sqrt(r)),o=e<1?()=>Math.pow(t(),1/e):()=>1;return function(){do{do{var e=n(),s=1+a*e}while(s<=0);s*=s*s;var l=1-t()}while(l>=1-.0331*e*e*e*e&&Math.log(l)>=.5*e*e+r*(1-s+Math.log(s)));return r*s*o()*i}}return i.source=e,i}(Tv),Bv=function e(t){var n=Lv.source(t);function i(e,t){var i=n(e),r=n(t);return function(){var e=i();return 0===e?0:e/(e+r())}}return i.source=e,i}(Tv),Wv=function e(t){var n=Iv.source(t),i=Bv.source(t);function r(e,t){return e=+e,(t=+t)>=1?()=>e:t<=0?()=>0:function(){for(var r=0,a=e,o=t;a*o>16&&a*(1-o)>16;){var s=Math.floor((a+1)*o),l=i(s,a-s+1)();l<=o?(r+=s,a-=s,o=(o-l)/(1-l)):(a=s-1,o/=l)}for(var c=o<.5,u=n(c?o:1-o),d=u(),h=0;d<=a;++h)d+=u();return r+(c?h:a-h)}}return r.source=e,r}(Tv),zv=function e(t){function n(e,n,i){var r;return 0===(e=+e)?r=e=>-Math.log(e):(e=1/e,r=t=>Math.pow(t,e)),n=null==n?0:+n,i=null==i?1:+i,function(){return n+i*r(-Math.log1p(-t()))}}return n.source=e,n}(Tv),Vv=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){return e+n*Math.tan(Math.PI*t())}}return n.source=e,n}(Tv),Hv=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,function(){var i=t();return e+n*Math.log(i/(1-i))}}return n.source=e,n}(Tv),qv=function e(t){var n=Lv.source(t),i=Wv.source(t);function r(e){return function(){for(var r=0,a=e;a>16;){var o=Math.floor(.875*a),s=n(o)();if(s>a)return r+i(o-1,a/s)();r+=o,a-=s}for(var l=-Math.log1p(-t()),c=0;l<=a;++c)l-=Math.log1p(-t());return r+c}}return r.source=e,r}(Tv),Gv=1664525,Yv=1013904223,Xv=1/4294967296;function Kv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Math.random(),t=0|(0<=e&&e<1?e/Xv:Math.abs(e));return()=>(t=Gv*t+Yv|0,Xv*(t>>>0))}function $v(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Qv(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}const Zv=Symbol("implicit");function Jv(){var e=new P,t=[],n=[],i=Zv;function r(r){let a=e.get(r);if(void 0===a){if(i!==Zv)return i;e.set(r,a=t.push(r)-1)}return n[a%n.length]}return r.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new P;for(const i of n)e.has(i)||e.set(i,t.push(i)-1);return r},r.range=function(e){return arguments.length?(n=Array.from(e),r):n.slice()},r.unknown=function(e){return arguments.length?(i=e,r):i},r.copy=function(){return Jv(t,n).unknown(i)},$v.apply(r,arguments),r}function eb(){var e,t,n=Jv().unknown(void 0),i=n.domain,r=n.range,a=0,o=1,s=!1,l=0,c=0,u=.5;function d(){var n=i().length,d=o<a,h=d?o:a,f=d?a:o;e=(f-h)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),h+=(f-h-e*(n-l))*u,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var p=Ue(n).map((function(t){return h+e*t}));return r(d?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),d()):i()},n.range=function(e){return arguments.length?([a,o]=e,a=+a,o=+o,d()):[a,o]},n.rangeRound=function(e){return[a,o]=e,a=+a,o=+o,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return eb(i(),[a,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},$v.apply(d(),arguments)}function tb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return tb(t())},e}function nb(){return tb(eb.apply(null,arguments).paddingInner(1))}function ib(e){return+e}var rb=[0,1];function ab(e){return e}function ob(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function sb(e,t,n){var i=e[0],r=e[1],a=t[0],o=t[1];return r<i?(i=ob(r,i),a=n(o,a)):(i=ob(i,r),a=n(a,o)),function(e){return a(i(e))}}function lb(e,t,n){var i=Math.min(e.length,t.length)-1,r=new Array(i),a=new Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)r[o]=ob(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=h(e,t,1,i)-1;return a[n](r[n](t))}}function cb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ub(){var e,t,n,i,r,a,o=rb,s=rb,l=Zi,c=ab;function u(){var e=Math.min(o.length,s.length);return c!==ab&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(o[0],o[e-1])),i=e>2?lb:sb,r=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(r||(r=i(o.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=i(s,o.map(e),Yi)))(n)))},d.domain=function(e){return arguments.length?(o=Array.from(e,ib),u()):o.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=av,u()},d.clamp=function(e){return arguments.length?(c=!!e||ab,u()):c!==ab},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,i){return e=n,t=i,u()}}function db(){return ub()(ab,ab)}function hb(e,t,n,i){var r,a=ue(e,t,n);switch((i=Cu(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=i.precision||isNaN(r=Lu(a,o))||(i.precision=r),Uu(i,o);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=Bu(a,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=Iu(a))||(i.precision=r-2*("%"===i.type))}return Pu(i)}function fb(e){var t=e.domain;return e.ticks=function(e){var n=t();return le(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t();return hb(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var i,r,a=t(),o=0,s=a.length-1,l=a[o],c=a[s],u=10;for(c<l&&(r=l,l=c,c=r,r=o,o=s,s=r);u-- >0;){if((r=ce(l,c,n))===i)return a[o]=l,a[s]=c,t(a);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}i=r}return e},e}function pb(){var e=db();return e.copy=function(){return cb(e,pb())},$v.apply(e,arguments),fb(e)}function gb(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,ib),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return gb(e).unknown(t)},e=arguments.length?Array.from(e,ib):[0,1],fb(n)}function mb(e,t){var n,i=0,r=(e=e.slice()).length-1,a=e[i],o=e[r];return o<a&&(n=i,i=r,r=n,n=a,a=o,o=n),e[i]=t.floor(a),e[r]=t.ceil(o),e}function vb(e){return Math.log(e)}function bb(e){return Math.exp(e)}function yb(e){return-Math.log(-e)}function xb(e){return-Math.exp(-e)}function wb(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _b(e){return(t,n)=>-e(-t,n)}function Db(e){const t=e(vb,bb),n=t.domain;let i,r,a=10;function o(){return i=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),r=function(e){return 10===e?wb:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),n()[0]<0?(i=_b(i),r=_b(r),e(yb,xb)):e(vb,bb),t}return t.base=function(e){return arguments.length?(a=+e,o()):a},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{const t=n();let o=t[0],s=t[t.length-1];const l=s<o;l&&([o,s]=[s,o]);let c,u,d=i(o),h=i(s);const f=null==e?10:+e;let p=[];if(!(a%1)&&h-d<f){if(d=Math.floor(d),h=Math.ceil(h),o>0){for(;d<=h;++d)for(c=1;c<a;++c)if(u=d<0?c/r(-d):c*r(d),!(u<o)){if(u>s)break;p.push(u)}}else for(;d<=h;++d)for(c=a-1;c>=1;--c)if(u=d>0?c/r(-d):c*r(d),!(u<o)){if(u>s)break;p.push(u)}2*p.length<f&&(p=le(o,s,f))}else p=le(d,h,Math.min(h-d,f)).map(r);return l?p.reverse():p},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===a?"s":","),"function"!==typeof n&&(a%1||null!=(n=Cu(n)).precision||(n.trim=!0),n=Pu(n)),e===1/0)return n;const o=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/r(Math.round(i(e)));return t*a<a-.5&&(t*=a),t<=o?n(e):""}},t.nice=()=>n(mb(n(),{floor:e=>r(Math.floor(i(e))),ceil:e=>r(Math.ceil(i(e)))})),t}function Sb(){const e=Db(ub()).domain([1,10]);return e.copy=()=>cb(e,Sb()).base(e.base()),$v.apply(e,arguments),e}
vendor: 8,620 bytes, line 2
2function kb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Cb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ab(e){var t=1,n=e(kb(t),Cb(t));return n.constant=function(n){return arguments.length?e(kb(t=+n),Cb(t)):t},fb(n)}function Tb(){var e=Ab(ub());return e.copy=function(){return cb(e,Tb()).constant(e.constant())},$v.apply(e,arguments)}function Eb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Nb(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Mb(e){return e<0?-e*e:e*e}function Pb(e){var t=e(ab,ab),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(ab,ab):.5===n?e(Nb,Mb):e(Eb(n),Eb(1/n)):n},fb(t)}function Ub(){var e=Pb(ub());return e.copy=function(){return cb(e,Ub()).exponent(e.exponent())},$v.apply(e,arguments),e}function jb(){return Ub.apply(null,arguments).exponent(.5)}function Fb(e){return Math.sign(e)*e*e}function Rb(){var e,t=db(),n=[0,1],i=!1;function r(n){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(r)?e:i?Math.round(r):r}return r.invert=function(e){return t.invert(Fb(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain()},r.range=function(e){return arguments.length?(t.range((n=Array.from(e,ib)).map(Fb)),r):n.slice()},r.rangeRound=function(e){return r.range(e).round(!0)},r.round=function(e){return arguments.length?(i=!!e,r):i},r.clamp=function(e){return arguments.length?(t.clamp(e),r):t.clamp()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Rb(t.domain(),n).round(i).clamp(t.clamp()).unknown(e)},$v.apply(r,arguments),fb(r)}function Ob(){var e,t=[],n=[],r=[];function a(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=_e(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:n[h(r,t)]}return o.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(i),a()},o.range=function(e){return arguments.length?(n=Array.from(e),a()):n.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return r.slice()},o.copy=function(){return Ob().domain(t).range(n).unknown(e)},$v.apply(o,arguments)}function Ib(){var e,t=0,n=1,i=1,r=[.5],a=[0,1];function o(t){return null!=t&&t<=t?a[h(r,t,0,i)]:e}function s(){var e=-1;for(r=new Array(i);++e<i;)r[e]=((e+1)*n-(e-i)*t)/(i+1);return o}return o.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,s()):[t,n]},o.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,s()):a.slice()},o.invertExtent=function(e){var o=a.indexOf(e);return o<0?[NaN,NaN]:o<1?[t,r[0]]:o>=i?[r[i-1],n]:[r[o-1],r[o]]},o.unknown=function(t){return arguments.length?(e=t,o):o},o.thresholds=function(){return r.slice()},o.copy=function(){return Ib().domain([t,n]).range(a).unknown(e)},$v.apply(fb(o),arguments)}function Lb(){var e,t=[.5],n=[0,1],i=1;function r(r){return null!=r&&r<=r?n[h(t,r,0,i)]:e}return r.domain=function(e){return arguments.length?(t=Array.from(e),i=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(e){return arguments.length?(n=Array.from(e),i=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var i=n.indexOf(e);return[t[i-1],t[i]]},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Lb().domain(t).range(n).unknown(e)},$v.apply(r,arguments)}const Bb=1e3,Wb=6e4,zb=36e5,Vb=864e5,Hb=6048e5,qb=2592e6,Gb=31536e6,Yb=new Date,Xb=new Date;function Kb(e,t,n,i){function r(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return r.floor=t=>(e(t=new Date(+t)),t),r.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),r.round=e=>{const t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),r.range=(n,i,a)=>{const o=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n<i)||!(a>0))return o;let s;do{o.push(s=new Date(+n)),t(n,a),e(n)}while(s<n&&n<i);return o},r.filter=n=>Kb((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,i)=>{if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););})),n&&(r.count=(t,i)=>(Yb.setTime(+t),Xb.setTime(+i),e(Yb),e(Xb),Math.floor(n(Yb,Xb))),r.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(i?t=>i(t)%e===0:t=>r.count(0,t)%e===0):r:null)),r}const $b=Kb((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));$b.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Kb((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):$b:null);const Qb=$b.range,Zb=Kb((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Bb)}),((e,t)=>(t-e)/Bb),(e=>e.getUTCSeconds())),Jb=Zb.range,ey=Kb((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bb)}),((e,t)=>{e.setTime(+e+t*Wb)}),((e,t)=>(t-e)/Wb),(e=>e.getMinutes())),ty=ey.range,ny=Kb((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Wb)}),((e,t)=>(t-e)/Wb),(e=>e.getUTCMinutes())),iy=ny.range,ry=Kb((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bb-e.getMinutes()*Wb)}),((e,t)=>{e.setTime(+e+t*zb)}),((e,t)=>(t-e)/zb),(e=>e.getHours())),ay=ry.range,oy=Kb((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*zb)}),((e,t)=>(t-e)/zb),(e=>e.getUTCHours())),sy=oy.range,ly=Kb((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wb)/Vb),(e=>e.getDate()-1)),cy=ly.range,uy=Kb((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Vb),(e=>e.getUTCDate()-1)),dy=uy.range,hy=Kb((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Vb),(e=>Math.floor(e/Vb))),fy=hy.range;function py(e){return Kb((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wb)/Hb))}const gy=py(0),my=py(1),vy=py(2),by=py(3),yy=py(4),xy=py(5),wy=py(6),_y=gy.range,Dy=my.range,Sy=vy.range,ky=by.range,Cy=yy.range,Ay=xy.range,Ty=wy.range;function Ey(e){return Kb((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/Hb))}const Ny=Ey(0),My=Ey(1),Py=Ey(2),Uy=Ey(3),jy=Ey(4),Fy=Ey(5),Ry=Ey(6),Oy=Ny.range,Iy=My.range,Ly=Py.range,By=Uy.range,Wy=jy.range,zy=Fy.range,Vy=Ry.range,Hy=Kb((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth())),qy=Hy.range,Gy=Kb((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth())),Yy=Gy.range,Xy=Kb((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));Xy.every=e=>isFinite(e=Math.floor(e))&&e>0?Kb((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;const Ky=Xy.range,$y=Kb((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));$y.every=e=>isFinite(e=Math.floor(e))&&e>0?Kb((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;const Qy=$y.range;function Zy(e,t,n,i,r,o){const s=[[Zb,1,Bb],[Zb,5,5e3],[Zb,15,15e3],[Zb,30,3e4],[o,1,Wb],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,zb],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,Vb],[i,2,1728e5],[n,1,Hb],[t,1,qb],[t,3,7776e6],[e,1,Gb]];function l(t,n,i){const r=Math.abs(n-t)/i,o=a((e=>{let[,,t]=e;return t})).right(s,r);if(o===s.length)return e.every(ue(t/Gb,n/Gb,i));if(0===o)return $b.every(Math.max(ue(t,n,i),1));const[l,c]=s[r/s[o-1][2]<s[o][2]/r?o-1:o];return l.every(c)}return[function(e,t,n){const i=t<e;i&&([e,t]=[t,e]);const r=n&&"function"===typeof n.range?n:l(e,t,n),a=r?r.range(e,+t+1):[];return i?a.reverse():a},l]}const[Jy,ex]=Zy($y,Gy,Ny,hy,oy,ny),[tx,nx]=Zy(Xy,Hy,gy,ly,ry,ey);function ix(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}
vendor: 4,233 bytes, line 2
2function ax(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ox(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=bx(r),u=yx(r),d=bx(a),h=yx(a),f=bx(o),p=yx(o),g=bx(s),m=yx(s),v=bx(l),b=yx(l),y={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Bx,e:Bx,f:qx,g:nw,G:rw,H:Wx,I:zx,j:Vx,L:Hx,m:Gx,M:Yx,p:function(e){return r[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Aw,s:Tw,S:Xx,u:Kx,U:$x,V:Zx,w:Jx,W:ew,x:null,X:null,y:tw,Y:iw,Z:aw,"%":Cw},x={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:ow,e:ow,f:dw,g:_w,G:Sw,H:sw,I:lw,j:cw,L:uw,m:hw,M:fw,p:function(e){return r[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Aw,s:Tw,S:pw,u:gw,U:mw,V:bw,w:yw,W:xw,x:null,X:null,y:ww,Y:Dw,Z:kw,"%":Cw},w={a:function(e,t,n){var i=f.exec(t.slice(n));return i?(e.w=p.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=h.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(e,t,n){var i=v.exec(t.slice(n));return i?(e.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(e,t,n){var i=g.exec(t.slice(n));return i?(e.m=m.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(e,n,i){return S(e,t,n,i)},d:Nx,e:Nx,f:Rx,g:Cx,G:kx,H:Px,I:Px,j:Mx,L:Fx,m:Ex,M:Ux,p:function(e,t,n){var i=c.exec(t.slice(n));return i?(e.p=u.get(i[0].toLowerCase()),n+i[0].length):-1},q:Tx,Q:Ix,s:Lx,S:jx,u:wx,U:_x,V:Dx,w:xx,W:Sx,x:function(e,t,i){return S(e,n,t,i)},X:function(e,t,n){return S(e,i,t,n)},y:Cx,Y:kx,Z:Ax,"%":Ox};function _(e,t){return function(n){var i,r,a,o=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(o.push(e.slice(l,s)),null!=(r=hx[i=e.charAt(++s)])?i=e.charAt(++s):r="e"===i?" ":"0",(a=t[i])&&(i=a(n,r)),o.push(i),l=s+1);return o.push(e.slice(l,s)),o.join("")}}function D(e,t){return function(n){var i,r,a=ax(1900,void 0,1);if(S(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=rx(ax(a.y,0,1))).getUTCDay(),i=r>4||0===r?My.ceil(i):My(i),i=uy.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=ix(ax(a.y,0,1))).getDay(),i=r>4||0===r?my.ceil(i):my(i),i=ly.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?rx(ax(a.y,0,1)).getUTCDay():ix(ax(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,rx(a)):ix(a)}}function S(e,t,n,i){for(var r,a,o=0,s=t.length,l=n.length;o<s;){if(i>=l)return-1;if(37===(r=t.charCodeAt(o++))){if(r=t.charAt(o++),!(a=w[r in hx?t.charAt(o++):r])||(i=a(e,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return y.x=_(n,y),y.X=_(i,y),y.c=_(t,y),x.x=_(n,x),x.X=_(i,x),x.c=_(t,x),{format:function(e){var t=_(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=D(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=D(e+="",!0);return t.toString=function(){return e},t}}}var sx,lx,cx,ux,dx,hx={"-":"",_:" ",0:"0"},fx=/^\s*\d+/,px=/^%/,gx=/[\\^$*+?|[\]().{}]/g;function mx(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(t)+r:r)}function vx(e){return e.replace(gx,"\\$&")}function bx(e){return new RegExp("^(?:"+e.map(vx).join("|")+")","i")}function yx(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function xx(e,t,n){var i=fx.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function wx(e,t,n){var i=fx.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function _x(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}
vendor: 2,027 bytes, line 2
2function Dx(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Sx(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function kx(e,t,n){var i=fx.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Cx(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Ax(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Tx(e,t,n){var i=fx.exec(t.slice(n,n+1));return i?(e.q=3*i[0]-3,n+i[0].length):-1}function Ex(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function Nx(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Mx(e,t,n){var i=fx.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Px(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ux(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function jx(e,t,n){var i=fx.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Fx(e,t,n){var i=fx.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Rx(e,t,n){var i=fx.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Ox(e,t,n){var i=px.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function Ix(e,t,n){var i=fx.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Lx(e,t,n){var i=fx.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Bx(e,t){return mx(e.getDate(),t,2)}function Wx(e,t){return mx(e.getHours(),t,2)}function zx(e,t){return mx(e.getHours()%12||12,t,2)}function Vx(e,t){return mx(1+ly.count(Xy(e),e),t,3)}function Hx(e,t){return mx(e.getMilliseconds(),t,3)}function qx(e,t){return Hx(e,t)+"000"}function Gx(e,t){return mx(e.getMonth()+1,t,2)}function Yx(e,t){return mx(e.getMinutes(),t,2)}function Xx(e,t){return mx(e.getSeconds(),t,2)}function Kx(e){var t=e.getDay();return 0===t?7:t}
vendor: 10,519 bytes, line 2
2function $x(e,t){return mx(gy.count(Xy(e)-1,e),t,2)}function Qx(e){var t=e.getDay();return t>=4||0===t?yy(e):yy.ceil(e)}function Zx(e,t){return e=Qx(e),mx(yy.count(Xy(e),e)+(4===Xy(e).getDay()),t,2)}function Jx(e){return e.getDay()}function ew(e,t){return mx(my.count(Xy(e)-1,e),t,2)}function tw(e,t){return mx(e.getFullYear()%100,t,2)}function nw(e,t){return mx((e=Qx(e)).getFullYear()%100,t,2)}function iw(e,t){return mx(e.getFullYear()%1e4,t,4)}function rw(e,t){var n=e.getDay();return mx((e=n>=4||0===n?yy(e):yy.ceil(e)).getFullYear()%1e4,t,4)}function aw(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mx(t/60|0,"0",2)+mx(t%60,"0",2)}function ow(e,t){return mx(e.getUTCDate(),t,2)}function sw(e,t){return mx(e.getUTCHours(),t,2)}function lw(e,t){return mx(e.getUTCHours()%12||12,t,2)}function cw(e,t){return mx(1+uy.count($y(e),e),t,3)}function uw(e,t){return mx(e.getUTCMilliseconds(),t,3)}function dw(e,t){return uw(e,t)+"000"}function hw(e,t){return mx(e.getUTCMonth()+1,t,2)}function fw(e,t){return mx(e.getUTCMinutes(),t,2)}function pw(e,t){return mx(e.getUTCSeconds(),t,2)}function gw(e){var t=e.getUTCDay();return 0===t?7:t}function mw(e,t){return mx(Ny.count($y(e)-1,e),t,2)}function vw(e){var t=e.getUTCDay();return t>=4||0===t?jy(e):jy.ceil(e)}function bw(e,t){return e=vw(e),mx(jy.count($y(e),e)+(4===$y(e).getUTCDay()),t,2)}function yw(e){return e.getUTCDay()}function xw(e,t){return mx(My.count($y(e)-1,e),t,2)}function ww(e,t){return mx(e.getUTCFullYear()%100,t,2)}function _w(e,t){return mx((e=vw(e)).getUTCFullYear()%100,t,2)}function Dw(e,t){return mx(e.getUTCFullYear()%1e4,t,4)}function Sw(e,t){var n=e.getUTCDay();return mx((e=n>=4||0===n?jy(e):jy.ceil(e)).getUTCFullYear()%1e4,t,4)}function kw(){return"+0000"}function Cw(){return"%"}function Aw(e){return+e}function Tw(e){return Math.floor(+e/1e3)}function Ew(e){return sx=ox(e),lx=sx.format,cx=sx.parse,ux=sx.utcFormat,dx=sx.utcParse,sx}function Nw(e){return new Date(e)}function Mw(e){return e instanceof Date?+e:+new Date(+e)}function Pw(e,t,n,i,r,a,o,s,l,c){var u=db(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),b=c("%b %d"),y=c("%B"),x=c("%Y");function w(e){return(l(e)<e?f:s(e)<e?p:o(e)<e?g:a(e)<e?m:i(e)<e?r(e)<e?v:b:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,Mw)):h().map(Nw)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=h();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(mb(n,e)):u},u.copy=function(){return cb(u,Pw(e,t,n,i,r,a,o,s,l,c))},u}function Uw(){return $v.apply(Pw(tx,nx,Xy,Hy,gy,ly,ry,ey,Zb,lx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jw(){return $v.apply(Pw(Jy,ex,$y,Gy,Ny,uy,oy,ny,Zb,ux).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Fw(){var e,t,n,i,r,a=0,o=1,s=ab,l=!1;function c(t){return null==t||isNaN(t=+t)?r:s(0===n?.5:(t=(i(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,i;return arguments.length?([n,i]=t,s=e(n,i),c):[s(0),s(1)]}}return c.domain=function(r){return arguments.length?([a,o]=r,e=i(a=+a),t=i(o=+o),n=e===t?0:1/(t-e),c):[a,o]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=u(Zi),c.rangeRound=u(av),c.unknown=function(e){return arguments.length?(r=e,c):r},function(r){return i=r,e=r(a),t=r(o),n=e===t?0:1/(t-e),c}}function Rw(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ow(){var e=fb(Fw()(ab));return e.copy=function(){return Rw(e,Ow())},Qv.apply(e,arguments)}function Iw(){var e=Db(Fw()).domain([1,10]);return e.copy=function(){return Rw(e,Iw()).base(e.base())},Qv.apply(e,arguments)}function Lw(){var e=Ab(Fw());return e.copy=function(){return Rw(e,Lw()).constant(e.constant())},Qv.apply(e,arguments)}function Bw(){var e=Pb(Fw());return e.copy=function(){return Rw(e,Bw()).exponent(e.exponent())},Qv.apply(e,arguments)}function Ww(){return Bw.apply(null,arguments).exponent(.5)}function zw(){var e=[],t=ab;function n(n){if(null!=n&&!isNaN(n=+n))return t((h(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(i),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,i)=>t(i/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,i)=>we(e,i/t)))},n.copy=function(){return zw(t).domain(e)},Qv.apply(n,arguments)}function Vw(){var e,t,n,i,r,a,o,s=0,l=.5,c=1,u=1,d=ab,h=!1;function f(e){return isNaN(e=+e)?o:(e=.5+((e=+a(e))-t)*(u*e<u*t?i:r),d(h?Math.max(0,Math.min(1,e)):e))}function p(e){return function(t){var n,i,r;return arguments.length?([n,i,r]=t,d=bv(e,[n,i,r]),f):[d(0),d(.5),d(1)]}}return f.domain=function(o){return arguments.length?([s,l,c]=o,e=a(s=+s),t=a(l=+l),n=a(c=+c),i=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),u=t<e?-1:1,f):[s,l,c]},f.clamp=function(e){return arguments.length?(h=!!e,f):h},f.interpolator=function(e){return arguments.length?(d=e,f):d},f.range=p(Zi),f.rangeRound=p(av),f.unknown=function(e){return arguments.length?(o=e,f):o},function(o){return a=o,e=o(s),t=o(l),n=o(c),i=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),u=t<e?-1:1,f}}function Hw(){var e=fb(Vw()(ab));return e.copy=function(){return Rw(e,Hw())},Qv.apply(e,arguments)}function qw(){var e=Db(Vw()).domain([.1,1,10]);return e.copy=function(){return Rw(e,qw()).base(e.base())},Qv.apply(e,arguments)}function Gw(){var e=Ab(Vw());return e.copy=function(){return Rw(e,Gw()).constant(e.constant())},Qv.apply(e,arguments)}function Yw(){var e=Pb(Vw());return e.copy=function(){return Rw(e,Yw()).exponent(e.exponent())},Qv.apply(e,arguments)}function Xw(){return Yw.apply(null,arguments).exponent(.5)}function Kw(e){for(var t=e.length/6|0,n=new Array(t),i=0;i<t;)n[i]="#"+e.slice(6*i,6*++i);return n}Ew({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const $w=Kw("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Qw=Kw("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Zw=Kw("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Jw=Kw("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),e_=Kw("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),t_=Kw("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),n_=Kw("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),i_=Kw("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),r_=Kw("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),a_=Kw("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),o_=Kw("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),s_=e=>Bi(e[e.length-1]);var l_=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Kw);const c_=s_(l_);var u_=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Kw);const d_=s_(u_);var h_=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Kw);const f_=s_(h_);var p_=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Kw);const g_=s_(p_);var m_=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Kw);const v_=s_(m_);var b_=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Kw);const y_=s_(b_);var x_=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Kw);const w_=s_(x_);var __=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d
27191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Kw);const D_=s_(__);var S_=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Kw);const k_=s_(S_);var C_=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Kw);const A_=s_(C_);var T_=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Kw);const E_=s_(T_);var N_=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Kw);const M_=s_(N_);var P_=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Kw);const U_=s_(P_);var j_=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Kw);const F_=s_(j_);var R_=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Kw);const O_=s_(R_);var I_=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Kw);const L_=s_(I_);var B_=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Kw);const W_=s_(B_);var z_=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Kw);const V_=s_(z_);var H_=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Kw);const q_=s_(H_);var G_=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Kw);const Y_=s_(G_);var X_=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Kw);const K_=s_(X_);var $_=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ec
2ae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Kw);const Q_=s_($_);var Z_=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Kw);const J_=s_(Z_);var eD=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Kw);const tD=s_(eD);var nD=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Kw);const iD=s_(nD);var rD=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Kw);const aD=s_(rD);var oD=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Kw);const sD=s_(oD);function lD(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"}const cD=vv(gs(300,.5,0),gs(-240,.5,1));var uD=vv(gs(-100,.75,.35),gs(80,1.5,.8)),dD=vv(gs(260,.75,.35),gs(80,1.5,.8)),hD=gs();function fD(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return hD.h=360*e-100,hD.s=1.5-1.5*t,hD.l=.8-.9*t,hD+""}var pD=mi(),gD=Math.PI/3,mD=2*Math.PI/3;function vD(e){var t;return e=(.5-e)*Math.PI,pD.r=255*(t=Math.sin(e))*t,pD.g=255*(t=Math.sin(e+gD))*t,pD.b=255*(t=Math.sin(e+mD))*t,pD+""}function bD(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"}function yD(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const xD=yD(Kw("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc
25c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var wD=yD(Kw("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_D=yD(Kw("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),DD=yD(Kw("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function SD(e){return Wn(An(e).call(document.documentElement))}var kD=0;function CD(){return new AD}function AD(){this._="@"+(++kD).toString(36)}function TD(e,t){return e.target&&(e=Ji(e),void 0===t&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,(e=>er(e,t)))}function ED(e){return"string"===typeof e?new In([document.querySelectorAll(e)],[document.documentElement]):new In([Et(e)],On)}function ND(e){return function(){return e}}AD.prototype=CD.prototype={constructor:AD,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};const MD=Math.abs,PD=Math.atan2,UD=Math.cos,jD=Math.max,FD=Math.min,RD=Math.sin,OD=Math.sqrt,ID=1e-12,LD=Math.PI,BD=LD/2,WD=2*LD;function zD(e){return e>=1?BD:e<=-1?-BD:Math.asin(e)}function VD(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError("invalid digits: ".concat(n));t=e}return e},()=>new So(t)}function HD(e){return e.innerRadius}function qD(e){return e.outerRadius}function GD(e){return e.startAngle}function YD(e){return e.endAngle}function XD(e){return e&&e.padAngle}function KD(e,t,n,i,r,a,o){var s=e-n,l=t-i,c=(o?a:-a)/OD(s*s+l*l),u=c*l,d=-c*s,h=e+u,f=t+d,p=n+u,g=i+d,m=(h+p)/2,v=(f+g)/2,b=p-h,y=g-f,x=b*b+y*y,w=r-a,_=h*g-p*f,D=(y<0?-1:1)*OD(jD(0,w*w*x-_*_)),S=(_*y-b*D)/x,k=(-_*b-y*D)/x,C=(_*y+b*D)/x,A=(-_*b+y*D)/x,T=S-m,E=k-v,N=C-m,M=A-v;return T*T+E*E>N*N+M*M&&(S=C,k=A),{cx:S,cy:k,x01:-u,y01:-d,x11:S*(r/w-1),y11:k*(r/w-1)}}function $D(){var e=HD,t=qD,n=ND(0),i=null,r=GD,a=YD,o=XD,s=null,l=VD(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),f=r.apply(this,arguments)-BD,p=a.apply(this,arguments)-BD,g=MD(p-f),m=p>f;if(s||(s=c=l()),h<d&&(u=h,h=d,d=u),h>ID)if(g>WD-ID)s.moveTo(h*UD(f),h*RD(f)),s.arc(0,0,h,f,p,!m),d>ID&&(s.moveTo(d*UD(p),d*RD(p)),s.arc(0,0,d,p,f,m));else{var v,b,y=f,x=p,w=f,_=p,D=g,S=g,k=o.apply(this,arguments)/2,C=k>ID&&(i?+i.apply(this,arguments):OD(d*d+h*h)),A=FD(MD(h-d)/2,+n.apply(this,arguments)),T=A,E=A;if(C>ID){var N=zD(C/d*RD(k)),M=zD(C/h*RD(k));(D-=2*N)>ID?(w+=N*=m?1:-1,_-=N):(D=0,w=_=(f+p)/2),(S-=2*M)>ID?(y+=M*=m?1:-1,x-=M):(S=0,y=x=(f+p)/2)}var P=h*UD(y),U=h*RD(y),j=d*UD(_),F=d*RD(_);if(A>ID){var R,O=h*UD(x),I=h*RD(x),L=d*UD(w),B=d*RD(w);if(g<LD)if(R=function(e,t,n,i,r,a,o,s){var l=n-e,c=i-t,u=o-r,d=s-a,h=d*l-u*c;
vendor: 6,394 bytes, line 2
2if(!(h*h<ID))return[e+(h=(u*(t-a)-d*(e-r))/h)*l,t+h*c]}(P,U,L,B,O,I,j,F)){var W=P-R[0],z=U-R[1],V=O-R[0],H=I-R[1],q=1/RD(function(e){return e>1?0:e<-1?LD:Math.acos(e)}((W*V+z*H)/(OD(W*W+z*z)*OD(V*V+H*H)))/2),G=OD(R[0]*R[0]+R[1]*R[1]);T=FD(A,(d-G)/(q-1)),E=FD(A,(h-G)/(q+1))}else T=E=0}S>ID?E>ID?(v=KD(L,B,P,U,h,E,m),b=KD(O,I,j,F,h,E,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),E<A?s.arc(v.cx,v.cy,E,PD(v.y01,v.x01),PD(b.y01,b.x01),!m):(s.arc(v.cx,v.cy,E,PD(v.y01,v.x01),PD(v.y11,v.x11),!m),s.arc(0,0,h,PD(v.cy+v.y11,v.cx+v.x11),PD(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,E,PD(b.y11,b.x11),PD(b.y01,b.x01),!m))):(s.moveTo(P,U),s.arc(0,0,h,y,x,!m)):s.moveTo(P,U),d>ID&&D>ID?T>ID?(v=KD(j,F,O,I,d,-T,m),b=KD(P,U,L,B,d,-T,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),T<A?s.arc(v.cx,v.cy,T,PD(v.y01,v.x01),PD(b.y01,b.x01),!m):(s.arc(v.cx,v.cy,T,PD(v.y01,v.x01),PD(v.y11,v.x11),!m),s.arc(0,0,d,PD(v.cy+v.y11,v.cx+v.x11),PD(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,T,PD(b.y11,b.x11),PD(b.y01,b.x01),!m))):s.arc(0,0,d,_,w,m):s.lineTo(j,F)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +a.apply(this,arguments))/2-LD/2;return[UD(i)*n,RD(i)*n]},c.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:ND(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:ND(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:ND(+e),c):n},c.padRadius=function(e){return arguments.length?(i=null==e?null:"function"===typeof e?e:ND(+e),c):i},c.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:ND(+e),c):r},c.endAngle=function(e){return arguments.length?(a="function"===typeof e?e:ND(+e),c):a},c.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:ND(+e),c):o},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}var QD=Array.prototype.slice;function ZD(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function JD(e){this._context=e}function eS(e){return new JD(e)}function tS(e){return e[0]}function nS(e){return e[1]}function iS(e,t){var n=ND(!0),i=null,r=eS,a=null,o=VD(s);function s(s){var l,c,u,d=(s=ZD(s)).length,h=!1;for(null==i&&(a=r(u=o())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(c,l,s),+t(c,l,s));if(u)return a=null,u+""||null}return e="function"===typeof e?e:void 0===e?tS:ND(e),t="function"===typeof t?t:void 0===t?nS:ND(t),s.x=function(t){return arguments.length?(e="function"===typeof t?t:ND(+t),s):e},s.y=function(e){return arguments.length?(t="function"===typeof e?e:ND(+e),s):t},s.defined=function(e){return arguments.length?(n="function"===typeof e?e:ND(!!e),s):n},s.curve=function(e){return arguments.length?(r=e,null!=i&&(a=r(i)),s):r},s.context=function(e){return arguments.length?(null==e?i=a=null:a=r(i=e),s):i},s}function rS(e,t,n){var i=null,r=ND(!0),a=null,o=eS,s=null,l=VD(c);function c(c){var u,d,h,f,p,g=(c=ZD(c)).length,m=!1,v=new Array(g),b=new Array(g);for(null==a&&(s=o(p=l())),u=0;u<=g;++u){if(!(u<g&&r(f=c[u],u,c))===m)if(m=!m)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=d;--h)s.point(v[h],b[h]);s.lineEnd(),s.areaEnd()}m&&(v[u]=+e(f,u,c),b[u]=+t(f,u,c),s.point(i?+i(f,u,c):v[u],n?+n(f,u,c):b[u]))}if(p)return s=null,p+""||null}function u(){return iS().defined(r).curve(o).context(a)}return e="function"===typeof e?e:void 0===e?tS:ND(+e),t="function"===typeof t?t:ND(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?nS:ND(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:ND(+t),i=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:ND(+t),c):e},c.x1=function(e){return arguments.length?(i=null==e?null:"function"===typeof e?e:ND(+e),c):i},c.y=function(e){return arguments.length?(t="function"===typeof e?e:ND(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:ND(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:ND(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(i).y(t)},c.defined=function(e){return arguments.length?(r="function"===typeof e?e:ND(!!e),c):r},c.curve=function(e){return arguments.length?(o=e,null!=a&&(s=o(a)),c):o},c.context=function(e){return arguments.length?(null==e?a=s=null:s=o(a=e),c):a},c}function aS(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function oS(e){return e}function sS(){var e=oS,t=aS,n=null,i=ND(0),r=ND(WD),a=ND(0);function o(o){var s,l,c,u,d,h=(o=ZD(o)).length,f=0,p=new Array(h),g=new Array(h),m=+i.apply(this,arguments),v=Math.min(WD,Math.max(-WD,r.apply(this,arguments)-m)),b=Math.min(Math.abs(v)/h,a.apply(this,arguments)),y=b*(v<0?-1:1);for(s=0;s<h;++s)(d=g[p[s]=s]=+e(o[s],s,o))>0&&(f+=d);for(null!=t?p.sort((function(e,n){return t(g[e],g[n])})):null!=n&&p.sort((function(e,t){return n(o[e],o[t])})),s=0,c=f?(v-h*y)/f:0;s<h;++s,m=u)l=p[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:o[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:b};return g}return o.value=function(t){return arguments.length?(e="function"===typeof t?t:ND(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(i="function"===typeof e?e:ND(+e),o):i},o.endAngle=function(e){return arguments.length?(r="function"===typeof e?e:ND(+e),o):r},o.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:ND(+e),o):a},o}JD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var lS=uS(eS);function cS(e){this._curve=e}function uS(e){function t(t){return new cS(e(t))}return t._curve=e,t}function dS(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(uS(e)):t()._curve},e}function hS(){return dS(iS().curve(lS))}
vendor: 23,755 bytes, line 2
2function fS(){var e=rS().curve(lS),t=e.curve,n=e.lineX0,i=e.lineX1,r=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return dS(n())},delete e.lineX0,e.lineEndAngle=function(){return dS(i())},delete e.lineX1,e.lineInnerRadius=function(){return dS(r())},delete e.lineY0,e.lineOuterRadius=function(){return dS(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(uS(e)):t()._curve},e}function pS(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}cS.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};class gS{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class mS{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0===this._point)this._point=1;else{const n=pS(this._x0,this._y0),i=pS(this._x0,this._y0=(this._y0+t)/2),r=pS(e,this._y0),a=pS(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...i,...r,...a)}this._x0=e,this._y0=t}}function vS(e){return new gS(e,!0)}function bS(e){return new gS(e,!1)}function yS(e){return new mS(e)}function xS(e){return e.source}function wS(e){return e.target}function _S(e){let t=xS,n=wS,i=tS,r=nS,a=null,o=null,s=VD(l);function l(){let l;const c=QD.call(arguments),u=t.apply(this,c),d=n.apply(this,c);if(null==a&&(o=e(l=s())),o.lineStart(),c[0]=u,o.point(+i.apply(this,c),+r.apply(this,c)),c[0]=d,o.point(+i.apply(this,c),+r.apply(this,c)),o.lineEnd(),l)return o=null,l+""||null}return l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(e){return arguments.length?(n=e,l):n},l.x=function(e){return arguments.length?(i="function"===typeof e?e:ND(+e),l):i},l.y=function(e){return arguments.length?(r="function"===typeof e?e:ND(+e),l):r},l.context=function(t){return arguments.length?(null==t?a=o=null:o=e(a=t),l):a},l}function DS(){return _S(vS)}function SS(){return _S(bS)}function kS(){const e=_S(yS);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const CS=OD(3),AS={draw(e,t){const n=.59436*OD(t+FD(t/28,.75)),i=n/2,r=i*CS;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-r,-i),e.lineTo(r,i),e.moveTo(-r,i),e.lineTo(r,-i)}},TS={draw(e,t){const n=OD(t/LD);e.moveTo(n,0),e.arc(0,0,n,0,WD)}},ES={draw(e,t){const n=OD(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},NS=OD(1/3),MS=2*NS,PS={draw(e,t){const n=OD(t/MS),i=n*NS;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},US={draw(e,t){const n=.62625*OD(t);e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},jS={draw(e,t){const n=.87559*OD(t-FD(t/7,2));e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},FS={draw(e,t){const n=OD(t),i=-n/2;e.rect(i,i,n,n)}},RS={draw(e,t){const n=.4431*OD(t);e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},OS=RD(LD/10)/RD(7*LD/10),IS=RD(WD/10)*OS,LS=-UD(WD/10)*OS,BS={draw(e,t){const n=OD(.8908130915292852*t),i=IS*n,r=LS*n;e.moveTo(0,-n),e.lineTo(i,r);for(let a=1;a<5;++a){const t=WD*a/5,o=UD(t),s=RD(t);e.lineTo(s*n,-o*n),e.lineTo(o*i-s*r,s*i+o*r)}e.closePath()}},WS=OD(3),zS={draw(e,t){const n=-OD(t/(3*WS));e.moveTo(0,2*n),e.lineTo(-WS*n,-n),e.lineTo(WS*n,-n),e.closePath()}},VS=OD(3),HS={draw(e,t){const n=.6824*OD(t),i=n/2,r=n*VS/2;e.moveTo(0,-n),e.lineTo(r,i),e.lineTo(-r,i),e.closePath()}},qS=-.5,GS=OD(3)/2,YS=1/OD(12),XS=3*(YS/2+1),KS={draw(e,t){const n=OD(t/XS),i=n/2,r=n*YS,a=i,o=n*YS+n,s=-a,l=o;e.moveTo(i,r),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(qS*i-GS*r,GS*i+qS*r),e.lineTo(qS*a-GS*o,GS*a+qS*o),e.lineTo(qS*s-GS*l,GS*s+qS*l),e.lineTo(qS*i+GS*r,qS*r-GS*i),e.lineTo(qS*a+GS*o,qS*o-GS*a),e.lineTo(qS*s+GS*l,qS*l-GS*s),e.closePath()}},$S={draw(e,t){const n=.6189*OD(t-FD(t/6,1.7));e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},QS=[TS,ES,PS,FS,BS,zS,KS],ZS=[TS,jS,$S,HS,AS,RS,US];function JS(e,t){let n=null,i=VD(r);function r(){let r;if(n||(n=r=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:ND(e||TS),t="function"===typeof t?t:ND(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:ND(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:ND(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function ek(){}function tk(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function nk(e){this._context=e}function ik(e){return new nk(e)}function rk(e){this._context=e}function ak(e){return new rk(e)}function ok(e){this._context=e}function sk(e){return new ok(e)}function lk(e,t){this._basis=new nk(e),this._beta=t}nk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tk(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tk(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},rk.prototype={areaStart:ek,areaEnd:ek,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:tk(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ok.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:tk(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},lk.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i,r=e[0],a=t[0],o=e[n]-r,s=t[n]-a,l=-1;++l<=n;)i=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+i*o),this._beta*t[l]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const ck=function e(t){function n(e){return 1===t?new nk(e):new lk(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function uk(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function dk(e,t){this._context=e,this._k=(1-t)/6}dk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:uk(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:uk(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hk=function e(t){function n(e){return new dk(e,t)}return n.tension=function(t){return e(+t)},n}(0);function fk(e,t){this._context=e,this._k=(1-t)/6}fk.prototype={areaStart:ek,areaEnd:ek,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:uk(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pk=function e(t){function n(e){return new fk(e,t)}return n.tension=function(t){return e(+t)},n}(0);function gk(e,t){this._context=e,this._k=(1-t)/6}gk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:uk(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mk=function e(t){function n(e){return new gk(e,t)}return n.tension=function(t){return e(+t)},n}(0);function vk(e,t,n){var i=e._x1,r=e._y1,a=e._x2,o=e._y2;if(e._l01_a>ID){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,r=(r*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ID){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(i,r,a,o,e._x2,e._y2)}function bk(e,t){this._context=e,this._alpha=t}bk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:vk(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const yk=function e(t){function n(e){return t?new bk(e,t):new dk(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function xk(e,t){this._context=e,this._alpha=t}xk.prototype={areaStart:ek,areaEnd:ek,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:vk(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wk=function e(t){function n(e){return t?new xk(e,t):new fk(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function _k(e,t){this._context=e,this._alpha=t}_k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:vk(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Dk=function e(t){function n(e){return t?new _k(e,t):new gk(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Sk(e){this._context=e}function kk(e){return new Sk(e)}function Ck(e){return e<0?-1:1}function Ak(e,t,n){var i=e._x1-e._x0,r=t-e._x1,a=(e._y1-e._y0)/(i||r<0&&-0),o=(n-e._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(Ck(a)+Ck(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Tk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ek(e,t,n){var i=e._x0,r=e._y0,a=e._x1,o=e._y1,s=(a-i)/3;e._context.bezierCurveTo(i+s,r+s*t,a-s,o-s*n,a,o)}function Nk(e){this._context=e}function Mk(e){this._context=new Pk(e)}function Pk(e){this._context=e}function Uk(e){return new Nk(e)}function jk(e){return new Mk(e)}function Fk(e){this._context=e}function Rk(e){var t,n,i=e.length-1,r=new Array(i),a=new Array(i),o=new Array(i);for(r[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<i-1;++t)r[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(r[i-1]=2,a[i-1]=7,o[i-1]=8*e[i-1]+e[i],t=1;t<i;++t)n=r[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(r[i-1]=o[i-1]/a[i-1],t=i-2;t>=0;--t)r[t]=(o[t]-r[t+1])/a[t];for(a[i-1]=(e[i]+r[i-1])/2,t=0;t<i-1;++t)a[t]=2*e[t+1]-r[t+1];return[r,a]}function Ok(e){return new Fk(e)}function Ik(e,t){this._context=e,this._t=t}function Lk(e){return new Ik(e,.5)}function Bk(e){return new Ik(e,0)}function Wk(e){return new Ik(e,1)}function zk(e,t){if((r=e.length)>1)for(var n,i,r,a=1,o=e[t[0]],s=o.length;a<r;++a)for(i=o,o=e[t[a]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Vk(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Hk(e,t){return e[t]}function qk(e){const t=[];return t.key=e,t}function Gk(){var e=ND([]),t=Vk,n=zk,i=Hk;function r(r){var a,o,s=Array.from(e.apply(this,arguments),qk),l=s.length,c=-1;for(const e of r)for(a=0,++c;a<l;++a)(s[a][c]=[0,+i(e,s[a].key,c,r)]).data=e;for(a=0,o=ZD(t(s));a<l;++a)s[o[a]].index=a;return n(s,o),s}return r.keys=function(t){return arguments.length?(e="function"===typeof t?t:ND(Array.from(t)),r):e},r.value=function(e){return arguments.length?(i="function"===typeof e?e:ND(+e),r):i},r.order=function(e){return arguments.length?(t=null==e?Vk:"function"===typeof e?e:ND(Array.from(e)),r):t},r.offset=function(e){return arguments.length?(n=null==e?zk:e,r):n},r}function Yk(e,t){if((i=e.length)>0){for(var n,i,r,a=0,o=e[0].length;a<o;++a){for(r=n=0;n<i;++n)r+=e[n][a][1]||0;if(r)for(n=0;n<i;++n)e[n][a][1]/=r}zk(e,t)}}function Xk(e,t){if((s=e.length)>0)for(var n,i,r,a,o,s,l=0,c=e[t[0]].length;l<c;++l)for(a=o=0,n=0;n<s;++n)(r=(i=e[t[n]][l])[1]-i[0])>0?(i[0]=a,i[1]=a+=r):r<0?(i[1]=o,i[0]=o+=r):(i[0]=0,i[1]=r)}function Kk(e,t){if((n=e.length)>0){for(var n,i=0,r=e[t[0]],a=r.length;i<a;++i){for(var o=0,s=0;o<n;++o)s+=e[o][i][1]||0;r[i][1]+=r[i][0]=-s/2}zk(e,t)}}function $k(e,t){if((r=e.length)>0&&(i=(n=e[t[0]]).length)>0){for(var n,i,r,a=0,o=1;o<i;++o){for(var s=0,l=0,c=0;s<r;++s){for(var u=e[t[s]],d=u[o][1]||0,h=(d-(u[o-1][1]||0))/2,f=0;f<s;++f){var p=e[t[f]];h+=(p[o][1]||0)-(p[o-1][1]||0)}l+=d,c+=h*d}n[o-1][1]+=n[o-1][0]=a,l&&(a-=c/l)}n[o-1][1]+=n[o-1][0]=a,zk(e,t)}}function Qk(e){var t=e.map(Zk);return Vk(e).sort((function(e,n){return t[e]-t[n]}))}function Zk(e){for(var t,n=-1,i=0,r=e.length,a=-1/0;++n<r;)(t=+e[n][1])>a&&(a=t,i=n);return i}function Jk(e){var t=e.map(eC);return Vk(e).sort((function(e,n){return t[e]-t[n]}))}function eC(e){for(var t,n=0,i=-1,r=e.length;++i<r;)(t=+e[i][1])&&(n+=t);return n}function tC(e){return Jk(e).reverse()}function nC(e){var t,n,i=e.length,r=e.map(eC),a=Qk(e),o=0,s=0,l=[],c=[];for(t=0;t<i;++t)n=a[t],o<s?(o+=r[n],l.push(n)):(s+=r[n],c.push(n));return c.reverse().concat(l)}function iC(e){return Vk(e).reverse()}Sk.prototype={areaStart:ek,areaEnd:ek,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Nk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ek(this,this._t0,Tk(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ek(this,Tk(this,n=Ak(this,e,t)),n);break;default:Ek(this,this._t0,n=Ak(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Mk.prototype=Object.create(Nk.prototype)).point=function(e,t){Nk.prototype.point.call(this,t,e)},Pk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,r,a){this._context.bezierCurveTo(t,e,i,n,a,r)}},Fk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var i=Rk(e),r=Rk(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(i[0][a],r[0][a],i[1][a],r[1][a],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Ik.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var rC="%Y-%m-%dT%H:%M:%S.%LZ";var aC=Date.prototype.toISOString?function(e){return e.toISOString()}:ux(rC);const oC=aC;var sC=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:dx(rC);const lC=sC;function cC(e,t,n){var i=new fr,r=t;return null==t?(i.restart(e,t,n),i):(i._restart=i.restart,i.restart=function(e,t,n){t=+t,n=null==n?dr():+n,i._restart((function a(o){o+=r,i._restart(a,r+=t,n),e(o)}),t,n)},i.restart(e,t,n),i)}const uC=e=>()=>e;function dC(e,t){let{sourceEvent:n,target:i,transform:r,dispatch:a}=t;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:a}})}function hC(e,t,n){this.k=e,this.x=t,this.y=n}hC.prototype={constructor:hC,scale:function(e){return 1===e?this:new hC(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new hC(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var fC=new hC(1,0,0);function pC(e){for(;!e.__zoom;)if(!(e=e.parentNode))return fC;return e.__zoom}function gC(e){e.stopImmediatePropagation()}function mC(e){e.preventDefault(),e.stopImmediatePropagation()}function vC(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function bC(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function yC(){return this.__zoom||fC}function xC(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?
vendor: 2,544 bytes, line 2
21:.002)*(e.ctrlKey?10:1)}function wC(){return navigator.maxTouchPoints||"ontouchstart"in this}function _C(e,t,n){var i=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function DC(){var e,t,n,i=vC,r=bC,a=_C,o=xC,s=wC,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=sv,h=Ct("start","zoom","end"),f=0,p=10;function g(e){e.property("__zoom",yC).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",S).filter(s).on("touchstart.zoom",k).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new hC(t,e.x,e.y)}function v(e,t,n){var i=t[0]-n[0]*e.k,r=t[1]-n[1]*e.k;return i===e.x&&r===e.y?e:new hC(e.k,i,r)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function y(e,t,n,i){e.on("start.zoom",(function(){x(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,a=arguments,o=x(e,a).event(i),s=r.apply(e,a),l=null==n?b(s):"function"===typeof n?n.apply(e,a):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=e.__zoom,h="function"===typeof t?t.apply(e,a):t,f=d(u.invert(l).concat(c/u.k),h.invert(l).concat(c/h.k));return function(e){if(1===e)e=h;else{var t=f(e),n=c/t[2];e=new hC(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}}))}function x(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=r.apply(e,t),this.taps=0}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(i.apply(this,arguments)){var s=x(this,n).event(e),u=this.__zoom,d=Math.max(l[0],Math.min(l[1],u.k*Math.pow(2,o.apply(this,arguments)))),h=er(e);if(s.wheel)s.mouse[0][0]===h[0]&&s.mouse[0][1]===h[1]||(s.mouse[1]=u.invert(s.mouse[0]=h)),clearTimeout(s.wheel);else{if(u.k===d)return;s.mouse=[h,u.invert(h)],Nr(this),s.start()}mC(e),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),150),s.zoom("mouse",a(v(m(u,d),s.mouse[0],s.mouse[1]),s.extent,c))}}function D(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(!n&&i.apply(this,arguments)){var s=e.currentTarget,l=x(this,r,!0).event(e),u=Wn(e.view).on("mousemove.zoom",(function(e){if(mC(e),!l.moved){var t=e.clientX-h,n=e.clientY-p;l.moved=t*t+n*n>f}
2l.event(e).zoom("mouse",a(v(l.that.__zoom,l.mouse[0]=er(e,s),l.mouse[1]),l.extent,c))}),!0).on("mouseup.zoom",(function(e){u.on("mousemove.zoom mouseup.zoom",null),Yn(e.view,l.moved),mC(e),l.event(e).end()}),!0),d=er(e,s),h=e.clientX,p=e.clientY;Gn(e.view),gC(e),l.mouse=[d,this.__zoom.invert(d)],Nr(this),l.start()}}function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(i.apply(this,arguments)){var s=this.__zoom,l=er(e.changedTouches?e.changedTouches[0]:e,this),d=s.invert(l),h=s.k*(e.shiftKey?.5:2),f=a(v(m(s,h),l,d),r.apply(this,n),c);mC(e),u>0?Wn(this).transition().duration(u).call(y,f,l,e):Wn(this).call(g.transform,f,l,e)}}function k(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];if(i.apply(this,arguments)){var s,l,c,u,d=n.touches,h=d.length,f=x(this,a,n.changedTouches.length===h).event(n);for(gC(n),l=0;l<h;++l)u=[u=er(c=d[l],this),this.__zoom.invert(u),c.identifier],f.touch0?f.touch1||f.touch0[2]===u[2]||(f.touch1=u,f.taps=0):(f.touch0=u,s=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(f.taps<2&&(t=u[0],e=setTimeout((function(){e=null}),500)),Nr(this),f.start())}}function C(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r,o,s,l,u=x(this,n).event(e),d=e.changedTouches,h=d.length;for(mC(e),r=0;r<h;++r)s=er(o=d[r],this),u.touch0&&u.touch0[2]===o.identifier?u.touch0[0]=s:u.touch1&&u.touch1[2]===o.identifier&&(u.touch1[0]=s);if(o=u.that.__zoom,u.touch1){var f=u.touch0[0],p=u.touch0[1],g=u.touch1[0],b=u.touch1[1],y=(y=g[0]-f[0])*y+(y=g[1]-f[1])*y,w=(w=b[0]-p[0])*w+(w=b[1]-p[1])*w;o=m(o,Math.sqrt(y/w)),s=[(f[0]+g[0])/2,(f[1]+g[1])/2],l=[(p[0]+b[0])/2,(p[1]+b[1])/2]}else{if(!u.touch0)return;s=u.touch0[0],l=u.touch0[1]}u.zoom("touch",a(v(o,s,l),u.extent,c))}}function A(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];if(this.__zooming){var o,s,l=x(this,r).event(e),c=e.changedTouches,u=c.length;for(gC(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),o=0;o<u;++o)s=c[o],l.touch0&&l.touch0[2]===s.identifier?delete l.touch0:l.touch1&&l.touch1[2]===s.identifier&&delete l.touch1;if(l.touch1&&!l.touch0&&(l.touch0=l.touch1,delete l.touch1),l.touch0)l.touch0[1]=this.__zoom.invert(l.touch0[0]);else if(l.end(),2===l.taps&&(s=er(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<p)){var d=Wn(this).on("dblclick.zoom");d&&d.apply(this,arguments)}}}return g.transform=function(e,t,n,i){var r=e.selection?e.selection():e;r.property("__zoom",yC),e!==r?y(e,t,n,i):r.interrupt().each((function(){x(this,arguments).event(i).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},g.scaleBy=function(e,t,n,i){g.scaleTo(e,(function(){return this.__zoom.k*("function"===typeof t?t.apply(this,arguments):t)}),n,i)},g.scaleTo=function(e,t,n,i){g.transform(e,(function(){var e=r.apply(this,arguments),i=this.__zoom,o=null==n?b(e):"function"===typeof n?n.apply(this,arguments):n,s=i.invert(o),l="function"===typeof t?t.apply(this,arguments):t;return a(v(m(i,l),o,s),e,c)}),n,i)},g.translateBy=function(e,t,n,i){g.transform(e,(function(){return a(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),r.apply(this,arguments),c)}),null,i)},g.translateTo=function(e,t,n,i,o){g.transform(e,(function(){var e=r.apply(this,arguments),o=this.__zoom,s=null==i?b(e):"function"===typeof i?i.apply(this,arguments):i;return a(fC.translate(s[0],s[1]).scale(o.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,c)}),i,o)},w.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit
2("end")),this},emit:function(e){var t=Wn(this.that).datum();h.call(e,this.that,new dC(e,{sourceEvent:this.sourceEvent,target:g,type:e,transform:this.that.__zoom,dispatch:h}),t)}},g.wheelDelta=function(e){return arguments.length?(o="function"===typeof e?e:uC(+e),g):o},g.filter=function(e){return arguments.length?(i="function"===typeof e?e:uC(!!e),g):i},g.touchable=function(e){return arguments.length?(s="function"===typeof e?e:uC(!!e),g):s},g.extent=function(e){return arguments.length?(r="function"===typeof e?e:uC([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):r},g.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],g):[l[0],l[1]]},g.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(e){return arguments.length?(a=e,g):a},g.duration=function(e){return arguments.length?(u=+e,g):u},g.interpolate=function(e){return arguments.length?(d=e,g):d},g.on=function(){var e=h.on.apply(h,arguments);return e===h?g:e},g.clickDistance=function(e){return arguments.length?(f=(e=+e)*e,g):Math.sqrt(f)},g.tapDistance=function(e){return arguments.length?(p=+e,g):p},g}pC.prototype=hC.prototype},5973:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>r,after:()=>jt,all:()=>en,allKeys:()=>me,any:()=>tn,assign:()=>je,before:()=>Ft,bind:()=>_t,bindAll:()=>kt,chain:()=>bt,chunk:()=>In,clone:()=>Ie,collect:()=>Xt,compact:()=>An,compose:()=>Ut,constant:()=>Z,contains:()=>nn,countBy:()=>vn,create:()=>Oe,debounce:()=>Nt,default:()=>Vn,defaults:()=>Fe,defer:()=>Tt,delay:()=>At,detect:()=>qt,difference:()=>En,drop:()=>kn,each:()=>Yt,escape:()=>ot,every:()=>en,extend:()=>Ue,extendOwn:()=>je,filter:()=>Zt,find:()=>qt,findIndex:()=>Lt,findKey:()=>Ot,findLastIndex:()=>Bt,findWhere:()=>Gt,first:()=>Sn,flatten:()=>Tn,foldl:()=>$t,foldr:()=>Qt,forEach:()=>Yt,functions:()=>Me,get:()=>Ve,groupBy:()=>gn,has:()=>He,head:()=>Sn,identity:()=>qe,include:()=>nn,includes:()=>nn,indexBy:()=>mn,indexOf:()=>Vt,initial:()=>Dn,inject:()=>$t,intersection:()=>Un,invert:()=>Ne,invoke:()=>rn,isArguments:()=>K,isArray:()=>G,isArrayBuffer:()=>O,isBoolean:()=>T,isDataView:()=>q,isDate:()=>U,isElement:()=>E,isEmpty:()=>le,isEqual:()=>ge,isError:()=>F,isFinite:()=>$,isFunction:()=>B,isMap:()=>Se,isMatch:()=>ce,isNaN:()=>Q,isNull:()=>C,isNumber:()=>P,isObject:()=>k,isRegExp:()=>j,isSet:()=>Ce,isString:()=>M,isSymbol:()=>R,isTypedArray:()=>re,isUndefined:()=>A,isWeakMap:()=>ke,isWeakSet:()=>Ae,iteratee:()=>$e,keys:()=>se,last:()=>Cn,lastIndexOf:()=>Ht,map:()=>Xt,mapObject:()=>Ze,matcher:()=>Ge,matches:()=>Ge,max:()=>sn,memoize:()=>Ct,methods:()=>Me,min:()=>ln,mixin:()=>Bn,negate:()=>Pt,noop:()=>Je,now:()=>it,object:()=>Rn,omit:()=>_n,once:()=>Rt,pairs:()=>Ee,partial:()=>wt,partition:()=>bn,pick:()=>wn,pluck:()=>an,property:()=>Ye,propertyOf:()=>et,random:()=>nt,range:()=>On,reduce:()=>$t,reduceRight:()=>Qt,reject:()=>Jt,rest:()=>kn,restArguments:()=>S,result:()=>gt,sample:()=>dn,select:()=>Zt,shuffle:()=>hn,size:()=>yn,some:()=>tn,sortBy:()=>fn,sortedIndex:()=>Wt,tail:()=>kn,take:()=>Sn,tap:()=>Le,template:()=>pt,templateSettings:()=>lt,throttle:()=>Et,times:()=>tt,toArray:()=>un,toPath:()=>Be,transpose:()=>jn,unescape:()=>st,union:()=>Pn,uniq:()=>Mn,unique:()=>Mn,uniqueId:()=>vt,unzip:()=>jn,values:()=>Te,where:()=>on,without:()=>Nn,wrap:()=>Mt,zip:()=>Fn});var i={};n.r(i),n.d(i,{VERSION:()=>r,after:()=>jt,all:()=>en,allKeys:()=>me,any:()=>tn,assign:()=>je,before:()=>Ft,bind:()=>_t,bindAll:()=>kt,chain:()=>bt,chunk:()=>In,clone:()=>Ie,collect:()=>Xt,compact:()=>An,compose:()=>Ut,constant:()=>Z,contains:()=>nn,countBy:()=>vn,create:()=>Oe,debounce:()=>Nt,default:()=>Wn,defaults:()=>Fe,defer:()=>Tt,delay:()=>At,detect:()=>qt,difference:()=>En,drop:()=>kn,each:()=>Yt,escape:()=>ot,every:()=>en,extend:()=>Ue,extendOwn:()=>je,filter:()=>Zt,find:()=>qt,findIndex:()=>Lt,findKey:()=>Ot,findLastIndex:()=>Bt,findWhere:()=>Gt,first:()=>Sn,flatten:()=>Tn,foldl:()=>$t,foldr:()=>Qt,forEach:()=>Yt,functions:()=>Me,get:()=>Ve,groupBy:()=>gn,has:()=>He,head:()=>Sn,identity:()=>qe,include:()=>nn,includes:()=>nn,indexBy:()=>mn,indexOf:()=>Vt,initial:()=>Dn,inject:()=>$t,intersection:()=>Un,invert:()=>Ne,invoke:()=>rn,isArguments:()=>K,isArray:()=>G,isArrayBuffer:()=>O,isBoolean:()=>T,isDataView:()=>q,isDate:()=>U,isElement:()=>E,isEmpty:()=>le,isEqual:()=>ge,isError:()=>F,isFinite:()=>$,isFunction:()=>B,isMap:()=>Se,isMatch:()=>ce,isNaN:()=>Q,isNull:()=>C,isNumber:()=>P,isObject:()=>k,isRegExp:()=>j,isSet:()=>Ce,isString:()=>M,isSymbol:()=>R,isTypedArray:()=>re,isUndefined:()=>A,isWeakMap:()=>ke,isWeakSet:()=>Ae,iteratee:()=>$e,keys:()=>se,last:()=>Cn,lastIndexOf:()=>Ht,map:()=>Xt,mapObject:()=>Ze,matcher:()=>Ge,matches:()=>Ge,max:()=>sn,memoize:()=>Ct,methods:()=>Me,min:()=>ln,mixin:()=>Bn,negate:()=>Pt,noop:()=>Je,now:()=>it,object:()=>Rn,omit:()=>_n,once:()=>Rt,pairs:()=>Ee,partial:()=>wt,partition:()=>bn,pick:()=>wn,pluck:()=>an,property:()=>Ye,propertyOf:()=>et,random:()=>nt,range:()=>On,reduce:()=>$t,reduceRight:()=>Qt,reject:()=>Jt,rest:()=>kn,restArguments:()=>S,result:()=>gt,sample:()=>dn,select:()=>Zt,shuffle:()=>hn,size:()=>yn,some:()=>tn,sortBy:()=>fn,sortedIndex:()=>Wt,tail:()=>kn,take:()=>Sn,tap:()=>Le,template:()=>pt,templateSettings:()=>lt,throttle:()=>Et,times:()=>tt,toArray:()=>un,toPath:()=>Be,transpose:()=>jn,unescape:()=>st,union:()=>Pn,uniq:()=>Mn,unique:()=>Mn,uniqueId:()=>vt,unzip:()=>jn,values:()=>Te,where:()=>on,without:()=>Nn,wrap:()=>Mt,zip:()=>Fn});var r="1.13.7",a="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,l="undefined"!==typeof Symbol?Symbol.prototype:null,c=o.push,u=o.slice,d=s.toString,h=s.hasOwnProperty,f="undefined"!==typeof ArrayBuffer,p="undefined"!==typeof DataView,g=Array.isArray,m=Object.keys,v=Object.create,b=f&&ArrayBuffer.isView,y=isNaN,x=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleStr
2ing"],D=Math.pow(2,53)-1;function S(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var a=Array(t+1);for(r=0;r<t;r++)a[r]=arguments[r];return a[t]=i,e.apply(this,a)}}function k(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function C(e){return null===e}function A(e){return void 0===e}function T(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function E(e){return!(!e||1!==e.nodeType)}function N(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}const M=N("String"),P=N("Number"),U=N("Date"),j=N("RegExp"),F=N("Error"),R=N("Symbol"),O=N("ArrayBuffer");var I=N("Function"),L=a.document&&a.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof L&&(I=function(e){return"function"==typeof e||!1});const B=I,W=N("Object");var z=p&&(!/\[native code\]/.test(String(DataView))||W(new DataView(new ArrayBuffer(8)))),V="undefined"!==typeof Map&&W(new Map),H=N("DataView");const q=z?function(e){return null!=e&&B(e.getInt8)&&O(e.buffer)}:H,G=g||N("Array");function Y(e,t){return null!=e&&h.call(e,t)}var X=N("Arguments");!function(){X(arguments)||(X=function(e){return Y(e,"callee")})}();const K=X;function $(e){return!R(e)&&x(e)&&!isNaN(parseFloat(e))}function Q(e){return P(e)&&y(e)}function Z(e){return function(){return e}}function J(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=D}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),ne=J(te);var ie=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const re=f?function(e){return b?b(e)&&!q(e):ne(e)&&ie.test(d.call(e))}:Z(!1),ae=ee("length");function oe(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=_.length,i=e.constructor,r=B(i)&&i.prototype||s,a="constructor";for(Y(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=_[n])in e&&e[a]!==r[a]&&!t.contains(a)&&t.push(a)}function se(e){if(!k(e))return[];if(m)return m(e);var t=[];for(var n in e)Y(e,n)&&t.push(n);return w&&oe(e,t),t}function le(e){if(null==e)return!0;var t=ae(e);return"number"==typeof t&&(G(e)||M(e)||K(e))?0===t:0===ae(se(e))}function ce(e,t){var n=se(t),i=n.length;if(null==e)return!i;for(var r=Object(e),a=0;a<i;a++){var o=n[a];if(t[o]!==r[o]||!(o in r))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=r,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};var he="[object DataView]";function fe(e,t,n,i){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&pe(e,t,n,i)}function pe(e,t,n,i){e instanceof ue&&(e=e._wrapped),t instanceof ue&&(t=t._wrapped);var r=d.call(e);if(r!==d.call(t))return!1;if(z&&"[object Object]"==r&&q(e)){if(!q(t))return!1;r=he}switch(r){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t);case"[object ArrayBuffer]":case he:return pe(de(e),de(t),n,i)}var a="[object Array]"===r;if(!a&&re(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(B(o)&&o instanceof o&&B(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}i=i||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return i[c]===t;if(n.push(e),i.push(t),a){if((c=e.length)!==t.length)return!1;for(;c--;)if(!fe(e[c],t[c],n,i))return!1}else{var u,h=se(e);if(c=h.length,se(t).length!==c)return!1;for(;c--;)if(!Y(t,u=h[c])||!fe(e[u],t[u],n,i))return!1}return n.pop(),i.pop(),!0}function ge(e,t){return fe(e,t)}function me(e){if(!k(e))return[];var t=[];for(var n in e)t.push(n);return w&&oe(e,t),t}function ve(e){var t=ae(e);return function(n){if(null==n)return!1;var i=me(n);if(ae(i))return!1;for(var r=0;r<t;r++)if(!B(n[e[r]]))return!1;return e!==_e||!B(n[be])}}var be="forEach",ye=["clear","delete"],xe=["get","has","set"],we=ye.concat(be,xe),_e=ye.concat(xe),De=["add"].concat(ye,be,"has");const Se=V?ve(we):N("Map"),ke=V?ve(_e):N("WeakMap"),Ce=V?ve(De):N("Set"),Ae=N("WeakSet");function Te(e){for(var t=se(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t=se(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i}function Ne(e){for(var t={},n=se(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Me(e){var t=[];
vendor: 17,002 bytes, line 2
2for(var n in e)B(e[n])&&t.push(n);return t.sort()}function Pe(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var a=arguments[r],o=e(a),s=o.length,l=0;l<s;l++){var c=o[l];t&&void 0!==n[c]||(n[c]=a[c])}return n}}const Ue=Pe(me),je=Pe(se),Fe=Pe(me,!0);function Re(e){if(!k(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Oe(e,t){var n=Re(e);return t&&je(n,t),n}function Ie(e){return k(e)?G(e)?e.slice():Ue({},e):e}function Le(e,t){return t(e),e}function Be(e){return G(e)?e:[e]}function We(e){return ue.toPath(e)}function ze(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Ve(e,t,n){var i=ze(e,We(t));return A(i)?n:i}function He(e,t){for(var n=(t=We(t)).length,i=0;i<n;i++){var r=t[i];if(!Y(e,r))return!1;e=e[r]}return!!n}function qe(e){return e}function Ge(e){return e=je({},e),function(t){return ce(t,e)}}function Ye(e){return e=We(e),function(t){return ze(t,e)}}function Xe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,a){return e.call(t,n,i,r,a)}}return function(){return e.apply(t,arguments)}}function Ke(e,t,n){return null==e?qe:B(e)?Xe(e,t,n):k(e)&&!G(e)?Ge(e):Ye(e)}function $e(e,t){return Ke(e,t,1/0)}function Qe(e,t,n){return ue.iteratee!==$e?ue.iteratee(e,t):Ke(e,t,n)}function Ze(e,t,n){t=Qe(t,n);for(var i=se(e),r=i.length,a={},o=0;o<r;o++){var s=i[o];a[s]=t(e[s],s,e)}return a}function Je(){}function et(e){return null==e?Je:function(t){return Ve(e,t)}}function tt(e,t,n){var i=Array(Math.max(0,e));t=Xe(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=Be,ue.iteratee=$e;const it=Date.now||function(){return(new Date).getTime()};function rt(e){var t=function(t){return e[t]},n="(?:"+se(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(r,t):e}}const at={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ot=rt(at),st=rt(Ne(at)),lt=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ct=/(.)^/,ut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function ht(e){return"\\"+ut[e]}var ft=/^\s*(\w|\$)+\s*$/;function pt(e,t,n){!t&&n&&(t=n),t=Fe({},t,ue.templateSettings);var i=RegExp([(t.escape||ct).source,(t.interpolate||ct).source,(t.evaluate||ct).source].join("|")+"|$","g"),r=0,a="__p+='";e.replace(i,(function(t,n,i,o,s){return a+=e.slice(r,s).replace(dt,ht),r=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?a+="'+\n((__t=("+i+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t})),a+="';\n";var o,s=t.variable;if(s){if(!ft.test(s))throw new Error("variable is not a bare identifier: "+s)}else a="with(obj||{}){\n"+a+"}\n",s="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{o=new Function(s,"_",a)}catch(c){throw c.source=a,c}var l=function(e){return o.call(this,e,ue)};return l.source="function("+s+"){\n"+a+"}",l}function gt(e,t,n){var i=(t=We(t)).length;if(!i)return B(n)?n.call(e):n;for(var r=0;r<i;r++){var a=null==e?void 0:e[t[r]];void 0===a&&(a=n,r=i),e=B(a)?a.call(e):a}return e}var mt=0;function vt(e){var t=++mt+"";return e?e+t:t}function bt(e){var t=ue(e);return t._chain=!0,t}function yt(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var a=Re(e.prototype),o=e.apply(a,r);return k(o)?o:a}var xt=S((function(e,t){var n=xt.placeholder,i=function(){for(var r=0,a=t.length,o=Array(a),s=0;s<a;s++)o[s]=t[s]===n?arguments[r++]:t[s];for(;r<arguments.length;)o.push(arguments[r++]);return yt(e,i,this,this,o)};return i}));xt.placeholder=ue;const wt=xt,_t=S((function(e,t,n){if(!B(e))throw new TypeError("Bind must be called on a function");var i=S((function(r){return yt(e,i,t,this,n.concat(r))}));return i})),Dt=J(ae);function St(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var r=i.length,a=0,o=ae(e);a<o;a++){var s=e[a];if(Dt(s)&&(G(s)||K(s)))if(t>1)St(s,t-1,n,i),r=i.length;else for(var l=0,c=s.length;l<c;)i[r++]=s[l++];else n||(i[r++]=s)}return i}const kt=S((function(e,t){var n=(t=St(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=_t(e[i],e)}return e}));function Ct(e,t){var n=function(i){var r=n.cache,a=""+(t?t.apply(this,arguments):i);return Y(r,a)||(r[a]=e.apply(this,arguments)),r[a]};return n.cache={},n}const At=S((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Tt=wt(At,ue,1);function Et(e,t,n){var i,r,a,o,s=0;n||(n={});var l=function(){s=!1===n.leading?0:it(),i=null,o=e.apply(r,a),i||(r=a=null)},c=function(){var c=it();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=this,a=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),s=c,o=e.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(l,u)),o};return c.cancel=function(){clearTimeout(i),s=0,i=r=a=null},c}function Nt(e,t,n){var i,r,a,o,s,l=function(){var c=it()-r;t>c?i=setTimeout(l,t-c):(i=null,n||(o=e.apply(s,a)),i||(a=s=null))},c=S((function(c){return s=this,a=c,r=it(),i||(i=setTimeout(l,t),n&&(o=e.apply(s,a))),o}));return c.cancel=function(){clearTimeout(i),i=a=s=null},c}function Mt(e,t){return wt(t,e)}function Pt(e){return function(){return!e.apply(this,arguments)}}function Ut(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}}function jt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ft(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Rt=wt(Ft,2);function Ot(e,t,n){t=Qe(t,n);for(var i,r=se(e),a=0,o=r.length;a<o;a++)if(t(e[i=r[a]],i,e))return i}function It(e){return function(t,n,i){n=Qe(n,i);for(var r=ae(t),a=e>0?0:r-1;a>=0&&a<r;a+=e)if(n(t[a],a,t))return a;return-1}}const Lt=It(1),Bt=It(-1);function Wt(e,t,n,i){for(var r=(n=Qe(n,i,1))(t),a=0,o=ae(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<r?a=s+1:o=s}return a}function zt(e,t,n){return function(i,r,a){var o=0,s=ae(i);if("number"==typeof a)e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return i[a=n(i,r)]===r?a:-1;if(r!==r)return(a=t(u.call(i,o,s),Q))>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(i[a]===r)return a;return-1}}const Vt=zt(1,Lt,Wt),Ht=zt(-1,Bt);function qt(e,t,n){var i=(Dt(e)?Lt:Ot)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Gt(e,t){return qt(e,Ge(t))}function Yt(e,t,n){var i,r;if(t=Xe(t,n),Dt(e))for(i=0,r=e.length;i<r;i++)t(e[i],i,e);else{var a=se(e);for(i=0,r=a.length;i<r;i++)t(e[a[i]],a[i],e)}return e}function Xt(e,t,n){t=Qe(t,n);for(var i=!Dt(e)&&se(e),r=(i||e).length,a=Array(r),o=0;o<r;o++){var s=i?i[o]:o;a[o]=t(e[s],s,e)}return a}function Kt(e){return function(t,n,i,r){var a=arguments.length>=3;return function(t,n,i,r){var a=!Dt(t)&&se(t),o=(a||t).length,s=e>0?0:o-1;for(r||(i=t[a?a[s]:s],s+=e);s>=0&&s<o;s+=e){var l=a?a[s]:s;i=n(i,t[l],l,t)}return i}(t,Xe(n,r,4),i,a)}}const $t=Kt(1),Qt=Kt(-1);function Zt(e,t,n){var i=[];return t=Qe(t,n),Yt(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i}function Jt(e,t,n){return Zt(e,Pt(Qe(t)),n)}function en(e,t,n){t=Qe(t,n);for(var i=!Dt(e)&&se(e),r=(i||e).length,a=0;a<r;a++){var o=i?i[a]:a;if(!t(e[o],o,e))return!1}return!0}function tn(e,t,n){t=Qe(t,n);for(var i=!Dt(e)&&se(e),r=(i||e).length,a=0;a<r;a++){var o=i?i[a]:a;if(t(e[o],o,e))return!0}return!1}function nn(e,t,n,i){return Dt(e)||(e=Te(e)),("number"!=typeof n||i)&&(n=0),Vt(e,t,n)>=0}const rn=S((function(e,t,n){var i,r;return B(t)?r=t:(t=We(t),i=t.slice(0,-1),t=t[t.length-1]),Xt(e,(function(e){var a=r;if(!a){if(i&&i.length&&(e=ze(e,i)),null==e)return;a=e[t]}return null==a?a:a.apply(e,n)}))}));function an(e,t){return Xt(e,Ye(t))}function on(e,t){return Zt(e,Ge(t))}function sn(e,t,n){var i,r,a=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=Dt(e)?e:Te(e)).length;s<l;s++)null!=(i=e[s])&&i>a&&(a=i);else t=Qe(t,n),Yt(e,(function(e,n,i){((r=t(e,n,i))>o||r===-1/0&&a===-1/0)&&(a=e,o=r)}));return a}function ln(e,t,n){var i,r,a=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=Dt(e)?e:Te(e)).length;s<l;s++)null!=(i=e[s])&&i<a&&(a=i);else t=Qe(t,n),Yt(e,(function(e,n,i){((r=t(e,n,i))<o||r===1/0&&a===1/0)&&(a=e,o=r)}));return a}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(e){return e?G(e)?u.call(e):M(e)?e.match(cn):Dt(e)?Xt(e,qe):Te(e):[]}function dn(e,t,n){if(null==t||n)return Dt(e)||(e=Te(e)),e[nt(e.length-1)];var i=un(e),r=ae(i);t=Math.max(Math.min(t,r),0);for(var a=r-1,o=0;o<t;o++){var s=nt(o,a),l=i[o];i[o]=i[s],i[s]=l}return i.slice(0,t)}function hn(e){return dn(e,1/0)}function fn(e,t,n){var i=0;return t=Qe(t,n),an(Xt(e,(function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index})),"value")}function pn(e,t){return function(n,i,r){var a=t?[[],[]]:{};return i=Qe(i,r),Yt(n,(function(t,r){var o=i(t,r,n);e(a,t,o)})),a}}const gn=pn((function(e,t,n){Y(e,n)?e[n].push(t):e[n]=[t]})),mn=pn((function(e,t,n){e[n]=t})),vn=pn((function(e,t,n){Y(e,n)?e[n]++:e[n]=1})),bn=pn((function(e,t,n){e[n?0:1].push(t)}),!0);function yn(e){return null==e?0:Dt(e)?e.length:se(e).length}function xn(e,t,n){return t in n}const wn=S((function(e,t){var n={},i=t[0];if(null==e)return n;B(i)?(t.length>1&&(i=Xe(i,t[1])),t=me(e)):(i=xn,t=St(t,!1,!1),e=Object(e));for(var r=0,a=t.length;r<a;r++){var o=t[r],s=e[o];i(s,o,e)&&(n[o]=s)}return n})),_n=S((function(e,t){var n,i=t[0];return B(i)?(i=Pt(i),t.length>1&&(n=t[1])):(t=Xt(St(t,!1,!1),String),i=function(e,n){return!nn(t,n)}),wn(e,i,n)}));function Dn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Sn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Dn(e,e.length-t)}function kn(e,t,n){return u.call(e,null==t||n?1:t)}function Cn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:kn(e,Math.max(0,e.length-t))}function An(e){return Zt(e,Boolean)}function Tn(e,t){return St(e,t,!1)}const En=S((function(e,t){return t=St(t,!0,!0),Zt(e,(function(e){return!nn(t,e)}))})),Nn=S((function(e,t){return En(e,t)}));function Mn(e,t,n,i){T(t)||(i=n,n=t,t=!1),null!=n&&(n=Qe(n,i));for(var r=[],a=[],o=0,s=ae(e);o<s;o++){var l=e[o],c=n?n(l,o,e):l;t&&!n?(o&&a===c||r.push(l),a=c):n?nn(a,c)||(a.push(c),r.push(l)):nn(r,l)||r.push(l)}return r}const Pn=S((function(e){return Mn(St(e,!0,!0))}));function Un(e){for(var t=[],n=arguments.length,i=0,r=ae(e);i<r;i++){var a=e[i];if(!nn(t,a)){var o;for(o=1;o<n&&nn(arguments[o],a);o++);o===n&&t.push(a)}}return t}function jn(e){for(var t=e&&sn(e,ae).length||0,n=Array(t),i=0;i<t;i++)n[i]=an(e,i);return n}const Fn=S(jn);function Rn(e,t){for(var n={},i=0,r=ae(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n}function On(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),a=0;a<i;a++,e+=n)r[a]=e;return r}function In(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n}function Ln(e,t){return e._chain?ue(t).chain():t}function Bn(e){return Yt(Me(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),Ln(this,n.apply(ue,e))}})),ue}Yt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Ln(this,n)}})),Yt(["concat","join","slice"],(function(e){var t=o[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Ln(this,e)}}));const Wn=ue;var zn=Bn(i);zn._=zn;const Vn=zn},7475:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>r,after:()=>jt,all:()=>en,allKeys:()=>me,any:()=>tn,assign:()=>je,before:()=>Ft,bind:()=>_t,bindAll:()=>kt,chain:()=>bt,chunk:()=>In,clone:()=>Ie,collect:()=>Xt,compact:()=>An,compose:()=>Ut,constant:()=>Z,contains:()=>nn,countBy:()=>vn,create:()=>Oe,debounce:()=>Nt,default:()=>Vn,defaults:()=>Fe,defer:()=>Tt,delay:()=>At,detect:()=>qt,difference:()=>En,drop:()=>kn,each:()=>Yt,escape:()=>ot,every:()=>en,extend:()=>Ue,extendOwn:()=>je,filter:()=>Zt,find:()=>qt,findIndex:()=>Lt,findKey:()=>Ot,findLastIndex:()=>Bt,findWhere:()=>Gt,first:()=>Sn,flatten:()=>Tn,foldl:()=>$t,foldr:()=>Qt,forEach:()=>Yt,functions:()=>Me,get:()=>Ve,groupBy:()=>gn,has:()=>He,head:()=>Sn,identity:()=>qe,include:()=>nn,includes:()=>nn,indexBy:()=>mn,indexOf:()=>Vt,initial:()=>Dn,inject:()=>$t,intersection:()=>Un,invert:()=>Ne,invoke:()=>rn,isArguments:()=>K,isArray:()=>G,isArrayBuffer:()=>O,isBoolean:()=>T,isDataView:()=>q,isDate:()=>U,isElement:()=>E,isEmpty:()=>le,isEqual:()=>ge,isError:()=>F,isFinite:()=>$,isFunction:()=>B,isMap:()=>Se,isMatch:()=>ce,isNaN:()=>Q,isNull:()=>C,isNumber:()=>P,isObject:()=>k,isRegExp:()=>j,isSet:()=>Ce,isString:()=>M,isSymbol:()=>R,isTypedArray:()=>re,isUndefined:()=>A,isWeakMap:()=>ke,isWeakSet:()=>Ae,iteratee:()=>$e,keys:()=>se,last:()=>Cn,lastIndexOf:()=>Ht,map:()=>Xt,mapObject:()=>Ze,matcher:()=>Ge,matches:()=>Ge,max:()=>sn,memoize:()=>Ct,methods:()=>Me,min:()=>ln,mixin:()=>Bn,negate:()=>Pt,noop:()=>Je,now:()=>it,object:()=>Rn,omit:()=>_n,once:()=>Rt,pairs:()=>Ee,partial:()=>wt,partition:()=>bn,pick:()=>wn,pluck:()=>an,property:()=>Ye,propertyOf:()=>et,random:()=>nt,range:()=>On,reduce:()=>$t,reduceRight:()=>Qt,reject:()=>Jt,rest:()=>kn,restArguments:()=>S,result:()=>gt,sample:()=>dn,select:()=>Zt,shuffle:()=>hn,size:()=>yn,some:()=>tn,sortBy:()=>fn,sortedIndex:()=>Wt,tail:()=>kn,take:()=>Sn,tap:()=>Le,template:()=>pt,templateSettings:()=>lt,throttle:()=>Et,times:()=>tt,toArray:()=>un,toPath:()=>Be,transpose:()=>jn,unescape:()=>st,union:()=>Pn,uniq:()=>Mn,unique:()=>Mn,uniqueId:()=>vt,unzip:()=>jn,values:()=>Te,where:()=>on,without:()=>Nn,wrap:()=>Mt,zip:()=>Fn});var i={};n.r(i),n.d(i,{VERSION:()=>r,after:()=>jt,all:()=>en,allKeys:()=>me,any:()=>tn,assign:()=>je,before:()=>Ft,bind:()=>_t,bindAll:()=>kt,chain:()=>bt,chunk:()=>In,clone:()=>Ie,collect:()=>Xt,compact:()=>An,compose:()=>Ut,constant:()=>Z,contains:()=>nn,countBy:()=>vn,create:()=>Oe,debounce:()=>Nt,default:()=>Wn,defaults:()=>Fe,defer:()=>Tt,delay:()=>At,detect:()=>qt,difference:()=>En,drop:()=>kn,each:()=>Yt,escape:()=>ot,every:()=>en,extend:()=>Ue,extendOwn:()=>je,filter:()=>Zt,find:()=>qt,findIndex:()=>Lt,findKey:()=>Ot,findLastIndex:()=>Bt,findWhere:()=>Gt,first:()=>Sn,flatten:()=>Tn,foldl:()=>$t,foldr:()=>Qt,forEach:()=>Yt,functions:()=>Me,get:()=>Ve,groupBy:()=>gn,has:()=>He,head:()=>Sn,identity:()=>qe,include:()=>nn,includes:()=>nn,indexBy:()=>mn,indexOf:()=>Vt,initial:()=>Dn,inject:()=>$t,intersection:()=>Un,invert:()=>Ne,invoke:()=>rn,isArguments:()=>K,isArray:()=>G,isArrayBuffer:()=>O,isBoolean:()=>T,isDataView:()=>q,isDate:()=>U,isElement:()=>E,isEmpty:()=>le,isEqual:()=>ge,isError:()=>F,isFinite:()=>$,isFunction:()=>B,isMap:()=>Se,isMatch:()=>ce,isNaN:()=>Q,isNull:()=>C,isNumber:()=>P,isObject:()=>k,isRegExp:()=>j,isSet:()=>Ce,isString:()=>M,isSymbol:()=>R,isTypedArray:()=>re,isUndefined:()=>A,isWeakMap:()=>ke,isWeakSet:()=>Ae,iteratee:()=>$e,keys:()=>se,last:()=>Cn,lastIndexOf:()=>Ht,map:()=>Xt,mapObject:()=>Ze,matcher:()=>Ge,matches:()=>Ge,max:()=>sn,memoize:()=>Ct,methods:()=>Me,min:()=>ln,mixin:()=>Bn,negate:()=>Pt,noop:()=>Je,now:()=>it,object:()=>Rn,omit:()=>_n,once:()=>Rt,pairs:()=>Ee,partial:()=>wt,partition:()=>bn,pick:()=>wn,pluck:()=>an,property:()=>Ye,propertyOf:()=>et,random:()=>nt,range:()=>On,reduce:()=>$t,reduceRight:()=>Qt,reject:()=>Jt,rest:()=>kn,restArguments:()=>S,result:()=>gt,sample:()=>dn,select:()=>Zt,shuffle:()=>hn,size:()=>yn,some:()=>tn,sortBy:()=>fn,sortedIndex:()=>Wt,tail:()=>kn,take:()=>Sn,tap:()=>Le,template:()=>pt,templateSettings:()=>lt,throttle:()=>Et,times:()=>tt,toArray:()=>un,toPath:()=>Be,transpose:()=>jn,unescape:()=>st,union:()=>Pn,uniq:()=>Mn,unique:()=>Mn,uniqueId:()=>vt,unzip:()=>jn,values:()=>Te,where:()=>on,without:()=>Nn,wrap:()=>Mt,zip:()=>Fn});var r="1.13.7",a="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,l="undefined"!==typeof Symbol?Symbol.prototype:null,c=o.push,u=o.slice,d=s.toString,h=s.hasOwnProperty,f="undefined"!==typeof ArrayBuffer,p="undefined"!==typeof DataView,g=Array.isArray,m=Object.keys,v=Object.create,b=f&&ArrayBuffer.isView,y=isNaN,x=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleStr
2ing"],D=Math.pow(2,53)-1;function S(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var a=Array(t+1);for(r=0;r<t;r++)a[r]=arguments[r];return a[t]=i,e.apply(this,a)}}function k(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function C(e){return null===e}function A(e){return void 0===e}function T(e){return!0===e||!1===e||"[object Boolean]"===d.call(e)}function E(e){return!(!e||1!==e.nodeType)}function N(e){var t="[object "+e+"]";return function(e){return d.call(e)===t}}const M=N("String"),P=N("Number"),U=N("Date"),j=N("RegExp"),F=N("Error"),R=N("Symbol"),O=N("ArrayBuffer");var I=N("Function"),L=a.document&&a.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof L&&(I=function(e){return"function"==typeof e||!1});const B=I,W=N("Object");var z=p&&(!/\[native code\]/.test(String(DataView))||W(new DataView(new ArrayBuffer(8)))),V="undefined"!==typeof Map&&W(new Map),H=N("DataView");const q=z?function(e){return null!=e&&B(e.getInt8)&&O(e.buffer)}:H,G=g||N("Array");function Y(e,t){return null!=e&&h.call(e,t)}var X=N("Arguments");!function(){X(arguments)||(X=function(e){return Y(e,"callee")})}();const K=X;function $(e){return!R(e)&&x(e)&&!isNaN(parseFloat(e))}function Q(e){return P(e)&&y(e)}function Z(e){return function(){return e}}function J(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=D}}function ee(e){return function(t){return null==t?void 0:t[e]}}const te=ee("byteLength"),ne=J(te);var ie=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const re=f?function(e){return b?b(e)&&!q(e):ne(e)&&ie.test(d.call(e))}:Z(!1),ae=ee("length");function oe(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=_.length,i=e.constructor,r=B(i)&&i.prototype||s,a="constructor";for(Y(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=_[n])in e&&e[a]!==r[a]&&!t.contains(a)&&t.push(a)}function se(e){if(!k(e))return[];if(m)return m(e);var t=[];for(var n in e)Y(e,n)&&t.push(n);return w&&oe(e,t),t}function le(e){if(null==e)return!0;var t=ae(e);return"number"==typeof t&&(G(e)||M(e)||K(e))?0===t:0===ae(se(e))}function ce(e,t){var n=se(t),i=n.length;if(null==e)return!i;for(var r=Object(e),a=0;a<i;a++){var o=n[a];if(t[o]!==r[o]||!(o in r))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function de(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=r,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};var he="[object DataView]";function fe(e,t,n,i){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&pe(e,t,n,i)}function pe(e,t,n,i){e instanceof ue&&(e=e._wrapped),t instanceof ue&&(t=t._wrapped);var r=d.call(e);if(r!==d.call(t))return!1;if(z&&"[object Object]"==r&&q(e)){if(!q(t))return!1;r=he}switch(r){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t);case"[object ArrayBuffer]":case he:return pe(de(e),de(t),n,i)}var a="[object Array]"===r;if(!a&&re(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(B(o)&&o instanceof o&&B(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}i=i||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return i[c]===t;if(n.push(e),i.push(t),a){if((c=e.length)!==t.length)return!1;for(;c--;)if(!fe(e[c],t[c],n,i))return!1}else{var u,h=se(e);if(c=h.length,se(t).length!==c)return!1;for(;c--;)if(!Y(t,u=h[c])||!fe(e[u],t[u],n,i))return!1}return n.pop(),i.pop(),!0}function ge(e,t){return fe(e,t)}function me(e){if(!k(e))return[];var t=[];for(var n in e)t.push(n);return w&&oe(e,t),t}function ve(e){var t=ae(e);return function(n){if(null==n)return!1;var i=me(n);if(ae(i))return!1;for(var r=0;r<t;r++)if(!B(n[e[r]]))return!1;return e!==_e||!B(n[be])}}var be="forEach",ye=["clear","delete"],xe=["get","has","set"],we=ye.concat(be,xe),_e=ye.concat(xe),De=["add"].concat(ye,be,"has");const Se=V?ve(we):N("Map"),ke=V?ve(_e):N("WeakMap"),Ce=V?ve(De):N("Set"),Ae=N("WeakSet");function Te(e){for(var t=se(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t=se(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i}function Ne(e){for(var t={},n=se(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Me(e){var t=[];
vendor: 12,480 bytes, line 2
2for(var n in e)B(e[n])&&t.push(n);return t.sort()}function Pe(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var a=arguments[r],o=e(a),s=o.length,l=0;l<s;l++){var c=o[l];t&&void 0!==n[c]||(n[c]=a[c])}return n}}const Ue=Pe(me),je=Pe(se),Fe=Pe(me,!0);function Re(e){if(!k(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Oe(e,t){var n=Re(e);return t&&je(n,t),n}function Ie(e){return k(e)?G(e)?e.slice():Ue({},e):e}function Le(e,t){return t(e),e}function Be(e){return G(e)?e:[e]}function We(e){return ue.toPath(e)}function ze(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Ve(e,t,n){var i=ze(e,We(t));return A(i)?n:i}function He(e,t){for(var n=(t=We(t)).length,i=0;i<n;i++){var r=t[i];if(!Y(e,r))return!1;e=e[r]}return!!n}function qe(e){return e}function Ge(e){return e=je({},e),function(t){return ce(t,e)}}function Ye(e){return e=We(e),function(t){return ze(t,e)}}function Xe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,a){return e.call(t,n,i,r,a)}}return function(){return e.apply(t,arguments)}}function Ke(e,t,n){return null==e?qe:B(e)?Xe(e,t,n):k(e)&&!G(e)?Ge(e):Ye(e)}function $e(e,t){return Ke(e,t,1/0)}function Qe(e,t,n){return ue.iteratee!==$e?ue.iteratee(e,t):Ke(e,t,n)}function Ze(e,t,n){t=Qe(t,n);for(var i=se(e),r=i.length,a={},o=0;o<r;o++){var s=i[o];a[s]=t(e[s],s,e)}return a}function Je(){}function et(e){return null==e?Je:function(t){return Ve(e,t)}}function tt(e,t,n){var i=Array(Math.max(0,e));t=Xe(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=Be,ue.iteratee=$e;const it=Date.now||function(){return(new Date).getTime()};function rt(e){var t=function(t){return e[t]},n="(?:"+se(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(r,t):e}}const at={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ot=rt(at),st=rt(Ne(at)),lt=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ct=/(.)^/,ut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},dt=/\\|'|\r|\n|\u2028|\u2029/g;function ht(e){return"\\"+ut[e]}var ft=/^\s*(\w|\$)+\s*$/;function pt(e,t,n){!t&&n&&(t=n),t=Fe({},t,ue.templateSettings);var i=RegExp([(t.escape||ct).source,(t.interpolate||ct).source,(t.evaluate||ct).source].join("|")+"|$","g"),r=0,a="__p+='";e.replace(i,(function(t,n,i,o,s){return a+=e.slice(r,s).replace(dt,ht),r=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?a+="'+\n((__t=("+i+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t})),a+="';\n";var o,s=t.variable;if(s){if(!ft.test(s))throw new Error("variable is not a bare identifier: "+s)}else a="with(obj||{}){\n"+a+"}\n",s="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{o=new Function(s,"_",a)}catch(c){throw c.source=a,c}var l=function(e){return o.call(this,e,ue)};return l.source="function("+s+"){\n"+a+"}",l}function gt(e,t,n){var i=(t=We(t)).length;if(!i)return B(n)?n.call(e):n;for(var r=0;r<i;r++){var a=null==e?void 0:e[t[r]];void 0===a&&(a=n,r=i),e=B(a)?a.call(e):a}return e}var mt=0;function vt(e){var t=++mt+"";return e?e+t:t}function bt(e){var t=ue(e);return t._chain=!0,t}function yt(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var a=Re(e.prototype),o=e.apply(a,r);return k(o)?o:a}var xt=S((function(e,t){var n=xt.placeholder,i=function(){for(var r=0,a=t.length,o=Array(a),s=0;s<a;s++)o[s]=t[s]===n?arguments[r++]:t[s];for(;r<arguments.length;)o.push(arguments[r++]);return yt(e,i,this,this,o)};return i}));xt.placeholder=ue;const wt=xt,_t=S((function(e,t,n){if(!B(e))throw new TypeError("Bind must be called on a function");var i=S((function(r){return yt(e,i,t,this,n.concat(r))}));return i})),Dt=J(ae);function St(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var r=i.length,a=0,o=ae(e);a<o;a++){var s=e[a];if(Dt(s)&&(G(s)||K(s)))if(t>1)St(s,t-1,n,i),r=i.length;else for(var l=0,c=s.length;l<c;)i[r++]=s[l++];else n||(i[r++]=s)}return i}const kt=S((function(e,t){var n=(t=St(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=_t(e[i],e)}return e}));function Ct(e,t){var n=function(i){var r=n.cache,a=""+(t?t.apply(this,arguments):i);return Y(r,a)||(r[a]=e.apply(this,arguments)),r[a]};return n.cache={},n}const At=S((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Tt=wt(At,ue,1);function Et(e,t,n){var i,r,a,o,s=0;n||(n={});var l=function(){s=!1===n.leading?0:it(),i=null,o=e.apply(r,a),i||(r=a=null)},c=function(){var c=it();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=this,a=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),s=c,o=e.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(l,u)),o};return c.cancel=function(){clearTimeout(i),s=0,i=r=a=null},c}function Nt(e,t,n){var i,r,a,o,s,l=function(){var c=it()-r;t>c?i=setTimeout(l,t-c):(i=null,n||(o=e.apply(s,a)),i||(a=s=null))},c=S((function(c){return s=this,a=c,r=it(),i||(i=setTimeout(l,t),n&&(o=e.apply(s,a))),o}));return c.cancel=function(){clearTimeout(i),i=a=s=null},c}function Mt(e,t){return wt(t,e)}function Pt(e){return function(){return!e.apply(this,arguments)}}function Ut(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}}function jt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Ft(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const Rt=wt(Ft,2);function Ot(e,t,n){t=Qe(t,n);for(var i,r=se(e),a=0,o=r.length;a<o;a++)if(t(e[i=r[a]],i,e))return i}function It(e){return function(t,n,i){n=Qe(n,i);for(var r=ae(t),a=e>0?0:r-1;a>=0&&a<r;a+=e)if(n(t[a],a,t))return a;return-1}}const Lt=It(1),Bt=It(-1);function Wt(e,t,n,i){for(var r=(n=Qe(n,i,1))(t),a=0,o=ae(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<r?a=s+1:o=s}return a}function zt(e,t,n){return function(i,r,a){var o=0,s=ae(i);if("number"==typeof a)e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return i[a=n(i,r)]===r?a:-1;if(r!==r)return(a=t(u.call(i,o,s),Q))>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(i[a]===r)return a;return-1}}const Vt=zt(1,Lt,Wt),Ht=zt(-1,Bt);function qt(e,t,n){var i=(Dt(e)?Lt:Ot)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Gt(e,t){return qt(e,Ge(t))}function Yt(e,t,n){var i,r;if(t=Xe(t,n),Dt(e))for(i=0,r=e.length;i<r;i++)t(e[i],i,e);else{var a=se(e);for(i=0,r=a.length;i<r;i++)t(e[a[i]],a[i],e)}return e}function Xt(e,t,n){t=Qe(t,n);for(var i=!Dt(e)&&se(e),r=(i||e).length,a=Array(r),o=0;o<r;o++){var s=i?i[o]:o;a[o]=t(e[s],s,e)}return a}function Kt(e){return function(t,n,i,r){var a=arguments.length>=3;return function(t,n,i,r){var a=!Dt(t)&&se(t),o=(a||t).length,s=e>0?0:o-1;for(r||(i=t[a?a[s]:s],s+=e);s>=0&&s<o;s+=e){var l=a?a[s]:s;i=n(i,t[l],l,t)}return i}(t,Xe(n,r,4),i,a)}}const $t=Kt(1),Qt=Kt(-1);function Zt(e,t,n){var i=[];return t=Qe(t,n),Yt(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i}function Jt(e,t,n){return Zt(e,Pt(Qe(t)),n)}function en(e,t,n){t=Qe(t,n);for(var i=!Dt(e)&&se(e),r=(i||e).length,a=0;a<r;a++){var o=i?i[a]:a;if(!t(e[o],o,e))return!1}return!0}function tn(e,t,n){t=Qe(t,n);for(var i=!Dt(e)&&se(e),r=(i||e).length,a=0;a<r;a++){var o=i?i[a]:a;if(t(e[o],o,e))return!0}return!1}function nn(e,t,n,i){return Dt(e)||(e=Te(e)),("number"!=typeof n||i)&&(n=0),Vt(e,t,n)>=0}const rn=S((function(e,t,n){var i,r;return B(t)?r=t:(t=We(t),i=t.slice(0,-1),t=t[t.length-1]),Xt(e,(function(e){var a=r;if(!a){if(i&&i.length&&(e=ze(e,i)),null==e)return;a=e[t]}return null==a?a:a.apply(e,n)}))}));function an(e,t){return Xt(e,Ye(t))}function on(e,t){return Zt(e,Ge(t))}function sn(e,t,n){var i,r,a=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=Dt(e)?e:Te(e)).length;s<l;s++)null!=(i=e[s])&&i>a&&(a=i);else t=Qe(t,n),Yt(e,(function(e,n,i){((r=t(e,n,i))>o||r===-1/0&&a===-1/0)&&(a=e,o=r)}));return a}function ln(e,t,n){var i,r,a=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=Dt(e)?e:Te(e)).length;s<l;s++)null!=(i=e[s])&&i<a&&(a=i);else t=Qe(t,n),Yt(e,(function(e,n,i){((r=t(e,n,i))<o||r===1/0&&a===1/0)&&(a=e,o=r)}));return a}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(e){return e?G(e)?u.call(e):M(e)?e.match(cn):Dt(e)?Xt(e,qe):Te(e):[]}function dn(e,t,n){if(null==t||n)return Dt(e)||(e=Te(e)),e[nt(e.length-1)];var i=un(e),r=ae(i);t=Math.max(Math.min(t,r),0);for(var a=r-1,o=0;o<t;o++){var s=nt(o,a),l=i[o];i[o]=i[s],i[s]=l}return i.slice(0,t)}function hn(e){return dn(e,1/0)}function fn(e,t,n){var i=0;return t=Qe(t,n),an(Xt(e,(function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}})).sort((function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index})),"value")}function pn(e,t){return function(n,i,r){var a=t?[[],[]]:{};return i=Qe(i,r),Yt(n,(function(t,r){var o=i(t,r,n);e(a,t,o)})),a}}const gn=pn((function(e,t,n){Y(e,n)?e[n].push(t):e[n]=[t]})),mn=pn((function(e,t,n){e[n]=t})),vn=pn((function(e,t,n){Y(e,n)?e[n]++:e[n]=1})),bn=pn((function(e,t,n){e[n?0:1].push(t)}),!0);function yn(e){return null==e?0:Dt(e)?e.length:se(e).length}function xn(e,t,n){return t in n}const wn=S((function(e,t){var n={},i=t[0];if(null==e)return n;B(i)?(t.length>1&&(i=Xe(i,t[1])),t=me(e)):(i=xn,t=St(t,!1,!1),e=Object(e));for(var r=0,a=t.length;r<a;r++){var o=t[r],s=e[o];i(s,o,e)&&(n[o]=s)}return n})),_n=S((function(e,t){var n,i=t[0];return B(i)?(i=Pt(i),t.length>1&&(n=t[1])):(t=Xt(St(t,!1,!1),String),i=function(e,n){return!nn(t,n)}),wn(e,i,n)}));function Dn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Sn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Dn(e,e.length-t)}function kn(e,t,n){return u.call(e,null==t||n?1:t)}function Cn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:kn(e,Math.max(0,e.length-t))}function An(e){return Zt(e,Boolean)}function Tn(e,t){return St(e,t,!1)}const En=S((function(e,t){return t=St(t,!0,!0),Zt(e,(function(e){return!nn(t,e)}))})),Nn=S((function(e,t){return En(e,t)}));function Mn(e,t,n,i){T(t)||(i=n,n=t,t=!1),null!=n&&(n=Qe(n,i));for(var r=[],a=[],o=0,s=ae(e);o<s;o++){var l=e[o],c=n?n(l,o,e):l;t&&!n?(o&&a===c||r.push(l),a=c):n?nn(a,c)||(a.push(c),r.push(l)):nn(r,l)||r.push(l)}return r}const Pn=S((function(e){return Mn(St(e,!0,!0))}));function Un(e){for(var t=[],n=arguments.length,i=0,r=ae(e);i<r;i++){var a=e[i];if(!nn(t,a)){var o;for(o=1;o<n&&nn(arguments[o],a);o++);o===n&&t.push(a)}}return t}function jn(e){for(var t=e&&sn(e,ae).length||0,n=Array(t),i=0;i<t;i++)n[i]=an(e,i);return n}const Fn=S(jn);function Rn(e,t){for(var n={},i=0,r=ae(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n}function On(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),a=0;a<i;a++,e+=n)r[a]=e;return r}function In(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(u.call(e,i,i+=t));return n}function Ln(e,t){return e._chain?ue(t).chain():t}function Bn(e){return Yt(Me(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),Ln(this,n.apply(ue,e))}})),ue}Yt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Ln(this,n)}})),Yt(["concat","join","slice"],(function(e){var t=o[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Ln(this,e)}}));const Wn=ue;var zn=Bn(i);zn._=zn;const Vn=zn}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(i,r){if(1&r&&(i=this(i)),8&r)return i;
2if("object"===typeof i&&i){if(4&r&&i.__esModule)return i;if(16&r&&"function"===typeof i.then)return i}var a=Object.create(null);n.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&i;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>i[e]));return o.default=()=>i,n.d(a,o),a}})(),n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,i)=>(n.f[i](e,t),t)),[])),n.u=e=>"static/js/"+e+".10711c3a.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ai-assess:";n.l=(i,r,a,o)=>{if(e[i])e[i].push(r);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==i||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=i),e[i]=[r];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var r=e[i];if(delete e[i],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{var e={792:0};n.f.j=(t,i)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var a=new Promise(((n,i)=>r=e[t]=[n,i]));i.push(r[2]=a);var o=n.p+n.u(t),s=new Error;n.l(o,(i=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=(t,i)=>{var r,a,o=i[0],s=i[1],l=i[2],c=0;if(o.some((t=>0!==e[t]))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(l)l(n)}for(t&&t(i);c<o.length;c++)a=o[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},i=self.webpackChunkai_assess=self.webpackChunkai_assess||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),n.nc=void 0;var i={};(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>sT,hasStandardBrowserEnv:()=>cT,hasStandardBrowserWebWorkerEnv:()=>uT,navigator:()=>lT,origin:()=>dT});var t={};n.r(t),n.d(t,{Button:()=>NK,CaptionLabel:()=>MK,Chevron:()=>PK,Day:()=>jK,DayButton:()=>RK,Dropdown:()=>IK,DropdownNav:()=>LK,Footer:()=>BK,Month:()=>zK,MonthCaption:()=>HK,MonthGrid:()=>qK,Months:()=>GK,MonthsDropdown:()=>KK,Nav:()=>QK,NextMonthButton:()=>ZK,Option:()=>JK,PreviousMonthButton:()=>e$,Root:()=>n$,Select:()=>i$,Week:()=>a$,WeekNumber:()=>c$,WeekNumberHeader:()=>u$,Weekday:()=>o$,Weekdays:()=>s$,Weeks:()=>d$,YearsDropdown:()=>h$});var i={};n.r(i),n.d(i,{formatCaption:()=>f$,formatDay:()=>g$,formatMonthCaption:()=>p$,formatMonthDropdown:()=>m$,formatWeekNumber:()=>b$,formatWeekNumberHeader:()=>y$,formatWeekdayName:()=>v$,formatYearCaption:()=>w$,formatYearDropdown:()=>x$});var r={};n.r(r),n.d(r,{labelCaption:()=>k$,labelDay:()=>D$,labelDayButton:()=>_$,labelGrid:()=>S$,labelGridcell:()=>C$,labelMonthDropdown:()=>A$,labelNav:()=>T$,labelNext:()=>N$,labelPrevious:()=>M$,labelWeekNumber:()=>U$,labelWeekNumberHeader:()=>j$,labelWeekday:()=>P$,labelYearDropdown:()=>F$});var a,o=n(5043),s=n.t(o,2),l=n(4391),c=n(7950),u=n.t(c,2);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},d.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const h="popstate";function f(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function p(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function g(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,n,i){return void 0===n&&(n=null),d({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?b(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function v(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(t+="#"===i.charAt(0)?i:"#"+i),t}function b(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function y(e,t,n,i){void 0===i&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,l=a.Pop,c=null,u=p();function p(){return(s.state||{idx:null}).idx}function b(){l=a.Pop;let e=p(),t=null==e?null:e-u;u=e,c&&c({action:l,location:x.location,delta:t})}function y(e){let t="null"!==r.location.origin?r.location.origin:r.location.href,n="string"===typeof e?e:v(e);return n=n.replace(/ $/,"%20"),f(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==u&&(u=0,s.replaceState(d({},s.state,{idx:u}),""));let x={get action(){return l},get location(){return e(r,s)},listen(e){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(h,b),c=e,()=>{r.removeEventListener(h,b),c=null}},createHref:e=>t(r,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=a.Push;let i=m(x.location,e,t);n&&n(i,e),u=p()+1;let d=g(i,u),h=x.createHref(i);try{s.pushState(d,"",h)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;r.location.assign(h)}o&&c&&c({action:l,location:x.location,delta:1})},replace:function(e,t){l=a.Replace;let i=m(x.location,e,t);n&&n(i,e),u=p();let r=g(i,u),d=x.createHref(i);s.replaceState(r,"",d),o&&c&&c({action:l,location:x.location,delta:0})},go:e=>s.go(e)};return x}var x;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(x||(x={}));
2new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,n){return void 0===n&&(n="/"),_(e,t,n,!1)}function _(e,t,n,i){let r=R(("string"===typeof t?b(t):t).pathname||"/",n);if(null==r)return null;let a=D(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let s=0;null==o&&s<a.length;++s){let e=F(r);o=U(a[s],e,i)}return o}function D(e,t,n,i){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i="");let r=(e,r,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};o.relativePath.startsWith("/")&&(f(o.relativePath.startsWith(i),'Absolute route path "'+o.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(i.length));let s=W([i,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),D(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:P(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let i of S(e.path))r(e,t,i);else r(e,t)})),t}function S(e){let t=e.split("/");if(0===t.length)return[];let[n,...i]=t,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===i.length)return r?[a,""]:[a];let o=S(i.join("/")),s=[];return s.push(...o.map((e=>""===e?a:[a,e].join("/")))),r&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const k=/^:[\w-]+$/,C=3,A=2,T=1,E=10,N=-2,M=e=>"*"===e;function P(e,t){let n=e.split("/"),i=n.length;return n.some(M)&&(i+=N),t&&(i+=A),n.filter((e=>!M(e))).reduce(((e,t)=>e+(k.test(t)?C:""===t?T:E)),i)}function U(e,t,n){void 0===n&&(n=!1);let{routesMeta:i}=e,r={},a="/",o=[];for(let s=0;s<i.length;++s){let e=i[s],l=s===i.length-1,c="/"===a?t:t.slice(a.length)||"/",u=j({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!i[i.length-1].route.index&&(u=j({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(r,u.params),o.push({params:r,pathname:W([a,u.pathname]),pathnameBase:z(W([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=W([a,u.pathnameBase]))}return o}function j(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);p("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(i.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(i.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");let a=new RegExp(r,t?void 0:"i");return[a,i]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let a=r[0],o=a.replace(/(.)\/+$/,"$1"),s=r.slice(1),l=i.reduce(((e,t,n)=>{let{paramName:i,isOptional:r}=t;if("*"===i){let e=s[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[i]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:a,pathnameBase:o,pattern:e}}function F(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function O(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function L(e,t){let n=I(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function B(e,t,n,i){let r;void 0===i&&(i=!1),"string"===typeof e?r=b(e):(r=d({},e),f(!r.pathname||!r.pathname.includes("?"),O("?","pathname","search",r)),f(!r.pathname||!r.pathname.includes("#"),O("#","pathname","hash",r)),f(!r.search||!r.search.includes("#"),O("#","search","hash",r)));let a,o=""===e||""===r.pathname,s=o?"/":r.pathname;if(null==s)a=n;else{let e=t.length-1;if(!i&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:r=""}="string"===typeof e?b(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:V(i),hash:H(r)}}(r,a),c=s&&"/"!==s&&s.endsWith("/"),u=(o||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const W=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",H=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function q(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const G=["post","put","patch","delete"],Y=(new Set(G),["get",...G]);new Set(Y),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},X.apply(this,arguments)}const K=o.createContext(null);const $=o.createContext(null);const Q=o.createContext(null);const Z=o.createContext(null);const J=o.createContext({outlet:null,matches:[],isDataRoute:!1});const ee=o.createContext(null);function te(){return null!=o.useContext(Z)}function ne(){return te()||f(!1),o.useContext(Z).location}function ie(e){o.useContext(Q).static||o.useLayoutEffect(e)}function re(){let{isDataRoute:e}=o.useContext(J);return e?function(){let{router:e}
2=pe(he.UseNavigateStable),t=me(fe.UseNavigateStable),n=o.useRef(!1);ie((()=>{n.current=!0}));let i=o.useCallback((function(i,r){void 0===r&&(r={}),n.current&&("number"===typeof i?e.navigate(i):e.navigate(i,X({fromRouteId:t},r)))}),[e,t]);return i}():function(){te()||f(!1);let e=o.useContext(K),{basename:t,future:n,navigator:i}=o.useContext(Q),{matches:r}=o.useContext(J),{pathname:a}=ne(),s=JSON.stringify(L(r,n.v7_relativeSplatPath)),l=o.useRef(!1);ie((()=>{l.current=!0}));let c=o.useCallback((function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"===typeof n)return void i.go(n);let o=B(n,JSON.parse(s),a,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:W([t,o.pathname])),(r.replace?i.replace:i.push)(o,r.state,r)}),[t,i,s,a,e]);return c}()}function ae(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=o.useContext(Q),{matches:r}=o.useContext(J),{pathname:a}=ne(),s=JSON.stringify(L(r,i.v7_relativeSplatPath));return o.useMemo((()=>B(e,JSON.parse(s),a,"path"===n)),[e,s,a,n])}function oe(e,t,n,i){te()||f(!1);let{navigator:r}=o.useContext(Q),{matches:s}=o.useContext(J),l=s[s.length-1],c=l?l.params:{},u=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,h=ne();if(t){var p;let e="string"===typeof t?b(t):t;"/"===u||(null==(p=e.pathname)?void 0:p.startsWith(u))||f(!1),d=e}else d=h;let g=d.pathname||"/",m=g;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=w(e,{pathname:m});let y=de(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:W([u,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:W([u,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,i);return t&&y?o.createElement(Z.Provider,{value:{location:X({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:a.Pop}},y):y}function se(){let e=function(){var e;let t=o.useContext(ee),n=ge(fe.UseRouteError),i=me(fe.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[i]}(),t=q(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:r},n):null,null)}const le=o.createElement(se,null);class ce extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(J.Provider,{value:this.props.routeContext},o.createElement(ee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ue(e){let{routeContext:t,match:n,children:i}=e,r=o.useContext(K);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(J.Provider,{value:t},i)}function de(e,t,n,i){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=i)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,l=null==(r=n)?void 0:r.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||f(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let o=0;o<s.length;o++){let e=s[o];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(u=o),e.route.id){let{loaderData:t,errors:i}=n,r=e.route.loader&&void 0===t[e.route.id]&&(!i||void 0===i[e.route.id]);if(e.route.lazy||r){c=!0,s=u>=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,i,r)=>{let a,d=!1,h=null,f=null;var p;n&&(a=l&&i.route.id?l[i.route.id]:void 0,h=i.route.errorElement||le,c&&(u<0&&0===r?(p="route-fallback",!1||ve[p]||(ve[p]=!0),d=!0,f=null):u===r&&(d=!0,f=i.route.hydrateFallbackElement||null)));let g=t.concat(s.slice(0,r+1)),m=()=>{let t;return t=a?h:d?f:i.route.Component?o.createElement(i.route.Component,null):i.route.element?i.route.element:e,o.createElement(ue,{match:i,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?o.createElement(ce,{location:n.location,revalidation:n.revalidation,component:h,error:a,children:m(),routeC
2ontext:{outlet:null,matches:g,isDataRoute:!0}}):m()}),null)}var he=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(he||{}),fe=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fe||{});function pe(e){let t=o.useContext(K);return t||f(!1),t}function ge(e){let t=o.useContext($);return t||f(!1),t}function me(e){let t=function(){let e=o.useContext(J);return e||f(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||f(!1),n.route.id}const ve={};const be={};const ye=(e,t,n)=>function(e,t){be[t]||(be[t]=!0,console.warn(t))}(0,"\u26a0\ufe0f React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+n+".");function xe(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&ye("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&t.v7_relativeSplatPath||ye("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&ye("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&ye("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&ye("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&ye("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}s.startTransition;function we(e){f(!1)}function _e(e){let{basename:t="/",children:n=null,location:i,navigationType:r=a.Pop,navigator:s,static:l=!1,future:c}=e;te()&&f(!1);let u=t.replace(/^\/*/,"/"),d=o.useMemo((()=>({basename:u,navigator:s,static:l,future:X({v7_relativeSplatPath:!1},c)})),[u,c,s,l]);"string"===typeof i&&(i=b(i));let{pathname:h="/",search:p="",hash:g="",state:m=null,key:v="default"}=i,y=o.useMemo((()=>{let e=R(h,u);return null==e?null:{location:{pathname:e,search:p,hash:g,state:m,key:v},navigationType:r}}),[u,h,p,g,m,v,r]);return null==y?null:o.createElement(Q.Provider,{value:d},o.createElement(Z.Provider,{children:n,value:y}))}function De(e){let{children:t,location:n}=e;return oe(Se(t),n)}new Promise((()=>{}));o.Component;function Se(e,t){void 0===t&&(t=[]);let n=[];return o.Children.forEach(e,((e,i)=>{if(!o.isValidElement(e))return;let r=[...t,i];if(e.type===o.Fragment)return void n.push.apply(n,Se(e.props.children,r));e.type!==we&&f(!1),e.props.index&&e.props.children&&f(!1);let a={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Se(e.props.children,r)),n.push(a)})),n}function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ke.apply(this,arguments)}function Ce(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Ae=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Te=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(eQ){}const Ee=o.createContext({isTransitioning:!1});new Map;const Ne=s.startTransition;u.flushSync,s.useId;function Me(e){let{basename:t,children:n,future:i,window:r}=e,a=o.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),y((function(e,t){let{pathname:n,search:i,hash:r}=e.location;return m("",{pathname:n,search:i,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:v(t)}),null,e)}({window:r,v5Compat:!0}));let s=a.current,[l,c]=o.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},d=o.useCallback((e=>{u&&Ne?Ne((()=>c(e))):c(e)}),[c,u]);return o.useLayoutEffect((()=>s.listen(d)),[s,d]),o.useEffect((()=>xe(i)),[i]),o.createElement(_e,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:i})}const Pe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Ue=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=o.forwardRef((function(e,t){let n,{onClick:i,relative:r,reloadDocument:a,replace:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}
2=e,p=Ce(e,Ae),{basename:g}=o.useContext(Q),m=!1;if("string"===typeof u&&Ue.test(u)&&(n=u,Pe))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=R(t.pathname,g);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:m=!0}catch(eQ){}let b=function(e,t){let{relative:n}=void 0===t?{}:t;te()||f(!1);let{basename:i,navigator:r}=o.useContext(Q),{hash:a,pathname:s,search:l}=ae(e,{relative:n}),c=s;return"/"!==i&&(c="/"===s?i:W([i,s])),r.createHref({pathname:c,search:l,hash:a})}(u,{relative:r}),y=function(e,t){let{target:n,replace:i,state:r,preventScrollReset:a,relative:s,viewTransition:l}=void 0===t?{}:t,c=re(),u=ne(),d=ae(e,{relative:s});return o.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==i?i:v(u)===v(d);c(e,{replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l})}}),[u,c,d,i,r,n,e,a,s,l])}(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:r,viewTransition:h});return o.createElement("a",ke({},p,{href:n||b,onClick:m||a?i:function(e){i&&i(e),e.defaultPrevented||y(e)},ref:t,target:c}))}));const Fe=o.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:i=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:c,children:u}=e,d=Ce(e,Te),h=ae(l,{relative:d.relative}),p=ne(),g=o.useContext($),{navigator:m,basename:v}=o.useContext(Q),b=null!=g&&function(e,t){void 0===t&&(t={});let n=o.useContext(Ee);null==n&&f(!1);let{basename:i}=Ie(Re.useViewTransitionState),r=ae(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=R(n.currentLocation.pathname,i)||n.currentLocation.pathname,s=R(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=j(r.pathname,s)||null!=j(r.pathname,a)}(h)&&!0===c,y=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,x=p.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(x=x.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&v&&(w=R(w,v)||w);const _="/"!==y&&y.endsWith("/")?y.length-1:y.length;let D,S=x===y||!a&&x.startsWith(y)&&"/"===x.charAt(_),k=null!=w&&(w===y||!a&&w.startsWith(y)&&"/"===w.charAt(y.length)),C={isActive:S,isPending:k,isTransitioning:b},A=S?n:void 0;D="function"===typeof r?r(C):[r,S?"active":null,k?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let T="function"===typeof s?s(C):s;return o.createElement(je,ke({},d,{"aria-current":A,className:D,ref:t,style:T,to:l,viewTransition:c}),"function"===typeof u?u(C):u)}));var Re,Oe;function Ie(e){let t=o.useContext(K);return t||f(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Re||(Re={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Oe||(Oe={}));var Le=n(579);const Be=(0,o.createContext)(void 0),We="bv.language",ze={en:{"Welcome back":"Welcome back",Logout:"Logout",Dashboard:"Dashboard",Assessments:"Assessments",Documents:"Documents",Admin:"Admin","Support Ticket":"Support Ticket",Settings:"Settings","Aim higher with the help of AI":"Aim higher with the help of AI","Change language":"Change language","Select language":"Select language",English:"English",French:"French",Cancel:"Cancel",Save:"Save",Add:"Add",Edit:"Edit",Upload:"Upload",Delete:"Delete",Download:"Download",Submit:"Submit",Back:"Back","Back to Assessments":"Back to Assessments",Interviewees:"Interviewees",Name:"Name",Role:"Role",Type:"Type",Interview:"Interview","Files / Transcript":"Files / Transcript",Actions:"Actions","Not uploaded":"Not uploaded","No transcript available.":"No transcript available.","Choose recording mode":"Choose recording mode","Mic only":"Mic only","Meeting audio + Mic":"Meeting audio + Mic",Transcript:"Transcript","AI Policies & Guidelines":"AI Policies & Guidelines","AI Readiness Assessment":"AI Readiness Assessment","AI Workflow Assessment":"AI Workflow Assessment","Download interview sheets and reference materials":"Download interview sheets and reference materials","Not authorized. Please log in.":"Not authorized. Please log in.","Failed to fetch assessments.":"Failed to fetch assessments.","Failed to create assessment.":"Failed to create assessment.","common.cancel":"Cancel","common.select":"Select","form.companyName":"Company Name","form.address1":"Address line 1","form.address2":"Address line 2","form.city":"City","form.stateProv":"State / Province","form.country":"Country","form.vertical":"Vertical","form.keyContact":"Key Contact","form.position":"Position","form.contactEmail":"Contact Email","form.contactPhone":"Contact Phone","Create Assessment":"Create Assessment","Active Assessments":"Active Assessments","Needs Attention":"Needs Attention","No assessments found.":"No assessments found.","assessments.manageAllCompanyAssessments":"Manage all company assessments","assessments.deleteAssessment":"Delete Assessment","assessments.deleteConfirmPrefix":"Are you sure you want to delete the assessment for","assessments.deleteConfirmSuffix":"? This action cannot be undone.","asse
2ssments.thisCompany":"this company","assessments.selectNewPlanToContinue":"Select a new plan to continue:","assessments.allRightsReserved":"All Rights Reserved","assessments.companyNameRequired":"Company Name is required.","assessments.missingAccountInformation":"Missing account information.","assessments.unableToValidateSubscription":"Unable to validate subscription.","assessments.unableToStartCheckout":"Unable to start checkout. Please try again later.","assessments.failedToCreateCheckoutSession":"Failed to create checkout session.","assessments.failedToSaveAssessment":"Failed to save assessment.","assessments.notAuthorized":"Not authorized.","assessments.missingAssessmentId":"Missing assessment id.","assessments.failedToDeleteAssessment":"Failed to delete assessment.","status.active":"Active","status.completed":"Completed","status.aiWorkflowCompleted":"AI Workflow Completed","status.aiPoliciesCompleted":"AI Policies Completed",Untitled:"Untitled","dashboard.activeAssessments":"Active Assessments","dashboard.completed":"Completed Assessments","dashboard.total":"Total Assessments","dashboard.currentlyInProgress":"Currently in progress","dashboard.allTime":"All time","dashboard.allAssessments":"All assessments","dashboard.checking":"Checking...","dashboard.newAssessment":"New Assessment","dashboard.createNewAssessment":"Create New Assessment","dashboard.subscriptionRequired":"Subscription Required","dashboard.subscriptionInfo":"You need an active subscription before you can create a new assessment.","dashboard.selectPlan":"Select a plan to continue:","dashboard.startingCheckout":"Starting checkout...","dashboard.select":"Select","dashboard.complete":"complete","dashboard.interviewee":"Interviewee","dashboard.missingFiles":"missing files","dashboard.aimHigher":"Aim higher with the help of AI","dashboard.title":"Dashboard","dashboard.activeAssessmentsLabel":"Active Assessments","dashboard.completedAssessmentsLabel":"Completed Assessments","dashboard.needsAttention":"Needs Attention","dashboard.viewAll":"View all","dashboard.noAssessmentsFound":"No assessments found.","Processing\u2026":"Processing\u2026","Processing\u2026 This may take a few minutes":"Processing\u2026 This may take a few minutes","Overall Progress":"Overall Progress","completed with transcripts":"completed with transcripts","Document ready for download":"Document ready for download","All interviews complete":"All interviews complete","Complete all interviews & upload transcripts first":"Complete all interviews & upload transcripts first","Ready to generate":"Ready to generate","At least 1 interview with transcript required":"At least 1 interview with transcript required","interviewee(s)":"interviewee(s)","Delete Document":"Delete Document","assessment.deleteDocumentConfirmPrefix":"Are you sure you want to delete the","assessment.deleteDocumentConfirmSuffix":"document? This action cannot be undone.","Edit Interviewee":"Edit Interviewee",Yes:"Yes",No:"No",Notice:"Notice",Notification:"Notification","Action failed":"Action failed","Unable to complete the action.":"Unable to complete the action.","Record only your microphone, or include meeting/system audio by sharing a tab/window with system audio enabled.":"Record only your microphone, or include meeting/system audio by sharing a tab/window with system audio enabled.","Are you sure you want to proceed? This action cannot be undone.":"Are you sure you want to proceed? This action cannot be undone.","Generating document\u2026 please wait.":"Generating document\u2026 please wait.",Elapsed:"Elapsed","Add Interviewees":"Add Interviewees","Add Interviewee":"Add Interviewee","Missing fields":"Missing fields","Name and Position are required.":"Name and Position are required.","Invalid file":"Invalid file","Please upload a CSV file.":"Please upload a CSV file.","Upload CSV":"Upload CSV","CSV format: Name, Role, Type, Email, Phone (one per row). First row can be a header.":"CSV format: Name, Role, Type, Email, Phone (one per row). First row can be a header.","Choose CSV file":"Choose CSV file","interviewee(s) found":"interviewee(s) found","Submit Support Ticket":"Submit Support Ticket",Company:"Company",Plan:"Plan","Contact Name":"Contact Name",Email:"Email",Phone:"Phone","Category *":"Category *","Priority *":"Priority *","Subject *":"Subject *",Description:"Description","Select category":"Select category","Select priority":"Select priority","Technical Issue":"Technical Issue","Billing / Account":"Billing / Account","Feature Request":"Feature Request","Assessment Help":"Assessment Help",Other:"Other",Low:"Low",Medium:"Medium",High:"High",Urgent:"Urgent","Brief summary of your issue":"Brief summary of your issue","Provide details about your issue, including steps to reproduce if applicable...":"Provide details about your issue, including steps to reproduce if applicable...","Submit Ticket":"Submit Ticket","Please fill in all required fields":"Please fill in all required fields","Failed to submit ticket.":"Failed to submit ticket.","Support ticket submitted":"Support ticket submitted","support.ticketSubmittedPrefix":"Ticket for","support.ticketSubmittedSuffix":"has been sent. Request submitted.","Submit failed":"Submit failed","Could not submit support ticket.":"Could not submit support ticket.","settings.subtitle":"Configure branding, language, subscription, and billing preferences.","Account Settings":"Account Settings","Update your contact information and password.":"Update your contact information and password.","Full Name":"Full Name","Enter your full name":"Enter your full name","Enter your phone number":"Enter your phone number","New Password":"New Password","Leave blank to keep current":"Leave blank to keep current","Confirm Password":"Confirm Password","Confirm new password":"Confirm new password","White Label":"White Label","Your company name and logo appear on all generated documents.":"Your company name and logo appear on all generated documents.","Enter your company name":"Enter your company name","Company Logo":"Company Logo","Click to upload logo":"Click to upload logo","PNG, JPG, SVG up to 2MB":"PNG, JPG, SVG up to 2MB","Document Header Preview":"Document Header Preview","Your Company Name":"Your Company Name",Language:"Language","Select the language for generated output documents and reports.":"Select the language for generated output documents and reports.","Output Language":"Output Language","This determines the language used in AI Readiness Assessments and Policy documents.":"This determines the language used in AI Readiness Assessments and Policy documents.",Subscription:"Subscription","Billed quarterly at":"Billed quarterly at","Pause Subscription":"Pause Subscription","Quarterly Invoices":"Quarterly Invoices","Loading upcoming invoices...":"Loading upcoming invoices...",Paid:"Paid",Upcoming:"Upcoming","No upcoming invoices found.":"No upcoming invoices found.","Upgrade to Pro":"Upgrade to Pro","settings.upgradeCopy":"You've been active for 6+ months and are approaching your assessment limit. Upgrade to Pro for 3 assessments per month at $500/assessment.","months remaining":"months remaining","Upgrade to":"Upgrade to","subscription.enterpriseUpgradeCopy":"You're exceeding 3 assessments per month. Upgrade to Enterprise for unlimited assessments and priority support.",Billing:"Billing","Manage your payment method and billing details.":"Manage your payment method and billing details.","Billing Details":"Billing Details","Next billing":"Next billing",Amount:"Amount","Open Billing Portal":"Open Billing Portal","Saving...":"Saving...","Save Settings":"Save Settings","Account Settings Upd
2ated":"Account Settings Updated","Your account details have been saved successfully.":"Your account details have been saved successfully.",Done:"Done","Please contact [email protected] to pause your account and payments.":"Please contact [email protected] to pause your account and payments.","Invoice load failed":"Invoice load failed","Unable to load invoices.":"Unable to load invoices.","Could not load upcoming invoices.":"Could not load upcoming invoices.","Cloudinary widget failed to load.":"Cloudinary widget failed to load.","Missing user id. Please sign in again.":"Missing user id. Please sign in again.","Upload failed":"Upload failed","Could not upload logo.":"Could not upload logo.","Logo uploaded":"Logo uploaded","Your company logo has been saved.":"Your company logo has been saved.","Unable to open upload widget.":"Unable to open upload widget.","Please upload an image file.":"Please upload an image file.","Settings saved":"Settings saved","Your preferences have been updated.":"Your preferences have been updated.","Full name is required.":"Full name is required.","Full name required":"Full name required","Enter your full name before saving account settings.":"Enter your full name before saving account settings.","Phone number is required.":"Phone number is required.","Phone number required":"Phone number required","Enter your phone number before saving account settings.":"Enter your phone number before saving account settings.","Email is required.":"Email is required.","Email missing":"Email missing","Please sign in again before updating account settings.":"Please sign in again before updating account settings.","New password is required.":"New password is required.","New password required":"New password required","Enter a new password before confirming it.":"Enter a new password before confirming it.","Passwords do not match.":"Passwords do not match.","Passwords do not match":"Passwords do not match","Confirm your new password before saving.":"Confirm your new password before saving.",Saved:"Saved","Account settings updated.":"Account settings updated.","Save failed":"Save failed","Failed to save account settings.":"Failed to save account settings.","Assessment limit unavailable":"Assessment limit unavailable","Quarterly invoice":"Quarterly invoice","1 assessment/month (3/quarter)":"1 assessment/month (3/quarter)","3 assessments/month":"3 assessments/month","Unlimited assessments":"Unlimited assessments",Custom:"Custom",Close:"Close",Confirm:"Confirm","Are you sure?":"Are you sure?"},fr:{"Welcome back":"Bon retour",Logout:"Se d\xe9connecter",Dashboard:"Tableau de bord",Assessments:"\xc9valuations",Documents:"Documents",Admin:"Administrateur","Support Ticket":"Ticket d\u2019assistance",Settings:"Param\xe8tres","Aim higher with the help of AI":"Visez plus haut avec l\u2019aide de l\u2019IA","Change language":"Changer de langue","Select language":"S\xe9lectionner la langue",English:"Anglais",French:"Fran\xe7ais",Cancel:"Annuler",Save:"Enregistrer",Add:"Ajouter",Edit:"Modifier",Upload:"T\xe9l\xe9verser",Delete:"Supprimer",Download:"T\xe9l\xe9charger",Submit:"Soumettre",Back:"Retour","Back to Assessments":"Retour aux \xe9valuations",Interviewees:"Personnes interview\xe9es",Name:"Nom",Role:"R\xf4le",Type:"Type",Interview:"Entretien","Files / Transcript":"Fichiers / Transcription",Actions:"Actions","Not uploaded":"Non t\xe9l\xe9vers\xe9","No transcript available.":"Aucune transcription disponible.","Choose recording mode":"Choisir le mode d\u2019enregistrement","Mic only":"Micro uniquement","Meeting audio + Mic":"Audio de r\xe9union + micro",Transcript:"Transcription","AI Policies & Guidelines":"Politiques et lignes directrices IA","AI Readiness Assessment":"\xc9valuation de la pr\xe9paration IA","AI Workflow Assessment":"\xc9valuation du flux de travail IA","Download interview sheets and reference materials":"T\xe9l\xe9charger les fiches d\u2019entretien et les documents de r\xe9f\xe9rence","Not authorized. Please log in.":"Non autoris\xe9. Veuillez vous connecter.","Failed to fetch assessments.":"\xc9chec du chargement des \xe9valuations.","Failed to create assessment.":"\xc9chec de la cr\xe9ation de l\u2019\xe9valuation.","common.cancel":"Annuler","common.select":"S\xe9lectionner","form.companyName":"Nom de l'entreprise","form.address1":"Adresse ligne 1","form.address2":"Adresse ligne 2","form.city":"Ville","form.stateProv":"\xc9tat / Province","form.country":"Pays","form.vertical":"Secteur d'activit\xe9","form.keyContact":"Personne-ressource cl\xe9","form.position":"Poste","form.contactEmail":"E-mail de contact","form.contactPhone":"T\xe9l\xe9phone de contact","Create Assessment":"Cr\xe9er une \xe9valuation","Active Assessments":"\xc9valuations actives","Needs Attention":"N\xe9cessite une attention","No assessments found.":"Aucune \xe9valuation trouv\xe9e.","asse
2ssments.manageAllCompanyAssessments":"G\xe9rer toutes les \xe9valuations de l\u2019entreprise","assessments.deleteAssessment":"Supprimer l\u2019\xe9valuation","assessments.deleteConfirmPrefix":"\xcates-vous s\xfbr de vouloir supprimer l\u2019\xe9valuation pour","assessments.deleteConfirmSuffix":" ? Cette action est irr\xe9versible.","assessments.thisCompany":"cette entreprise","assessments.selectNewPlanToContinue":"S\xe9lectionnez un nouveau forfait pour continuer :","assessments.allRightsReserved":"Tous droits r\xe9serv\xe9s","assessments.companyNameRequired":"Le nom de l\u2019entreprise est requis.","assessments.missingAccountInformation":"Informations de compte manquantes.","assessments.unableToValidateSubscription":"Impossible de valider l\u2019abonnement.","assessments.unableToStartCheckout":"Impossible de d\xe9marrer le paiement. Veuillez r\xe9essayer plus tard.","assessments.failedToCreateCheckoutSession":"\xc9chec de la cr\xe9ation de la session de paiement.","assessments.failedToSaveAssessment":"\xc9chec de l\u2019enregistrement de l\u2019\xe9valuation.","assessments.notAuthorized":"Non autoris\xe9.","assessments.missingAssessmentId":"Identifiant d\u2019\xe9valuation manquant.","assessments.failedToDeleteAssessment":"\xc9chec de la suppression de l\u2019\xe9valuation.","status.active":"En cours","status.completed":"Termin\xe9e","status.aiWorkflowCompleted":"Travail IA termin\xe9","status.aiPoliciesCompleted":"Politiques IA termin\xe9es",Untitled:"Sans titre","dashboard.activeAssessments":"\xc9valuations actives","dashboard.completed":"\xc9valuations termin\xe9es","dashboard.total":"\xc9valuations totales","dashboard.currentlyInProgress":"En cours","dashboard.allTime":"Tout le temps","dashboard.allAssessments":"Toutes les \xe9valuations","dashboard.checking":"V\xe9rification...","dashboard.newAssessment":"Nouvelle \xe9valuation","dashboard.createNewAssessment":"Cr\xe9er une nouvelle \xe9valuation","dashboard.subscriptionRequired":"Abonnement requis","dashboard.subscriptionInfo":"Vous avez besoin d\u2019un abonnement actif avant de pouvoir cr\xe9er une nouvelle \xe9valuation.","dashboard.selectPlan":"S\xe9lectionnez un plan pour continuer :","dashboard.startingCheckout":"D\xe9marrage du paiement...","dashboard.select":"S\xe9lectionner","dashboard.complete":"compl\xe9t\xe9","dashboard.interviewee":"Personne interview\xe9e","dashboard.missingFiles":"fichiers manquants","dashboard.aimHigher":"Visez plus haut avec l\u2019aide de l\u2019IA","dashboard.title":"Tableau de bord","dashboard.activeAssessmentsLabel":"\xc9valuations actives","dashboard.completedAssessmentsLabel":"\xc9valuations termin\xe9es","dashboard.needsAttention":"N\xe9cessite une attention","dashboard.viewAll":"Tout voir","dashboard.noAssessmentsFound":"Aucune \xe9valuation trouv\xe9e.","Processing\u2026":"Traitement\u2026","Processing\u2026 This may take a few minutes":"Traitement\u2026 Cela peut prendre quelques minutes","Overall Progress":"Progression globale","completed with transcripts":"termin\xe9es avec transcriptions","Document ready for download":"Document pr\xeat \xe0 t\xe9l\xe9charger","All interviews complete":"Tous les entretiens sont termin\xe9s","Complete all interviews & upload transcripts first":"Terminez tous les entretiens et t\xe9l\xe9versez d\u2019abord les transcriptions","Ready to generate":"Pr\xeat \xe0 g\xe9n\xe9rer","At least 1 interview with transcript required":"Au moins 1 entretien avec transcription est requis","interviewee(s)":"personne(s) interview\xe9e(s)","Delete Document":"Supprimer le document","assessment.deleteDocumentConfirmPrefix":"\xcates-vous s\xfbr de vouloir supprimer le document","assessment.deleteDocumentConfirmSuffix":"? Cette action est irr\xe9versible.","Edit Interviewee":"Modifier la personne interview\xe9e",Yes:"Oui",No:"Non",Notice:"Avis",Notification:"Notification","Action failed":"\xc9chec de l\u2019action","Unable to complete the action.":"Impossible de terminer l\u2019action.","Record only your microphone, or include meeting/system audio by sharing a tab/window with system audio enabled.":"Enregistrez uniquement votre microphone, ou incluez l\u2019audio de la r\xe9union/du syst\xe8me en partageant un onglet ou une fen\xeatre avec l\u2019audio syst\xe8me activ\xe9.","Are you sure you want to proceed? This action cannot be undone.":"\xcates-vous s\xfbr de vouloir continuer ? Cette action est irr\xe9versible.","Generating document\u2026 please wait.":"G\xe9n\xe9ration du document\u2026 veuillez patienter.",Elapsed:"\xc9coul\xe9","Add Interviewees":"Ajouter des personnes interview\xe9es","Add Interviewee":"Ajouter une personne interview\xe9e","Missing fields":"Champs manquants","Name and Position are required.":"Le nom et le poste sont requis.","Invalid file":"Fichier non valide","Please upload a CSV file.":"Veuillez t\xe9l\xe9verser un fichier CSV.","Upload CSV":"T\xe9l\xe9verser un CSV","CSV format: Name, Role, Type, Email, Phone (one per row). First row can be a header.":"Format CSV : nom, r\xf4le, type, e-mail, t\xe9l\xe9phone (une personne par ligne). La premi\xe8re ligne peut \xeatre un en-t\xeate.","Choose CSV file":"Choisir un fichier CSV","interviewee(s) found":"personne(s) interview\xe9e(s) trouv\xe9e(s)","Submit Support Ticket":"Soumettre un ticket d\u2019assistance",Company:"Entreprise",Plan:"Forfait","Contact Name":"Nom du contact",Email:"E-mail",Phone:"T\xe9l\xe9phone","Category *":"Cat\xe9gorie *","Priority *":"Priorit\xe9 *","Subject *":"Objet *",Description:"Description","Select category":"S\xe9lectionner une cat\xe9gorie","Select priority":"S\xe9lectionner une priorit\xe9","Technical Issue":"Probl\xe8me technique","Billing / Account":"Facturation / Compte","Feature Request":"Demande de fonctionnalit\xe9","Assessment Help":"Aide \xe0 l\u2019\xe9valuation",Other:"Autre",Low:"Faible",Medium:"Moyenne",High:"\xc9lev\xe9e",Urgent:"Urgente","Brief summary of your issue":"Bref r\xe9sum\xe9 de votre probl\xe8me","Provide details about your issue, including steps to reproduce if applicable...":"D\xe9crivez votre probl\xe8me, y compris les \xe9tapes pour le reproduire si applicable...","Submit Ticket":"Soumettre le ticket","Please fill in all required fields":"Veuillez remplir tous les champs obligatoires","Failed to submit ticket.":"\xc9chec de la soumission du ticket.","Support ticket submitted":"Ticket d\u2019assistance soumis","support.ticketSubmittedPrefix":"Le ticket pour","support.ticketSubmittedSuffix":"a \xe9t\xe9 envoy\xe9. Demande soumise.","Submit failed":"\xc9chec de la soumission","Could not submit support ticket.":"Impossible de soumettre le ticket d\u2019assistance.","settings.subtitle":"Configurez la marque, la langue, l\u2019abonnement et les pr\xe9f\xe9rences de facturation.","Account Settings":"Param\xe8tres du compte","Update your contact information and password.":"Mettez \xe0 jour vos coordonn\xe9es et votre mot de passe.","Full Name":"Nom complet","Enter your full name":"Entrez votre nom complet","Enter your phone number":"Entrez votre num\xe9ro de t\xe9l\xe9phone","New Password":"Nouveau mot de passe","Leave blank to keep current":"Laissez vide pour conserver l\u2019actuel","Confirm Password":"Confirmer le mot de passe","Confirm new password":"Confirmez le nouveau mot de passe","White Label":"Marque blanche","Your company name and logo appear on all generated documents.":"Le nom et le logo de votre entreprise apparaissent sur tous les documents g\xe9n\xe9r\xe9s.","Enter your company name":"Entrez le nom de votre entreprise","Company Logo":"Logo de l\u2019entreprise","Click to upload logo":"Cliquez pour t\xe9l\xe9verser le logo","PNG, JPG, SVG up to 2MB":"PNG, JPG, SVG jusqu\u2019\xe0 2 Mo","Document Header Preview":"Aper\xe7u de l\u2019en-t\xeate du document","Your Company Name":"Nom de votre entreprise",Language:"Langue","Select the language for generated output documents and reports.":"S\xe9lectionnez la langue des documents et rapports g\xe9n\xe9r\xe9s.","Output Language":"Langue de sortie","This determines the language used in AI Readiness Assessments and Policy documents.":"Cela d\xe9termine la langue utilis\xe9e dans les \xe9valuations de pr\xe9paration IA et les documents de politiques.",Subscription:"Abonnement","Billed quarterly at":"Factur\xe9 trimestriellement \xe0","Pause Subscription":"Suspendre l\u2019abonnement","Quarterly Invoices":"Factures trimestrielles","Loading upcoming invoices...":"Chargement des proch
2aines factures...",Paid:"Pay\xe9e",Upcoming:"\xc0 venir","No upcoming invoices found.":"Aucune facture \xe0 venir trouv\xe9e.","Upgrade to Pro":"Passer \xe0 Pro","settings.upgradeCopy":"Vous \xeates actif depuis plus de 6 mois et vous approchez de votre limite d\u2019\xe9valuations. Passez \xe0 Pro pour 3 \xe9valuations par mois \xe0 500 $ par \xe9valuation.","months remaining":"mois restants","Upgrade to":"Passer \xe0","subscription.enterpriseUpgradeCopy":"Vous d\xe9passez 3 \xe9valuations par mois. Passez \xe0 Enterprise pour des \xe9valuations illimit\xe9es et une assistance prioritaire.",Billing:"Facturation","Manage your payment method and billing details.":"G\xe9rez votre mode de paiement et vos informations de facturation.","Billing Details":"D\xe9tails de facturation","Next billing":"Prochaine facturation",Amount:"Montant","Open Billing Portal":"Ouvrir le portail de facturation","Saving...":"Enregistrement...","Save Settings":"Enregistrer les param\xe8tres","Account Settings Updated":"Param\xe8tres du compte mis \xe0 jour","Your account details have been saved successfully.":"Les d\xe9tails de votre compte ont \xe9t\xe9 enregistr\xe9s avec succ\xe8s.",Done:"Termin\xe9","Please contact [email protected] to pause your account and payments.":"Veuillez contacter [email protected] pour suspendre votre compte et vos paiements.","Invoice load failed":"\xc9chec du chargement des factures","Unable to load invoices.":"Impossible de charger les factures.","Could not load upcoming invoices.":"Impossible de charger les prochaines factures.","Cloudinary widget failed to load.":"\xc9chec du chargement du widget Cloudinary.","Missing user id. Please sign in again.":"Identifiant utilisateur manquant. Veuillez vous reconnecter.","Upload failed":"\xc9chec du t\xe9l\xe9versement","Could not upload logo.":"Impossible de t\xe9l\xe9verser le logo.","Logo uploaded":"Logo t\xe9l\xe9vers\xe9","Your company logo has been saved.":"Le logo de votre entreprise a \xe9t\xe9 enregistr\xe9.","Unable to open upload widget.":"Impossible d\u2019ouvrir le widget de t\xe9l\xe9versement.","Please upload an image file.":"Veuillez t\xe9l\xe9verser un fichier image.","Settings saved":"Param\xe8tres enregistr\xe9s","Your preferences have been updated.":"Vos pr\xe9f\xe9rences ont \xe9t\xe9 mises \xe0 jour.","Full name is required.":"Le nom complet est requis.","Full name required":"Nom complet requis","Enter your full name before saving account settings.":"Entrez votre nom complet avant d\u2019enregistrer les param\xe8tres du compte.","Phone number is required.":"Le num\xe9ro de t\xe9l\xe9phone est requis.","Phone number required":"Num\xe9ro de t\xe9l\xe9phone requis","Enter your phone number before saving account settings.":"Entrez votre num\xe9ro de t\xe9l\xe9phone avant d\u2019enregistrer les param\xe8tres du compte.","Email is required.":"L\u2019e-mail est requis.","Email missing":"E-mail manquant","Please sign in again before updating account settings.":"Veuillez vous reconnecter avant de mettre \xe0 jour les param\xe8tres du compte.","New password is required.":"Le nouveau mot de passe est requis.","New password required":"Nouveau mot de passe requis","Enter a new password before confirming it.":"Entrez un nouveau mot de passe avant de le confirmer.","Passwords do not match.":"Les mots de passe ne correspondent pas.","Passwords do not match":"Les mots de passe ne correspondent pas","Confirm your new password before saving.":"Confirmez votre nouveau mot de passe avant d\u2019enregistrer.",Saved:"Enregistr\xe9","Account settings updated.":"Param\xe8tres du compte mis \xe0 jour.","Save failed":"\xc9chec de l\u2019enregistrement","Failed to save account settings.":"\xc9chec de l\u2019enregistrement des param\xe8tres du compte.","Assessment limit unavailable":"Limite d\u2019\xe9valuations indisponible","Quarterly invoice":"Facture trimestrielle","1 assessment/month (3/quarter)":"1 \xe9valuation/mois (3/trimestre)","3 assessments/month":"3 \xe9valuations/mois","Unlimited assessments":"\xc9valuations illimit\xe9es",Custom:"Personnalis\xe9",Close:"Fermer",Confirm:"Confirmer","Are you sure?":"\xcates-vous s\xfbr ?","Nothing needs attention right now.":"Aucune action n\u2019est requise pour l\u2019instant.","AI Workflow Completed":"Travail IA termin\xe9","AI Policies Completed":"Politiques IA termin\xe9es","Completed Assessments":"\xc9valuations termin\xe9es","No assessments yet":"Aucune \xe9valuation pour l\u2019instant"}},Ve=()=>{try{return"fr"===localStorage.getItem(We)?"fr":"en"}catch(e){return"en"}};function He(e){let{children:t}=e;const[n,i]=(0,o.useState)(Ve);(0,o.useEffect)((()=>{try{localStorage.setItem(We,n)}catch(e){}}),[n]);const r=(0,o.useMemo)((()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=String(null!==e&&void 0!==e?e:"");return"fr"===n?ze.fr[i]||ze.en[i]||t||i:ze.en[i]||t||i}),[n]),a=(0,o.useMemo)((()=>({language:n,setLanguage:i,t:r})),[n,i,r]);return(0,Le.jsx)(Be.Provider,{value:a,children:t})}function qe(){const e=(0,o.useContext)(Be);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e}var Ge=n(6111),Ye=n.n(Ge);n(4713);function Xe(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}function $e(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ke(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}function Qe(e,t,n){return(t=$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 5,220 bytes, line 2
2t%2?Ze(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e){return e+.5|0}const tt=(e,t,n)=>Math.max(Math.min(e,n),t);function nt(e){return tt(et(2.55*e),0,255)}function it(e){return tt(et(255*e),0,255)}function rt(e){return tt(et(e/2.55)/100,0,1)}function at(e){return tt(et(100*e),0,100)}const ot={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},st=[..."0123456789ABCDEF"],lt=e=>st[15&e],ct=e=>st[(240&e)>>4]+st[15&e],ut=e=>(240&e)>>4===(15&e);function dt(e){var t=(e=>ut(e.r)&&ut(e.g)&&ut(e.b)&&ut(e.a))(e)?lt:ct;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const ht=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ft(e,t,n){const i=t*Math.min(n,1-n),r=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-i*Math.max(Math.min(r-3,9-r,1),-1)};return[r(0),r(8),r(4)]}function pt(e,t,n){const i=function(i){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(i+e/60)%6;return n-n*t*Math.max(Math.min(r,4-r,1),0)};return[i(5),i(3),i(1)]}function gt(e,t,n){const i=ft(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function mt(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),a=Math.min(t,n,i),o=(r+a)/2;let s,l,c;return r!==a&&(c=r-a,l=o>.5?c/(2-r-a):c/(r+a),s=function(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}(t,n,i,c,r),s=60*s+.5),[0|s,l||0,o]}function vt(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(it)}function bt(e,t,n){return vt(ft,e,t,n)}function yt(e){return(e%360+360)%360}function xt(e){const t=ht.exec(e);let n,i=255;if(!t)return;t[5]!==n&&(i=t[6]?nt(+t[5]):it(+t[5]));const r=yt(+t[2]),a=+t[3]/100,o=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return vt(gt,e,t,n)}(r,a,o):"hsv"===t[1]?function(e,t,n){return vt(pt,e,t,n)}(r,a,o):bt(r,a,o),{r:n[0],g:n[1],b:n[2],a:i}}const wt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},_t={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Dt;function St(e){Dt||(Dt=function(){const e={},t=Object.keys(_t),n=Object.keys(wt);let i,r,a,o,s;for(i=0;i<t.length;i++){for(o=s=t[i],r=0;r<n.length;r++)a=n[r],s=s.replace(a,wt[a]);a=parseInt(_t[o],16),e[s]=[a>>16&255,a>>8&255,255&a]}return e}(),Dt.transparent=[0,0,0,0]);const t=Dt[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const kt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ct=e=>
vendor: 5,571 bytes, line 2
2e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,At=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Tt(e,t,n){if(e){let i=mt(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,0===t?360:1)),i=bt(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Et(e,t){return e?Object.assign(t||{},e):e}function Nt(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=it(e[3]))):(t=Et(e,{r:0,g:0,b:0,a:1})).a=it(t.a),t}function Mt(e){return"r"===e.charAt(0)?function(e){const t=kt.exec(e);let n,i,r,a=255;if(t){if(t[7]!==n){const e=+t[7];a=t[8]?nt(e):tt(255*e,0,255)}return n=+t[1],i=+t[3],r=+t[5],n=255&(t[2]?nt(n):tt(n,0,255)),i=255&(t[4]?nt(i):tt(i,0,255)),r=255&(t[6]?nt(r):tt(r,0,255)),{r:n,g:i,b:r,a:a}}}(e):xt(e)}class Pt{constructor(e){if(e instanceof Pt)return e;const t=typeof e;let n;"object"===t?n=Nt(e):"string"===t&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*ot[e[1]],g:255&17*ot[e[2]],b:255&17*ot[e[3]],a:5===n?17*ot[e[4]]:255}:7!==n&&9!==n||(t={r:ot[e[1]]<<4|ot[e[2]],g:ot[e[3]]<<4|ot[e[4]],b:ot[e[5]]<<4|ot[e[6]],a:9===n?ot[e[7]]<<4|ot[e[8]]:255})),t}(e)||St(e)||Mt(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Et(this._rgb);return e&&(e.a=rt(e.a)),e}set rgb(e){this._rgb=Nt(e)}rgbString(){return this._valid?function(e){return e&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(rt(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")"))}(this._rgb):void 0}hexString(){return this._valid?dt(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=mt(e),n=t[0],i=at(t[1]),r=at(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(rt(e.a),")"):"hsl(".concat(n,", ").concat(i,"%, ").concat(r,"%)")}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,i=e.rgb;let r;const a=t===r?.5:t,o=2*a-1,s=n.a-i.a,l=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const i=At(rt(e.r)),r=At(rt(e.g)),a=At(rt(e.b));return{r:it(Ct(i+n*(At(rt(t.r))-i))),g:it(Ct(r+n*(At(rt(t.g))-r))),b:it(Ct(a+n*(At(rt(t.b))-a))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Pt(this.rgb)}alpha(e){return this._rgb.a=it(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=et(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Tt(this._rgb,2,e),this}darken(e){return Tt(this._rgb,2,-e),this}saturate(e){return Tt(this._rgb,1,e),this}desaturate(e){return Tt(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=mt(e);n[0]=yt(n[0]+t),n=bt(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function Ut(){}const jt=(()=>{let e=0;return()=>e++})();function Ft(e){return null===e||void 0===e}function Rt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Ot(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function It(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function Lt(e,t){return It(e)?e:t}function Bt(e,t){return"undefined"===typeof e?t:e}const Wt=(e,t)=>"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function zt(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function Vt(e,t,n,i){let r,a,o;if(Rt(e))if(a=e.length,i)for(r=a-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<a;r++)t.call(n,e[r],r);else if(Ot(e))for(o=Object.keys(e),a=o.length,r=0;r<a;r++)t.call(n,e[o[r]],o[r])}function Ht(e,t){let n,i,r,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],a=t[n],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function qt(e){if(Rt(e))return e.map(qt);if(Ot(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=qt(e[n[r]]);return t}return e}function Gt(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Yt(e,t,n,i){if(!Gt(e))return;const r=t[e],a=n[e];Ot(r)&&Ot(a)?Xt(r,a,i):t[e]=qt(a)}function Xt(e,t,n){const i=Rt(t)?t:[t],r=i.length;if(!Ot(e))return e;const a=(n=n||{}).merger||Yt;let o;for(let s=0;s<r;++s){if(o=i[s],!Ot(o))continue;const t=Object.keys(o);for(let i=0,r=t.length;i<r;++i)a(t[i],e,o,n)}return e}function Kt(e,t){return Xt(e,t,{merger:$t})}function $t(e,t,n){if(!Gt(e))return;const i=t[e],r=n[e];Ot(i)&&Ot(r)?Kt(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=qt(r))}const Qt={"":e=>e,x:e=>e.x,y:e=>e.y};function Zt(e,t){const n=Qt[t]||(Qt[t]=function(e){const t=function(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function Jt(e){return e.charAt(0).toUpperCase()+e.slice(1)}const en=e=>"undefined"!==typeof e,tn=e=>"function"===typeof e,nn=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const rn=Math.PI,an=2*rn,on=an+rn,sn=Number.POSITIVE_INFINITY,ln=rn/180,cn=rn/2,un=rn/4,dn=2*rn/3,hn=Math.log10,fn=Math.sign;function pn(e,t,n){return Math.abs(e-t)<n}function gn(e){const t=Math.round(e);e=pn(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(hn(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function mn(e){return!isNaN(parseFloat(e))&&isFinite(e)}
vendor: 4,516 bytes, line 2
2function vn(e,t,n){let i,r,a;for(i=0,r=e.length;i<r;i++)a=e[i][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function bn(e){return e*(rn/180)}function yn(e){return e*(180/rn)}function xn(e){if(!It(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function wn(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*rn&&(a+=an),{angle:a,distance:r}}function _n(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Dn(e,t){return(e-t+on)%an-rn}function Sn(e){return(e%an+an)%an}function kn(e,t,n,i){const r=Sn(e),a=Sn(t),o=Sn(n),s=Sn(a-r),l=Sn(o-r),c=Sn(r-a),u=Sn(r-o);return r===a||r===o||i&&a===o||s>l&&c<u}function Cn(e,t,n){return Math.max(t,Math.min(n,e))}function An(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Tn(e,t,n){n=n||(n=>e[n]<t);let i,r=e.length-1,a=0;for(;r-a>1;)i=a+r>>1,n(i)?a=i:r=i;return{lo:a,hi:r}}const En=(e,t,n,i)=>Tn(e,n,i?i=>{const r=e[i][t];return r<n||r===n&&e[i+1][t]===n}:i=>e[i][t]<n),Nn=(e,t,n)=>Tn(e,n,(i=>e[i][t]>=n));const Mn=["push","pop","shift","splice","unshift"];function Pn(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(Mn.forEach((t=>{delete e[t]})),delete e._chartjs)}function Un(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const jn="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function Fn(e,t){let n=[],i=!1;return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];n=a,i||(i=!0,jn.call(window,(()=>{i=!1,e.apply(t,n)})))}}const Rn=e=>"start"===e?"left":"end"===e?"right":"center",On=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function In(e,t,n){const i=t.length;let r=0,a=i;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(r=Cn(Math.min(En(s,l,c).lo,n?i:En(t,l,o.getPixelForValue(c)).lo),0,i-1)),a=h?Cn(Math.max(En(s,o.axis,u,!0).hi+1,n?0:En(t,l,o.getPixelForValue(u),!0).hi+1),r,i)-r:i-r}return{start:r,count:a}}function Ln(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=r,!0;const a=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),a}const Bn=e=>0===e||1===e,Wn=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*an/n),zn=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*an/n)+1,Vn={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*cn),easeOutSine:e=>Math.sin(e*cn),easeInOutSine:e=>-.5*(Math.cos(rn*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Bn(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Bn(e)?e:Wn(e,.075,.3),easeOutElastic:e=>Bn(e)?e:zn(e,.075,.3),easeInOutElastic(e){const t=.1125;return Bn(e)?e:e<.5?.5*Wn(2*e,t,.45):.5+.5*zn(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Vn.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*Vn.easeInBounce(2*e):.5*Vn.easeOutBounce(2*e-1)+.5};function Hn(e){if(e&&"object"===typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function qn(e){return Hn(e)?e:new Pt(e)}function Gn(e){return Hn(e)?e:new Pt(e).saturate(.5).darken(.1).hexString()}const Yn=["x","y","borderWidth","radius","tension"],Xn=["color","borderColor","backgroundColor"];const Kn=new Map;function $n(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Kn.get(n);
vendor: 1,935 bytes, line 2
2return i||(i=new Intl.NumberFormat(e,t),Kn.set(n,i)),i}(t,n).format(e)}const Qn={values:e=>Rt(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const i=this.chart.options.locale;let r,a=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),a=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const o=hn(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),$n(e,i,l)},logarithmic(e,t,n){if(0===e)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(hn(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?Qn.numeric.call(this,e,t,n):""}};var Zn={formatters:Qn};const Jn=Object.create(null),ei=Object.create(null);function ti(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;i<r;++i){const t=n[i];e=e[t]||(e[t]=Object.create(null))}return e}function ni(e,t,n){return"string"===typeof t?Xt(ti(e,t),n):Xt(ti(e,""),t)}class ii{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Gn(t.backgroundColor),this.hoverBorderColor=(e,t)=>Gn(t.borderColor),this.hoverColor=(e,t)=>Gn(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 4,288 bytes, line 2
2,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return ni(this,e,t)}get(e){return ti(this,e)}describe(e,t){return ni(ei,e,t)}override(e,t){return ni(Jn,e,t)}route(e,t,n,i){const r=ti(this,e),a=ti(this,n),o="_"+t;Object.defineProperties(r,{[o]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[o],t=a[i];return Ot(e)?Object.assign({},t,e):Bt(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach((e=>e(this)))}}var ri=new ii({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:Xn},numbers:{type:"number",properties:Yn}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function ai(e,t,n,i,r){let a=t[r];return a||(a=t[r]=e.measureText(r).width,n.push(r)),a>i&&(i=a),i}function oi(e,t,n,i){let r=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},a=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,c,u,d,h;for(l=0;l<s;l++)if(d=n[l],void 0===d||null===d||Rt(d)){if(Rt(d))for(c=0,u=d.length;c<u;c++)h=d[c],void 0===h||null===h||Rt(h)||(o=ai(e,r,a,o,h))}else o=ai(e,r,a,o,d);e.restore();const f=a.length/2;if(f>n.length){for(l=0;l<f;l++)delete r[a[l]];a.splice(0,f)}return o}function si(e,t,n){const i=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function li(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function ci(e,t,n,i){ui(e,t,n,i,null)}function ui(e,t,n,i,r){let a,o,s,l,c,u,d,h;const f=t.pointStyle,p=t.rotation,g=t.radius;let m=(p||0)*ln;if(f&&"object"===typeof f&&(a=f.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(n,i),e.rotate(m),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,i,r/2,g,0,0,an):e.arc(n,i,g,0,an),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=dn,e.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=dn,e.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=.516*g,l=g-c,o=Math.cos(m+un)*l,d=Math.cos(m+un)*(r?r/2-c:l),s=Math.sin(m+un)*l,h=Math.sin(m+un)*(r?r/2-c:l),e.arc(n-d,i-s,c,m-rn,m-cn),e.arc(n+h,i-o,c,m-cn,m),e.arc(n+d,i+s,c,m,m+cn),e.arc(n-h,i+o,c,m+cn,m+rn),e.closePath();break;
vendor: 4,426 bytes, line 2
2case"rect":if(!p){l=Math.SQRT1_2*g,u=r?r/2:l,e.rect(n-u,i-l,2*u,2*l);break}m+=un;case"rectRot":d=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,s=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,i-s),e.lineTo(n+h,i-o),e.lineTo(n+d,i+s),e.lineTo(n-h,i+o),e.closePath();break;case"crossRot":m+=un;case"cross":d=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,s=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,i-s),e.lineTo(n+d,i+s),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o);break;case"star":d=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,s=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,i-s),e.lineTo(n+d,i+s),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o),m+=un,d=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,s=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,i-s),e.lineTo(n+d,i+s),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o);break;case"line":o=r?r/2:Math.cos(m)*g,s=Math.sin(m)*g,e.moveTo(n-o,i-s),e.lineTo(n+o,i+s);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(m)*(r?r/2:g),i+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function di(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function hi(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function fi(e){e.restore()}function pi(e,t,n,i,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else"after"===r!==!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function gi(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function mi(e,t,n,i,r){if(r.strikethrough||r.underline){const a=e.measureText(i),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function vi(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function bi(e,t,n,i,r){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const o=Rt(t)?t:[t],s=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ft(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&vi(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Ft(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(c,n,i,a.maxWidth)),e.fillText(c,n,i,a.maxWidth),mi(e,n,i,c,a),i+=Number(r.lineHeight);e.restore()}function yi(e,t){const{x:n,y:i,w:r,h:a,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*rn,rn,!0),e.lineTo(n,i+a-o.bottomLeft),e.arc(n+o.bottomLeft,i+a-o.bottomLeft,o.bottomLeft,rn,cn,!0),e.lineTo(n+r-o.bottomRight,i+a),e.arc(n+r-o.bottomRight,i+a-o.bottomRight,o.bottomRight,cn,0,!0),e.lineTo(n+r,i+o.topRight),e.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-cn,!0),e.lineTo(n+o.topLeft,i)}const xi=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,wi=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function _i(e,t){const n=(""+e).match(xi);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const Di=e=>+e||0;function Si(e,t){const n={},i=Ot(t),r=i?Object.keys(t):t,a=Ot(e)?i?n=>Bt(e[n],e[t[n]]):t=>e[t]:()=>e;for(const o of r)n[o]=Di(a(o));return n}function ki(e){return Si(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ci(e){return Si(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ai(e){const t=ki(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ti(e,t){e=e||{},t=t||ri.font;let n=Bt(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));let i=Bt(e.style,t.style);i&&!(""+i).match(wi)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Bt(e.family,t.family),lineHeight:_i(Bt(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Bt(e.weight,t.weight),string:""};return r.string=function(e){return!e||Ft(e.size)||Ft(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function Ei(e,t,n,i){let r,a,o,s=!0;for(r=0,a=e.length;r<a;++r)if(o=e[r],void 0!==o&&(void 0!==t&&"function"===typeof o&&(o=o(t),s=!1),void 0!==n&&Rt(o)&&
vendor: 5,923 bytes, line 2
2(o=o[n%o.length],s=!1),void 0!==o))return i&&!s&&(i.cacheable=!1),o}function Ni(e,t){return Object.assign(Object.create(e),t)}function Mi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>e[0];const r=(arguments.length>2?arguments[2]:void 0)||e;"undefined"===typeof n&&(n=zi("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:n,_getTarget:i,override:i=>Mi([i,...e],t,r,n)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,i)=>Ri(n,i,(()=>function(e,t,n,i){let r;for(const a of t)if(r=zi(ji(a,e),n),"undefined"!==typeof r)return Fi(e,r)?Bi(n,i,e,r):r}(i,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Vi(e).includes(t),ownKeys:e=>Vi(e),set(e,t,n){const r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function Pi(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ui(e,i),setContext:t=>Pi(e,t,n,i),override:r=>Pi(e.override(r),t,n,i)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>Ri(e,t,(()=>function(e,t,n){const{_proxy:i,_context:r,_subProxy:a,_descriptors:o}=e;let s=i[t];tn(s)&&o.isScriptable(t)&&(s=function(e,t,n,i){const{_proxy:r,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||i);s.delete(e),Fi(e,l)&&(l=Bi(r._scopes,r,e,l));return l}(t,s,e,n));Rt(s)&&s.length&&(s=function(e,t,n,i){const{_proxy:r,_context:a,_subProxy:o,_descriptors:s}=n;if("undefined"!==typeof a.index&&i(e))return t[a.index%t.length];if(Ot(t[0])){const n=t,i=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=Bi(i,r,e,l);t.push(Pi(n,a,o&&o[e],s))}}return t}(t,s,e,o.isIndexable));Fi(t,s)&&(s=Pi(s,r,a&&a[t],o));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,i)=>(e[n]=i,delete t[n],!0)})}function Ui(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0};const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:tn(n)?n:()=>n,isIndexable:tn(i)?i:()=>i}}const ji=(e,t)=>e?e+Jt(t):t,Fi=(e,t)=>Ot(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function Ri(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const i=n();return e[t]=i,i}function Oi(e,t,n){return tn(e)?e(t,n):e}const Ii=(e,t)=>!0===e?t:"string"===typeof e?Zt(t,e):void 0;function Li(e,t,n,i,r){for(const a of t){const t=Ii(n,a);if(t){e.add(t);const a=Oi(t._fallback,n,r);if("undefined"!==typeof a&&a!==n&&a!==i)return a}else if(!1===t&&"undefined"!==typeof i&&n!==i)return null}return!1}function Bi(e,t,n,i){const r=t._rootScopes,a=Oi(t._fallback,n,i),o=[...e,...r],s=new Set;s.add(i);let l=Wi(s,o,n,a||n,i);return null!==l&&(("undefined"===typeof a||a===n||(l=Wi(s,o,a,l,i),null!==l))&&Mi(Array.from(s),[""],r,a,(()=>function(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];if(Rt(r)&&Ot(n))return n;return r||{}}(t,n,i))))}function Wi(e,t,n,i,r){for(;n;)n=Li(e,t,n,i,r);return n}function zi(e,t){for(const n of t){if(!n)continue;const t=n[e];if("undefined"!==typeof t)return t}}function Vi(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function Hi(e,t,n,i){const{iScale:r}=e,{key:a="r"}=this._parsing,o=new Array(i);let s,l,c,u;for(s=0,l=i;s<l;++s)c=s+n,u=t[c],o[s]={r:r.parse(Zt(u,a),c)};return o}const qi=Number.EPSILON||1e-14,Gi=(e,t)=>t<e.length&&!e[t].skip&&e[t],Yi=e=>"x"===e?"y":"x";function Xi(e,t,n,i){const r=e.skip?t:e,a=t,o=n.skip?t:n,s=_n(a,r),l=_n(o,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:a.x-d*(o.x-r.x),y:a.y-d*(o.y-r.y)},next:{x:a.x+h*(o.x-r.x),y:a.y+h*(o.y-r.y)}}}function Ki(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";const n=Yi(t),i=e.length,r=Array(i).fill(0),a=Array(i);let o,s,l,c=Gi(e,0);for(o=0;o<i;++o)if(s=l,l=c,c=Gi(e,o+1),l){if(c){const e=c[t]-l[t];r[o]=0!==e?(c[n]-l[n])/e:0}a[o]=s?c?fn(r[o-1])!==fn(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}!function(e,t,n){const i=e.length;let r,a,o,s,l,c=Gi(e,0);for(let u=0;u<i-1;++u)l=c,c=Gi(e,u+1),l&&c&&(pn(t[u],0,qi)?n[u]=n[u+1]=0:(r=n[u]/t[u],a=n[u+1]/t[u],s=Math.pow(r,2)+Math.pow(a,2),s<=9||(o=3/Math.sqrt(s),n[u]=r*o*t[u],n[u+1]=a*o*t[u])))}(e,r,a),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x";const i=Yi(n),r=e.length;let a,o,s,l=Gi(e,0);for(let c=0;c<r;++c){if(o=s,s=l,l=Gi(e,c+1),!s)continue;const r=s[n],u=s[i];o&&(a=(r-o[n])/3,s["cp1".concat(n)]=r-a,s["cp1".concat(i)]=u-a*t[c]),l&&(a=(l[n]-r)/3,s["cp2".concat(n)]=r+a,s["cp2".concat(i)]=u+a*t[c])}}(e,a,t)}function $i(e,t,n){return Math.max(Math.min(e,n),t)}function Qi(e,t,n,i,r){let a,o,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)Ki(e,r);else{let n=i?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=Xi(n,s,e[Math.min(a+1,o-(i?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,i,r,a,o,s=di(e[0],t);for(n=0,i=e.length;n<i;++n)o=a,a=s,s=n<i-1&&di(e[n+1],t),a&&(r=e[n],o&&(r.cp1x=$i(r.cp1x,t.left,t.right),r.cp1y=$i(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=$i(r.cp2x,t.left,t.right),r.cp2y=$i(r.cp2y,t.top,t.bottom)))}
vendor: 6,339 bytes, line 2
2(e,n)}function Zi(){return"undefined"!==typeof window&&"undefined"!==typeof document}function Ji(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function er(e,t,n){let i;return"string"===typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}const tr=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const nr=["top","right","bottom","left"];function ir(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const a=nr[r];i[a]=parseFloat(e[t+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function rr(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=tr(n),a="border-box"===r.boxSizing,o=ir(r,"padding"),s=ir(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:a}=i;let o,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(r,a,e.target))o=r,s=a;else{const e=t.getBoundingClientRect();o=i.clientX-e.left,s=i.clientY-e.top,l=!0}return{x:o,y:s,box:l}}(e,n),d=o.left+(u&&s.left),h=o.top+(u&&s.top);let{width:f,height:p}=t;return a&&(f-=o.width+s.width,p-=o.height+s.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((c-h)/p*n.height/i)}}const ar=e=>Math.round(10*e)/10;function or(e,t,n,i){const r=tr(e),a=ir(r,"margin"),o=er(r.maxWidth,e,"clientWidth")||sn,s=er(r.maxHeight,e,"clientHeight")||sn,l=function(e,t,n){let i,r;if(void 0===t||void 0===n){const a=e&&Ji(e);if(a){const e=a.getBoundingClientRect(),o=tr(a),s=ir(o,"border","width"),l=ir(o,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,i=er(o.maxWidth,a,"clientWidth"),r=er(o.maxHeight,a,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:i||sn,maxHeight:r||sn}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=ir(r,"border","width"),t=ir(r,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-a.width),u=Math.max(0,i?c/i:u-a.height),c=ar(Math.min(c,o,l.maxWidth)),u=ar(Math.min(u,s,l.maxHeight)),c&&!u&&(u=ar(c/2));return(void 0!==t||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=ar(Math.floor(u*i))),{width:c,height:u}}function sr(e,t,n){const i=t||1,r=Math.floor(e.height*i),a=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(e.height,"px"),o.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==i||o.height!==r||o.width!==a)&&(e.currentDevicePixelRatio=i,o.height=r,o.width=a,e.ctx.setTransform(i,0,0,i,0,0),!0)}const lr=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Zi()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(eQ){}return e}();function cr(e,t){const n=function(e,t){return tr(e).getPropertyValue(t)}(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ur(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function dr(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:"middle"===i?n<.5?e.y:t.y:"after"===i?n<1?e.y:t.y:n>0?t.y:e.y}}function hr(e,t,n,i){const r={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=ur(e,r,n),s=ur(r,a,n),l=ur(a,t,n),c=ur(o,s,n),u=ur(s,l,n);return ur(c,u,n)}function fr(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function pr(e,t){let n,i;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function gr(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function mr(e){return"angle"===e?{between:kn,compare:Dn,normalize:Sn}:{between:An,compare:(e,t)=>e-t,normalize:e=>e}}function vr(e){let{start:t,end:n,count:i,loop:r,style:a}=e;return{start:t%i,end:n%i,loop:r&&(n-t+1)%i===0,style:a}}function br(e,t,n){if(!n)return[e];const{property:i,start:r,end:a}=n,o=t.length,{compare:s,between:l,normalize:c}=mr(i),{start:u,end:d,loop:h,style:f}=function(e,t,n){const{property:i,start:r,end:a}=n,{between:o,normalize:s}=mr(i),l=t.length;let c,u,{start:d,end:h,loop:f}=e;if(f){for(d+=l,h+=l,c=0,u=l;c<u&&o(s(t[d%l][i]),r,a);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:f,style:e.style}}(e,t,n),p=[];let g,m,v,b=!1,y=null;const x=()=>b||l(r,v,g)&&0!==s(r,v),w=()=>!b||0===s(a,g)||l(a,v,g);for(let _=u,D=u;_<=d;++_)m=t[_%o],m.skip||(g=c(m[i]),g!==v&&(b=l(g,r,a),null===y&&x()&&(y=0===s(g,r)?_:D),null!==y&&w()&&(p.push(vr({start:y,end:_,loop:h,count:o,style:f})),y=null),D=_,v=g));return null!==y&&p.push(vr({start:y,end:d,loop:h,count:o,style:f})),p}function yr(e,t){const n=[],i=e.segments;for(let r=0;r<i.length;r++){const a=br(i[r],e.points,t);a.length&&n.push(...a)}return n}function xr(e,t,n,i){return i&&i.setContext&&n?function(e,t,n,i){const r=e._chart.getContext(),a=wr(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=n.length,c=[];let u=a,d=t[0].start,h=d;function f(e,t,i,r){const a=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=a;for(;n[t%l].skip;)t+=a;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:i,style:r}),u=r,d=t%l)}}for(const p of t){d=s?d:p.start;let e,t=n[d%l];for(h=d+1;h<=p.end;h++){const a=n[h%l];e=wr(i.setContext(Ni(r,{type:"segment",p0:t,p1:a,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),_r(e,u)&&f(d,h-1,p.loop,u),t=a,u=e}d<h-1&&f(d,h-1,p.loop,u)}return c}(e,t,n,i):t}function wr(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function _r(e,t){if(!t)return!1;const n=[],i=function(e,t){return Hn(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,i)!==JSON.stringify(t,i)}class Dr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,i){const r=t.listeners[i],a=t.duration;r.forEach((i=>i({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)})))}_refresh(){this._request||(this._running=!0,this._request=jn.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}
vendor: 20,456 bytes, line 2
2_update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let a,o=r.length-1,s=!1;for(;o>=0;--o)a=r[o],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(e),s=!0):(r[o]=r[r.length-1],r.pop());s&&(i.draw(),this._notify(i,n,e,"progress")),r.length||(n.running=!1,this._notify(i,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Sr=new Dr;const kr="transparent",Cr={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const i=qn(e||kr),r=i.valid&&qn(t||kr);return r&&r.valid?r.mix(i,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class Ar{constructor(e,t,n,i){const r=t[n];i=Ei([e.to,i,r,e.from]);const a=Ei([e.from,r,i]);this._active=!0,this._fn=e.fn||Cr[e.type||typeof a],this._easing=Vn[e.easing]||Vn.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,a=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Ei([e.to,t,i,e.from]),this._from=Ei([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,i=this._prop,r=this._from,a=this._loop,o=this._to;let s;if(this._active=r!==o&&(a||t<n),!this._active)return this._target[i]=o,void this._notify(!0);t<0?this._target[i]=r:(s=t/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(r,o,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][t]()}}class Tr{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Ot(e))return;const t=Object.keys(ri.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((i=>{const r=e[i];if(!Ot(r))return;const a={};for(const e of t)a[e]=r[e];(Rt(r.properties)&&r.properties||[i]).forEach((e=>{e!==i&&n.has(e)||n.set(e,a)}))}))}_animateOptions(e,t){const n=t.options,i=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(e,t){const n=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const t=e[i[r]];t&&t.active()&&n.push(t.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,i=[],r=e.$animations||(e.$animations={}),a=Object.keys(t),o=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(r[l]=u=new Ar(d,e,l,c),i.push(u)):e[l]=c}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(Sr.add(this._chart,n),!0):void 0}}function Er(e,t){const n=e&&e.options||{},i=n.reverse,r=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:i?a:r,end:i?r:a}}function Nr(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,a;for(r=0,a=i.length;r<a;++r)n.push(i[r].index);return n}function Mr(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.keys,a="single"===i.mode;let o,s,l,c;if(null===t)return;let u=!1;for(o=0,s=r.length;o<s;++o){if(l=+r[o],l===n){if(u=!0,i.all)continue;break}c=e.values[l],It(c)&&(a||0===t||fn(t)===fn(c))&&(t+=c)}return u||i.all?t:0}function Pr(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Ur(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function jr(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function Fr(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=i,l=a.axis,c=o.axis,u=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(a,o,i),d=t.length;let h;for(let f=0;f<d;++f){const e=t[f],{[l]:n,[c]:a}=e;h=(e._stacks||(e._stacks={}))[c]=Ur(r,u,n),h[s]=a,h._top=jr(h,o,!0,i.type),h._bottom=jr(h,o,!1,i.type);(h._visualValues||(h._visualValues={}))[s]=a}}function Rr(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function Or(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[i]||void 0===t[i][n])return;delete t[i][n],void 0!==t[i]._visualValues&&void 0!==t[i]._visualValues[n]&&delete t[i]._visualValues[n]}}}const Ir=e=>"reset"===e||"none"===e,Lr=(e,t)=>t?e:Object.assign({},e);class Br{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Pr(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Or(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),i=(e,t,n,i)=>"x"===e?t:"r"===e?i:n,r=t.xAxisID=Bt(n.xAxisID,Rr(e,"x")),a=t.yAxisID=Bt(n.yAxisID,Rr(e,"y")),o=t.rAxisID=Bt(n.rAxisID,Rr(e,"r")),s=t.indexAxis,l=t.iAxisID=i(s,r,a,o),c=t.vAxisID=i(s,a,r,o);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Pn(this._data,this),e._stacked&&Or(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Ot(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:i}=t,r="x"===n.axis?"x":"y",a="x"===i.axis?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],s[l]={[r]:u,[a]:e[u]};return s}(t,e)}else if(n!==t){if(n){Pn(n,this);const e=this._cachedMeta;Or(e),e._parsed=[]}t&&Object.isExtensible(t)&&(r=this,(i=t)._chartjs?i._chartjs.listeners.push(r):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),Mn.forEach((e=>{const t="_onData"+Jt(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];const o=n.apply(this,r);return i._chartjs.listeners.forEach((e=>{"function"===typeof e[t]&&e[t](...r)})),o}})})))),this._syncList=[],this._data=t}var i,r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=t._stacked;t._stacked=Pr(t.vScale,t),t.stack!==n.stack&&(i=!0,Or(t),t.stack=n.stack),this._resyncElements(e),(i||r!==t._stacked)&&(Fr(this,t._parsed),t._stacked=Pr(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:a}=n,o=r.axis;let s,l,c,u=0===e&&t===i.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Rt(i[e])?this.parseArrayData(n,i,e,t):Ot(i[e])?this.parseObjectData(n,i,e,t):this.parsePrimitiveData(n,i,e,t);const r=()=>null===l[o]||d&&l[o]<d[o];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}a&&Fr(this,c)}parsePrimitiveData(e,t,n,i){const{iScale:r,vScale:a}=e,o=r.axis,s=a.axis,l=r.getLabels(),c=r===a,u=new Array(i);let d,h,f;for(d=0,h=i;d<h;++d)f=d+n,u[d]={[o]:c||r.parse(l[f],f),[s]:a.parse(t[f],f)};return u}parseArrayData(e,t,n,i){const{xScale:r,yScale:a}=e,o=new Array(i);let s,l,c,u;for(s=0,l=i;s<l;++s)c=s+n,u=t[c],o[s]={x:r.parse(u[0],c),y:a.parse(u[1],c)};return o}parseObjectData(e,t,n,i){const{xScale:r,yScale:a}=e,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=t[d],l[c]={x:r.parse(Zt(h,o),d),y:a.parse(Zt(h,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const i=this.chart,r=this._cachedMeta,a=t[e.axis];return Mr({keys:Nr(i,!0),values:t._stacks[e.axis]._visualValues},a,r.index,{mode:n})}updateRangeFromParsed(e,t,n,i){const r=n[t.axis];let a=null===r?NaN:r;const o=i&&n._stacks[t.axis];i&&o&&(i.values=o,a=Mr(i,r,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,t){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&e===n.iScale,a=i.length,o=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Nr(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let d,h;function f(){h=i[d];const t=h[o.axis];return!It(h[e.axis])||c>t||u<t}for(d=0;d<a&&(f()||(this.updateRangeFromParsed(l,e,h,s),!r));++d);if(r)for(d=a-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,e,h,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let i,r,a;for(i=0,r=t.length;i<r;++i)a=t[i][e.axis],It(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,i=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,i,r;return Ot(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:!1===e}}(Bt(this.options.clip,function(e,t,n){if(!1===n)return!1;const i=Er(e,n),r=Er(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,i=n.data||[],r=t.chartArea,a=[],o=this._drawStart||0,s=this._drawCount||i.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,o,s),c=o;c<o+s;++c){const t=i[c];t.hidden||(t.active&&l?a.push(t):t.draw(e,r))}for(c=0;c<a.length;++c)a[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const i=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return Ni(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return Ni(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0;const i="active"===t,r=this._cachedDataOpts,a=e+"-"+t,o=r[a],s=this.enableOptionSharing&&en(n);if(o)return Lr(o,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(ri.elements[e]),f=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,t)),u);return f.$shared&&(f.$shared=s,r[a]=Object.freeze(Lr(f,s))),f}_resolveAnimations(e,t,n){const i=this.chart,r=this._cachedDataOpts,a="animation-".concat(t),o=r[a];if(o)return o;let s;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,t),a=i.getOptionScopes(this.getDataset(),r);s=i.createResolver(a,this.getContext(e,n,t))}const l=new Tr(i,s&&s.animations);return s&&s._cacheable&&(r[a]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||Ir(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),i=this._sharedOptions,r=this.getSharedOptions(n),a=this.includeOptions(t,r)||r!==i;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:a}}updateElement(e,t,n,i){Ir(i)?Object.assign(e,n):this._resolveAnimations(t,i).update(e,n)}updateSharedOptions(e,t,n){e&&!Ir(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,i){e.active=i;const r=this.getStyle(t,i);this._resolveAnimations(t,n,i).update(e,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[o,s,l]of this._syncList)this[o](s,l);this._syncList=[];const i=n.length,r=t.length,a=Math.min(r,i);a&&this.parse(0,a),r>i?this._insertElements(i,r-i,e):r<i&&this._removeElements(r,i-r)}_insertElements(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=this._cachedMeta,r=i.data,a=e+t;let o;const s=e=>{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(r),o=e;o<a;++o)r[o]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,i){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(e,t);n._stacked&&Or(n,i)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,i]=e;this[t](n,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Wr(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let t=0,r=n.length;t<r;t++)i=i.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=Un(i.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let i,r,a,o,s=t._length;const l=()=>{32767!==a&&-32768!==a&&(en(o)&&(s=Math.min(s,Math.abs(a-o)||s)),o=a)};for(i=0,r=n.length;i<r;++i)a=t.getPixelForValue(n[i]),l();for(o=void 0,i=0,r=t.ticks.length;i<r;++i)a=t.getPixelForTick(i),l();return s}function zr(e,t,n,i){return Rt(e)?function(e,t,n,i){const r=n.parse(e[0],i),a=n.parse(e[1],i),o=Math.min(r,a),s=Math.max(r,a);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:a,min:o,max:s}}(e,t,n,i):t[n.axis]=n.parse(e,i),t}function Vr(e,t,n,i){const r=e.iScale,a=e.vScale,o=r.getLabels(),s=r===a,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=t[c],d={},d[r.axis]=s||r.parse(o[c],c),l.push(zr(h,d,a,c));return l}function Hr(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function qr(e,t,n,i){let r=t.borderSkipped;const a={};if(!r)return void(e.borderSkipped=a);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,i,r,a;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(r="end",a="start"):(r="start",a="end"),{start:n,end:i,reverse:t,top:r,bottom:a}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(a[Gr(u,o,s,l)]=!0,r=c)),a[Gr(r,o,s,l)]=!0,e.borderSkipped=a}function Gr(e,t,n,i){var r,a,o;return i?(o=n,e=Yr(e=(r=e)===(a=t)?o:r===o?a:r,n,t)):e=Yr(e,t,n),e}function Yr(e,t,n){return"start"===e?t:"end"===e?n:e}function Xr(e,t,n){let{inflateAmount:i}=t;e.inflateAmount="auto"===i?1===n?.33:0:i}Qe(Br,"defaults",{}),Qe(Br,"datasetElementType",null),Qe(Br,"dataElementType",null);class Kr extends Br{parsePrimitiveData(e,t,n,i){return Vr(e,t,n,i)}parseArrayData(e,t,n,i){return Vr(e,t,n,i)}parseObjectData(e,t,n,i){const{iScale:r,vScale:a}=e,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?o:s,c="x"===a.axis?o:s,u=[];let d,h,f,p;for(d=n,h=n+i;d<h;++d)p=t[d],f={},f[r.axis]=r.parse(Zt(p,l),d),u.push(zr(Zt(p,c),f,a,d));return u}updateRangeFromParsed(e,t,n,i){super.updateRangeFromParsed(e,t,n,i);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:i}=t,r=this.getParsed(e),a=r._custom,o=Hr(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,i){const r="reset"===i,{index:a,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,i);for(let h=t;h<t+n;h++){const t=this.getParsed(h),n=r||Ft(t[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),f=this._calculateBarIndexPixels(h,c),p=(t._stacks||{})[o.axis],g={horizontal:l,base:n.base,enableBorderRadius:!p||Hr(t._custom)||a===p._top||a===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(g.options=u||this.resolveDataElementOptions(h,e[h].active?"active":i));const m=g.options||e[h].options;qr(g,m,p,a),Xr(g,m,c.ratio),this.updateElement(e[h],h,g,i)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],l=e=>{const t=e._parsed.find((e=>
vendor: 8,248 bytes, line 2
2e[n.axis]===s)),i=t&&t[e.vScale.axis];if(Ft(i)||isNaN(i))return!0};for(const c of i)if((void 0===t||!l(c))&&((!1===r||-1===a.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&a.push(c.stack),c.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const i=this._getStacks(e,n),r=void 0!==t?i.indexOf(t):-1;return-1===r?i.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,i=[];let r,a;for(r=0,a=t.data.length;r<a;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=e.barThickness;return{min:o||Wr(t),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:i},options:{base:r,minBarLength:a}}=this,o=r||0,s=this.getParsed(e),l=s._custom,c=Hr(l);let u,d,h=s[t.axis],f=0,p=n?this.applyStack(t,s,n):h;p!==h&&(f=p-h,p=h),c&&(h=l.barStart,p=l.barEnd-l.barStart,0!==h&&fn(h)!==fn(l.barEnd)&&(f=0),f+=h);const g=Ft(r)||c?f:r;let m=t.getPixelForValue(g);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(f+p):m,d=u-m,Math.abs(d)<a){d=function(e,t,n){return 0!==e?fn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,o)*a,h===o&&(m-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),f=Math.max(e,r);m=Math.max(Math.min(m,f),l),u=m+d,n&&!c&&(s._stacks[t.axis]._visualValues[i]=t.getValueForPixel(u)-t.getValueForPixel(m))}if(m===t.getPixelForValue(o)){const e=fn(d)*t.getLineWidthForValue(o)/2;m+=e,d-=e}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,i=this.options,r=i.skipNull,a=Bt(i.maxBarThickness,1/0);let o,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===i.barThickness?function(e,t,n,i){const r=t.pixels,a=r[e];let o=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o);const c=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/i,ratio:n.barPercentage,start:c}}(e,t,i,n):function(e,t,n,i){const r=n.barThickness;let a,o;return Ft(r)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=r*i,o=1),{chunk:a/i,ratio:o,start:t.pixels[e]-a/2}}(e,t,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);o=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(a,t.min*t.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[t.axis]||n[r].hidden||n[r].draw(this._ctx)}}Qe(Kr,"id","bar"),Qe(Kr,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Qe(Kr,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class $r extends Br{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,i){const r=super.parsePrimitiveData(e,t,n,i);for(let a=0;a<r.length;a++)r[a]._custom=this.resolveDataElementOptions(a+n).radius;return r}parseArrayData(e,t,n,i){const r=super.parseArrayData(e,t,n,i);for(let a=0;a<r.length;a++){const e=t[n+a];r[a]._custom=Bt(e[2],this.resolveDataElementOptions(a+n).radius)}return r}parseObjectData(e,t,n,i){const r=super.parseObjectData(e,t,n,i);for(let a=0;a<r.length;a++){const e=t[n+a];r[a]._custom=Bt(e&&e.r&&+e.r,this.resolveDataElementOptions(a+n).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=t,a=this.getParsed(e),o=i.getLabelForValue(a.x),s=r.getLabelForValue(a.y),l=a._custom;return{label:n[e]||"",value:"("+o+", "+s+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,i){const r="reset"===i,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,i),c=a.axis,u=o.axis;for(let d=t;d<t+n;d++){const t=e[d],n=!r&&this.getParsed(d),h={},f=h[c]=r?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),p=h[u]=r?o.getBasePixel():o.getPixelForValue(n[u]);h.skip=isNaN(f)||isNaN(p),l&&(h.options=s||this.resolveDataElementOptions(d,t.active?"active":i),r&&(h.options.radius=0)),this.updateElement(t,d,h,i)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let i=super.resolveDataElementOptions(e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Bt(n&&n._custom,r),i}}Qe($r,"id","bubble"),Qe($r,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),Qe($r,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class Qr extends Br{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let r,a,o=e=>+n[e];if(Ot(n[e])){const{key:e="value"}=this._parsing;o=t=>+Zt(n[t],e)}for(r=e,a=e+t;r<a;++r)i._parsed[r]=o(r)}}_getRotation(){return bn(this.options.rotation-90)}_getCircumference(){return bn(this.options.circumference)}_getRotationExtents(){let e=an,t=-an;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),a=i._getCircumference();e=Math.min(e,r),t=Math.max(t,r+a)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,i=this._cachedMeta,r=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min((l=this.options.cutout,c=o,"string"===typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(e,t,n){let i=1,r=1,a=0,o=0;if(t<an){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(e,t,i)=>kn(e,s,l,!0)?1:Math.max(t,t*n,i,i*n),p=(e,t,i)=>kn(e,s,l,!0)?-1:Math.min(t,t*n,i,i*n),g=f(0,c,d),m=f(cn,u,h),v=p(rn,c,d),b=p(rn+cn,u,h);i=(g-v)/2,r=(m-b)/2,a=-(g+v)/2,o=-(m+b)/2}return{ratioX:i,ratioY:r,offsetX:a,offsetY:o}}(h,d,s),v=(n.width-a)/f,b=(n.height-a)/p,y=Math.max(Math.min(v,b)/2,0),x=Wt(this.options.radius,y),w=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*r/an)}updateElements(e,t,n,i){const r="reset"===i,a=this.chart,o=a.chartArea,s=a.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(t,i);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,r);for(g=t;g<t+n;++g){const t=this._circumference(g,r),n=e[g],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:h,innerRadius:d};p&&(a.options=f||this.resolveDataElementOptions(g,n.active?"active":i)),m+=t,this.updateElement(n,g,a,i)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,i=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?an*(Math.abs(e)/t):0}
vendor: 5,295 bytes, line 2
2getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=$n(t._parsed[e],n.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let i,r,a,o,s;if(!e)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),e=a.data,o=a.controller;break}if(!e)return 0;for(i=0,r=e.length;i<r;++i)s=o.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,i=e.length;n<i;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(Bt(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Qe(Qr,"id","doughnut"),Qe(Qr,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Qe(Qr,"descriptors",{_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),Qe(Qr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return t.labels.map(((t,r)=>{const a=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:i,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class Zr extends Br{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=t,a=this.chart._animationsDisabled;let{start:o,count:s}=In(t,i,a);this._drawStart=o,this._drawCount=s,Ln(t)&&(o=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},e),this.updateElements(i,o,s,e)}updateElements(e,t,n,i){const r="reset"===i,{iScale:a,vScale:o,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,i),d=a.axis,h=o.axis,{spanGaps:f,segment:p}=this.options,g=mn(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===i,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let x=0;x<b;++x){const n=e[x],f=m?n:{};if(x<t||x>=v){f.skip=!0;continue}const b=this.getParsed(x),w=Ft(b[h]),_=f[d]=a.getPixelForValue(b[d],x),D=f[h]=r||w?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[h],x);f.skip=isNaN(_)||isNaN(D)||w,f.stop=x>0&&Math.abs(b[d]-y[d])>g,p&&(f.parsed=b,f.raw=l.data[x]),u&&(f.options=c||this.resolveDataElementOptions(x,n.active?"active":i)),m||this.updateElement(n,x,f,i),y=b}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,i=e.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Qe(Zr,"id","line"),Qe(Zr,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Qe(Zr,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Jr extends Br{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=$n(t._parsed[e].r,n.options.locale);return{label:i[e]||"",value:r}}parseObjectData(e,t,n,i){return Hi.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<t.min&&(t.min=i),i>t.max&&(t.max=i))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,i=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(i/2,0),a=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,i){const r="reset"===i,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*rn;let d,h=u;const f=360/this.countVisibleElements();for(d=0;d<t;++d)h+=this._computeAngle(d,i,f);for(d=t;d<t+n;d++){const t=e[d];let n=h,p=h+this._computeAngle(d,i,f),g=a.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=p,r&&(o.animateScale&&(g=0),o.animateRotate&&(n=p=u));
2const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(d,t.active?"active":i)};this.updateElement(t,d,m,i)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?bn(this.resolveDataElementOptions(e,t).angle||n):0}}Qe(Jr,"id","polarArea"),Qe(Jr,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Qe(Jr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return t.labels.map(((t,r)=>{const a=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:i,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class ea extends Qr{}Qe(ea,"id","pie"),Qe(ea,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class ta extends Br{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,i){return Hi.bind(this)(e,t,n,i)}update(e){const t=this._cachedMeta,n=t.dataset,i=t.data||[],r=t.iScale.getLabels();if(n.points=i,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===i.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(i,0,i.length,e)}updateElements(e,t,n,i){const r=this._cachedMeta.rScale,a="reset"===i;for(let o=t;o<t+n;o++){const t=e[o],n=this.resolveDataElementOptions(o,t.active?"active":i),s=r.getPointPositionForValue(o,this.getParsed(o).r),l=a?r.xCenter:s.x,c=a?r.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,o,u,i)}}}Qe(ta,"id","radar"),Qe(ta,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),Qe(ta,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});
vendor: 4,759 bytes, line 2
2class na extends Br{getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=t,a=this.getParsed(e),o=i.getLabelForValue(a.x),s=r.getLabelForValue(a.y);return{label:n[e]||"",value:"("+o+", "+s+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,i=this.chart._animationsDisabled;let{start:r,count:a}=In(t,n,i);if(this._drawStart=r,this._drawCount=a,Ln(t)&&(r=0,a=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:a}=t;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=n;const o=this.resolveDatasetElementOptions(e);o.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:o},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,r,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,i){const r="reset"===i,{iScale:a,vScale:o,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,i),u=this.getSharedOptions(c),d=this.includeOptions(i,u),h=a.axis,f=o.axis,{spanGaps:p,segment:g}=this.options,m=mn(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||r||"none"===i;let b=t>0&&this.getParsed(t-1);for(let y=t;y<t+n;++y){const t=e[y],n=this.getParsed(y),c=v?t:{},p=Ft(n[f]),x=c[h]=a.getPixelForValue(n[h],y),w=c[f]=r||p?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,n,s):n[f],y);c.skip=isNaN(x)||isNaN(w)||p,c.stop=y>0&&Math.abs(n[h]-b[h])>m,g&&(c.parsed=n,c.raw=l.data[y]),d&&(c.options=u||this.resolveDataElementOptions(y,t.active?"active":i)),v||this.updateElement(t,y,c,i),b=n}this.updateSharedOptions(u,i,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,i=n.options&&n.options.borderWidth||0;if(!t.length)return i;const r=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,r,a)/2}}Qe(na,"id","scatter"),Qe(na,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Qe(na,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function ia(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ra{static override(e){Object.assign(ra.prototype,e)}constructor(e){Qe(this,"options",void 0),this.options=e||{}}init(){}formats(){return ia()}parse(){return ia()}format(){return ia()}add(){return ia()}diff(){return ia()}startOf(){return ia()}endOf(){return ia()}}var aa=ra;function oa(e,t,n,i){const{controller:r,data:a,_sorted:o}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&o&&a.length){const e=s._reversePixels?Nn:En;if(!i)return e(a,t,n);if(r._sharedOptions){const i=a[0],r="function"===typeof i.getRange&&i.getRange(t);if(r){const i=e(a,t,n-r),o=e(a,t,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:a.length-1}}function sa(e,t,n,i,r){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s<l;++s){const{index:e,data:n}=a[s],{lo:l,hi:c}=oa(a[s],t,o,r);for(let t=l;t<=c;++t){const r=n[t];r.skip||i(r,e,t)}}}function la(e,t,n,i,r){const a=[];if(!r&&!e.isPointInArea(t))return a;return sa(e,n,t,(function(n,o,s){(r||di(n,e.chartArea,0))&&n.inRange(t.x,t.y,i)&&a.push({element:n,datasetIndex:o,index:s})}),!0),a}function ca(e,t,n,i,r,a){let o=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){const r=t?Math.abs(e.x-i.x):0,a=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return sa(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!(!!a||e.isPointInArea(h))&&!d)return;const f=s(t,h);f<l?(o=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&o.push({element:n,datasetIndex:c,index:u})})),o}function ua(e,t,n,i,r,a){return a||e.isPointInArea(t)?"r"!==n||i?ca(e,t,n,i,r,a):function(e,t,n,i){let r=[];return sa(e,n,t,(function(e,n,a){const{startAngle:o,endAngle:s}=e.getProps(["startAngle","endAngle"],i),{angle:l}=wn(e,{x:t.x,y:t.y});kn(l,o,s)&&r.push({element:e,datasetIndex:n,index:a})})),r}(e,t,n,r):[]}function da(e,t,n,i,r){const a=[],o="x"===n?"inXRange":"inYRange";let s=!1;return sa(e,n,t,((e,i,l)=>{e[o]&&e[o](t[n],r)&&(a.push({element:e,datasetIndex:i,index:l}),s=s||e.inRange(t.x,t.y,r))})),i&&!s?[]:a}var ha={evaluateInteractionItems:sa,modes:{index(e,t,n,i){const r=rr(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?la(e,r,a,i,o):ua(e,r,a,!1,i,o),l=[];
vendor: 8,081 bytes, line 2
2return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,i){const r=rr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?la(e,r,a,i,o):ua(e,r,a,!1,i,o);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,i)=>la(e,rr(t,e),n.axis||"xy",i,n.includeInvisible||!1),nearest(e,t,n,i){const r=rr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return ua(e,r,a,n.intersect,i,o)},x:(e,t,n,i)=>da(e,rr(t,e),"x",n.intersect,i),y:(e,t,n,i)=>da(e,rr(t,e),"y",n.intersect,i)}};const fa=["left","top","right","bottom"];function pa(e,t){return e.filter((e=>e.pos===t))}function ga(e,t){return e.filter((e=>-1===fa.indexOf(e.pos)&&e.box.axis===t))}function ma(e,t){return e.sort(((e,n)=>{const i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function va(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:i,stackWeight:r}=n;if(!e||!fa.includes(i))continue;const a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=r}return t}(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:o}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:o&&t.availableWidth,s.height=r):(s.width=i,s.height=c?c*r:o&&t.availableHeight)}return n}function ba(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function ya(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function xa(e,t,n,i){const{pos:r,box:a}=n,o=e.maxPadding;if(!Ot(r)){n.size&&(e[r]-=n.size);const t=i[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[r]+=n.size}a.getPadding&&ya(o,a.getPadding());const s=Math.max(0,t.outerWidth-ba(o,e,"left","right")),l=Math.max(0,t.outerHeight-ba(o,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function wa(e,t){const n=t.maxPadding;function i(e){const i={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{i[e]=Math.max(t[e],n[e])})),i}return i(e?["left","right"]:["top","bottom"])}function _a(e,t,n,i){const r=[];let a,o,s,l,c,u;for(a=0,o=e.length,c=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,wa(s.horizontal,t));const{same:o,other:d}=xa(t,n,s,i);c|=o&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&_a(r,t,n,i)||u}function Da(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function Sa(e,t,n,i){const r=n.padding;let{x:a,y:o}=t;for(const s of e){const e=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=t.w*c,a=l.size||e.height;en(l.start)&&(o=l.start),e.fullSize?Da(e,r.left,o,n.outerWidth-r.right-r.left,a):Da(e,t.left+l.placed,o,i,a),l.start=o,l.placed+=i,o=e.bottom}else{const i=t.h*c,o=l.size||e.width;en(l.start)&&(a=l.start),e.fullSize?Da(e,a,r.top,o,n.outerHeight-r.bottom-r.top):Da(e,a,t.top+l.placed,o,i),l.start=a,l.placed+=i,a=e.right}}t.x=a,t.y=o}var ka={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=Ai(e.options.layout.padding),a=Math.max(t-r.width,0),o=Math.max(n-r.height,0),s=function(e){const t=function(e){const t=[];let n,i,r,a,o,s;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],({position:a,options:{stack:o,stackWeight:s=1}}=r),t.push({index:n,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&a+o,stackWeight:s});return t}(e),n=ma(t.filter((e=>e.box.fullSize)),!0),i=ma(pa(t,"left"),!0),r=ma(pa(t,"right")),a=ma(pa(t,"top"),!0),o=ma(pa(t,"bottom")),s=ga(t,"x"),l=ga(t,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:r.concat(l).concat(o).concat(s),chartArea:pa(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:a.concat(o).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;Vt(e.boxes,(e=>{"function"===typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},r);ya(h,Ai(i));const f=Object.assign({maxPadding:h,w:a,h:o,x:r.left,y:r.top},r),p=va(l.concat(c),d);_a(s.fullSize,f,d,p),_a(l,f,d,p),_a(c,f,d,p)&&_a(l,f,d,p),function(e){const t=e.maxPadding;function n(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(f),Sa(s.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,Sa(s.rightAndBottom,f,d,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Vt(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Ca{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,i){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):n)}}isAttached(e){return!0}updateConfig(e){}}class Aa extends Ca{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Ta="$chartjs",Ea={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Na=e=>null===e||""===e;const Ma=!!lr&&{passive:!0};function Pa(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Ma)}function Ua(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function ja(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Ua(n.addedNodes,i),t=t&&!Ua(n.removedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Fa(e,t,n){const i=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||Ua(n.removedNodes,i),t=t&&!Ua(n.addedNodes,i);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Ra=new Map;let Oa=0;function Ia(){const e=window.devicePixelRatio;e!==Oa&&(Oa=e,Ra.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function La(e,t,n){const i=e.canvas,r=i&&Ji(i);if(!r)return;const a=Fn(((e,t)=>{const i=r.clientWidth;n(e,t),i<r.clientWidth&&n()}),window),o=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,i=t.contentRect.height;0===n&&0===i||a(n,i)}));return o.observe(r),function(e,t){Ra.size||window.addEventListener("resize",Ia),Ra.set(e,t)}(e,a),o}function Ba(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Ra.delete(e),Ra.size||window.removeEventListener("resize",Ia)}(e)}function Wa(e,t,n){const i=e.canvas,r=Fn((t=>{null!==e.ctx&&n(function(e,t){const n=Ea[e.type]||e.type,{x:i,y:r}=rr(e,t);return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,Ma)}(i,t,r),r}class za extends Ca{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[Ta]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Na(r)){const t=cr(e,"width");void 0!==t&&(e.width=t)}if(Na(i))if(""===e.style.height)e.height=e.width/(t||2);else{const t=cr(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[Ta])return!1;const n=t[Ta].initial;["height","width"].forEach((e=>{const i=n[e];Ft(i)?t.removeAttribute(e):t.setAttribute(e,i)}));const i=n.style||{};
2return Object.keys(i).forEach((e=>{t.style[e]=i[e]})),t.width=t.width,delete t[Ta],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),r={attach:ja,detach:Fa,resize:La}[t]||Wa;i[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),i=n[t];if(!i)return;({attach:Ba,detach:Ba,resize:Ba}[t]||Pa)(e,t,i),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,i){return or(e,t,n,i)}isAttached(e){const t=e&&Ji(e);return!(!t||!t.isConnected)}}class Va{constructor(){Qe(this,"x",void 0),Qe(this,"y",void 0),Qe(this,"active",!1),Qe(this,"options",void 0),Qe(this,"$animations",void 0)}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return mn(this.x)&&mn(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const i={};return e.forEach((e=>{i[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),i}}function Ha(e,t){const n=e.options.ticks,i=function(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}(e),r=Math.min(n.maxTicksLimit||i,i),a=n.major.enabled?function(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}(t):[],o=a.length,s=a[0],l=a[o-1],c=[];if(o>r)return function(e,t,n,i){let r,a=0,o=n[0];for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),a++,o=n[a*i])}(t,c,a,o/r),c;const u=function(e,t,n){const i=function(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}(e),r=t.length/n;if(!i)return Math.max(r,1);const a=function(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));
vendor: 4,357 bytes, line 2
2return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(i);for(let o=0,s=a.length-1;o<s;o++){const e=a[o];if(e>r)return e}return Math.max(r,1)}(a,t,r);if(o>0){let e,n;const i=o>1?Math.round((l-s)/(o-1)):null;for(qa(t,c,u,Ft(i)?0:s-i,s),e=0,n=o-1;e<n;e++)qa(t,c,u,a[e],a[e+1]);return qa(t,c,u,l,Ft(i)?t.length:l+i),c}return qa(t,c,u),c}function qa(e,t,n,i,r){const a=Bt(i,0),o=Math.min(Bt(r,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-i,n=s/Math.floor(s/n)),c=a;c<0;)u++,c=Math.round(a+u*n);for(l=Math.max(a,0);l<o;l++)l===c&&(t.push(e[l]),u++,c=Math.round(a+u*n))}Qe(Va,"defaults",{}),Qe(Va,"defaultRoutes",void 0);const Ga=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,Ya=(e,t)=>Math.min(t||e,e);function Xa(e,t){const n=[],i=e.length/t,r=e.length;let a=0;for(;a<r;a+=i)n.push(e[Math.floor(a)]);return n}function Ka(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-a,o-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<a-s||c>o+s)))return c}function $a(e){return e.drawTicks?e.tickLength:0}function Qa(e,t){if(!e.display)return 0;const n=Ti(e.font,t),i=Ai(e.padding);return(Rt(e.text)?e.text.length:1)*n.lineHeight+i.height}function Za(e,t,n){let i=Rn(e);return(n&&"right"!==t||!n&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class Ja extends Va{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:i}=this;return e=Lt(e,Number.POSITIVE_INFINITY),t=Lt(t,Number.NEGATIVE_INFINITY),n=Lt(n,Number.POSITIVE_INFINITY),i=Lt(i,Number.NEGATIVE_INFINITY),{min:Lt(e,n),max:Lt(t,i),minDefined:It(e),maxDefined:It(t)}}getMinMax(e){let t,{min:n,max:i,minDefined:r,maxDefined:a}=this.getUserBounds();if(r&&a)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let s=0,l=o.length;s<l;++s)t=o[s].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),a||(i=Math.max(i,t.max));return n=a&&n>i?i:n,i=r&&n>i?n:i,{min:Lt(n,Lt(i,n)),max:Lt(i,Lt(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){zt(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:i,grace:r,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:i,max:r}=e,a=Wt(t,(r-i)/2),o=(e,t)=>n&&0===e?0:e+t;
vendor: 4,209 bytes, line 2
2return{min:o(i,-Math.abs(a)),max:o(r,a)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=o<this.ticks.length;this._convertTicksToLabels(s?Xa(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=Ha(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){zt(this.options.afterUpdate,[this])}beforeSetDimensions(){zt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){zt(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),zt(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){zt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,i,r;for(n=0,i=e.length;n<i;n++)r=e[n],r.label=zt(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){zt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){zt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=Ya(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotation||0,r=t.maxRotation;let a,o,s,l=i;if(!this._isVisible()||!t.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Cn(this.chart.width-u,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),u+6>a&&(a=h/(n-(e.offset?.5:1)),o=this.maxHeight-$a(e.grid)-t.padding-Qa(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=yn(Math.min(Math.asin(Cn((c.highest.height+6)/a,-1,1)),Math.asin(Cn(o/s,-1,1))-Math.asin(Cn(d/s,-1,1)))),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){zt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){zt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:i,grid:r}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){const a=Qa(i,t.options.font);if(o?(e.width=this.maxWidth,e.height=$a(r)+a):(e.height=this.maxHeight,e.width=$a(r)+a),n.display&&this.ticks.length){const{first:t,last:i,widest:r,highest:a}=this._getLabelSizes(),s=2*n.padding,l=bn(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const t=n.mirror?0:u*r.width+c*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,i,u,c)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,i){const{ticks:{align:r,padding:a},position:o}=this.options,s=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=i*e.width,d=n*t.height):(u=n*e.height,d=i*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+a)*this.width/(this.width-c),0)}else{let n=t.height/2,i=e.height/2;
vendor: 13,384 bytes, line 2
2"start"===r?(n=0,i=e.height):"end"===r&&(n=t.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){zt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)Ft(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=Xa(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:i,_longestTextCache:r}=this,a=[],o=[],s=Math.floor(t/Ya(t,n));let l,c,u,d,h,f,p,g,m,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,h=this._resolveTickFontOptions(l),i.font=f=h.string,p=r[f]=r[f]||{data:{},gc:[]},g=h.lineHeight,m=v=0,Ft(d)||Rt(d)){if(Rt(d))for(c=0,u=d.length;c<u;++c)b=d[c],Ft(b)||Rt(b)||(m=ai(i,p.data,p.gc,m,b),v+=g)}else m=ai(i,p.data,p.gc,m,d),v=g;a.push(m),o.push(v),y=Math.max(m,y),x=Math.max(v,x)}!function(e,t){Vt(e,(e=>{const n=e.gc,i=n.length/2;let r;if(i>t){for(r=0;r<i;++r)delete e.data[n[r]];n.splice(0,i)}}))}(r,t);const w=a.indexOf(y),_=o.indexOf(x),D=e=>({width:a[e]||0,height:o[e]||0});return{first:D(0),last:D(t-1),widest:D(w),highest:D(_),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Cn(this._alignToPixels?si(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return Ni(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=function(e,t){return Ni(e,{scale:t,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=bn(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),r=this._getLabelSizes(),a=e.autoSkipPadding||0,o=r?r.widest.width+a:0,s=r?r.highest.height+a:0;return this.isHorizontal()?s*n>o*i?o/n:s/i:s*i<o*n?s/n:o/i}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,i=this.options,{grid:r,position:a,border:o}=i,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=$a(r),d=[],h=o.setContext(this.getContext()),f=h.display?h.width:0,p=f/2,g=function(e){return si(n,e,f)};let m,v,b,y,x,w,_,D,S,k,C,A;if("top"===a)m=g(this.bottom),w=this.bottom-u,D=m-p,k=g(e.top)+p,A=e.bottom;else if("bottom"===a)m=g(this.top),k=e.top,A=g(e.bottom)-p,w=m+p,D=this.top+u;else if("left"===a)m=g(this.right),x=this.right-u,_=m-p,S=g(e.left)+p,C=e.right;else if("right"===a)m=g(this.left),S=e.left,C=g(e.right)-p,x=m+p,_=this.left+u;else if("x"===t){if("center"===a)m=g((e.top+e.bottom)/2+.5);else if(Ot(a)){const e=Object.keys(a)[0],t=a[e];m=g(this.chart.scales[e].getPixelForValue(t))}k=e.top,A=e.bottom,w=m+p,D=w+u}else if("y"===t){if("center"===a)m=g((e.left+e.right)/2);else if(Ot(a)){const e=Object.keys(a)[0],t=a[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-p,_=x-u,S=e.left,C=e.right}const T=Bt(i.ticks.maxTicksLimit,c),E=Math.max(1,Math.ceil(c/T));for(v=0;v<c;v+=E){const e=this.getContext(v),t=r.setContext(e),i=o.setContext(e),a=t.lineWidth,c=t.color,u=i.dash||[],h=i.dashOffset,f=t.tickWidth,p=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=Ka(this,v,s),void 0!==b&&(y=si(n,b,a),l?x=_=S=C=y:w=D=k=A=y,d.push({tx1:x,ty1:w,tx2:_,ty2:D,x1:S,y1:k,x2:C,y2:A,width:a,color:c,borderDash:u,borderDashOffset:h,tickWidth:f,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:i,ticks:r}=n,a=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=$a(n.grid),h=d+c,f=u?-c:h,p=-bn(this.labelRotation),g=[];let m,v,b,y,x,w,_,D,S,k,C,A,T="middle";if("top"===i)w=this.bottom-f,_=this._getXAxisLabelAlignment();else if("bottom"===i)w=this.top+f,_=this._getXAxisLabelAlignment();else if("left"===i){const e=this._getYAxisLabelAlignment(d);_=e.textAlign,x=e.x}else if("right"===i){const e=this._getYAxisLabelAlignment(d);_=e.textAlign,x=e.x}else if("x"===t){if("center"===i)w=(e.top+e.bottom)/2+h;else if(Ot(i)){const e=Object.keys(i)[0],t=i[e];w=this.chart.scales[e].getPixelForValue(t)+h}_=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===i)x=(e.left+e.right)/2-h;else if(Ot(i)){const e=Object.keys(i)[0],t=i[e];x=this.chart.scales[e].getPixelForValue(t)}_=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?T="top":"end"===s&&(T="bottom"));const E=this._getLabelSizes();for(m=0,v=o.length;m<v;++m){b=o[m],y=b.label;const e=r.setContext(this.getContext(m));D=this.getPixelForTick(m)+r.labelOffset,S=this._resolveTickFontOptions(m),k=S.lineHeight,C=Rt(y)?y.length:1;const t=C/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,h=_;if(a?(x=D,"inner"===_&&(h=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===l||0!==p?-C*k+k/2:"center"===l?-E.highest.height/2-t*k+k:-E.highest.height+k/2:"near"===l||0!==p?k/2:"center"===l?E.highest.height/2-t*k:E.highest.height-C*k,u&&(A*=-1),0===p||e.showLabelBackdrop||(x+=k/2*Math.sin(p))):(w=D,A=(1-C)*k/2),e.showLabelBackdrop){const t=Ai(e.backdropPadding),n=E.heights[m],i=E.widths[m];let r=A-t.top,a=0-t.left;switch(T){case"middle":r-=n/2;break;case"bottom":r-=n}switch(_){case"center":a-=i/2;break;case"right":a-=i;break;case"inner":m===v-1?a-=i:m>0&&(a-=i/2)}d={left:a,top:r,width:i+t.width,height:n+t.height,color:e.backdropColor}}g.push({label:y,font:S,textOffset:A,options:{rotation:p,color:n,strokeColor:s,strokeWidth:c,textAlign:h,textBaseline:T,translation:[x,w],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-bn(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,a=e+r,o=this._getLabelSizes().widest.width;let s,l;return"left"===t?i?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l+=o)):(l=this.right-a,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l=this.left)):"right"===t?i?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l-=o)):(l=this.left+a,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:i,width:r,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,i,r,a),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,a;const o=(e,t,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,a=i.length;r<a;++r){const e=i[r];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),a=n.display?r.width:0;if(!a)return;const o=i.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=si(e,this.left,a)-a/2,c=si(e,this.right,o)+o/2,u=d=s):(u=si(e,this.top,a)-a/2,d=si(e,this.bottom,o)+o/2,l=c=s),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&hi(t,n);const i=this.getLabelItems(e);for(const r of i){const e=r.options,n=r.font;bi(t,r.label,0,r.textOffset,n,e)}n&&fi(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:i}}=this;if(!n.display)return;const r=Ti(n.font),a=Ai(n.padding),o=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||Ot(t)?(s+=a.bottom,Rt(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,i){const{top:r,left:a,bottom:o,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,h,f,p=0;const g=o-r,m=s-a;if(e.isHorizontal()){if(h=On(i,a,s),Ot(n)){const e=Object.keys(n)[0],i=n[e];f=u[e].getPixelForValue(i)+g-t}else f="center"===n?(c.bottom+c.top)/2+g-t:Ga(e,n,t);d=s-a}else{if(Ot(n)){const e=Object.keys(n)[0],i=n[e];h=u[e].getPixelForValue(i)-m+t}else h="center"===n?(c.left+c.right)/2-m+t:Ga(e,n,t);f=On(i,o,r),p="left"===n?-cn:cn}return{titleX:h,titleY:f,maxWidth:d,rotation:p}}(this,s,t,o);bi(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:Za(o,t,i),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=Bt(e.grid&&e.grid.z,-1),i=Bt(e.border&&e.border.z,0);return this._isVisible()&&this.draw===Ja.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,a;for(r=0,a=t.length;r<a;++r){const a=t[r];a[n]!==this.id||e&&a.type!==e||i.push(a)}return i}_resolveTickFontOptions(e){return Ti(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class eo{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const i=this.items,r=e.id,a=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in i||(i[r]=e,function(e,t,n){const i=Xt(Object.create(null),[n?ri.get(n):{},ri.get(t),e.defaults]);ri.set(t,i),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const i=n.split("."),r=i.pop(),a=[e].concat(i).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");ri.route(a,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&ri.describe(t,e.descriptors)}(e,a,n),this.override&&ri.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,i=this.scope;n in t&&delete t[n],i&&n in ri[i]&&(delete ri[i][n],this.override&&delete Jn[n])}}class to{constructor(){this.controllers=new eo(Br,"datasets",!0),this.elements=new eo(Va,"elements"),this.plugins=new eo(Object,"plugins"),this.scales=new eo(Ja,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}remove(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}addControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}addElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}addPlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}addScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}
vendor: 3,482 bytes, line 2
2removeControllers(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}removeElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}removePlugins(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}removeScales(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}_each(e,t,n){[...t].forEach((t=>{const i=n||this._getRegistryForType(t);n||i.isForType(t)||i===this.plugins&&t.id?this._exec(e,i,t):Vt(t,(t=>{const i=n||this._getRegistryForType(t);this._exec(e,i,t)}))}))}_exec(e,t,n){const i=Jt(e);zt(n["before"+i],[],n),t[e](n),zt(n["after"+i],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const i=t.get(e);if(void 0===i)throw new Error('"'+e+'" is not a registered '+n+".");return i}}var no=new to;class io{constructor(){this._init=[]}notify(e,t,n,i){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=i?this._descriptors(e).filter(i):this._descriptors(e),a=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),a}_notify(e,t,n,i){i=i||{};for(const r of e){const e=r.plugin;if(!1===zt(e[n],[t,i,r.options],e)&&i.cancelable)return!1}return!0}invalidate(){Ft(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,i=Bt(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],i=Object.keys(no.plugins.items);for(let a=0;a<i.length;a++)n.push(no.getPlugin(i[a]));const r=e.plugins||[];for(let a=0;a<r.length;a++){const e=r[a];-1===n.indexOf(e)&&(n.push(e),t[e.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==i||t?function(e,t,n,i){let{plugins:r,localIds:a}=t;const o=[],s=e.getContext();for(const l of r){const t=l.id,r=ro(n[t],i);null!==r&&o.push({plugin:l,options:ao(e.config,{plugin:l,local:a[t]},r,s)})}return o}(e,r,i,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,i=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(i(t,n),e,"stop"),this._notify(i(n,t),e,"start")}}function ro(e,t){return t||!1!==e?!0===e?{}:e:null}function ao(e,t,n,i){let{plugin:r,local:a}=t;const o=e.pluginScopeKeys(r),s=e.getOptionScopes(n,o);return a&&r.defaults&&s.push(r.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function oo(e,t){const n=ri.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function so(e){if("x"===e||"y"===e||"r"===e)return e}function lo(e){if(so(e))return e;for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(const a of n){const t=a.axis||("top"===(r=a.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||e.length>1&&so(e[0].toLowerCase());if(t)return t}var r;throw new Error("Cannot determine type of '".concat(e,"' axis. Please provide 'axis' or 'position' option."))}function co(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function uo(e,t){const n=Jn[e.type]||{scales:{}},i=t.scales||{},r=oo(e.type,t),a=Object.create(null);
2return Object.keys(i).forEach((t=>{const o=i[t];if(!Ot(o))return console.error("Invalid scale configuration for scale: ".concat(t));if(o._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(t));const s=lo(t,o,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return co(e,"x",n[0])||co(e,"y",n[0])}return{}}(t,e),ri.scales[o.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};a[t]=Kt(Object.create(null),[{axis:s},o,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,o=n.indexAxis||oo(r,t),s=(Jn[r]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,o),r=n[t+"AxisID"]||t;a[r]=a[r]||Object.create(null),Kt(a[r],[{axis:t},i[r],s[e]])}))})),Object.keys(a).forEach((e=>{const t=a[e];Kt(t,[ri.scales[t.type],ri.scale])})),a}function ho(e){const t=e.options||(e.options={});t.plugins=Bt(t.plugins,{}),t.scales=uo(e,t)}function fo(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const po=new Map,go=new Set;function mo(e,t){let n=po.get(e);return n||(n=t(),po.set(e,n),go.add(n)),n}const vo=(e,t,n)=>{const i=Zt(t,n);void 0!==i&&e.add(i)};class bo{constructor(e){this._config=function(e){return(e=e||{}).data=fo(e.data),ho(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=fo(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),ho(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return mo(e,(()=>[["datasets.".concat(e),""]]))}datasetAnimationScopeKeys(e,t){return mo("".concat(e,".transition.").concat(t),(()=>[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]))}datasetElementScopeKeys(e,t){return mo("".concat(e,"-").concat(t),(()=>[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]))}pluginScopeKeys(e){const t=e.id,n=this.type;return mo("".concat(n,"-plugin-").concat(t),(()=>[["plugins.".concat(t),...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let i=n.get(e);return i&&!t||(i=new Map,n.set(e,i)),i}getOptionScopes(e,t,n){const{options:i,type:r}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>vo(s,e,t)))),t.forEach((e=>vo(s,i,e))),t.forEach((e=>vo(s,Jn[r]||{},e))),t.forEach((e=>vo(s,ri,e))),t.forEach((e=>vo(s,ei,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),go.has(t)&&a.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Jn[t]||{},ri.datasets[t]||{},{type:t},ri,ei]}resolveNamedOptions(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""];const r={$shared:!0},{resolver:a,subPrefixes:o}=yo(this._resolverCache,e,i);let s=a;if(function(e,t){const{isScriptable:n,isIndexable:i}=Ui(e);for(const r of t){const t=n(r),a=i(r),o=(a||t)&&e[r];if(t&&(tn(o)||xo(o))||a&&Rt(o))return!0}return!1}(a,t)){r.$shared=!1;s=Pi(a,n=tn(n)?n():n,this.createResolver(e,n,o))}for(const l of t)r[l]=s[l];return r}createResolver(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],i=arguments.length>3?arguments[3]:void 0;const{resolver:r}=yo(this._resolverCache,e,n);return Ot(t)?Pi(r,t,void 0,i):r}}function yo(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let a=i.get(r);if(!a){a={resolver:Mi(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},i.set(r,a)}return a}const xo=e=>Ot(e)&&Object.getOwnPropertyNames(e).some((t=>tn(e[t])));const wo=["top","bottom","left","right","chartArea"];function _o(e,t){return"top"===e||"bottom"===e||-1===wo.indexOf(e)&&"x"===t}function Do(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function So(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),zt(n&&n.onComplete,[e],t)}function ko(e){const t=e.chart,n=t.options.animation;zt(n&&n.onProgress,[e],t)}function Co(e){return Zi()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Ao={},To=e=>{const t=Co(e);return Object.values(Ao).filter((e=>e.canvas===t)).pop()};function Eo(e,t,n){const i=Object.keys(e);for(const r of i){const i=+r;if(i>=t){const a=e[r];delete e[r],(n>0||i>t)&&(e[i+n]=a)}}}function No(e,t,n){return e.options.clip?e[n]:t[n]}class Mo{static register(){no.add(...arguments),Po()}static unregister(){no.remove(...arguments),Po()}constructor(e,t){const n=this.config=new bo(t),i=Co(e),r=To(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!Zi()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Aa:za}(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,a.aspectRatio),s=o&&o.canvas,l=s&&s.height,c=s&&s.width;this.id=jt(),this.ctx=o,this.canvas=s,this.width=c,this.height=l,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new io,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}((e=>this.update(e)),a.resizeDelay||0),this._dataChanges=[],Ao[this.id]=this,o&&s?(Sr.listen(this,"complete",
vendor: 5,412 bytes, line 2
2So),Sr.listen(this,"progress",ko),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:i,_aspectRatio:r}=this;return Ft(e)?t&&r?r:i?n/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return no}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():sr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return li(this.canvas,this.ctx),this}stop(){return Sr.stop(this),this}resize(e,t){Sr.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,e,t,r),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,sr(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),zt(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Vt(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,i=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],i=lo(e,n),r="r"===i,a="x"===i;return{options:n,dposition:r?"chartArea":a?"bottom":"left",dtype:r?"radialLinear":a?"category":"linear"}})))),Vt(r,(t=>{const r=t.options,a=r.id,o=lo(a,r),s=Bt(r.type,t.dtype);void 0!==r.position&&_o(r.position,o)===_o(t.dposition)||(r.position=t.dposition),i[a]=!0;let l=null;if(a in n&&n[a].type===s)l=n[a];else{l=new(no.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),Vt(i,((e,t)=>{e||delete n[t]})),Vt(n,(e=>{ka.configure(this,e,e.options),ka.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Do("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=t.length;n<i;n++){const i=t[n];let r=this.getDatasetMeta(n);const a=i.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=a,r.indexAxis=i.indexAxis||oo(a,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=no.getController(a),{datasetElementType:i,dataElementType:o}=ri.datasets[a];Object.assign(t,{dataElementType:no.getElement(o),datasetElementType:i&&no.getElement(i)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){Vt(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:e}=this.getDatasetMeta(l),t=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(t),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||Vt(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Do("z","_idx"));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Vt(this.scales,(e=>{ka.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);nn(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of t){Eo(e,i,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),i=n(0);for(let r=1;r<t;r++)if(!nn(i,n(r)))return;return Array.from(i).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ka.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Vt(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}
vendor: 11,132 bytes, line 2
2),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,tn(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),i={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(t),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Sr.has(this)?this.attached&&!Sr.running(this)&&Sr.start(this):(this.draw(),So({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let i,r;for(i=0,r=t.length;i<r;++i){const r=t[i];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,i=!n.disabled,r=function(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:No(n,t,"left"),right:No(n,t,"right"),top:No(i,t,"top"),bottom:No(i,t,"bottom")}:t}(e,this.chartArea),a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&hi(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),i&&fi(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return di(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,i){const r=ha.modes[t];return"function"===typeof r?r(this,e,n,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let i=n.filter((e=>e&&e._dataset===t)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=Ni(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const i=n?"show":"hide",r=this.getDatasetMeta(e),a=r.controller._resolveAnimations(void 0,i);en(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?i:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Sr.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),li(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Ao[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(){return this.canvas.toDataURL(...arguments)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Vt(this.options.events,(e=>n(e,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(n,i)=>{e[n]&&(t.removeEventListener(this,n,i),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let a;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",a)};a=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){Vt(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Vt(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const i=n?"set":"remove";let r,a,o,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),o=0,s=e.length;o<s;++o){a=e[o];const t=a&&this.getDatasetMeta(a.datasetIndex).controller;t&&t[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((e=>{let{datasetIndex:t,index:n}=e;const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[n],index:n}}));!Ht(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const i=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),a=r(t,e),o=n?e:r(e,t);a.length&&this.updateHoverStyle(a,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:i=[],options:r}=this,a=t,o=this._getActiveElements(e,i,n,a),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,i){return n&&"mouseout"!==e.type?i?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,zt(r.onHover,[e,o,this],this),s&&zt(r.onClick,[e,o,this],this));const c=!Ht(o,i);return(c||t)&&(this._active=o,this._updateHoverStyles(o,i,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,i){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,i)}}function Po(){return Vt(Mo.instances,(e=>e._plugins.invalidate()))}function Uo(e,t,n,i){const r=Si(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const a=(n-t)/2,o=Math.min(a,i*t/2),s=e=>{const t=(n-Math.min(a,e))*i/2;return Cn(e,0,Math.min(a,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:Cn(r.innerStart,0,o),innerEnd:Cn(r.innerEnd,0,o)}}function jo(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Fo(e,t,n,i,r,a){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let f=0;const p=r-l;if(i){const e=((u>0?u-i:0)+(d>0?d-i:0))/2;f=(p-(0!==e?p*e/(e+i):p))/2}const g=(p-Math.max(.001,p*d-n/rn)/d)/2,m=l+g+f,v=r-g-f,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:w}=Uo(t,h,d,v-m),_=d-b,D=d-y,S=m+b/_,k=v-y/D,C=h+x,A=h+w,T=m+x/C,E=v-w/A;if(e.beginPath(),a){const t=(S+k)/2;if(e.arc(o,s,d,S,t),e.arc(o,s,d,t,k),y>0){const t=jo(D,k,o,s);e.arc(t.x,t.y,y,k,v+cn)}const n=jo(A,v,o,s);if(e.lineTo(n.x,n.y),w>0){const t=jo(A,E,o,s);e.arc(t.x,t.y,w,v+cn,E+Math.PI)}const i=(v-w/h+(m+x/h))/2;if(e.arc(o,s,h,v-w/h,i,!0),e.arc(o,s,h,i,m+x/h,!0),x>0){const t=jo(C,T,o,s);e.arc(t.x,t.y,x,T+Math.PI,m-cn)}const r=jo(_,m,o,s);if(e.lineTo(r.x,r.y),b>0){const t=jo(_,S,o,s);e.arc(t.x,t.y,b,m-cn,S)}}else{e.moveTo(o,s);const t=Math.cos(S)*d+o,n=Math.sin(S)*d+s;e.lineTo(t,n);const i=Math.cos(k)*d+o,r=Math.sin(k)*d+s;e.lineTo(i,r)}e.closePath()}function Ro(e,t,n,i,r){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=h,f?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(a){Fo(e,t,n,i,p,r);for(let t=0;t<a;++t)e.stroke();isNaN(s)||(p=o+(s%an||an))}f&&function(e,t,n){const{startAngle:i,pixelMargin:r,x:a,y:o,outerRadius:s,innerRadius:l}=t;let c=r/s;e.beginPath(),e.arc(a,o,s,i-c,n+c),l>r?(c=r/l,e.arc(a,o,l,n+c,i-c,!0)):e.arc(a,o,r,n+cn,i-cn),e.closePath(),e.clip()}(e,t,p),a||(Fo(e,t,n,i,p,r),e.stroke())}Qe(Mo,"defaults",ri),Qe(Mo,"instances",Ao),Qe(Mo,"overrides",Jn),Qe(Mo,"registry",no),Qe(Mo,"version","4.4.7"),Qe(Mo,"getChart",To);class Oo extends Va{constructor(e){super(),Qe(this,"circumference",void 0),Qe(this,"endAngle",void 0),Qe(this,"fullCircles",void 0),Qe(this,"innerRadius",void 0),Qe(this,"outerRadius",void 0),Qe(this,"pixelMargin",void 0),Qe(this,"startAngle",void 0),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.getProps(["x","y"],n),{angle:r,distance:a}=wn(i,{x:e,y:t}),{startAngle:o,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=Bt(u,s-o),f=kn(r,o,s)&&o!==s,p=h>=an||f,g=An(a,l+d,c+d);return p&&g}getCenterPoint(e){const{x:t,y:n,startAngle:i,endAngle:r,innerRadius:a,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(i+r)/2,u=(a+o+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,i=(t.offset||0)/4,r=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>an?Math.floor(n/an):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*i,Math.sin(o)*i);const s=i*(1-Math.sin(Math.min(rn,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,i,r){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){Fo(e,t,n,i,l,r);for(let t=0;t<a;++t)e.fill();isNaN(s)||(l=o+(s%an||an))}Fo(e,t,n,i,l,r),e.fill()}
vendor: 4,628 bytes, line 2
2(e,this,s,r,a),Ro(e,this,s,r,a),e.restore()}}function Io(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Bt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Bt(n.borderDash,t.borderDash)),e.lineDashOffset=Bt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Bt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Bt(n.borderWidth,t.borderWidth),e.strokeStyle=Bt(n.borderColor,t.borderColor)}function Lo(e,t,n){e.lineTo(n.x,n.y)}function Bo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=e.length,{start:r=0,end:a=i-1}=n,{start:o,end:s}=t,l=Math.max(r,o),c=Math.min(a,s),u=r<o&&a<o||r>s&&a>s;return{count:i,start:l,loop:t.loop,ilen:c<l&&!u?i+c-l:c-l}}function Wo(e,t,n,i){const{points:r,options:a}=t,{count:o,start:s,loop:l,ilen:c}=Bo(r,n,i),u=function(e){return e.stepped?pi:e.tension||"monotone"===e.cubicInterpolationMode?gi:Lo}(a);let d,h,f,{move:p=!0,reverse:g}=i||{};for(d=0;d<=c;++d)h=r[(s+(g?c-d:d))%o],h.skip||(p?(e.moveTo(h.x,h.y),p=!1):u(e,f,h,g,a.stepped),f=h);return l&&(h=r[(s+(g?c:0))%o],u(e,f,h,g,a.stepped)),!!l}function zo(e,t,n,i){const r=t.points,{count:a,start:o,ilen:s}=Bo(r,n,i),{move:l=!0,reverse:c}=i||{};let u,d,h,f,p,g,m=0,v=0;const b=e=>(o+(c?s-e:e))%a,y=()=>{f!==p&&(e.lineTo(m,p),e.lineTo(m,f),e.lineTo(m,g))};for(l&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,i=0|t;i===h?(n<f?f=n:n>p&&(p=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),h=i,v=0,f=p=n),g=n}y()}function Vo(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?zo:Wo}Qe(Oo,"id","arc"),Qe(Oo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Qe(Oo,"defaultRoutes",{backgroundColor:"backgroundColor"}),Qe(Oo,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e});const Ho="function"===typeof Path2D;function qo(e,t,n,i){Ho&&!t.options.segment?function(e,t,n,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,i)&&r.closePath()),Io(e,t.options),e.stroke(r)}(e,t,n,i):function(e,t,n,i){const{segments:r,options:a}=t,o=Vo(t);for(const s of r)Io(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}(e,t,n,i)}class Go extends Va{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Qi(this._points,n,e,i,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,i=e.options.spanGaps,r=n.length;if(!r)return[];const a=!!e._loop,{start:o,end:s}=function(e,t,n,i){let r=0,a=t-1;if(n&&!i)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(a+=r);a>r&&e[a%t].skip;)a--;return a%=t,{start:r,end:a}}(n,r,a,i);return xr(e,!0===i?[{start:o,end:s,loop:a}]:function(e,t,n,i){const r=e.length,a=[];let o,s=t,l=e[t];for(o=t+1;o<=n;++o){const n=e[o%r];n.skip||n.stop?l.skip||(i=!1,a.push({start:t%r,end:(o-1)%r,loop:i}),t=s=n.stop?o:null):(s=o,l.skip&&(t=o)),l=n}return null!==s&&a.push({start:t%r,end:s%r,loop:i}),a}(n,o,s<o?s+r:s,!!e._fullLoop&&0===o&&s===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,i=e[t],r=this.points,a=yr(this,{property:t,start:i,end:i});if(!a.length)return;const o=[],s=function(e){return e.stepped?dr:e.tension||"monotone"===e.cubicInterpolationMode?hr:ur}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:u}=a[l],d=r[c],h=r[u];if(d===h){o.push(d);continue}const f=s(d,h,Math.abs((i-d[t])/(h[t]-d[t])),n.stepped);f[t]=e[t],o.push(f)}return 1===o.length?o[0]:o}pathSegment(e,t,n){return Vo(this)(e,this,t,n)}path(e,t,n){const i=this.segments,r=Vo(this);let a=this._loop;t=t||0,n=n||this.points.length-t;for(const o of i)a&=r(e,this,o,{start:t,end:t+n-1});return!!a}draw(e,t,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),qo(e,this,n,i),e.restore(
2)),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Yo(e,t,n,i){const r=e.options,{[n]:a}=e.getProps([n],i);return Math.abs(t-a)<r.radius+r.hitRadius}Qe(Go,"id","line"),Qe(Go,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),Qe(Go,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),Qe(Go,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e});class Xo extends Va{constructor(e){super(),Qe(this,"parsed",void 0),Qe(this,"skip",void 0),Qe(this,"stop",void 0),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.options,{x:r,y:a}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,t){return Yo(this,e,"x",t)}inYRange(e,t){return Yo(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!di(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,ci(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function Ko(e,t){const{x:n,y:i,base:r,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=o/2,s=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=a/2,s=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:s,top:c,right:l,bottom:u}}function $o(e,t,n,i){return e?0:Cn(t,n,i)}function Qo(e){const t=Ko(e),n=t.right-t.left,i=t.bottom-t.top,r=function(e,t,n){const i=e.options.borderWidth,r=e.borderSkipped,a=ki(i);return{t:$o(r.top,a.top,0,n),r:$o(r.right,a.right,0,t),b:$o(r.bottom,a.bottom,0,n),l:$o(r.left,a.left,0,t)}}(e,n/2,i/2),a=function(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,a=Ci(r),o=Math.min(t,n),s=e.borderSkipped,l=i||Ot(r);return{topLeft:$o(!l||s.top||s.left,a.topLeft,0,o),topRight:$o(!l||s.top||s.right,a.topRight,0,o),bottomLeft:$o(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:$o(!l||s.bottom||s.right,a.bottomRight,0,o)}}(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:a},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,a.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(r.b,r.r))}}}}function Zo(e,t,n,i){const r=null===t,a=null===n,o=e&&!(r&&a)&&Ko(e,i);return o&&(r||An(t,o.left,o.right))&&(a||An(n,o.top,o.bottom))}function Jo(e,t){e.rect(t.x,t.y,t.w,t.h)}function es(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+i,y:e.y+r,w:e.w+a,h:e.h+o,radius:e.radius}}Qe(Xo,"id","point"),Qe(Xo,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),Qe(Xo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class ts extends Va{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:a}=Qo(this),o=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?yi:Jo;var s;e.save(),a.w===r.w&&a.h===r.h||(e.beginPath(),o(e,es(a,t,r)),e.clip(),o(e,es(r,-t,a)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),o(e,es(r,t)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,t,n){return Zo(this,e,t,n)}inXRange(e,t){return Zo(this,e,null,t)}inYRange(e,t){return Zo(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+i)/2:t,y:r?n:(n+i)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Qe(ts,"id","bar"),Qe(ts,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmou
vendor: 47,223 bytes, line 2
2nt:"auto",pointStyle:void 0}),Qe(ts,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const ns=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}};class is extends Va{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=zt(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,i=Ti(n.font),r=i.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=ns(n,r);let l,c;t.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,r,o,s)+10):(c=this.maxHeight,l=this._fitCols(a,i,o,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,i){const{ctx:r,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+o;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((e,f)=>{const p=n+t/2+r.measureText(e.text).width;(0===f||l[l.length-1]+p+2*o>a)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),s[f]={left:0,top:h,row:d,width:p,height:i},l[l.length-1]+=p+o})),u}_fitCols(e,t,n,i){const{ctx:r,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-e;let u=o,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((e,a)=>{const{itemWidth:g,itemHeight:m}=function(e,t,n,i,r){const a=function(e,t,n,i){let r=e.text;r&&"string"!==typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+i.measureText(r).width}(i,e,t,n),o=function(e,t,n){let i=e;"string"!==typeof t.text&&(i=rs(t,n));return i}(r,i,t.lineHeight);return{itemWidth:a,itemHeight:o}}(n,t,r,e,i);a>0&&h+m+2*o>c&&(u+=d+o,l.push({width:d,height:h}),f+=d+o,p++,d=h=0),s[a]={left:f,top:h,col:p,width:g,height:m},d=Math.max(d,g),h+=m+o})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:i},rtl:r}}=this,a=fr(r,this.left,this.width);if(this.isHorizontal()){let r=0,o=On(n,this.left+i,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,o=On(n,this.left+i,this.right-this.lineWidths[r])),s.top+=this.top+e+i,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+i}else{let r=0,o=On(n,this.top+e+i,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,o=On(n,this.top+e+i,this.bottom-this.columnSizes[r].height)),s.top=o,s.left+=this.left+i,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;hi(e,this),this._draw(),fi(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:i}=this,{align:r,labels:a}=e,o=ri.color,s=fr(e.rtl,this.left,this.width),l=Ti(a.font),{padding:c}=a,u=l.size,d=u/2;let h;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:p,itemHeight:g}=ns(a,u),m=this.isHorizontal(),v=this._computeTitleHeight();h=m?{x:On(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:On(r,this.top+v+c,this.bottom-t[0].height),line:0},pr(this.ctx,e.textDirection);const b=g+c;this.legendItems.forEach(((y,x)=>{i.strokeStyle=y.fontColor,i.fillStyle=y.fontColor;const w=i.measureText(y.text).width,_=s.textAlign(y.textAlign||(y.textAlign=a.textAlign)),D=f+d+w;let S=h.x,k=h.y;s.setWidth(this.width),m?x>0&&S+D+c>this.right&&(k=h.y+=b,h.line++,S=h.x=On(r,this.left+c,this.right-n[h.line])):x>0&&k+b>this.bottom&&(S=h.x=S+t[h.line].width+c,h.line++,k=h.y=On(r,this.top+v+c,this.bottom-t[h.line].height));if(function(e,t,n){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;i.save();const r=Bt(n.lineWidth,1);if(i.fillStyle=Bt(n.fillStyle,o),i.lineCap=Bt(n.lineCap,"butt"),i.lineDashOffset=Bt(n.lineDashOffset,0),i.lineJoin=Bt(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=Bt(n.strokeStyle,o),i.setLineDash(Bt(n.lineDash,[])),a.usePointStyle){const o={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,f/2);ui(i,o,l,t+d,a.pointStyleWidth&&f)}else{const a=t+Math.max((u-p)/2,0),o=s.leftForLtr(e,f),l=Ci(n.borderRadius);i.beginPath(),Object.values(l).some((e=>0!==e))?yi(i,{x:o,y:a,w:f,h:p,radius:l}):i.rect(o,a,f,p),i.fill(),0!==r&&i.stroke()}i.restore()}(s.x(S),k,y),S=((e,t,n,i)=>e===(i?"left":"right")?n:"center"===e?(t+n)/2:t)(_,S+f+d,m?S+D:this.right,e.rtl),function(e,t,n){bi(i,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),k,y),m)h.x+=D+c;else if("string"!==typeof y.text){const e=l.lineHeight;h.y+=rs(y,e)+c}else h.y+=b})),gr(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=Ti(t.font),i=Ai(t.padding);if(!t.display)return;const r=fr(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,l=i.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=On(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+On(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const h=On(o,u,u+d);a.textAlign=r.textAlign(Rn(o)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,bi(a,t.text,h,c,n)}_computeTitleHeight(){const e=this.options.title,t=Ti(e.font),n=Ai(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,i,r;if(An(e,this.left,this.right)&&An(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],An(e,i.left,i.left+i.width)&&An(t,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const a=this._hoveredItem,o=(r=n,null!==(i=a)&&null!==r&&i.datasetIndex===r.datasetIndex&&i.index===r.index);a&&!o&&zt(t.onLeave,[e,a,this],this),this._hoveredItem=n,n&&!o&&zt(t.onHover,[e,n,this],this)}else n&&zt(t.onClick,[e,n,this],this);var i,r}}function rs(e,t){return t*(e.text?e.text.length:0)}var as={id:"legend",_element:is,start(e,t,n){const i=e.legend=new is({ctx:e.ctx,options:n,chart:e});ka.configure(e,i,n),ka.addBox(e,i)},stop(e){ka.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;ka.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=Ai(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:o&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class os extends Va{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const i=Rt(n.text)?n.text.length:1;this._padding=Ai(n.padding);const r=i*Ti(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:i,right:r,options:a}=this,o=a.align;let s,l,c,u=0;return this.isHorizontal()?(l=On(o,n,r),c=t+e,s=r-n):("left"===a.position?(l=n+e,c=On(o,i,t),u=-.5*rn):(l=r-e,c=On(o,t,i),u=.5*rn),s=i-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=Ti(t.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(i);bi(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:Rn(t.align),textBaseline:"middle",translation:[r,a]})}}var ss={id:"title",_element:os,start(e,t,n){!function(e,t){const n=new os({ctx:e.ctx,options:t,chart:e});ka.configure(e,n,t),ka.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;ka.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;ka.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const ls={average(e){if(!e.length)return!1;let t,n,i=new Set,r=0,a=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();i.add(e.x),r+=e.y,++a}}if(0===a||0===i.size)return!1;return{x:[...i].reduce(((e,t)=>e+t))/i.size,y:r/a}},nearest(e,t){if(!e.length)return!1;let n,i,r,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){const i=e[n].element;if(i&&i.hasValue()){const e=_n(t,i.getCenterPoint());e<s&&(s=e,r=i)}}if(r){const e=r.tooltipPosition();a=e.x,o=e.y}return{x:a,y:o}}};function cs(e,t){return t&&(Rt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function us(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function ds(e,t){const{element:n,datasetIndex:i,index:r}=t,a=e.getDatasetMeta(i).controller,{label:o,value:s}=a.getLabelAndValue(r);return{chart:e,label:o,parsed:a.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:s,dataset:a.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function hs(e,t){const n=e.chart.ctx,{body:i,footer:r,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=Ti(t.bodyFont),c=Ti(t.titleFont),u=Ti(t.footerFont),d=a.length,h=r.length,f=i.length,p=Ai(t.padding);let g=p.height,m=0,v=i.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){g+=f*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}h&&(g+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let b=0;const y=function(e){m=Math.max(m,n.measureText(e).width+b)};return n.save(),n.font=c.string,Vt(e.title,y),n.font=l.string,Vt(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?o+2+t.boxPadding:0,Vt(i,(e=>{Vt(e.before,y),Vt(e.lines,y),Vt(e.after,y)})),b=0,n.font=u.string,Vt(e.footer,y),n.restore(),m+=p.width,{width:m,height:g}}function fs(e,t,n,i){const{x:r,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let c="center";return"center"===i?c=r<=(s+l)/2?"left":"right":r<=a/2?c="left":r>=o-a/2&&(c="right"),function(e,t,n,i){const{x:r,width:a}=i,o=n.caretSize+n.caretPadding;return"left"===e&&r+a+o>t.width||"right"===e&&r-a-o<0||void 0}(c,e,t,n)&&(c="center"),c}function ps(e,t,n){const i=n.yAlign||t.yAlign||function(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||fs(e,t,n,i),yAlign:i}}function gs(e,t,n,i){const{caretSize:r,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,c=r+a,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Ci(o);let p=function(e,t){let{x:n,width:i}=e;return"right"===t?n-=i:"center"===t&&(n-=i/2),n}(t,s);const g=function(e,t,n){let{y:i,height:r}=e;return"top"===t?i+=n:i-="bottom"===t?r+n:r/2,i}(t,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,h)+r:"right"===s&&(p+=Math.max(d,f)+r),{x:Cn(p,0,i.width-t.width),y:Cn(g,0,i.height-t.height)}}function ms(e,t,n){const i=Ai(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function vs(e){return cs([],us(e))}function bs(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const ys={beforeTitle:Ut,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Ut,beforeBody:Ut,beforeLabel:Ut,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ft(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Ut,afterBody:Ut,beforeFooter:Ut,footer:Ut,afterFooter:Ut};function xs(e,t,n,i){const r=e[t].call(n,i);return"undefined"===typeof r?ys[t].call(n,i):r}class ws extends Va{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&t.options.animation&&n.animations,r=new Tr(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Ni(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,i=xs(n,"beforeTitle",this,e),r=xs(n,"title",this,e),a=xs(n,"afterTitle",this,e);let o=[];return o=cs(o,us(i)),o=cs(o,us(r)),o=cs(o,us(a)),o}getBeforeBody(e,t){return vs(xs(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,i=[];return Vt(e,(e=>{const t={before:[],lines:[],after:[]},r=bs(n,e);cs(t.before,us(xs(r,"beforeLabel",this,e))),cs(t.lines,xs(r,"label",this,e)),cs(t.after,us(xs(r,"afterLabel",this,e))),i.push(t)})),i}getAfterBody(e,t){return vs(xs(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,i=xs(n,"beforeFooter",this,e),r=xs(n,"footer",this,e),a=xs(n,"afterFooter",this,e);let o=[];return o=cs(o,us(i)),o=cs(o,us(r)),o=cs(o,us(a)),o}_createItems(e){const t=this._active,n=this.chart.data,i=[],r=[],a=[];let o,s,l=[];for(o=0,s=t.length;o<s;++o)l.push(ds(this.chart,t[o]));return e.filter&&(l=l.filter(((t,i,r)=>e.filter(t,i,r,n)))),e.itemSort&&(l=l.sort(((t,i)=>e.itemSort(t,i,n)))),Vt(l,(t=>{const n=bs(e.callbacks,t);i.push(xs(n,"labelColor",this,t)),r.push(xs(n,"labelPointStyle",this,t)),a.push(xs(n,"labelTextColor",this,t))})),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),i=this._active;let r,a=[];if(i.length){const e=ls[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const t=this._size=hs(this,n),o=Object.assign({},e,t),s=ps(this.chart,n,o),l=gs(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,i){const r=this.getCaretPosition(e,n,i);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:i,yAlign:r}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Ci(o),{x:d,y:h}=e,{width:f,height:p}=t;let g,m,v,b,y,x;return"center"===r?(y=h+p/2,"left"===i?(g=d,m=g-a,b=y+a,x=y-a):(g=d+f,m=g+a,b=y-a,x=y+a),v=g):(m="left"===i?d+Math.max(s,c)+a:"right"===i?d+f-Math.max(l,u)-a:this.caretX,"top"===r?(b=h,y=b-a,g=m-a,v=m+a):(b=h+p,y=b+a,g=m+a,v=m-a),x=b),{x1:g,x2:m,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const i=this.title,r=i.length;let a,o,s;if(r){const l=fr(n.rtl,this.x,this.width);for(e.x=ms(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",a=Ti(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;s<r;++s)t.fillText(i[s],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,s+1===r&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,i,r){const a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=Ti(r.bodyFont),u=ms(this,"left",r),d=i.x(u),h=s<c.lineHeight?(c.lineHeight-s)/2:0,f=t.y+h;if(r.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=i.leftForLtr(d,l)+l/2,c=f+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,ci(e,t,n,c),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,ci(e,t,n,c)}else{e.lineWidth=Ot(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const t=i.leftForLtr(d,l),n=i.leftForLtr(i.xPlus(d,1),l-2),o=Ci(a.borderRadius);Object.values(o).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,yi(e,{x:t,y:f,w:l,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),yi(e,{x:n,y:f+1,w:l-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,f,l,s),e.strokeRect(t,f,l,s),e.fillStyle=a.backgroundColor,e.fillRect(n,f+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:i}=this,{bodySpacing:r,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Ti(n.bodyFont);let d=u.lineHeight,h=0;const f=fr(n.rtl,this.x,this.width),p=function(n){t.fillText(n,f.x(e.x+h),e.y+d/2),e.y+=d+r},g=f.textAlign(a);let m,v,b,y,x,w,_;for(t.textAlign=a,t.textBaseline="middle",t.font=u.string,e.x=ms(this,g,n),t.fillStyle=n.bodyColor,Vt(this.beforeBody,p),h=o&&"right"!==g?"center"===a?l/2+c:l+2+c:0,y=0,w=i.length;y<w;++y){for(m=i[y],v=this.labelTextColors[y],t.fillStyle=v,Vt(m.before,p),b=m.lines,o&&b.length&&(this._drawColorBox(t,e,y,f,n),d=Math.max(u.lineHeight,s)),x=0,_=b.length;x<_;++x)p(b[x]),d=u.lineHeight;Vt(m.after,p)}h=0,d=u.lineHeight,Vt(this.afterBody,p),e.y-=r}drawFooter(e,t,n){const i=this.footer,r=i.length;let a,o;if(r){const s=fr(n.rtl,this.x,this.width);for(e.x=ms(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",a=Ti(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,o=0;o<r;++o)t.fillText(i[o],s.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,i){const{xAlign:r,yAlign:a}=this,{x:o,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Ci(i.cornerRadius);t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.beginPath(),t.moveTo(o+u,s),"top"===a&&this.drawCaret(e,t,n,i),t.lineTo(o+l-d,s),t.quadraticCurveTo(o+l,s,o+l,s+d),"center"===a&&"right"===r&&this.drawCaret(e,t,n,i),t.lineTo(o+l,s+c-f),t.quadraticCurveTo(o+l,s+c,o+l-f,s+c),"bottom"===a&&this.drawCaret(e,t,n,i),t.lineTo(o+h,s+c),t.quadraticCurveTo(o,s+c,o,s+c-h),"center"===a&&"left"===r&&this.drawCaret(e,t,n,i),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=ls[e.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=hs(this,e),o=Object.assign({},n,this._size),s=ps(t,e,o),l=gs(e,o,s,t);i._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=Ai(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,i,t),pr(e,t.textDirection),r.y+=a.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),gr(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,i=e.map((e=>{let{datasetIndex:t,index:n}=e;const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[n],index:n}})),r=!Ht(n,i),a=this._positionChanged(i,t);(r||a)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],a=this._getActiveElements(e,r,t,n),o=this._positionChanged(a,e),s=t||!Ht(a,r)||o;return s&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,i){const r=this.options;if("mouseout"===e.type)return[];if(!i)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const a=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&a.reverse(),a}_positionChanged(e,t){const{caretX:n,caretY:i,options:r}=this,a=ls[r.position].call(this,e,t);return!1!==a&&(n!==a.x||i!==a.y)}}Qe(ws,"positioners",ls);var _s={id:"tooltip",_element:ws,positioners:ls,afterInit(e,t,n){n&&(e.tooltip=new ws({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",Je(Je({},n),{},{cancelable:!0})))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ys},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Ds(e,t,n,i){const r=e.indexOf(t);if(-1===r)return((e,t,n,i)=>("string"===typeof t?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,i);return r!==e.lastIndexOf(t)?n:r}function Ss(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class ks extends Ja{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:i}of t)e[n]===i&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Ft(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Cn(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:Ds(n,e,Bt(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let a=e;a<=t;a++)i.push({value:a});return i}getLabelForValue(e){return Ss.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function Cs(e,t){const n=[],{bounds:i,step:r,min:a,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=r||1,f=c-1,{min:p,max:g}=t,m=!Ft(a),v=!Ft(o),b=!Ft(l),y=(g-p)/(u+1);let x,w,_,D,S=gn((g-p)/f/h)*h;if(S<1e-14&&!m&&!v)return[{value:p},{value:g}];D=Math.ceil(g/S)-Math.floor(p/S),D>f&&(S=gn(D*S/f/h)*h),Ft(s)||(x=Math.pow(10,s),S=Math.ceil(S*x)/x),"ticks"===i?(w=Math.floor(p/S)*S,_=Math.ceil(g/S)*S):(w=p,_=g),m&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((o-a)/r,S/1e3)?(D=Math.round(Math.min((o-a)/S,c)),S=(o-a)/D,w=a,_=o):b?(w=m?a:w,_=v?o:_,D=l-1,S=(_-w)/D):(D=(_-w)/S,D=pn(D,Math.round(D),S/1e3)?Math.round(D):Math.ceil(D));const k=Math.max(xn(S),xn(w));x=Math.pow(10,Ft(s)?k:s),w=Math.round(w*x)/x,_=Math.round(_*x)/x;let C=0;for(m&&(d&&w!==a?(n.push({value:a}),w<a&&C++,pn(Math.round((w+C*S)*x)/x,a,As(a,y,e))&&C++):w<a&&C++);C<D;++C){const e=Math.round((w+C*S)*x)/x;if(v&&e>o)break;n.push({value:e})}return v&&d&&_!==o?n.length&&pn(n[n.length-1].value,o,As(o,y,e))?n[n.length-1].value=o:n.push({value:o}):v&&_!==o||n.push({value:_}),n}function As(e,t,n){let{horizontal:i,minRotation:r}=n;const a=bn(r),o=(i?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}Qe(ks,"id","category"),Qe(ks,"defaults",{ticks:{callback:Ss}});class Ts extends Ja{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Ft(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const a=e=>i=t?i:e,o=e=>r=n?r:e;if(e){const e=fn(i),t=fn(r);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(i===r){let t=0===r?1:Math.abs(.05*r);o(r+t),e||a(i-t)}this.min=i,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:i}=e;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(i," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Cs({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&vn(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const i=(n-t)/Math.max(e.length-1,1)/2;t-=i,n+=i}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return $n(e,this.chart.options.locale,this.options.ticks.format)}}class Es extends Ts{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=It(e)?e:0,this.max=It(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=bn(this.options.ticks.minRotation),i=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Qe(Es,"id","linear"),Qe(Es,"defaults",{ticks:{callback:Zn.formatters.numeric}});const Ns=e=>Math.floor(hn(e)),Ms=(e,t)=>Math.pow(10,Ns(e)+t);function Ps(e){return 1===e/Math.pow(10,Ns(e))}function Us(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function js(e,t){let{min:n,max:i}=t;n=Lt(e.min,n);const r=[],a=Ns(n);let o=function(e,t){let n=Ns(t-e);for(;Us(e,t,n)>10;)n++;for(;Us(e,t,n)<10;)n--;return Math.min(n,Ns(e))}(n,i),s=o<0?Math.pow(10,Math.abs(o)):1;const l=Math.pow(10,o),c=a>o?Math.pow(10,a):0,u=Math.round((n-c)*s)/s,d=Math.floor((n-c)/l/10)*l*10;let h=Math.floor((u-d)/Math.pow(10,o)),f=Lt(e.min,Math.round((c+d+h*Math.pow(10,o))*s)/s);for(;f<i;)r.push({value:f,major:Ps(f),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,s=o>=0?1:s),f=Math.round((c+d+h*Math.pow(10,o))*s)/s;const p=Lt(e.max,f);return r.push({value:p,major:Ps(p),significand:h}),r}class Fs extends Ja{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=Ts.prototype.parse.apply(this,[e,t]);if(0!==n)return It(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=It(e)?Math.max(0,e):null,this.max=It(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!It(this._userMin)&&(this.min=e===Ms(this.min,0)?Ms(this.min,-1):Ms(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,i=this.max;const r=t=>n=e?n:t,a=e=>i=t?i:e;n===i&&(n<=0?(r(1),a(10)):(r(Ms(n,-1)),a(Ms(i,1)))),n<=0&&r(Ms(i,-1)),i<=0&&a(Ms(n,1)),this.min=n,this.max=i}buildTicks(){const e=this.options,t=js({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&vn(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":$n(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=hn(e),this._valueRange=hn(this.max)-hn(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(hn(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Rs(e){const t=e.ticks;if(t.display&&e.display){const e=Ai(t.backdropPadding);return Bt(t.font&&t.font.size,ri.font.size)+e.height}return 0}function Os(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function Is(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?rn/a:0;for(let d=0;d<a;d++){const a=o.setContext(e.getPointLabelContext(d));r[d]=a.padding;const h=e.getPointPosition(d,e.drawingArea+r[d],s),f=Ti(a.font),p=(l=e.ctx,c=f,u=Rt(u=e._pointLabels[d])?u:[u],{w:oi(l,c.string,u),h:u.length*c.lineHeight});i[d]=p;const g=Sn(e.getIndexAngle(d)+s),m=Math.round(yn(g));Ls(n,t,g,Os(m,h.x,p.w,0,180),Os(m,h.y,p.h,90,270))}var l,c,u;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const i=[],r=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:Rs(a)/2,additionalAngle:o?rn/r:0};let c;for(let u=0;u<r;u++){l.padding=n[u],l.size=t[u];const r=Bs(e,u,l);i.push(r),"auto"===s&&(r.visible=Ws(r,c),r.visible&&(c=r))}return i}(e,i,r)}function Ls(e,t,n,i,r){const a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;i.start<t.l?(s=(t.l-i.start)/a,e.l=Math.min(e.l,t.l-s)):i.end>t.r&&(s=(i.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),r.start<t.t?(l=(t.t-r.start)/o,e.t=Math.min(e.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function Bs(e,t,n){const i=e.drawingArea,{extra:r,additionalAngle:a,padding:o,size:s}=n,l=e.getPointPosition(t,i+r+o,a),c=Math.round(yn(Sn(l.angle+cn))),u=function(e,t,n){90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t);return e}(l.y,s.h,c),d=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),h=function(e,t,n){"right"===n?e-=t:"center"===n&&(e-=t/2);return e}(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+s.w,bottom:u+s.h}}function Ws(e,t){if(!t)return!0;const{left:n,top:i,right:r,bottom:a}=e;return!(di({x:n,y:i},t)||di({x:n,y:a},t)||di({x:r,y:i},t)||di({x:r,y:a},t))}function zs(e,t,n){const{left:i,top:r,right:a,bottom:o}=n,{backdropColor:s}=t;if(!Ft(s)){const n=Ci(t.borderRadius),l=Ai(t.backdropPadding);e.fillStyle=s;const c=i-l.left,u=r-l.top,d=a-i+l.width,h=o-r+l.height;Object.values(n).some((e=>0!==e))?(e.beginPath(),yi(e,{x:c,y:u,w:d,h:h,radius:n}),e.fill()):e.fillRect(c,u,d,h)}}function Vs(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,an);else{let n=e.getPointPosition(0,t);r.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=e.getPointPosition(a,t),r.lineTo(n.x,n.y)}}Qe(Fs,"id","logarithmic"),Qe(Fs,"defaults",{ticks:{callback:Zn.formatters.logarithmic,major:{enabled:!0}}});class Hs extends Ts{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Ai(Rs(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=It(e)&&!isNaN(e)?e:0,this.max=It(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Rs(this.options))}generateTickLabels(e){Ts.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=zt(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?Is(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,i){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,i))}getIndexAngle(e){return Sn(e*(an/(this._pointLabels.length||1))+bn(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(Ft(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Ft(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return Ni(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=this.getIndexAngle(e)-cn+n;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:i,bottom:r}=this._pointLabelItems[e];return{left:t,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),Vs(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:i,border:r}=t,a=this._pointLabels.length;let o,s,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const t=e._pointLabelItems[r];if(!t.visible)continue;const a=i.setContext(e.getPointLabelContext(r));zs(n,a,t);const o=Ti(a.font),{x:s,y:l,textAlign:c}=t;bi(n,e._pointLabels[r],s,l+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,a),i.display&&this.ticks.forEach(((e,t)=>{if(0!==t||0===t&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);const n=this.getContext(t),o=i.setContext(n),l=r.setContext(n);!function(e,t,n,i,r){const a=e.ctx,o=t.circular,{color:s,lineWidth:l}=t;!o&&!i||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(r.dash||[]),a.lineDashOffset=r.dashOffset,a.beginPath(),Vs(e,n,o,i),a.closePath(),a.stroke(),a.restore())}(this,o,s,a,l)}})),n.display){for(e.save(),o=a-1;o>=0;o--){const i=n.setContext(this.getPointLabelContext(o)),{color:r,lineWidth:a}=i;a&&r&&(e.lineWidth=a,e.strokeStyle=r,e.setLineDash(i.borderDash),e.lineDashOffset=i.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((i,o)=>{if(0===o&&this.min>=0&&!t.reverse)return;const s=n.setContext(this.getContext(o)),l=Ti(s.font);if(r=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=l.string,a=e.measureText(i.label).width,e.fillStyle=s.backdropColor;const t=Ai(s.backdropPadding);e.fillRect(-a/2-t.left,-r-l.size/2-t.top,a+t.width,l.size+t.height)}bi(e,i.label,0,-r,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),e.restore()}drawTitle(){}}Qe(Hs,"id","radialLinear"),Qe(Hs,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),Qe(Hs,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Qe(Hs,"descriptors",{angleLines:{_fallback:"grid"}});const qs={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Gs=Object.keys(qs);function Ys(e,t){return e-t}function Xs(e,t){if(Ft(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:a}=e._parseOpts;let o=t;return"function"===typeof i&&(o=i(o)),It(o)||(o="string"===typeof i?n.parse(o,i):n.parse(o)),null===o?null:(r&&(o="week"!==r||!mn(a)&&!0!==a?n.startOf(o,r):n.startOf(o,"isoWeek",a)),+o)}function Ks(e,t,n,i){const r=Gs.length;for(let a=Gs.indexOf(e);a<r-1;++a){const e=qs[Gs[a]],r=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(r*e.size))<=i)return Gs[a]}return Gs[r-1]}function $s(e,t,n){if(n){if(n.length){const{lo:i,hi:r}=Tn(n,t);e[n[i]>=t?n[i]:n[r]]=!0}}else e[t]=!0}function Qs(e,t,n){const i=[],r={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],r[s]=o,i.push({value:s,major:!1});return 0!==a&&n?function(e,t,n,i){const r=e._adapter,a=+r.startOf(t[0].value,i),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+r.add(s,1,i))l=n[s],l>=0&&(t[l].major=!0);return t}(e,i,r,n):i}class Zs extends Ja{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.time||(e.time={}),i=this._adapter=new aa(e.adapters.date);i.init(t),Kt(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:Xs(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:i,max:r,minDefined:a,maxDefined:o}=this.getUserBounds();function s(e){a||isNaN(e.min)||(i=Math.min(i,e.min)),o||isNaN(e.max)||(r=Math.max(r,e.max))}a&&o||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),i=It(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),r=It(r)&&!isNaN(r)?r:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,a=function(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}(i,r,this.max);return this._unit=t.unit||(n.autoSkip?Ks(t.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(e,t,n,i,r){for(let a=Gs.length-1;a>=Gs.indexOf(n);a--){const n=Gs[a];if(qs[n].common&&e._adapter.diff(r,i,n)>=t-1)return n}return Gs[n?Gs.indexOf(n):0]}(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=Gs.indexOf(e)+1,n=Gs.length;t<n;++t)if(qs[Gs[t]].common)return Gs[t]}(this._unit):void 0,this.initOffsets(i),e.reverse&&a.reverse(),Qs(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=0,r=0;this.options.offset&&n.length&&(e=this.getDecimalForValue(n[0]),i=1===n.length?1-e:(this.getDecimalForValue(n[1])-e)/2,t=this.getDecimalForValue(n[n.length-1]),r=1===n.length?t:(t-this.getDecimalForValue(n[n.length-2]))/2);const a=n.length<3?.5:.25;i=Cn(i,0,a),r=Cn(r,0,a),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const e=this._adapter,t=this.min,n=this.max,i=this.options,r=i.time,a=r.unit||Ks(r.minUnit,t,n,this._getLabelCapacity(t)),o=Bt(i.ticks.stepSize,1),s="week"===a&&r.isoWeekday,l=mn(s)||!0===s,c={};let u,d,h=t;if(l&&(h=+e.startOf(h,"isoWeek",s)),h=+e.startOf(h,l?"day":a),e.diff(n,t,a)>1e5*o)throw new Error(t+" and "+n+" are too far apart with stepSize of "+o+" "+a);const f="data"===i.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<n;u=+e.add(u,o,a),d++)$s(c,u,f);return u!==n&&"ticks"!==i.bounds&&1!==d||$s(c,u,f),Object.keys(c).sort(Ys).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const n=this.options.time.displayFormats,i=this._unit,r=t||n[i];return this._adapter.format(e,r)}_tickFormatFunction(e,t,n,i){const r=this.options,a=r.ticks.callback;if(a)return zt(a,[e,t,n],this);const o=r.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&o[s],u=l&&o[l],d=n[t],h=l&&u&&d&&d.major;return this._adapter.format(e,i||(h?u:c))}generateTickLabels(e){let t,n,i;for(t=0,n=e.length;t<n;++t)i=e[t],i.label=this._tickFormatFunction(i.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,i=bn(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(i),a=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:n*r+o*a,h:n*a+o*r}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,i=n[t.unit]||n.millisecond,r=this._tick
2FormatFunction(e,0,Qs(this,[e],this._majorUnit),i),a=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(e=0,t=i.length;e<t;++e)n=n.concat(i[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const i=this.getLabels();for(t=0,n=i.length;t<n;++t)e.push(Xs(this,i[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Un(e.sort(Ys))}}function Js(e,t,n){let i,r,a,o,s=0,l=e.length-1;n?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=En(e,"pos",t)),({pos:i,time:a}=e[s]),({pos:r,time:o}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=En(e,"time",t)),({time:i,pos:a}=e[s]),({time:r,pos:o}=e[l]));const c=r-i;return c?a+(o-a)*(t-i)/c:a}Qe(Zs,"id","time"),Qe(Zs,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class el extends Zs{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Js(t,this.min),this._tableRange=Js(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,i=[],r=[];let a,o,s,l,c;for(a=0,o=e.length;a<o;++a)l=e[a],l>=t&&l<=n&&i.push(l);if(i.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=i.length;a<o;++a)c=i[a+1],s=i[a-1],l=i[a],Math.round((c+s)/2)!==l&&r.push({time:l,pos:a/(o-1)});return r}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return n.includes(e)&&n.length||n.splice(0,0,e),n.includes(t)&&1!==n.length||n.push(t),n.sort(((e,t)=>e-t))}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Js(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Js(this._table,n*this._tableRange+this._minPos,!0)}}Qe(el,"id","timeseries"),Qe(el,"defaults",Zs.defaults);Mo.register(ks,Es,ts,ss,_s,as);n(5751);function tl(){return(0,Le.jsx)("div",{className:"fixed inset-0 bg-white bg-opacity-80 flex items-center justify-center z-50",children:(0,Le.jsx)("div",{className:"w-12 h-12 border-4 border-primary border-dashed rounded-full animate-spin"})})}var nl;nl={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_JWT_SECRET:"122Codeman!"};var il;il={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_JWT_SECRET:"122Codeman!"};var rl;rl={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_JWT_SECRET:"122Codeman!"};var al;al={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_JWT_SECRET:"122Codeman!"};function ol(e,t,n){t||(t=[]);var i=t.length++;return Object.defineProperty({},"_",{set:function(r){t[i]=r,e.apply(n,t)}})}function sl(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ll(e,t){sl(e,t),t.add(e)}function cl(e,t,n){sl(e,t),t.set(e,n)}function ul(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function dl(e,t,n){return n(ul(e,t))}function hl(e,t){return e.get(ul(e,t))}function fl(e,t,n){return e.set(ul(e,t),n),n}function pl(e){var t,n,i,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);r--;){if(n&&null!=(t=e[n]))return t.call(e);
2if(i&&null!=(t=e[i]))return new gl(t.call(e));n="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function gl(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return gl=function(e){this.s=e,this.n=e.next},gl.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new gl(e)}var ml,vl,bl,yl,xl,wl,_l,Dl,Sl,kl,Cl,Al,Tl,El,Nl,Ml,Pl,Ul;const jl="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type),Fl=[.001,0,0,.001,0,0],Rl=1.35,Ol=1,Il=2,Ll=4,Bl=16,Wl=32,zl=64,Vl=128,Hl=256,ql={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},Gl="pdfjs_internal_editor_",Yl={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},Xl={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},Kl=1,$l=2,Ql=0,Zl=1,Jl=2,ec=3,tc=3,nc=4,ic={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},rc={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},ac=1,oc=2,sc=3,lc=4,cc=5,uc={ERRORS:0,WARNINGS:1,INFOS:5},dc={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},hc=0,fc=1,pc=2,gc=3,mc=4;let vc=uc.WARNINGS;function bc(e){Number.isInteger(e)&&(vc=e)}function yc(){return vc}function xc(e){vc>=uc.INFOS&&console.info("Info: ".concat(e))}function wc(e){vc>=uc.WARNINGS&&console.warn("Warning: ".concat(e))}function _c(e){throw new Error(e)}function Dc(e,t){e||_c(t)}function Sc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);(null===t||void 0===t?void 0:t.length)>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=decodeURIComponent(escape(e))}catch(r){}}const i=t?URL.parse(e,t):URL.parse(e);return function(e){switch(null===e||void 0===e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i)?i:null}function kc(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=URL.parse(e);return i?(i.hash=t,i.href):n&&Sc(e,"http://example.com")?e.split("#",1)[0]+"".concat(t?"#".concat(t):""):""}function Cc(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!i,configurable:!0,writable:!1}),n}const Ac=function(){function e(e,t){this.message=e,this.name=t}return e.prototype=new Error,e.constructor=e,e}();class Tc extends Ac{constructor(e,t){super(e,"PasswordException"),this.code=t}}class Ec extends Ac{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}class Nc extends Ac{constructor(e){super(e,"InvalidPDFException")}}class Mc extends Ac{constructor(e,t,n){super(e,"ResponseException"),this.status=t,this.missing=n}}class Pc extends Ac{constructor(e){super(e,"FormatError")}}class Uc extends Ac{constructor(e){super(e,"AbortException")}}function jc(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||_c("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const i=[];for(let r=0;r<t;r+=n){const a=Math.min(r+n,t),o=e.subarray(r,a);i.push(String.fromCharCode.apply(null,o))}return i.join("")}function Fc(e){"string"!==typeof e&&_c("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let i=0;i<t;++i)n[i]=255&e.charCodeAt(i);return n}class Rc{static get isLittleEndian(){return Cc(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return Cc(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return Cc(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}static get isImageDecoderSupported(){return Cc(this,"isImageDecoderSupported","undefined"!==typeof ImageDecoder)}static get isFloat16ArraySupported(){return Cc(this,"isFloat16ArraySupported","undefined"!==typeof Float16Array)}static get isSanitizerSupported(){return Cc(this,"isSanitizerSupported","undefined"!==typeof Sanitizer)}static get platform(){const{platform:e,userAgent:t}=navigator;return Cc(this,"platform",{isAndroid:t.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:t.includes("Firefox")})}static get isCSSRoundSupported(){var e,t;return Cc(this,"isCSSRoundSupported",null===(e=globalThis.CSS)||void 0===e||null===(t=e.supports)||void 0===t?void 0:t.call(e,"width: round(1.5px, 1px)"))}}const Oc=Array.from(Array(256).keys(),(e=>e.toString(16).padStart(2,"0")));class Ic{static makeHexColor(e,t,n){return"#".concat(Oc[e]).concat(Oc[t]).concat(Oc[n])}static domMatrixToTransform(e){return[e.a,e.b,e.c,e.d,e.e,e.f]}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[1],t[1]=n,n=t[2],t[2]=t[3],t[3]=n,e[1]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=e[n],r=e[n+1];e[n]=i*t[0]+r*t[2]+t[4],e[n+1]=i*t[1]+r*t[3]+t[5]}static applyTransformToBezier(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5];for(let c=0;c<6;
2c+=2){const t=e[n+c],u=e[n+c+1];e[n+c]=t*i+u*a+s,e[n+c+1]=t*r+u*o+l}}static applyInverseTransform(e,t){const n=e[0],i=e[1],r=t[0]*t[3]-t[1]*t[2];e[0]=(n*t[3]-i*t[2]+t[2]*t[5]-t[4]*t[3])/r,e[1]=(-n*t[1]+i*t[0]+t[4]*t[1]-t[5]*t[0])/r}static axialAlignedBoundingBox(e,t,n){const i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5],c=e[0],u=e[1],d=e[2],h=e[3];let f=i*c+s,p=f,g=i*d+s,m=g,v=o*u+l,b=v,y=o*h+l,x=y;if(0!==r||0!==a){const e=r*c,t=r*d,n=a*u,i=a*h;f+=n,m+=n,g+=i,p+=i,v+=e,x+=e,y+=t,b+=t}n[0]=Math.min(n[0],f,g,p,m),n[1]=Math.min(n[1],v,y,b,x),n[2]=Math.max(n[2],f,g,p,m),n[3]=Math.max(n[3],v,y,b,x)}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){const n=e[0],i=e[1],r=e[2],a=e[3],o=n**2+i**2,s=n*r+i*a,l=r**2+a**2,c=(o+l)/2,u=Math.sqrt(c**2-(o*l-s**2));t[0]=Math.sqrt(c+u||1),t[1]=Math.sqrt(c-u||1)}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>i)return null;const r=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return r>a?null:[n,r,i,a]}static pointBoundingBox(e,t,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],t),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],t)}static rectBoundingBox(e,t,n,i,r){r[0]=Math.min(r[0],e,n),r[1]=Math.min(r[1],t,i),r[2]=Math.max(r[2],e,n),r[3]=Math.max(r[3],t,i)}static bezierBoundingBox(e,t,n,i,r,a,o,s,l){l[0]=Math.min(l[0],e,o),l[1]=Math.min(l[1],t,s),l[2]=Math.max(l[2],e,o),l[3]=Math.max(l[3],t,s),ul(Ic,this,Bc).call(this,e,n,r,o,t,i,a,s,3*(3*(n-r)-e+o),6*(e-2*n+r),3*(n-e),l),ul(Ic,this,Bc).call(this,e,n,r,o,t,i,a,s,3*(3*(i-a)-t+s),6*(t-2*i+a),3*(i-t),l)}}function Lc(e,t,n,i,r,a,o,s,l,c){if(l<=0||l>=1)return;const u=1-l,d=l*l,h=d*l,f=u*(u*(u*e+3*l*t)+3*d*n)+h*i,p=u*(u*(u*r+3*l*a)+3*d*o)+h*s;c[0]=Math.min(c[0],f),c[1]=Math.min(c[1],p),c[2]=Math.max(c[2],f),c[3]=Math.max(c[3],p)}function Bc(e,t,n,i,r,a,o,s,l,c,u,d){if(Math.abs(l)<1e-12)return void(Math.abs(c)>=1e-12&&ul(ml,this,Lc).call(this,e,t,n,i,r,a,o,s,-u/c,d));const h=c**2-4*u*l;if(h<0)return;const f=Math.sqrt(h),p=2*l;ul(ml,this,Lc).call(this,e,t,n,i,r,a,o,s,(-c+f)/p,d),ul(ml,this,Lc).call(this,e,t,n,i,r,a,o,s,(-c-f)/p,d)}ml=Ic;let Wc=null,zc=null;function Vc(){if("function"===typeof crypto.randomUUID)return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),jc(e)}const Hc="pdfjs_internal_id_";function qc(e,t,n){return Math.min(Math.max(e,t),n)}function Gc(e){return Uint8Array.prototype.toBase64?e.toBase64():btoa(jc(e))}"function"!==typeof Promise.try&&(Promise.try=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new Promise((t=>{t(e(...n))}))}),"function"!==typeof Math.sumPrecise&&(Math.sumPrecise=function(e){return e.reduce(((e,t)=>e+t),0)});class Yc{static textContent(e){const t=[],n={items:t,styles:Object.create(null)};return function e(n){var i;if(!n)return;let r=null;const a=n.name;if("#text"===a)r=n.value;else{if(!Yc.shouldBuildText(a))return;null!==n&&void 0!==n&&null!==(i=n.attributes)&&void 0!==i&&i.textContent?r=n.attributes.textContent:n.value&&(r=n.value)}if(null!==r&&t.push({str:r}),n.children)for(const t of n.children)e(t)}(e),n}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}class Xc{static setupStorage(e,t,n,i,r){const a=i.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==a.value&&(e.textContent=a.value),"print"===r)break;e.addEventListener("input",(e=>{i.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(a.value===n.attributes.xfaOn?e.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===r)break;e.addEventListener("change",(e=>{i.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==a.value&&e.setAttribute("value",a.value),"print"===r)break;e.addEventListener("input",(e=>{i.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==a.value){e.setAttribute("value",a.value);for(const e of n.children)e.attributes.value===a.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",(e=>{const n=e.target.options,r=-1===n.selectedIndex?"":n[n.selectedIndex].value;i.setValue(t,{value:r})}))}}static setAttributes(e){let{html:t,element:n,storage:i=null,intent:r,linkService:a}=e;const{attributes:o}=n,s=t instanceof HTMLAnchorElement;"radio"===o.type&&(o.name="".concat(o.name,"-").concat(r));for(const[l,c]of Object.entries(o))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&a.addLinkAttributes(t,o.href,o.newWindow),i&&o.dataId&&this.setupStorage(t,o.dataId,n,i)}static render(e){const t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,r=e.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:r,linkService:n});const o="richText"!==r,s=e.div;if(s.append(a),e.viewport){const t="matrix(".concat(e.viewport.transform.join(","),")");s.style.transform=t}o&&s.setAttribute("class","xfaLayer xfaFont");const l=[];
2if(0===i.children.length){if(i.value){const e=document.createTextNode(i.value);a.append(e),o&&Yc.shouldBuildText(i.name)&&l.push(e)}return{textDivs:l}}const c=[[i,-1,a]];for(;c.length>0;){var u,d;const[e,i,a]=c.at(-1);if(i+1===e.children.length){c.pop();continue}const s=e.children[++c.at(-1)[1]];if(null===s)continue;const{name:h}=s;if("#text"===h){const e=document.createTextNode(s.value);l.push(e),a.append(e);continue}const f=null!==s&&void 0!==s&&null!==(u=s.attributes)&&void 0!==u&&u.xmlns?document.createElementNS(s.attributes.xmlns,h):document.createElement(h);if(a.append(f),s.attributes&&this.setAttributes({html:f,element:s,storage:t,intent:r,linkService:n}),(null===(d=s.children)||void 0===d?void 0:d.length)>0)c.push([s,-1,f]);else if(s.value){const e=document.createTextNode(s.value);o&&Yc.shouldBuildText(h)&&l.push(e),f.append(e)}}for(const h of s.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))h.setAttribute("readOnly",!0);return{textDivs:l}}static update(e){const t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}const Kc="http://www.w3.org/2000/svg";class $c{}async function Qc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";if(iu(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);switch(t){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise(((n,i)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType=t,r.onreadystatechange=()=>{if(r.readyState===XMLHttpRequest.DONE)if(200!==r.status&&0!==r.status)i(new Error(r.statusText));else{switch(t){case"arraybuffer":case"blob":case"json":return void n(r.response)}n(r.responseText)}},r.send(null)}))}vl=$c,Qe($c,"CSS",96),Qe($c,"PDF",72),Qe($c,"PDF_TO_CSS_UNITS",vl.CSS/vl.PDF);class Zc{constructor(e){let{viewBox:t,userUnit:n,scale:i,rotation:r,offsetX:a=0,offsetY:o=0,dontFlip:s=!1}=e;this.viewBox=t,this.userUnit=n,this.scale=i,this.rotation=r,this.offsetX=a,this.offsetY=o,i*=n;const l=(t[2]+t[0])/2,c=(t[3]+t[1])/2;let u,d,h,f,p,g,m,v;switch(r%=360,r<0&&(r+=360),r){case 180:u=-1,d=0,h=0,f=1;break;case 90:u=0,d=1,h=1,f=0;break;case 270:u=0,d=-1,h=-1,f=0;break;case 0:u=1,d=0,h=0,f=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(h=-h,f=-f),0===u?(p=Math.abs(c-t[1])*i+a,g=Math.abs(l-t[0])*i+o,m=(t[3]-t[1])*i,v=(t[2]-t[0])*i):(p=Math.abs(l-t[0])*i+a,g=Math.abs(c-t[1])*i+o,m=(t[2]-t[0])*i,v=(t[3]-t[1])*i),this.transform=[u*i,d*i,h*i,f*i,p-u*i*l-h*i*c,g-d*i*l-f*i*c],this.width=m,this.height=v}get rawDims(){const e=this.viewBox;return Cc(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:i=this.offsetY,dontFlip:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Zc({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:r})}convertToViewportPoint(e,t){const n=[e,t];return Ic.applyTransform(n,this.transform),n}convertToViewportRectangle(e){const t=[e[0],e[1]];Ic.applyTransform(t,this.transform);const n=[e[2],e[3]];return Ic.applyTransform(n,this.transform),[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){const n=[e,t];return Ic.applyInverseTransform(n,this.transform),n}}class Jc extends Ac{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(e,"RenderingCancelledException"),this.extraDelay=t}}function eu(e){const t=e.length;let n=0;for(;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}function tu(e){return"string"===typeof e&&/\.pdf$/i.test(e)}class nu{constructor(){Qe(this,"started",Object.create(null)),Qe(this,"times",[])}time(e){e in this.started&&wc("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(e){e in this.started||wc("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const{name:n}of this.times)t=Math.max(n.length,t);for(const{name:n,start:i,end:r}of this.times)e.push("".concat(n.padEnd(t)," ").concat(r-i,"ms\n"));return e.join("")}}function iu(e,t){const n=t?URL.parse(e,t):URL.parse(e);return"http:"===(null===n||void 0===n?void 0:n.protocol)||"https:"===(null===n||void 0===n?void 0:n.protocol)}function ru(e){e.preventDefault()}function au(e){e.preventDefault(),e.stopPropagation()}class ou{static toDateObject(e){if(e instanceof Date)return e;if(!e||"string"!==typeof e)return null;ul(ou,this,su)._||(su._=ul(ou,this,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?")));const t=ul(ou,this,su)._.exec(e);if(!t)return null;const n=parseInt(t[1],10);let i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let r=parseInt(t[3],10);r=r>=1&&r<=31?r:1;let a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";
2let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(a+=c,o+=u):"+"===l&&(a-=c,o-=u),new Date(Date.UTC(n,i,r,a,o,s))}}var su={_:void 0};function lu(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):(wc('Not a valid color format: "'.concat(e,'"')),[0,0,0])}function cu(e){const{a:t,b:n,c:i,d:r,e:a,f:o}=e.getTransform();return[t,n,i,r,a,o]}function uu(e){const{a:t,b:n,c:i,d:r,e:a,f:o}=e.getTransform().invertSelf();return[t,n,i,r,a,o]}function du(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof Zc){const{pageWidth:i,pageHeight:r}=t.rawDims,{style:a}=e,o=Rc.isCSSRoundSupported,s="var(--total-scale-factor) * ".concat(i,"px"),l="var(--total-scale-factor) * ".concat(r,"px"),c=o?"round(down, ".concat(s,", var(--scale-round-x))"):"calc(".concat(s,")"),u=o?"round(down, ".concat(l,", var(--scale-round-y))"):"calc(".concat(l,")");n&&t.rotation%180!==0?(a.width=u,a.height=c):(a.width=c,a.height=u)}i&&e.setAttribute("data-main-rotation",t.rotation)}class hu{constructor(){const{pixelRatio:e}=hu;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}get symmetric(){return this.sx===this.sy}limitCanvas(e,t,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,a=1/0,o=1/0,s=1/0;(n=hu.capPixels(n,r))>0&&(a=Math.sqrt(n/(e*t))),-1!==i&&(o=i/e,s=i/t);const l=Math.min(a,o,s);return(this.sx>l||this.sy>l)&&(this.sx=l,this.sy=l,!0)}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,t){if(t>=0){const n=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+t/100));return e>0?Math.min(e,n):n}return e}}const fu=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];class pu{static get isDarkMode(){var e,t;return Cc(this,"isDarkMode",!(null===(e=window)||void 0===e||null===(t=e.matchMedia)||void 0===t||!t.call(e,"(prefers-color-scheme: dark)").matches))}}function gu(e,t){const n=e[0]/255,i=e[1]/255,r=e[2]/255,a=Math.max(n,i,r),o=Math.min(n,i,r),s=(a+o)/2;if(a===o)t[0]=t[1]=0;else{const e=a-o;switch(t[1]=s<.5?e/(a+o):e/(2-a-o),a){case n:t[0]=60*((i-r)/e+(i<r?6:0));break;case i:t[0]=60*((r-n)/e+2);break;case r:t[0]=60*((n-i)/e+4)}}t[2]=s}function mu(e,t){const n=e[0],i=e[1],r=e[2],a=(1-Math.abs(2*r-1))*i,o=a*(1-Math.abs(n/60%2-1)),s=r-a/2;switch(Math.floor(n/60)){case 0:t[0]=a+s,t[1]=o+s,t[2]=s;break;case 1:t[0]=o+s,t[1]=a+s,t[2]=s;break;case 2:t[0]=s,t[1]=a+s,t[2]=o+s;break;case 3:t[0]=s,t[1]=o+s,t[2]=a+s;break;case 4:t[0]=o+s,t[1]=s,t[2]=a+s;break;case 5:case 6:t[0]=a+s,t[1]=s,t[2]=o+s}}function vu(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function bu(e,t,n){mu(e,n),n.map(vu);const i=.2126*n[0]+.7152*n[1]+.0722*n[2];mu(t,n),n.map(vu);const r=.2126*n[0]+.7152*n[1]+.0722*n[2];return i>r?(i+.05)/(r+.05):(r+.05)/(i+.05)}const yu=new Map;function xu(e,t){let{html:n,dir:i,className:r}=e;const a=document.createDocumentFragment();if("string"===typeof n){const e=document.createElement("p");e.dir=i||"auto";const t=n.split(/(?:\r\n?|\n)/);for(let n=0,i=t.length;n<i;++n){const r=t[n];e.append(document.createTextNode(r)),n<i-1&&e.append(document.createElement("br"))}a.append(e)}else Xc.render({xfaHtml:n,div:a,intent:"richText"});a.firstElementChild.classList.add("richText",r),t.append(a)}function wu(e){const t=new Path2D;if(!e)return t;for(let n=0,i=e.length;n<i;)switch(e[n++]){case hc:t.moveTo(e[n++],e[n++]);break;case fc:t.lineTo(e[n++],e[n++]);break;case pc:t.bezierCurveTo(e[n++],e[n++],e[n++],e[n++],e[n++],e[n++]);break;case gc:t.quadraticCurveTo(e[n++],e[n++],e[n++],e[n++]);break;case mc:t.closePath();break;default:wc("Unrecognized drawing path operator: ".concat(e[n-1]))}return t}var _u=new WeakMap,Du=new WeakMap,Su=new WeakMap,ku=new WeakMap,Cu=new WeakMap,Au=new WeakMap,Tu=new WeakMap,Eu=new WeakMap,Nu=new WeakSet;class Mu{constructor(e){ll(this,Nu),cl(this,_u,null),cl(this,Du,null),cl(this,Su,void 0),cl(this,ku,null),cl(this,Cu,null),cl(this,Au,null),cl(this,Tu,null),cl(this,Eu,null),fl(Su,this,e),Ou._||(Ou._=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"}))}render(){const e=fl(_u,this,document.createElement("div"));e.classList.add("editToolbar","hidden"),e.setAttribute("role","toolbar");const t=hl(Su,this)._uiManager._signal;t instanceof AbortSignal&&!t.aborted&&(e.addEventListener("contextmenu",ru,{signal:t}),e.addEventListener("pointerdown",Pu,{signal:t}));const n=fl(ku,this,document.createElement("div"));n.className="buttons",e.append(n);const i=hl(Su,this).toolbarPosition;if(i){const{style:t}=e,n="ltr"===hl(Su,this)._uiManager.direction?1-i[0]:i[0];t.insetInlineEnd="".concat(100*n,"%"),t.top="calc(".concat(100*i[1],"% + var(--editor-toolbar-vert-offset))")}return e}get div(){return hl(_u,this)}hide(){var e;hl(_u,this).classList.add("hidden"),null===(e=hl(Du,this))||void 0===e||e.hideDropdown()}show(){var e,t;hl(_u,this).classList.remove("hidden"),null===(e=hl(Cu,this))||void 0===e||e.shown(),null===(t=hl(Au,this))||void 0===t||t.shown()}
2addDeleteButton(){const{editorType:e,_uiManager:t}=hl(Su,this),n=document.createElement("button");n.classList.add("basic","deleteButton"),n.tabIndex=0,n.setAttribute("data-l10n-id",Ou._[e]),ul(Nu,this,Fu).call(this,n)&&n.addEventListener("click",(e=>{t.delete()}),{signal:t._signal}),hl(ku,this).append(n)}async addAltText(e){const t=await e.render();ul(Nu,this,Fu).call(this,t),hl(ku,this).append(t,dl(Nu,this,Ru)),fl(Cu,this,e)}addComment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(hl(Au,this))return;const n=e.renderForToolbar();if(!n)return;ul(Nu,this,Fu).call(this,n);const i=fl(Tu,this,dl(Nu,this,Ru));t?(hl(ku,this).insertBefore(n,t),hl(ku,this).insertBefore(i,t)):hl(ku,this).append(n,i),fl(Au,this,e),e.toolbar=this}addColorPicker(e){if(hl(Du,this))return;fl(Du,this,e);const t=e.renderButton();ul(Nu,this,Fu).call(this,t),hl(ku,this).append(t,dl(Nu,this,Ru))}async addEditSignatureButton(e){const t=fl(Eu,this,await e.renderEditButton(hl(Su,this)));ul(Nu,this,Fu).call(this,t),hl(ku,this).append(t,dl(Nu,this,Ru))}removeButton(e){var t,n;if("comment"===e)null===(t=hl(Au,this))||void 0===t||t.removeToolbarCommentButton(),fl(Au,this,null),null===(n=hl(Tu,this))||void 0===n||n.remove(),fl(Tu,this,null)}async addButton(e,t){switch(e){case"colorPicker":t&&this.addColorPicker(t);break;case"altText":t&&await this.addAltText(t);break;case"editSignature":t&&await this.addEditSignatureButton(t);break;case"delete":this.addDeleteButton();break;case"comment":t&&this.addComment(t)}}async addButtonBefore(e,t,n){if(!t&&"comment"===e)return;const i=hl(ku,this).querySelector(n);i&&"comment"===e&&this.addComment(t,i)}updateEditSignatureButton(e){hl(Eu,this)&&(hl(Eu,this).title=e)}remove(){var e;hl(_u,this).remove(),null===(e=hl(Du,this))||void 0===e||e.destroy(),fl(Du,this,null)}}function Pu(e){e.stopPropagation()}function Uu(e){hl(Su,this)._focusEventsAllowed=!1,au(e)}function ju(e){hl(Su,this)._focusEventsAllowed=!0,au(e)}function Fu(e){const t=hl(Su,this)._uiManager._signal;return t instanceof AbortSignal&&!t.aborted&&(e.addEventListener("focusin",ul(Nu,this,Uu).bind(this),{capture:!0,signal:t}),e.addEventListener("focusout",ul(Nu,this,ju).bind(this),{capture:!0,signal:t}),e.addEventListener("contextmenu",ru,{signal:t}),!0)}function Ru(e){const t=document.createElement("div");return t.className="divider",t}var Ou={_:null},Iu=new WeakMap,Lu=new WeakMap,Bu=new WeakMap,Wu=new WeakSet;class zu{constructor(e){ll(this,Wu),cl(this,Iu,null),cl(this,Lu,null),cl(this,Bu,void 0),fl(Bu,this,e)}show(e,t,n){const[i,r]=ul(Wu,this,Hu).call(this,t,n),{style:a}=hl(Lu,this)||fl(Lu,this,ul(Wu,this,Vu).call(this));e.append(hl(Lu,this)),a.insetInlineEnd="".concat(100*i,"%"),a.top="calc(".concat(100*r,"% + var(--editor-toolbar-vert-offset))")}hide(){hl(Lu,this).remove()}}function Vu(){const e=fl(Lu,this,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const t=hl(Bu,this)._signal;t instanceof AbortSignal&&!t.aborted&&e.addEventListener("contextmenu",ru,{signal:t});const n=fl(Iu,this,document.createElement("div"));return n.className="buttons",e.append(n),hl(Bu,this).hasCommentManager()&&ul(Wu,this,qu).call(this,"commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",(()=>{hl(Bu,this).commentSelection("floating_button")})),ul(Wu,this,qu).call(this,"highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",(()=>{hl(Bu,this).highlightSelection("floating_button")})),e}function Hu(e,t){let n=0,i=0;for(const r of e){const e=r.y+r.height;if(e<n)continue;const a=r.x+(t?r.width:0);e>n?(i=a,n=e):t?a>i&&(i=a):a<i&&(i=a)}return[t?1-i:i,n]}function qu(e,t,n,i){const r=document.createElement("button");r.classList.add("basic",e),r.tabIndex=0,r.setAttribute("data-l10n-id",t);const a=document.createElement("span");r.append(a),a.className="visuallyHidden",a.setAttribute("data-l10n-id",n);const o=hl(Bu,this)._signal;o instanceof AbortSignal&&!o.aborted&&(r.addEventListener("contextmenu",ru,{signal:o}),r.addEventListener("click",i,{signal:o})),hl(Iu,this).append(r)}function Gu(e,t,n){for(const i of n)t.addEventListener(i,e[i].bind(e))}class Yu{static initializeAndAddPointerId(e){(Ku._||(Ku._=new Set)).add(e)}static setPointer(e,t){var n;Xu._||(Xu._=t),null!==(n=Qu._)&&void 0!==n||(Qu._=e)}static setTimeStamp(e){$u._=e}static isSamePointerId(e){return Xu._===e}static isSamePointerIdOrRemove(e){var t;return Xu._===e||(null===(t=Ku._)||void 0===t||t.delete(e),!1)}static isSamePointerType(e){return Qu._===e}static isInitializedAndDifferentPointerType(e){return null!==Qu._&&!Yu.isSamePointerType(e)}static isSameTimeStamp(e){return $u._===e}static isUsingMultiplePointers(){var e;return(null===(e=Ku._)||void 0===e?void 0:e.size)>=1}static clearPointerType(){Qu._=null}static clearPointerIds(){Xu._=NaN,Ku._=null}static clearTimeStamp(){$u._=NaN}}var Xu={_:NaN},Ku={_:null},$u={_:NaN},Qu={_:null},Zu=new WeakMap;class Ju{constructor(){cl(this,Zu,0)}get id(){var e,t;return"".concat(Gl).concat((fl(Zu,this,(e=hl(Zu,this),t=e++,e)),t))}}var ed=new WeakMap,td=new WeakMap,nd=new WeakMap,id=new WeakSet;class rd{constructor(){ll(this,id),cl(this,ed,Vc()),cl(this,td,0),cl(this,nd,null)}static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>';return Cc(this,"_isSVGFittingCanvas",t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0]))))}async getFromFile(e){const{lastModified:t,name:n,size:i,type:r}=e;return ul(id,this,ad).call(this,"".concat(t,"_").concat(n,"_").concat(i,"_").concat(r),e)}async getFromUrl(e){return ul(id,this,ad).call(this,e,e)}async getFromBlob(e,t){const n=await t;return ul(id,this,ad).call(this,e,n)}async getFromId(e){hl(nd,this)||fl(nd,this,new Map);const t=hl(nd,this).get(e);if(!t)return null;if(t.bitmap)return t.refCounter+=1,t;if(t.file)return this.getFromFile(t.file);if(t.blobPromise){const{blobPromise:e}=t;return delete t.blobPromise,this.getFromBlob(t.id,e)}return this.getFromUrl(t.url)}getFromCanvas(e,t){var n,i,r;hl(nd,this)||fl(nd,this,new Map);let a=hl(nd,this).get(e);if(null!==(r=a)&&void 0!==r&&r.bitmap)return a.refCounter+=1,a;const o=new OffscreenCanvas(t.width,t.height);
2return o.getContext("2d").drawImage(t,0,0),a={bitmap:o.transferToImageBitmap(),id:"image_".concat(hl(ed,this),"_").concat((fl(td,this,(n=hl(td,this),i=n++,n)),i)),refCounter:1,isSvg:!1},hl(nd,this).set(e,a),hl(nd,this).set(a.id,a),a}getSvgUrl(e){const t=hl(nd,this).get(e);return null!==t&&void 0!==t&&t.isSvg?t.svgUrl:null}deleteId(e){var t;hl(nd,this)||fl(nd,this,new Map);const n=hl(nd,this).get(e);if(!n)return;if(n.refCounter-=1,0!==n.refCounter)return;const{bitmap:i}=n;if(!n.url&&!n.file){const e=new OffscreenCanvas(i.width,i.height);e.getContext("bitmaprenderer").transferFromImageBitmap(i),n.blobPromise=e.convertToBlob()}null===(t=i.close)||void 0===t||t.call(i),n.bitmap=null}isValidId(e){return e.startsWith("image_".concat(hl(ed,this),"_"))}}async function ad(e,t){var n;hl(nd,this)||fl(nd,this,new Map);let i=hl(nd,this).get(e);if(null===i)return null;if(null!==(n=i)&&void 0!==n&&n.bitmap)return i.refCounter+=1,i;try{var r,a;let e;if(i||(i={bitmap:null,id:"image_".concat(hl(ed,this),"_").concat((fl(td,this,(r=hl(td,this),a=r++,r)),a)),refCounter:0,isSvg:!1}),"string"===typeof t?(i.url=t,e=await Qc(t,"blob")):t instanceof File?e=i.file=t:t instanceof Blob&&(e=t),"image/svg+xml"===e.type){const t=bl._isSVGFittingCanvas,n=new FileReader,r=new Image,a=new Promise(((e,a)=>{r.onload=()=>{i.bitmap=r,i.isSvg=!0,e()},n.onload=async()=>{const e=i.svgUrl=n.result;r.src=await t?"".concat(e,"#svgView(preserveAspectRatio(none))"):e},r.onerror=n.onerror=a}));n.readAsDataURL(e),await a}else i.bitmap=await createImageBitmap(e);i.refCounter=1}catch(eQ){wc(eQ),i=null}return hl(nd,this).set(e,i),i&&hl(nd,this).set(i.id,i),i}bl=rd;var od=new WeakMap,sd=new WeakMap,ld=new WeakMap,cd=new WeakMap;class ud{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;cl(this,od,[]),cl(this,sd,!1),cl(this,ld,void 0),cl(this,cd,-1),fl(ld,this,e)}add(e){let{cmd:t,undo:n,post:i,mustExec:r,type:a=NaN,overwriteIfSameType:o=!1,keepUndo:s=!1}=e;if(r&&t(),hl(sd,this))return;const l={cmd:t,undo:n,post:i,type:a};if(-1===hl(cd,this))return hl(od,this).length>0&&(hl(od,this).length=0),fl(cd,this,0),void hl(od,this).push(l);if(o&&hl(od,this)[hl(cd,this)].type===a)return s&&(l.undo=hl(od,this)[hl(cd,this)].undo),void(hl(od,this)[hl(cd,this)]=l);const c=hl(cd,this)+1;c===hl(ld,this)?hl(od,this).splice(0,1):(fl(cd,this,c),c<hl(od,this).length&&hl(od,this).splice(c)),hl(od,this).push(l)}undo(){if(-1===hl(cd,this))return;fl(sd,this,!0);const{undo:e,post:t}=hl(od,this)[hl(cd,this)];e(),null===t||void 0===t||t(),fl(sd,this,!1),fl(cd,this,hl(cd,this)-1)}redo(){if(hl(cd,this)<hl(od,this).length-1){fl(cd,this,hl(cd,this)+1),fl(sd,this,!0);const{cmd:e,post:t}=hl(od,this)[hl(cd,this)];e(),null===t||void 0===t||t(),fl(sd,this,!1)}}hasSomethingToUndo(){return-1!==hl(cd,this)}hasSomethingToRedo(){return hl(cd,this)<hl(od,this).length-1}cleanType(e){if(-1!==hl(cd,this)){for(let t=hl(cd,this);t>=0;t--)if(hl(od,this)[t].type!==e)return hl(od,this).splice(t+1,hl(cd,this)-t),void fl(cd,this,t);hl(od,this).length=0,fl(cd,this,-1)}}destroy(){fl(od,this,null)}}var dd=new WeakSet;class hd{constructor(e){ll(this,dd),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=Rc.platform;for(const[n,i,r={}]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),{callback:i,options:r}),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,{callback:i,options:r}),this.allKeys.add(e.split("+").at(-1)))}}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(ul(dd,this,fd).call(this,t));if(!n)return;const{callback:i,options:{bubbles:r=!1,args:a=[],checker:o=null}}=n;o&&!o(e,t)||(i.bind(e,...a,t)(),r||au(t))}}function fd(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}class pd{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return function(e){const t=document.createElement("span");t.style.visibility="hidden",t.style.colorScheme="only light",document.body.append(t);for(const n of e.keys()){t.style.color=n;const i=window.getComputedStyle(t).color;e.set(n,lu(i))}t.remove()}(e),Cc(this,"_colors",e)}convert(e){const t=lu(e);
2if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[n,i]of this._colors)if(i.every(((e,n)=>e===t[n])))return pd._colorsMapping.get(n);return t}getHexCode(e){const t=this._colors.get(e);return t?Ic.makeHexColor(...t):e}}Qe(pd,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));var gd=new WeakMap,md=new WeakMap,vd=new WeakMap,bd=new WeakMap,yd=new WeakMap,xd=new WeakMap,wd=new WeakMap,_d=new WeakMap,Dd=new WeakMap,Sd=new WeakMap,kd=new WeakMap,Cd=new WeakMap,Ad=new WeakMap,Td=new WeakMap,Ed=new WeakMap,Nd=new WeakMap,Md=new WeakMap,Pd=new WeakMap,Ud=new WeakMap,jd=new WeakMap,Fd=new WeakMap,Rd=new WeakMap,Od=new WeakMap,Id=new WeakMap,Ld=new WeakMap,Bd=new WeakMap,Wd=new WeakMap,zd=new WeakMap,Vd=new WeakMap,Hd=new WeakMap,qd=new WeakMap,Gd=new WeakMap,Yd=new WeakMap,Xd=new WeakMap,Kd=new WeakMap,$d=new WeakMap,Qd=new WeakMap,Zd=new WeakMap,Jd=new WeakMap,eh=new WeakMap,th=new WeakMap,nh=new WeakMap,ih=new WeakMap,rh=new WeakMap,ah=new WeakMap,oh=new WeakMap,sh=new WeakMap,lh=new WeakMap,ch=new WeakMap,uh=new WeakSet;class dh{static get _keyboardManager(){const e=dh.prototype,t=e=>hl(oh,e).contains(document.activeElement)&&"BUTTON"!==document.activeElement.tagName&&e.hasSomethingToControl(),n=(e,t)=>{let{target:n}=t;if(n instanceof HTMLInputElement){const{type:e}=n;return"text"!==e&&"number"!==e}return!0},i=this.TRANSLATE_SMALL,r=this.TRANSLATE_BIG;return Cc(this,"_keyboardManager",new hd([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],e.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:n}
2],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(e,t)=>{let{target:n}=t;return!(n instanceof HTMLButtonElement)&&hl(oh,e).contains(n)&&!e.isEnterHandled}}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(e,t)=>{let{target:n}=t;return!(n instanceof HTMLButtonElement)&&hl(oh,e).contains(document.activeElement)}}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}]]))}constructor(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,g){ll(this,uh),cl(this,gd,new AbortController),cl(this,md,null),cl(this,vd,null),cl(this,bd,new Map),cl(this,yd,new Map),cl(this,xd,null),cl(this,wd,null),cl(this,_d,null),cl(this,Dd,new ud),cl(this,Sd,null),cl(this,kd,null),cl(this,Cd,null),cl(this,Ad,0),cl(this,Td,new Set),cl(this,Ed,null),cl(this,Nd,null),cl(this,Md,new Set),Qe(this,"_editorUndoBar",null),cl(this,Pd,!1),cl(this,Ud,!1),cl(this,jd,!1),cl(this,Fd,null),cl(this,Rd,null),cl(this,Od,null),
2cl(this,Id,null),cl(this,Ld,!1),cl(this,Bd,null),cl(this,Wd,new Ju),cl(this,zd,!1),cl(this,Vd,!1),cl(this,Hd,!1),cl(this,qd,null),cl(this,Gd,null),cl(this,Yd,null),cl(this,Xd,null),cl(this,Kd,null),cl(this,$d,Yl.NONE),cl(this,Qd,new Set),cl(this,Zd,null),cl(this,Jd,null),cl(this,eh,null),cl(this,th,null),cl(this,nh,null),cl(this,ih,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1}),cl(this,rh,[0,0]),cl(this,ah,null),cl(this,oh,null),cl(this,sh,null),cl(this,lh,null),cl(this,ch,null);const m=this._signal=hl(gd,this).signal;fl(oh,this,e),fl(sh,this,t),fl(lh,this,n),fl(xd,this,i),fl(Sd,this,r),fl(Jd,this,a),fl(nh,this,s),this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:m}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:m}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:m}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:m}),o._on("setpreference",this.onSetPreference.bind(this),{signal:m}),o._on("switchannotationeditorparams",(e=>this.updateParams(e.type,e.value)),{signal:m}),window.addEventListener("pointerdown",(()=>{fl(Vd,this,!0)}),{capture:!0,signal:m}),window.addEventListener("pointerup",(()=>{fl(Vd,this,!1)}),{capture:!0,signal:m}),ul(uh,this,vh).call(this),ul(uh,this,Sh).call(this),ul(uh,this,xh).call(this),fl(wd,this,s.annotationStorage),fl(Fd,this,s.filterFactory),fl(eh,this,l),fl(Id,this,c||null),fl(Pd,this,u),fl(Ud,this,d),fl(jd,this,h),fl(Kd,this,f||null),this.viewParameters={realScale:$c.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=p||null,this._supportsPinchToZoom=!1!==g,null===r||void 0===r||r.setSidebarUiManager(this)}destroy(){var e,t,n,i,r,a,o,s,l;null===(e=hl(ch,this))||void 0===e||e.resolve(),fl(ch,this,null),null===(t=hl(gd,this))||void 0===t||t.abort(),fl(gd,this,null),this._signal=null;for(const c of hl(yd,this).values())c.destroy();hl(yd,this).clear(),hl(bd,this).clear(),hl(Md,this).clear(),null===(n=hl(Xd,this))||void 0===n||n.clear(),fl(md,this,null),hl(Qd,this).clear(),hl(Dd,this).destroy(),null===(i=hl(xd,this))||void 0===i||i.destroy(),null===(r=hl(Sd,this))||void 0===r||r.destroy(),null===(a=hl(Jd,this))||void 0===a||a.destroy(),null===(o=hl(Bd,this))||void 0===o||o.hide(),fl(Bd,this,null),null===(s=hl(Yd,this))||void 0===s||s.destroy(),fl(Yd,this,null),fl(vd,this,null),hl(Rd,this)&&(clearTimeout(hl(Rd,this)),fl(Rd,this,null)),hl(ah,this)&&(clearTimeout(hl(ah,this)),fl(ah,this,null)),null===(l=this._editorUndoBar)||void 0===l||l.destroy(),fl(nh,this,null)}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return hl(Kd,this)}get useNewAltTextFlow(){return hl(Ud,this)}get useNewAltTextWhenAddingImage(){return hl(jd,this)}get hcmFilter(){return Cc(this,"hcmFilter",hl(eh,this)?hl(Fd,this).addHCMFilter(hl(eh,this).foreground,hl(eh,this).background):"none")}get direction(){return Cc(this,"direction",getComputedStyle(hl(oh,this)).direction)}get _highlightColors(){return Cc(this,"_highlightColors",hl(Id,this)?new Map(hl(Id,this).split(",").map((e=>((e=e.split("=").map((e=>e.trim())))[1]=e[1].toUpperCase(),e)))):null)}get highlightColors(){const{_highlightColors:e}=this;if(!e)return Cc(this,"highlightColors",null);const t=new Map,n=!!hl(eh,this);for(const[i,r]of e){const e=i.endsWith("_HCM");n&&e?t.set(i.replace("_HCM",""),r):n||e||t.set(i,r)}return Cc(this,"highlightColors",t)}get highlightColorNames(){return Cc(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,(e=>e.reverse()))):null)}getNonHCMColor(e){if(!this._highlightColors)return e;const t=this.highlightColorNames.get(e);return this._highlightColors.get(t)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),fl(Cd,this,e)}setMainHighlightColorPicker(e){fl(Yd,this,e)}editAltText(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null===(t=hl(xd,this))||void 0===t||t.editAltText(this,e,n)}hasCommentManager(){return!!hl(Sd,this)}editComment(e,t,n,i){var r;null===(r=hl(Sd,this))||void 0===r||r.showDialog(this,e,t,n,i)}selectComment(e,t){const n=hl(yd,this).get(e),i=null===n||void 0===n?void 0:n.getEditorByUID(t);null===i||void 0===i||i.toggleComment(!0,!0)}updateComment(e){var t;null===(t=hl(Sd,this))||void 0===t||t.updateComment(e.getData())}updatePopupColor(e){var t;null===(t=hl(Sd,this))||void 0===t||t.updatePopupColor(e)}
2removeComment(e){var t;null===(t=hl(Sd,this))||void 0===t||t.removeComments([e.uid])}toggleComment(e,t){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;null===(n=hl(Sd,this))||void 0===n||n.toggleCommentPopup(e,t,i)}makeCommentColor(e,t){var n;return e&&(null===(n=hl(Sd,this))||void 0===n?void 0:n.makeCommentColor(e,t))||null}getCommentDialogElement(){var e;return(null===(e=hl(Sd,this))||void 0===e?void 0:e.dialogElement)||null}async waitForEditorsRendered(e){if(hl(yd,this).has(e-1))return;const{resolve:t,promise:n}=Promise.withResolvers(),i=n=>{n.pageNumber===e&&(this._eventBus._off("editorsrendered",i),t())};this._eventBus.on("editorsrendered",i),await n}getSignature(e){var t;null===(t=hl(Jd,this))||void 0===t||t.getSignature({uiManager:this,editor:e})}get signatureManager(){return hl(Jd,this)}switchToMode(e,t){this._eventBus.on("annotationeditormodechanged",t,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,t){this._eventBus.dispatch("setpreference",{source:this,name:e,value:t})}onSetPreference(e){let{name:t,value:n}=e;if("enableNewAltTextWhenAddingImage"===t)fl(jd,this,n)}onPageChanging(e){let{pageNumber:t}=e;fl(Ad,this,t-1)}focusMainContainer(){hl(oh,this).focus()}findParent(e,t){for(const n of hl(yd,this).values()){const{x:i,y:r,width:a,height:o}=n.div.getBoundingClientRect();if(e>=i&&e<=i+a&&t>=r&&t<=r+o)return n}return null}disableUserSelect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];hl(sh,this).classList.toggle("noUserSelect",e)}addShouldRescale(e){hl(Md,this).add(e)}removeShouldRescale(e){hl(Md,this).delete(e)}onScaleChanging(e){var t;let{scale:n}=e;this.commitOrRemove(),this.viewParameters.realScale=n*$c.PDF_TO_CSS_UNITS;for(const i of hl(Md,this))i.onScaleChanging();null===(t=hl(Cd,this))||void 0===t||t.onScaleChanging()}onRotationChanging(e){let{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}highlightSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:i,anchorOffset:r,focusNode:a,focusOffset:o}=n,s=n.toString(),l=ul(uh,this,hh).call(this,n).closest(".textLayer"),c=this.getSelectionBoxes(l);if(!c)return;n.empty();const u=ul(uh,this,fh).call(this,l),d=hl($d,this)===Yl.NONE,h=()=>{const n=null===u||void 0===u?void 0:u.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:c,anchorNode:i,anchorOffset:r,focusNode:a,focusOffset:o,text:s});d&&this.showAllEditors("highlight",!0,!0),t&&(null===n||void 0===n||n.editComment())};d?this.switchToMode(Yl.HIGHLIGHT,h):h()}commentSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.highlightSelection(e,!0)}getAndRemoveDataFromAnnotationStorage(e){if(!hl(wd,this))return null;const t="".concat(Gl).concat(e),n=hl(wd,this).getRawValue(t);return n&&hl(wd,this).remove(t),n}addToAnnotationStorage(e){e.isEmpty()||!hl(wd,this)||hl(wd,this).has(e.id)||hl(wd,this).setValue(e.id,e)}a11yAlert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=hl(lh,this);n&&(n.setAttribute("data-l10n-id",e),t?n.setAttribute("data-l10n-args",JSON.stringify(t)):n.removeAttribute("data-l10n-args"))}blur(){if(this.isShiftKeyDown=!1,hl(Ld,this)&&(fl(Ld,this,!1),ul(uh,this,mh).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const t of hl(Qd,this))if(t.div.contains(e)){fl(Gd,this,[t,e]),t._focusEventsAllowed=!1;break}}focus(){if(!hl(Gd,this))return;const[e,t]=hl(Gd,this);fl(Gd,this,null),t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0,signal:this._signal}),t.focus()}addEditListeners(){ul(uh,this,xh).call(this),this.setEditingState(!0)}removeEditListeners(){ul(uh,this,wh).call(this),this.setEditingState(!1)}dragOver(e){for(const{type:t}of e.dataTransfer.items)for(const n of hl(Nd,this))if(n.isHandlingMimeForPasting(t))return e.dataTransfer.dropEffect="copy",void e.preventDefault()}drop(e){for(const t of e.dataTransfer.items)for(const n of hl(Nd,this))if(n.isHandlingMimeForPasting(t.type))return n.paste(t,this.currentLayer),void e.preventDefault()}copy(e){var t;if(e.preventDefault(),null===(t=hl(md,this))||void 0===t||t.commitOrRemove(),!this.hasSelection)return;const n=[];for(const i of hl(Qd,this)){const e=i.serialize(!0);e&&n.push(e)}0!==n.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();const{clipboardData:t}=e;for(const a of t.items)for(const e of hl(Nd,this))if(e.isHandlingMimeForPasting(a.type))return void e.paste(a,this.currentLayer);let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(r){return void wc('paste: "'.concat(r.message,'".'))}if(!Array.isArray(n))return;this.unselectAll();const i=this.currentLayer;try{const e=[];for(const a of n){const t=await i.deserialize(a);if(!t)return;e.push(t)}const t=()=>{for(const t of e)ul(uh,this,Eh).call(this,t);ul(uh,this,Ph).call(this,e)},r=()=>{for(const t of e)t.remove()};this.addCommands({cmd:t,undo:r,mustExec:!0})}catch(r){wc('paste: "'.concat(r.message,'".'))}}keydown(e){this.isShiftKeyDown||"Shift"!==e.key||(this.isShiftKeyDown=!0),hl($d,this)===Yl.NONE||this.isEditorHandlingKeyboard||dh._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&"Shift"===e.key&&(this.isShiftKeyDown=!1,hl(Ld,this)&&(fl(Ld,this,!1),ul(uh,this,mh).call(this,"main_toolbar")))}onEditingAction(e){let{name:t}=e;switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu")}}setEditingState(e){e?(ul(uh,this,bh).call(this),ul(uh,this,_h).call(this),ul(uh,this,kh).call(this,{isEditing:hl($d,this)!==Yl.NONE,isEmpty:ul(uh,this,Mh).call(this),hasSomethingToUndo:hl(Dd,this).hasSomethingToUndo(),hasSomethingToRedo:hl(Dd,this).hasSomethingToRedo(),hasSelectedEditor:!1})):(ul(uh,this,yh).call(this),ul(uh,this,Dh).call(this),ul(uh,this,kh).call(this,{isEditing:!1}),this.disableUserSelect(!1))}
2registerEditorTypes(e){if(!hl(Nd,this)){fl(Nd,this,e);for(const e of hl(Nd,this))ul(uh,this,Ch).call(this,e.defaultPropertiesToUpdate)}}getId(){return hl(Wd,this).id}get currentLayer(){return hl(yd,this).get(hl(Ad,this))}getLayer(e){return hl(yd,this).get(e)}get currentPageIndex(){return hl(Ad,this)}addLayer(e){hl(yd,this).set(e.pageIndex,e),hl(zd,this)?e.enable():e.disable()}removeLayer(e){hl(yd,this).delete(e.pageIndex)}async updateMode(e){var t,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(hl($d,this)!==e&&(!hl(ch,this)||(await hl(ch,this).promise,hl(ch,this)))){var s,l;if(fl(ch,this,Promise.withResolvers()),null===(t=hl(Cd,this))||void 0===t||t.commitOrRemove(),hl($d,this)===Yl.POPUP)null===(s=hl(Sd,this))||void 0===s||s.hideSidebar();if(null===(n=hl(Sd,this))||void 0===n||n.destroyPopup(),fl($d,this,e),e===Yl.NONE){var c;this.setEditingState(!1),ul(uh,this,Th).call(this);for(const e of hl(bd,this).values())e.hideStandaloneCommentButton();return null===(c=this._editorUndoBar)||void 0===c||c.hide(),this.toggleComment(null),void hl(ch,this).resolve()}for(const e of hl(bd,this).values())e.addStandaloneCommentButton();if(e===Yl.SIGNATURE)await(null===(l=hl(Jd,this))||void 0===l?void 0:l.loadSignatures());this.setEditingState(!0),await ul(uh,this,Ah).call(this),this.unselectAll();for(const t of hl(yd,this).values())t.updateMode(e);if(e===Yl.POPUP){var u;hl(vd,this)||fl(vd,this,await hl(nh,this).getAnnotationsByType(new Set(hl(Nd,this).map((e=>e._editorType)))));const e=new Set,t=[];for(const n of hl(bd,this).values()){const{annotationElementId:i,hasComment:r,deleted:a}=n;i&&e.add(i),r&&!a&&t.push(n.getData())}for(const n of hl(vd,this)){const{id:i,popupRef:r,contentsObj:a}=n;r&&null!==a&&void 0!==a&&a.str&&!e.has(i)&&!hl(Td,this).has(i)&&t.push(n)}null===(u=hl(Sd,this))||void 0===u||u.showSidebar(t)}if(!i)return r&&this.addNewEditorFromKeyboard(),void hl(ch,this).resolve();for(const e of hl(bd,this).values())e.uid===i?(this.setSelected(e),o?e.editComment():a?e.enterInEditMode():e.focus()):e.unselect();hl(ch,this).resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==hl($d,this)&&this._eventBus.dispatch("switchannotationeditormode",Je({source:this},e))}updateParams(e,t){if(hl(Nd,this)){switch(e){case Xl.CREATE:return void this.currentLayer.addNewEditor(t);case Xl.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(hl(th,this)||fl(th,this,new Map)).set(e,t),this.showAllEditors("highlight",t)}if(this.hasSelection)for(const n of hl(Qd,this))n.updateParams(e,t);else for(const n of hl(Nd,this))n.updateDefaultParams(e,t)}}showAllEditors(e,t){var n,i;for(const r of hl(bd,this).values())r.editorType===e&&r.show(t);(null===(n=null===(i=hl(th,this))||void 0===i?void 0:i.get(Xl.HIGHLIGHT_SHOW_ALL))||void 0===n||n)!==t&&ul(uh,this,Ch).call(this,[[Xl.HIGHLIGHT_SHOW_ALL,t]])}enableWaiting(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(hl(Hd,this)!==e){fl(Hd,this,e);for(const t of hl(yd,this).values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}*getEditors(e){for(const t of hl(bd,this).values())t.pageIndex===e&&(yield t)}getEditor(e){return hl(bd,this).get(e)}addEditor(e){hl(bd,this).set(e.id,e)}removeEditor(e){var t,n;(e.div.contains(document.activeElement)&&(hl(Rd,this)&&clearTimeout(hl(Rd,this)),fl(Rd,this,setTimeout((()=>{this.focusMainContainer(),fl(Rd,this,null)}),0))),hl(bd,this).delete(e.id),e.annotationElementId)&&(null===(t=hl(Xd,this))||void 0===t||t.delete(e.annotationElementId));(this.unselect(e),e.annotationElementId&&hl(Td,this).has(e.annotationElementId))||(null===(n=hl(wd,this))||void 0===n||n.remove(e.id))}addDeletedAnnotationElement(e){hl(Td,this).add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}
2isDeletedAnnotationElement(e){return hl(Td,this).has(e)}removeDeletedAnnotationElement(e){hl(Td,this).delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}setActiveEditor(e){hl(md,this)!==e&&(fl(md,this,e),e&&ul(uh,this,Ch).call(this,e.propertiesToUpdate))}updateUI(e){dl(uh,this,Nh)===e&&ul(uh,this,Ch).call(this,e.propertiesToUpdate)}updateUIForDefaultProperties(e){ul(uh,this,Ch).call(this,e.defaultPropertiesToUpdate)}toggleSelected(e){if(hl(Qd,this).has(e))return hl(Qd,this).delete(e),e.unselect(),void ul(uh,this,kh).call(this,{hasSelectedEditor:this.hasSelection});hl(Qd,this).add(e),e.select(),ul(uh,this,Ch).call(this,e.propertiesToUpdate),ul(uh,this,kh).call(this,{hasSelectedEditor:!0})}setSelected(e){var t;this.updateToolbar({mode:e.mode,editId:e.uid}),null===(t=hl(Cd,this))||void 0===t||t.commitOrRemove();for(const n of hl(Qd,this))n!==e&&n.unselect();hl(Qd,this).clear(),hl(Qd,this).add(e),e.select(),ul(uh,this,Ch).call(this,e.propertiesToUpdate),ul(uh,this,kh).call(this,{hasSelectedEditor:!0})}isSelected(e){return hl(Qd,this).has(e)}get firstSelectedEditor(){return hl(Qd,this).values().next().value}unselect(e){e.unselect(),hl(Qd,this).delete(e),ul(uh,this,kh).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==hl(Qd,this).size}get isEnterHandled(){return 1===hl(Qd,this).size&&this.firstSelectedEditor.isEnterHandled}undo(){var e;hl(Dd,this).undo(),ul(uh,this,kh).call(this,{hasSomethingToUndo:hl(Dd,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:ul(uh,this,Mh).call(this)}),null===(e=this._editorUndoBar)||void 0===e||e.hide()}redo(){hl(Dd,this).redo(),ul(uh,this,kh).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:hl(Dd,this).hasSomethingToRedo(),isEmpty:ul(uh,this,Mh).call(this)})}addCommands(e){hl(Dd,this).add(e),ul(uh,this,kh).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:ul(uh,this,Mh).call(this)})}cleanUndoStack(e){hl(Dd,this).cleanType(e)}delete(){var e;this.commitOrRemove();const t=null===(e=this.currentLayer)||void 0===e?void 0:e.endDrawingSession(!0);if(!this.hasSelection&&!t)return;const n=t?[t]:[...hl(Qd,this)],i=()=>{for(const e of n)ul(uh,this,Eh).call(this,e)};this.addCommands({cmd:()=>{var e;null===(e=this._editorUndoBar)||void 0===e||e.show(i,1===n.length?n[0].editorType:n.length);for(const t of n)t.remove()},undo:i,mustExec:!0})}commitOrRemove(){var e;null===(e=hl(md,this))||void 0===e||e.commitOrRemove()}hasSomethingToControl(){return hl(md,this)||this.hasSelection}selectAll(){for(const e of hl(Qd,this))e.commit();ul(uh,this,Ph).call(this,hl(bd,this).values())}unselectAll(){var e;if((!hl(md,this)||(hl(md,this).commitOrRemove(),hl($d,this)===Yl.NONE))&&(null===(e=hl(Cd,this))||void 0===e||!e.commitOrRemove())&&this.hasSelection){for(const e of hl(Qd,this))e.unselect();hl(Qd,this).clear(),ul(uh,this,kh).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),!this.hasSelection)return;hl(rh,this)[0]+=e,hl(rh,this)[1]+=t;const[n,i]=hl(rh,this),r=[...hl(Qd,this)];hl(ah,this)&&clearTimeout(hl(ah,this)),fl(ah,this,setTimeout((()=>{fl(ah,this,null),hl(rh,this)[0]=hl(rh,this)[1]=0,this.addCommands({cmd:()=>{for(const e of r)hl(bd,this).has(e.id)&&(e.translateInPage(n,i),e.translationDone())},undo:()=>{for(const e of r)hl(bd,this).has(e.id)&&(e.translateInPage(-n,-i),e.translationDone())},mustExec:!1})}),1e3));for(const a of r)a.translateInPage(e,t),a.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),fl(Ed,this,new Map);for(const e of hl(Qd,this))hl(Ed,this).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!hl(Ed,this))return!1;this.disableUserSelect(!1);const e=hl(Ed,this);fl(Ed,this,null);let t=!1;for(const[{x:i,y:r,pageIndex:a},o]of e)o.newX=i,o.newY=r,o.newPageIndex=a,t||(t=i!==o.savedX||r!==o.savedY||a!==o.savedPageIndex);if(!t)return!1;const n=(e,t,n,i)=>{if(hl(bd,this).has(e.id)){const r=hl(yd,this).get(i);r?e._setParentAndPosition(r,t,n):(e.pageIndex=i,e.x=t,e.y=n)}};return this.addCommands({cmd:()=>{for(const[t,{newX:i,newY:r,newPageIndex:a}]of e)n(t,i,r,a)},undo:()=>{for(const[t,{savedX:i,savedY:r,savedPageIndex:a}]of e)n(t,i,r,a)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(hl(Ed,this))for(const n of hl(Ed,this).keys())n.drag(e,t)}rebuild(e){if(null===e.parent){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){var e;return(null===(e=this.getActive())||void 0===e?void 0:e.shouldGetKeyboardEvents())||1===hl(Qd,this).size&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return hl(md,this)===e}getActive(){return hl(md,this)}getMode(){return hl($d,this)}isEditingMode(){return hl($d,this)!==Yl.NONE}get imageManager(){return Cc(this,"imageManager",new rd)}getSelectionBoxes(e){if(!e)return null;const t=document.getSelection();for(let l=0,c=t.rangeCount;l<c;
2l++)if(!e.contains(t.getRangeAt(l).commonAncestorContainer))return null;const{x:n,y:i,width:r,height:a}=e.getBoundingClientRect();let o;switch(e.getAttribute("data-main-rotation")){case"90":o=(e,t,o,s)=>({x:(t-i)/a,y:1-(e+o-n)/r,width:s/a,height:o/r});break;case"180":o=(e,t,o,s)=>({x:1-(e+o-n)/r,y:1-(t+s-i)/a,width:o/r,height:s/a});break;case"270":o=(e,t,o,s)=>({x:1-(t+s-i)/a,y:(e-n)/r,width:s/a,height:o/r});break;default:o=(e,t,o,s)=>({x:(e-n)/r,y:(t-i)/a,width:o/r,height:s/a})}const s=[];for(let l=0,c=t.rangeCount;l<c;l++){const e=t.getRangeAt(l);if(!e.collapsed)for(const{x:t,y:n,width:i,height:r}of e.getClientRects())0!==i&&0!==r&&s.push(o(t,n,i,r))}return 0===s.length?null:s}addChangedExistingAnnotation(e){let{annotationElementId:t,id:n}=e;(hl(_d,this)||fl(_d,this,new Map)).set(t,n)}removeChangedExistingAnnotation(e){var t;let{annotationElementId:n}=e;null===(t=hl(_d,this))||void 0===t||t.delete(n)}renderAnnotationElement(e){var t;const n=null===(t=hl(_d,this))||void 0===t?void 0:t.get(e.data.id);if(!n)return;const i=hl(wd,this).getRawValue(n);i&&(hl($d,this)!==Yl.NONE||i.hasBeenModified)&&i.renderAnnotationElement(e)}setMissingCanvas(e,t,n){var i;const r=null===(i=hl(Xd,this))||void 0===i?void 0:i.get(e);r&&(r.setCanvas(t,n),hl(Xd,this).delete(e))}addMissingCanvas(e,t){(hl(Xd,this)||fl(Xd,this,new Map)).set(e,t)}}function hh(e){let{anchorNode:t}=e;return t.nodeType===Node.TEXT_NODE?t.parentElement:t}function fh(e){const{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(const n of hl(yd,this).values())if(n.hasTextLayer(e))return n;return null}function ph(){const e=document.getSelection();if(!e||e.isCollapsed)return;const t=ul(uh,this,hh).call(this,e).closest(".textLayer"),n=this.getSelectionBoxes(t);n&&(hl(Bd,this)||fl(Bd,this,new zu(this)),hl(Bd,this).show(t,n,"ltr"===this.direction))}function gh(){var e;const t=document.getSelection();if(!t||t.isCollapsed){var n;if(hl(Zd,this))null===(n=hl(Bd,this))||void 0===n||n.hide(),fl(Zd,this,null),ul(uh,this,kh).call(this,{hasSelectedText:!1});return}const{anchorNode:i}=t;if(i===hl(Zd,this))return;const r=ul(uh,this,hh).call(this,t).closest(".textLayer");var a;if(r){if(null===(e=hl(Bd,this))||void 0===e||e.hide(),fl(Zd,this,i),ul(uh,this,kh).call(this,{hasSelectedText:!0}),(hl($d,this)===Yl.HIGHLIGHT||hl($d,this)===Yl.NONE)&&(hl($d,this)===Yl.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),fl(Ld,this,this.isShiftKeyDown),!this.isShiftKeyDown)){const e=hl($d,this)===Yl.HIGHLIGHT?ul(uh,this,fh).call(this,r):null;if(null===e||void 0===e||e.toggleDrawing(),hl(Vd,this)){const t=new AbortController,n=this.combinedSignal(t),i=n=>{"pointerup"===n.type&&0!==n.button||(t.abort(),null===e||void 0===e||e.toggleDrawing(!0),"pointerup"===n.type&&ul(uh,this,mh).call(this,"main_toolbar"))};window.addEventListener("pointerup",i,{signal:n}),window.addEventListener("blur",i,{signal:n})}else null===e||void 0===e||e.toggleDrawing(!0),ul(uh,this,mh).call(this,"main_toolbar")}}else hl(Zd,this)&&(null===(a=hl(Bd,this))||void 0===a||a.hide(),fl(Zd,this,null),ul(uh,this,kh).call(this,{hasSelectedText:!1}))}function mh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";hl($d,this)===Yl.HIGHLIGHT?this.highlightSelection(e):hl(Pd,this)&&ul(uh,this,ph).call(this)}function vh(){document.addEventListener("selectionchange",ul(uh,this,gh).bind(this),{signal:this._signal})}function bh(){if(hl(Od,this))return;fl(Od,this,new AbortController);const e=this.combinedSignal(hl(Od,this));window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}function yh(){var e;null===(e=hl(Od,this))||void 0===e||e.abort(),fl(Od,this,null)}function xh(){if(hl(qd,this))return;fl(qd,this,new AbortController);const e=this.combinedSignal(hl(qd,this));window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}function wh(){var e;null===(e=hl(qd,this))||void 0===e||e.abort(),fl(qd,this,null)}function _h(){if(hl(kd,this))return;fl(kd,this,new AbortController);const e=this.combinedSignal(hl(kd,this));document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}function Dh(){var e;null===(e=hl(kd,this))||void 0===e||e.abort(),fl(kd,this,null)}function Sh(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}function kh(e){Object.entries(e).some((e=>{let[t,n]=e;return hl(ih,this)[t]!==n}))&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(hl(ih,this),e)}),hl($d,this)===Yl.HIGHLIGHT&&!1===e.hasSelectedEditor&&ul(uh,this,Ch).call(this,[[Xl.HIGHLIGHT_FREE,!0]]))}function Ch(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}async function Ah(){if(!hl(zd,this)){fl(zd,this,!0);const e=[];for(const t of hl(yd,this).values())e.push(t.enable());await Promise.all(e);for(const t of hl(bd,this).values())t.enable()}}function Th(){if(this.unselectAll(),hl(zd,this)){fl(zd,this,!1);for(const e of hl(yd,this).values())e.disable();for(const e of hl(bd,this).values())e.disable()}}function Eh(e){const t=hl(yd,this).get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}function Nh(e){let t=null;for(t of hl(Qd,e));return t}function Mh(){if(0===hl(bd,this).size)return!0;
2if(1===hl(bd,this).size)for(const e of hl(bd,this).values())return e.isEmpty();return!1}function Ph(e){for(const t of hl(Qd,this))t.unselect();hl(Qd,this).clear();for(const t of e)t.isEmpty()||(hl(Qd,this).add(t),t.select());ul(uh,this,kh).call(this,{hasSelectedEditor:this.hasSelection})}Qe(dh,"TRANSLATE_SMALL",1),Qe(dh,"TRANSLATE_BIG",10);var Uh=new WeakMap,jh=new WeakMap,Fh=new WeakMap,Rh=new WeakMap,Oh=new WeakMap,Ih=new WeakMap,Lh=new WeakMap,Bh=new WeakMap,Wh=new WeakMap,zh=new WeakMap,Vh=new WeakMap,Hh=new WeakMap,qh=new WeakSet;class Gh{constructor(e){ll(this,qh),cl(this,Uh,null),cl(this,jh,!1),cl(this,Fh,null),cl(this,Rh,null),cl(this,Oh,null),cl(this,Ih,null),cl(this,Lh,!1),cl(this,Bh,null),cl(this,Wh,null),cl(this,zh,null),cl(this,Vh,null),cl(this,Hh,!1),fl(Wh,this,e),fl(Hh,this,e._uiManager.useNewAltTextFlow),Kh._||(Kh._=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"}))}static initialize(e){var t;null!==(t=Gh._l10n)&&void 0!==t||(Gh._l10n=e)}async render(){const e=fl(Fh,this,document.createElement("button"));e.className="altText",e.tabIndex="0";const t=fl(Rh,this,document.createElement("span"));e.append(t),hl(Hh,this)?(e.classList.add("new"),e.setAttribute("data-l10n-id",Kh._.missing),t.setAttribute("data-l10n-id",Kh._["missing-label"])):(e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const n=hl(Wh,this)._uiManager._signal;e.addEventListener("contextmenu",ru,{signal:n}),e.addEventListener("pointerdown",(e=>e.stopPropagation()),{signal:n});const i=e=>{e.preventDefault(),hl(Wh,this)._uiManager.editAltText(hl(Wh,this)),hl(Hh,this)&&hl(Wh,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:dl(qh,this,Yh)}})};return e.addEventListener("click",i,{capture:!0,signal:n}),e.addEventListener("keydown",(t=>{t.target===e&&"Enter"===t.key&&(fl(Lh,this,!0),i(t))}),{signal:n}),await ul(qh,this,Xh).call(this),e}finish(){hl(Fh,this)&&(hl(Fh,this).focus({focusVisible:hl(Lh,this)}),fl(Lh,this,!1))}isEmpty(){return hl(Hh,this)?null===hl(Uh,this):!hl(Uh,this)&&!hl(jh,this)}hasData(){return hl(Hh,this)?null!==hl(Uh,this)||!!hl(zh,this):this.isEmpty()}get guessedText(){return hl(zh,this)}async setGuessedText(e){null===hl(Uh,this)&&(fl(zh,this,e),fl(Vh,this,await Gh._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e})),ul(qh,this,Xh).call(this))}toggleAltTextBadge(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;if(!hl(Hh,this)||hl(Uh,this))return null===(t=hl(Bh,this))||void 0===t||t.remove(),void fl(Bh,this,null);if(!hl(Bh,this)){const e=fl(Bh,this,document.createElement("div"));e.className="noAltTextBadge",hl(Wh,this).div.append(e)}hl(Bh,this).classList.toggle("hidden",!e)}serialize(e){let t=hl(Uh,this);return e||hl(zh,this)!==t||(t=hl(Vh,this)),{altText:t,decorative:hl(jh,this),guessedText:hl(zh,this),textWithDisclaimer:hl(Vh,this)}}get data(){return{altText:hl(Uh,this),decorative:hl(jh,this)}}set data(e){let{altText:t,decorative:n,guessedText:i,textWithDisclaimer:r,cancel:a=!1}=e;i&&(fl(zh,this,i),fl(Vh,this,r)),hl(Uh,this)===t&&hl(jh,this)===n||(a||(fl(Uh,this,t),fl(jh,this,n)),ul(qh,this,Xh).call(this))}toggle(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];hl(Fh,this)&&(!e&&hl(Ih,this)&&(clearTimeout(hl(Ih,this)),fl(Ih,this,null)),hl(Fh,this).disabled=!e)}shown(){hl(Wh,this)._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:dl(qh,this,Yh)}})}destroy(){var e,t;null===(e=hl(Fh,this))||void 0===e||e.remove(),fl(Fh,this,null),fl(Rh,this,null),fl(Oh,this,null),null===(t=hl(Bh,this))||void 0===t||t.remove(),fl(Bh,this,null)}}function Yh(e){return(hl(Uh,e)?"added":null===hl(Uh,e)&&e.guessedText&&"review")||"missing"}async function Xh(){const e=hl(Fh,this);if(!e)return;if(hl(Hh,this)){var t,n;if(e.classList.toggle("done",!!hl(Uh,this)),e.setAttribute("data-l10n-id",Kh._[dl(qh,this,Yh)]),null===(t=hl(Rh,this))||void 0===t||t.setAttribute("data-l10n-id",Kh._["".concat(dl(qh,this,Yh),"-label")]),!hl(Uh,this))return void(null===(n=hl(Oh,this))||void 0===n||n.remove())}else{var i;if(!hl(Uh,this)&&!hl(jh,this))return e.classList.remove("done"),void(null===(i=hl(Oh,this))||void 0===i||i.remove());e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let r=hl(Oh,this);if(!r){fl(Oh,this,r=document.createElement("span")),r.className="tooltip",r.setAttribute("role","tooltip"),r.id="alt-text-tooltip-".concat(hl(Wh,this).id);const t=100,n=hl(Wh,this)._uiManager._signal;n.addEventListener("abort",(()=>{clearTimeout(hl(Ih,this)),fl(Ih,this,null)}),{once:!0}),e.addEventListener("mouseenter",(()=>{fl(Ih,this,setTimeout((()=>{fl(Ih,this,null),hl(Oh,this).classList.add("show"),hl(Wh,this)._reportTelemetry({action:"alt_text_tooltip"})}),t))}),{signal:n}),e.addEventListener("mouseleave",(()=>{var e;hl(Ih,this)&&(clearTimeout(hl(Ih,this)),fl(Ih,this,null)),null===(e=hl(Oh,this))||void 0===e||e.classList.remove("show")}),{signal:n})}hl(jh,this)?r.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(r.removeAttribute("data-l10n-id"),r.textContent=hl(Uh,this)),r.parentNode||e.append(r);const a=hl(Wh,this).getElementForAltText();null===a||void 0===a||a.setAttribute("aria-describedby",r.id)}var Kh={_:null};Qe(Gh,"_l10n",null);var $h=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,Jh=new WeakMap,ef=new WeakMap,tf=new WeakMap,nf=new WeakMap,rf=new WeakMap,af=new WeakMap,of=new WeakMap,sf=new WeakSet;
2class lf{constructor(e){ll(this,sf),cl(this,$h,null),cl(this,Qh,null),cl(this,Zh,!1),cl(this,Jh,null),cl(this,ef,null),cl(this,tf,null),cl(this,nf,null),cl(this,rf,null),cl(this,af,!1),cl(this,of,null),fl(Jh,this,e)}renderForToolbar(){const e=fl(Qh,this,document.createElement("button"));return e.className="comment",ul(sf,this,cf).call(this,e,!1)}renderForStandalone(){const e=fl($h,this,document.createElement("button"));e.className="annotationCommentButton";const t=hl(Jh,this).commentButtonPosition;if(t){const{style:n}=e;n.insetInlineEnd="calc(".concat(100*("ltr"===hl(Jh,this)._uiManager.direction?1-t[0]:t[0]),"% - var(--comment-button-dim))"),n.top="calc(".concat(100*t[1],"% - var(--comment-button-dim))");const i=hl(Jh,this).commentButtonColor;i&&(n.backgroundColor=i)}return ul(sf,this,cf).call(this,e,!0)}focusButton(){setTimeout((()=>{var e,t;null===(e=null!==(t=hl($h,this))&&void 0!==t?t:hl(Qh,this))||void 0===e||e.focus()}),0)}onUpdatedColor(){if(!hl($h,this))return;const e=hl(Jh,this).commentButtonColor;e&&(hl($h,this).style.backgroundColor=e),hl(Jh,this)._uiManager.updatePopupColor(hl(Jh,this))}get commentButtonWidth(){var e,t;return(null!==(e=null===(t=hl($h,this))||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==e?e:0)/hl(Jh,this).parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(hl(of,this))return hl(of,this);if(!hl($h,this))return null;const{x:e,y:t,height:n}=hl($h,this).getBoundingClientRect(),{x:i,y:r,width:a,height:o}=hl(Jh,this).parent.boundingClientRect;return[(e-i)/a,(t+n-r)/o]}set commentPopupPositionInLayer(e){fl(of,this,e)}hasDefaultPopupPosition(){return null===hl(of,this)}removeStandaloneCommentButton(){var e;null===(e=hl($h,this))||void 0===e||e.remove(),fl($h,this,null)}removeToolbarCommentButton(){var e;null===(e=hl(Qh,this))||void 0===e||e.remove(),fl(Qh,this,null)}setCommentButtonStates(e){let{selected:t,hasPopup:n}=e;hl($h,this)&&(hl($h,this).classList.toggle("selected",t),hl($h,this).ariaExpanded=n)}edit(e){const t=this.commentPopupPositionInLayer;let n,i;if(t)[n,i]=t;else{[n,i]=hl(Jh,this).commentButtonPosition;const{width:e,height:t,x:r,y:a}=hl(Jh,this);n=r+n*e,i=a+i*t}const r=hl(Jh,this).parent.boundingClientRect,{x:a,y:o,width:s,height:l}=r;hl(Jh,this)._uiManager.editComment(hl(Jh,this),a+n*s,o+i*l,Je(Je({},e),{},{parentDimensions:r}))}finish(){hl(Qh,this)&&(hl(Qh,this).focus({focusVisible:hl(Zh,this)}),fl(Zh,this,!1))}isDeleted(){return hl(af,this)||""===hl(nf,this)}isEmpty(){return null===hl(nf,this)}hasBeenEdited(){return this.isDeleted()||hl(nf,this)!==hl(ef,this)}serialize(){return this.data}get data(){return{text:hl(nf,this),richText:hl(tf,this),date:hl(rf,this),deleted:this.isDeleted()}}set data(e){if(e!==hl(nf,this)&&fl(tf,this,null),null===e)return fl(nf,this,""),void fl(af,this,!0);fl(nf,this,e),fl(rf,this,new Date),fl(af,this,!1)}setInitialText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;fl(ef,this,e),this.data=e,fl(rf,this,null),fl(tf,this,t)}shown(){}destroy(){var e,t;null===(e=hl(Qh,this))||void 0===e||e.remove(),fl(Qh,this,null),null===(t=hl($h,this))||void 0===t||t.remove(),fl($h,this,null),fl(nf,this,""),fl(tf,this,null),fl(rf,this,null),fl(Jh,this,null),fl(Zh,this,!1),fl(af,this,!1)}}function cf(e,t){if(!hl(Jh,this)._uiManager.hasCommentManager())return null;e.tabIndex="0",e.ariaHasPopup="dialog",t?(e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(e.ariaControlsElements=[hl(Jh,this)._uiManager.getCommentDialogElement()],e.setAttribute("data-l10n-id","pdfjs-editor-add-comment-button"));const n=hl(Jh,this)._uiManager._signal;if(!(n instanceof AbortSignal)||n.aborted)return e;e.addEventListener("contextmenu",ru,{signal:n}),t&&(e.addEventListener("focusin",(e=>{hl(Jh,this)._focusEventsAllowed=!1,au(e)}),{capture:!0,signal:n}),e.addEventListener("focusout",(e=>{hl(Jh,this)._focusEventsAllowed=!0,au(e)}),{capture:!0,signal:n})),e.addEventListener("pointerdown",(e=>e.stopPropagation()),{signal:n});const i=t=>{t.preventDefault(),e===hl(Qh,this)?this.edit():hl(Jh,this).toggleComment(!0)};return e.addEventListener("click",i,{capture:!0,signal:n}),e.addEventListener("keydown",(t=>{t.target===e&&"Enter"===t.key&&(fl(Zh,this,!0),i(t))}),{signal:n}),e.addEventListener("pointerenter",(()=>{hl(Jh,this).toggleComment(!1,!0)}),{signal:n}),e.addEventListener("pointerleave",(()=>{hl(Jh,this).toggleComment(!1,!1)}),{signal:n}),e}var uf=new WeakMap,df=new WeakMap,hf=new WeakMap,ff=new WeakMap,pf=new WeakMap,gf=new WeakMap,mf=new WeakMap,vf=new WeakMap,bf=new WeakMap,yf=new WeakMap,xf=new WeakMap,wf=new WeakMap,_f=new WeakSet;
2class Df{constructor(e){let{container:t,isPinchingDisabled:n=null,isPinchingStopped:i=null,onPinchStart:r=null,onPinching:a=null,onPinchEnd:o=null,signal:s}=e;ll(this,_f),cl(this,uf,void 0),cl(this,df,!1),cl(this,hf,null),cl(this,ff,void 0),cl(this,pf,void 0),cl(this,gf,void 0),cl(this,mf,void 0),cl(this,vf,null),cl(this,bf,void 0),cl(this,yf,null),cl(this,xf,void 0),cl(this,wf,null),fl(uf,this,t),fl(hf,this,i),fl(ff,this,n),fl(pf,this,r),fl(gf,this,a),fl(mf,this,o),fl(xf,this,new AbortController),fl(bf,this,AbortSignal.any([s,hl(xf,this).signal])),t.addEventListener("touchstart",ul(_f,this,Sf).bind(this),{passive:!1,signal:hl(bf,this)})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/hu.pixelRatio}destroy(){var e,t;null===(e=hl(xf,this))||void 0===e||e.abort(),fl(xf,this,null),null===(t=hl(vf,this))||void 0===t||t.abort(),fl(vf,this,null)}}function Sf(e){var t,n;if(null!==(t=hl(ff,this))&&void 0!==t&&t.call(this))return;if(1===e.touches.length){if(hl(vf,this))return;const e=fl(vf,this,new AbortController),t=AbortSignal.any([hl(bf,this),e.signal]),n=hl(uf,this),i={capture:!0,signal:t,passive:!1},r=e=>{var t;"touch"===e.pointerType&&(null===(t=hl(vf,this))||void 0===t||t.abort(),fl(vf,this,null))};return n.addEventListener("pointerdown",(e=>{"touch"===e.pointerType&&(au(e),r(e))}),i),n.addEventListener("pointerup",r,i),void n.addEventListener("pointercancel",r,i)}if(!hl(wf,this)){var i;fl(wf,this,new AbortController);const e=AbortSignal.any([hl(bf,this),hl(wf,this).signal]),t=hl(uf,this),n={signal:e,capture:!1,passive:!1};t.addEventListener("touchmove",ul(_f,this,kf).bind(this),n);const r=ul(_f,this,Cf).bind(this);t.addEventListener("touchend",r,n),t.addEventListener("touchcancel",r,n),n.capture=!0,t.addEventListener("pointerdown",au,n),t.addEventListener("pointermove",au,n),t.addEventListener("pointercancel",au,n),t.addEventListener("pointerup",au,n),null===(i=hl(pf,this))||void 0===i||i.call(this)}if(au(e),2!==e.touches.length||null!==(n=hl(hf,this))&&void 0!==n&&n.call(this))return void fl(yf,this,null);let[r,a]=e.touches;r.identifier>a.identifier&&([r,a]=[a,r]),fl(yf,this,{touch0X:r.screenX,touch0Y:r.screenY,touch1X:a.screenX,touch1Y:a.screenY})}function kf(e){var t;if(!hl(yf,this)||2!==e.touches.length)return;au(e);let[n,i]=e.touches;n.identifier>i.identifier&&([n,i]=[i,n]);const{screenX:r,screenY:a}=n,{screenX:o,screenY:s}=i,l=hl(yf,this),{touch0X:c,touch0Y:u,touch1X:d,touch1Y:h}=l,f=d-c,p=h-u,g=o-r,m=s-a,v=Math.hypot(g,m)||1,b=Math.hypot(f,p)||1;if(!hl(df,this)&&Math.abs(b-v)<=yl.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=r,l.touch0Y=a,l.touch1X=o,l.touch1Y=s,!hl(df,this))return void fl(df,this,!0);const y=[(r+o)/2,(a+s)/2];null===(t=hl(gf,this))||void 0===t||t.call(this,y,b,v)}function Cf(e){if(!(e.touches.length>=2)){var t;if(hl(wf,this))hl(wf,this).abort(),fl(wf,this,null),null===(t=hl(mf,this))||void 0===t||t.call(this);hl(yf,this)&&(au(e),fl(yf,this,null),fl(df,this,!1))}}yl=Df;var Af=new WeakMap,Tf=new WeakMap,Ef=new WeakMap,Nf=new WeakMap,Mf=new WeakMap,Pf=new WeakMap,Uf=new WeakMap,jf=new WeakMap,Ff=new WeakMap,Rf=new WeakMap,Of=new WeakMap,If=new WeakMap,Lf=new WeakMap,Bf=new WeakMap,Wf=new WeakMap,zf=new WeakMap,Vf=new WeakMap,Hf=new WeakMap,qf=new WeakMap,Gf=new WeakMap,Yf=new WeakMap,Xf=new WeakMap,Kf=new WeakMap,$f=new WeakMap,Qf=new WeakMap,Zf=new WeakMap,Jf=new WeakSet;class ep{static get _resizerKeyboardManager(){const e=ep.prototype._resizeWithKeyboard,t=dh.TRANSLATE_SMALL,n=dh.TRANSLATE_BIG;return Cc(this,"_resizerKeyboardManager",new hd([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-t,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[t,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-t]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,t]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,n]}],[["Escape","mac+Escape"],ep.prototype._stopResizingWithKeyboard]]))}constructor(e){ll(this,Jf),cl(this,Af,null),cl(this,Tf,null),cl(this,Ef,null),cl(this,Nf,null),cl(this,Mf,null),cl(this,Pf,!1),cl(this,Uf,null),cl(this,jf,""),cl(this,Ff,null),cl(this,Rf,null),cl(this,Of,null),cl(this,If,null),cl(this,Lf,null),cl(this,Bf,""),cl(this,Wf,!1),cl(this,zf,null),cl(this,Vf,!1),cl(this,Hf,!1),cl(this,qf,!1),cl(this,Gf,null),cl(this,Yf,0),cl(this,Xf,0),cl(this,Kf,null),cl(this,$f,null),Qe(this,"isSelected",!1),Qe(this,"_isCopy",!1),Qe(this,"_editToolbar",null),Qe(this,"_initialOptions",Object.create(null)),Qe(this,"_initialData",null),Qe(this,"_isVisible",!0),Qe(this,"_uiManager",null),Qe(this,"_focusEventsAllowed",!0),cl(this,Qf,!1),cl(this,Zf,ep._zIndex++),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null,this.creationDate=e.creationDate||new Date,this.modificationDate=e.modificationDate||null,this.canAddComment=!0;const{rotation:t,rawDims:{pageWidth:n,pageHeight:i,pageX:r,pageY:a}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[r,a];const[o,s]=this.parentDimensions;this.x=e.x/o,this.y=e.y/s,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return Cc(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new xp({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}
2static initialize(e,t){var n;if(null!==(n=ep._l10n)&&void 0!==n||(ep._l10n=e),ep._l10nResizer||(ep._l10nResizer=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"})),-1!==ep._borderLineWidth)return;const i=getComputedStyle(document.documentElement);ep._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){_c("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return hl(Qf,this)}set _isDraggable(e){var t;fl(Qf,this,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=hl(Zf,this)}setParent(e){var t;null!==e?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):(ul(Jf,this,yp).call(this),null===(t=hl(If,this))||void 0===t||t.remove(),fl(If,this,null));this.parent=e}focusin(e){this._focusEventsAllowed&&(hl(Wf,this)?fl(Wf,this,!1):this.parent.setSelected(this))}focusout(e){var t;if(!this._focusEventsAllowed)return;if(!this.isAttachedToDOM)return;const n=e.relatedTarget;null!==n&&void 0!==n&&n.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,i){const[r,a]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(e+n)/r,this.y=(t+i)/a,this.fixAndSetPosition()}_moveAfterPaste(e,t){const[n,i]=this.parentDimensions;this.setAt(e*n,t*i,this.width*n,this.height*i),this._onTranslated()}translate(e,t){ul(Jf,this,tp).call(this,this.parentDimensions,e,t)}translateInPage(e,t){hl(zf,this)||fl(zf,this,[this.x,this.y,this.width,this.height]),ul(Jf,this,tp).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,t){hl(zf,this)||fl(zf,this,[this.x,this.y,this.width,this.height]);const{div:n,parentDimensions:[i,r]}=this;if(this.x+=e/i,this.y+=t/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:e,y:t}=this.div.getBoundingClientRect();this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:a,y:o}=this;const[s,l]=this.getBaseTranslation();a+=s,o+=l;const{style:c}=n;c.left="".concat((100*a).toFixed(2),"%"),c.top="".concat((100*o).toFixed(2),"%"),this._onTranslating(a,o),n.scrollIntoView({block:"nearest"})}_onTranslating(e,t){}_onTranslated(e,t){}get _hasBeenMoved(){return!!hl(zf,this)&&(hl(zf,this)[0]!==this.x||hl(zf,this)[1]!==this.y)}get _hasBeenResized(){return!!hl(zf,this)&&(hl(zf,this)[2]!==this.width||hl(zf,this)[3]!==this.height)}getBaseTranslation(){const[e,t]=this.parentDimensions,{_borderLineWidth:n}=ep,i=n/e,r=n/t;switch(this.rotation){case 90:return[-i,r];case 180:return[i,r];case 270:return[i,-r];default:return[-i,-r]}}get _mustFixPosition(){return!0}fixAndSetPosition(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rotation;const{div:{style:t},pageDimensions:[n,i]}=this;let{x:r,y:a,width:o,height:s}=this;if(o*=n,s*=i,r*=n,a*=i,this._mustFixPosition)switch(e){case 0:r=qc(r,0,n-o),a=qc(a,0,i-s);break;case 90:r=qc(r,0,n-s),a=qc(a,o,i);break;case 180:r=qc(r,o,n),a=qc(a,s,i);break;case 270:r=qc(r,s,n),a=qc(a,0,i-o)}this.x=r/=n,this.y=a/=i;const[l,c]=this.getBaseTranslation();r+=l,a+=c,t.left="".concat((100*r).toFixed(2),"%"),t.top="".concat((100*a).toFixed(2),"%"),this.moveInDOM()}screenToPageTranslation(e,t){return np.call(ep,e,t,this.parentRotation)}pageTranslationToScreen(e,t){return np.call(ep,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,n]}=this;return[t*e,n*e]}setDims(){const{div:{style:e},width:t,height:n}=this;e.width="".concat((100*t).toFixed(2),"%"),e.height="".concat((100*n).toFixed(2),"%")}getInitialTranslation(){return[0,0]}_onResized(){}static _round(e){return Math.round(1e4*e)/1e4}_onResizing(){}altTextFinish(){var e;null===(e=hl(Ef,this))||void 0===e||e.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||hl(Hf,this))return this._editToolbar;
2this._editToolbar=new Mu(this),this.div.append(this._editToolbar.render());const{toolbarButtons:e}=this;if(e)for(const[t,n]of e)await this._editToolbar.addButton(t,n);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){var e;null===(e=this._editToolbar)||void 0===e||e.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){var e;null===(e=this._editToolbar)||void 0===e||e.removeButton("comment")}removeEditToolbar(){var e,t;null===(e=this._editToolbar)||void 0===e||e.remove(),this._editToolbar=null,null===(t=hl(Ef,this))||void 0===t||t.destroy()}addContainer(e){var t;const n=null===(t=this._editToolbar)||void 0===t?void 0:t.div;n?n.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return hl(Ef,this)||(Gh.initialize(ep._l10n),fl(Ef,this,new Gh(this)),hl(Af,this)&&(hl(Ef,this).data=hl(Af,this),fl(Af,this,null))),hl(Ef,this)}get altTextData(){var e;return null===(e=hl(Ef,this))||void 0===e?void 0:e.data}set altTextData(e){hl(Ef,this)&&(hl(Ef,this).data=e)}get guessedAltText(){var e;return null===(e=hl(Ef,this))||void 0===e?void 0:e.guessedText}async setGuessedAltText(e){var t;await(null===(t=hl(Ef,this))||void 0===t?void 0:t.setGuessedText(e))}serializeAltText(e){var t;return null===(t=hl(Ef,this))||void 0===t?void 0:t.serialize(e)}hasAltText(){return!!hl(Ef,this)&&!hl(Ef,this).isEmpty()}hasAltTextData(){var e,t;return null!==(e=null===(t=hl(Ef,this))||void 0===t?void 0:t.hasData())&&void 0!==e&&e}focusCommentButton(){var e;null===(e=hl(Nf,this))||void 0===e||e.focusButton()}addCommentButton(){return this.canAddComment?hl(Nf,this)||fl(Nf,this,new lf(this)):null}addStandaloneCommentButton(){this._uiManager.hasCommentManager()&&(hl(Mf,this)?this._uiManager.isEditingMode()&&hl(Mf,this).classList.remove("hidden"):this.hasComment&&(fl(Mf,this,hl(Nf,this).renderForStandalone()),this.div.append(hl(Mf,this))))}removeStandaloneCommentButton(){hl(Nf,this).removeStandaloneCommentButton(),fl(Mf,this,null)}hideStandaloneCommentButton(){var e;null===(e=hl(Mf,this))||void 0===e||e.classList.add("hidden")}get comment(){var e;const{data:{richText:t,text:n,date:i,deleted:r}}=hl(Nf,this);return{text:n,richText:t,date:i,deleted:r,color:this.getNonHCMColor(),opacity:null!==(e=this.opacity)&&void 0!==e?e:1}}set comment(e){hl(Nf,this)||fl(Nf,this,new lf(this)),hl(Nf,this).data=e,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData(e){let{comment:t,popupRef:n,richText:i}=e;if(!n)return;if(hl(Nf,this)||fl(Nf,this,new lf(this)),hl(Nf,this).setInitialText(t,i),!this.annotationElementId)return;const r=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);r&&this.updateFromAnnotationLayer(r)}get hasEditedComment(){var e;return null===(e=hl(Nf,this))||void 0===e?void 0:e.hasBeenEdited()}get hasDeletedComment(){var e;return null===(e=hl(Nf,this))||void 0===e?void 0:e.isDeleted()}get hasComment(){return!!hl(Nf,this)&&!hl(Nf,this).isEmpty()&&!hl(Nf,this).isDeleted()}async editComment(e){hl(Nf,this)||fl(Nf,this,new lf(this)),hl(Nf,this).edit(e)}toggleComment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.hasComment&&this._uiManager.toggleComment(this,e,t)}setSelectedCommentButton(e){hl(Nf,this).setSelectedButton(e)}addComment(e){if(this.hasEditedComment){const t=180,n=100,[,,,i]=e.rect,[r]=this.pageDimensions,[a]=this.pageTranslation,o=a+r+1,s=i-n,l=o+t;e.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[o,s,l,i]}}}updateFromAnnotationLayer(e){let{popup:{contents:t,deleted:n}}=e;hl(Nf,this).data=n?null:t}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){var e;const t=this.div=document.createElement("div");t.setAttribute("data-editor-rotation",(360-this.rotation)%360),t.className=this.name,t.setAttribute("id",this.id),t.tabIndex=hl(Pf,this)?-1:0,t.setAttribute("role","application"),this.defaultL10nId&&t.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||t.classList.add("hidden"),this.setInForeground(),ul(Jf,this,pp).call(this);const[n,i]=this.parentDimensions;this.parentRotation%180!==0&&(t.style.maxWidth="".concat((100*i/n).toFixed(2),"%"),t.style.maxHeight="".concat((100*n/i).toFixed(2),"%"));const[r,a]=this.getInitialTranslation();return this.translate(r,a),Gu(this,t,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(hl($f,this)||fl($f,this,new Df({container:t,isPinchingDisabled:()=>!this.isSelected,onPinchStart:ul(Jf,this,cp).bind(this),onPinching:ul(Jf,this,up).bind(this),onPinchEnd:ul(Jf,this,dp).bind(this),signal:this._uiManager._signal}))),this.addStandaloneCommentButton(),null===(e=this._uiManager._editorUndoBar)||void 0===e||e.hide(),t}pointerdown(e){const{isMac:t}=Rc.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(fl(Wf,this,!0),this._isDraggable?ul(Jf,this,fp).call(this,e):ul(Jf,this,hp).call(this,e))}_onStartDragging(){}_onStopDragging(){}moveInDOM(){hl(Gf,this)&&clearTimeout(hl(Gf,this)),fl(Gf,this,setTimeout((()=>{var e;fl(Gf,this,null),null===(e=this.parent)||void 0===e||e.moveEditorInDOM(this)}),0))}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition(),this._onTranslated()}getRect(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.rotation;const i=this.parentScale,[r,a]=this.pageDimensions,[o,s]=this.pageTranslation,l=e/i,c=t/i,u=this.x*r,d=this.y*a,h=this.width*r,f=this.height*a;switch(n){case 0:return[u+l+o,a-d-c-f+s,u+l+h+o,a-d-c+s];case 90:return[u+c+o,a-d+l+s,u+c+f+o,a-d+l+h+s];case 180:return[u-l-h+o,a-d+c+s,u-l+o,a-d+c+f+s];case 270:return[u-c-f+o,a-d-l-h+s,u-c+o,a-d-l+s];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,i,r,a]=e,o=r-n,s=a-i;switch(this.rotation){case 0:return[n,t-a,o,s];case 90:return[n,t-i,s,o];case 180:return[r,t-i,o,s];case 270:return[r,t-a,s,o];default:throw new Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&ep._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){var e;null===(e=hl(Nf,this))||void 0===e||e.onUpdatedColor()}getData(){const{comment:{text:e,color:t,date:n,opacity:i,deleted:r,richText:a},uid:o,pageIndex:s,creationDate:l,modificationDate:c}=this;return{id:o,pageIndex:s,rect:this.getPDFRect(),richText:a,contentsObj:{str:e}
2,creationDate:l,modificationDate:n||c,popupRef:!r,color:t,opacity:i}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return!this.isInEditMode()&&(this.parent.setEditingState(!1),fl(Hf,this,!0),!0)}disableEditMode(){return!!this.isInEditMode()&&(this.parent.setEditingState(!0),fl(Hf,this,!1),!0)}isInEditMode(){return hl(Hf,this)}shouldGetKeyboardEvents(){return hl(qf,this)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:e,left:t,bottom:n,right:i}=this.getClientDimensions(),{innerHeight:r,innerWidth:a}=window;return t<a&&i>0&&e<r&&n>0}rebuild(){ul(Jf,this,pp).call(this)}rotate(e){}resize(){}serializeDeleted(){var e;return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:(null===(e=this._initialData)||void 0===e?void 0:e.popupRef)||""}}serialize(){var e;return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:(null===(e=this._initialData)||void 0===e?void 0:e.popupRef)||""}}static async deserialize(e,t,n){const i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n,annotationElementId:e.annotationElementId,creationDate:e.creationDate,modificationDate:e.modificationDate});i.rotation=e.rotation,fl(Af,i,e.accessibilityData),i._isCopy=e.isCopy||!1;const[r,a]=i.pageDimensions,[o,s,l,c]=i.getRectInCurrentCoords(e.rect,a);return i.x=o/r,i.y=s/a,i.width=l/r,i.height=c/a,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize())}remove(){var e,t,n;if(null===(e=hl(Lf,this))||void 0===e||e.abort(),fl(Lf,this,null),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.hideCommentPopup(),hl(Gf,this)&&(clearTimeout(hl(Gf,this)),fl(Gf,this,null)),ul(Jf,this,yp).call(this),this.removeEditToolbar(),hl(Kf,this)){for(const e of hl(Kf,this).values())clearTimeout(e);fl(Kf,this,null)}this.parent=null,null===(t=hl($f,this))||void 0===t||t.destroy(),fl($f,this,null),null===(n=hl(If,this))||void 0===n||n.remove(),fl(If,this,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(ul(Jf,this,rp).call(this),hl(Ff,this).classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return"ltr"===this._uiManager.direction?[1,0]:[0,0]}get commentButtonPositionInPage(){const{commentButtonPosition:[e,t]}=this,[n,i,r,a]=this.getPDFRect();return[ep._round(n+(r-n)*e),ep._round(i+(a-i)*(1-t))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return hl(Nf,this).commentPopupPositionInLayer}set commentPopupPosition(e){hl(Nf,this).commentPopupPositionInLayer=e}hasDefaultPopupPosition(){return hl(Nf,this).hasDefaultPopupPosition()}get commentButtonWidth(){return hl(Nf,this).commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(e){var t;null===(t=hl(Nf,this))||void 0===t||t.setCommentButtonStates(e)}keydown(e){if(!this.isResizable||e.target!==this.div||"Enter"!==e.key)return;this._uiManager.setSelected(this),fl(Of,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const t=hl(Ff,this).children;if(!hl(Tf,this)){fl(Tf,this,Array.from(t));const e=ul(Jf,this,gp).bind(this),n=ul(Jf,this,mp).bind(this),i=this._uiManager._signal;for(const t of hl(Tf,this)){const r=t.getAttribute("data-resizer-name");t.setAttribute("role","spinbutton"),t.addEventListener("keydown",e,{signal:i}),t.addEventListener("blur",n,{signal:i}),t.addEventListener("focus",ul(Jf,this,vp).bind(this,r),{signal:i}),t.setAttribute("data-l10n-id",ep._l10nResizer[r])}}const n=hl(Tf,this)[0];let i=0;for(const a of t){if(a===n)break;i++}const r=(360-this.rotation+this.parentRotation)%360/90*(hl(Tf,this).length/4);if(r!==i){if(r<i)for(let t=0;t<i-r;t++)hl(Ff,this).append(hl(Ff,this).firstElementChild);else if(r>i)for(let t=0;t<r-i;t++)hl(Ff,this).firstElementChild.before(hl(Ff,this).lastElementChild);let e=0;for(const n of t){const t=hl(Tf,this)[e++].getAttribute("data-resizer-name");n.setAttribute("data-l10n-id",ep._l10nResizer[t])}}ul(Jf,this,bp).call(this,0),fl(qf,this,!0),hl(Ff,this).firstElementChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}_resizeWithKeyboard(e,t){hl(qf,this)&&ul(Jf,this,lp).call(this,hl(Bf,this),{deltaX:e,deltaY:t,fromKeyboard:!0})}_stopResizingWithKeyboard(){ul(Jf,this,yp).call(this),this.div.focus()}select(){var e,t,n;this.isSelected&&this._editToolbar?this._editToolbar.show():(this.isSelected=!0,this.makeResizable(),null===(e=this.div)||void 0===e||e.classList.add("selectedEditor"),this._editToolbar?(null===(t=this._editToolbar)||void 0===t||t.show(),null===(n=hl(Ef,this))||void 0===n||n.toggleAltTextBadge(!1)):this.addEditToolbar().then((()=>{var e,t;null!==(e=this.div)&&void 0!==e&&e.classList.contains("selectedEditor")&&(null===(t=this._editToolbar)||void 0===t||t.show())})))}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout((()=>{var e;return null===(e=this.div)||void 0===e?void 0:e.focus({preventScroll:!0})}),0)}unselect(){var e,t,n,i,r;this.isSelected&&(this.isSelected=!1,null===(e=hl(Ff,this))||void 0===e||e.classList.add("hidden"),null===(t=this.div)||void 0===t||t.classList.remove("selectedEditor"),null!==(n=this.div)&&void 0!==n&&n.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),null===(i=this._editToolbar)||void 0===i||i.hide(),null===(r=hl(Ef,this))||void 0===r||r.toggleAltTextBadge(!0),this.hideCommentPopup())}hideCommentPopup(){this.hasComment&&this._uiManager.toggleComment(null)}updateParams(e,t){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){"BUTTON"!==e.target.nodeName&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.uid}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return hl(Vf,this)}set isEditing(e){fl(Vf,this,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){hl(Kf,this)||fl(Kf,this,new Map);const{action:t}=e;let n=hl(Kf,this).get(t);return n&&clearTimeout(n),n=setTimeout((()=>{this._reportTelemetry(e),hl(Kf,this).delete(t),0===hl(Kf,this).size&&fl(Kf,this,null)}),ep._telemetryTimeout),void hl(Kf,this).set(t,n)}e.type||(e.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),fl(Pf,this,!1)}disable(){this.div&&(this.div.tabIndex=-1),fl(Pf,this,!0)}updateFakeAnnotationElement(e){if(hl(If,this)||this.deleted)return this.deleted?(hl(If,this).remove(),void fl(If,this,null)):void((this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&hl(If,this).updateEdited({rect:this.getPDFRect(),popup:this.comment}));fl(If,this,e.addFakeAnnotation(this))}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let t=e.container.querySelector(".annotationContent");
2if(t){if("CANVAS"===t.nodeName){const e=t;t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.before(t)}}else t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.container.prepend(t);return t}resetAnnotationElement(e){const{firstElementChild:t}=e.container;"DIV"===(null===t||void 0===t?void 0:t.nodeName)&&t.classList.contains("annotationContent")&&t.remove()}}function tp(e,t,n){let[i,r]=e;[t,n]=this.screenToPageTranslation(t,n),this.x+=t/i,this.y+=n/r,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}function np(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function ip(e){switch(e){case 90:{const[e,t]=this.pageDimensions;return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,t]=this.pageDimensions;return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}function rp(){if(hl(Ff,this))return;fl(Ff,this,document.createElement("div")),hl(Ff,this).classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(const n of e){const e=document.createElement("div");hl(Ff,this).append(e),e.classList.add("resizer",n),e.setAttribute("data-resizer-name",n),e.addEventListener("pointerdown",ul(Jf,this,ap).bind(this,n),{signal:t}),e.addEventListener("contextmenu",ru,{signal:t}),e.tabIndex=-1}this.div.prepend(hl(Ff,this))}function ap(e,t){var n;t.preventDefault();const{isMac:i}=Rc.platform;if(0!==t.button||t.ctrlKey&&i)return;null===(n=hl(Ef,this))||void 0===n||n.toggle(!1);const r=this._isDraggable;this._isDraggable=!1,fl(Rf,this,[t.screenX,t.screenY]);const a=new AbortController,o=this._uiManager.combinedSignal(a);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",ul(Jf,this,lp).bind(this,e),{passive:!0,capture:!0,signal:o}),window.addEventListener("touchmove",au,{passive:!1,signal:o}),window.addEventListener("contextmenu",ru,{signal:o}),fl(Of,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const s=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const c=()=>{var e;a.abort(),this.parent.togglePointerEvents(!0),null===(e=hl(Ef,this))||void 0===e||e.toggle(!0),this._isDraggable=r,this.parent.div.style.cursor=s,this.div.style.cursor=l,ul(Jf,this,sp).call(this)};window.addEventListener("pointerup",c,{signal:o}),window.addEventListener("blur",c,{signal:o})}function op(e,t,n,i){this.width=n,this.height=i,this.x=e,this.y=t,this.setDims(),this.fixAndSetPosition(),this._onResized()}function sp(){if(!hl(Of,this))return;const{savedX:e,savedY:t,savedWidth:n,savedHeight:i}=hl(Of,this);fl(Of,this,null);const r=this.x,a=this.y,o=this.width,s=this.height;r===e&&a===t&&o===n&&s===i||this.addCommands({cmd:ul(Jf,this,op).bind(this,r,a,o,s),undo:ul(Jf,this,op).bind(this,e,t,n,i),mustExec:!0})}function lp(e,t){const[n,i]=this.parentDimensions,r=this.x,a=this.y,o=this.width,s=this.height,l=xl.MIN_SIZE/n,c=xl.MIN_SIZE/i,u=ul(Jf,this,ip).call(this,this.rotation),d=(e,t)=>[u[0]*e+u[2]*t,u[1]*e+u[3]*t],h=ul(Jf,this,ip).call(this,360-this.rotation);let f,p,g=!1,m=!1;switch(e){case"topLeft":g=!0,f=(e,t)=>[0,0],p=(e,t)=>[e,t];break;case"topMiddle":f=(e,t)=>[e/2,0],p=(e,t)=>[e/2,t];break;case"topRight":g=!0,f=(e,t)=>[e,0],p=(e,t)=>[0,t];break;case"middleRight":m=!0,f=(e,t)=>[e,t/2],p=(e,t)=>[0,t/2];break;case"bottomRight":g=!0,f=(e,t)=>[e,t],p=(e,t)=>[0,0];break;case"bottomMiddle":f=(e,t)=>[e/2,t],p=(e,t)=>[e/2,0];break;case"bottomLeft":g=!0,f=(e,t)=>[0,t],p=(e,t)=>[e,0];break;case"middleLeft":m=!0,f=(e,t)=>[0,t/2],p=(e,t)=>[e,t/2]}const v=f(o,s),b=p(o,s);let y=d(...b);const x=xl._round(r+y[0]),w=xl._round(a+y[1]);let _,D,S=1,k=1;if(t.fromKeyboard)({deltaX:_,deltaY:D}=t);else{const{screenX:e,screenY:n}=t,[i,r]=hl(Rf,this);[_,D]=this.screenToPageTranslation(e-i,n-r),hl(Rf,this)[0]=e,hl(Rf,this)[1]=n}var C,A;if([_,D]=(C=_/n,A=D/i,[h[0]*C+h[2]*A,h[1]*C+h[3]*A]),g){const e=Math.hypot(o,s);S=k=Math.max(Math.min(Math.hypot(b[0]-v[0]-_,b[1]-v[1]-D)/e,1/o,1/s),l/o,c/s)}else m?S=qc(Math.abs(b[0]-v[0]-_),l,1)/o:k=qc(Math.abs(b[1]-v[1]-D),c,1)/s;const T=xl._round(o*S),E=xl._round(s*k);y=d(...p(T,E));const N=x-y[0],M=w-y[1];hl(zf,this)||fl(zf,this,[this.x,this.y,this.width,this.height]),this.width=T,this.height=E,this.x=N,this.y=M,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function cp(){var e;fl(Of,this,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height}),null===(e=hl(Ef,this))||void 0===e||e.toggle(!1),this.parent.togglePointerEvents(!1)}function up(e,t,n){let i=n/t*.7+1-.7;
2if(1===i)return;const r=ul(Jf,this,ip).call(this,this.rotation),a=(e,t)=>[r[0]*e+r[2]*t,r[1]*e+r[3]*t],[o,s]=this.parentDimensions,l=this.x,c=this.y,u=this.width,d=this.height,h=xl.MIN_SIZE/o,f=xl.MIN_SIZE/s;i=Math.max(Math.min(i,1/u,1/d),h/u,f/d);const p=xl._round(u*i),g=xl._round(d*i);if(p===u&&g===d)return;hl(zf,this)||fl(zf,this,[l,c,u,d]);const m=a(u/2,d/2),v=xl._round(l+m[0]),b=xl._round(c+m[1]),y=a(p/2,g/2);this.x=v-y[0],this.y=b-y[1],this.width=p,this.height=g,this.setDims(),this.fixAndSetPosition(),this._onResizing()}function dp(){var e;null===(e=hl(Ef,this))||void 0===e||e.toggle(!0),this.parent.togglePointerEvents(!0),ul(Jf,this,sp).call(this)}function hp(e){const{isMac:t}=Rc.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}function fp(e){const{isSelected:t}=this;this._uiManager.setUpDragSession();let n=!1;const i=new AbortController,r=this._uiManager.combinedSignal(i),a={capture:!0,passive:!1,signal:r},o=e=>{i.abort(),fl(Uf,this,null),fl(Wf,this,!1),this._uiManager.endDragSession()||ul(Jf,this,hp).call(this,e),n&&this._onStopDragging()};t&&(fl(Yf,this,e.clientX),fl(Xf,this,e.clientY),fl(Uf,this,e.pointerId),fl(jf,this,e.pointerType),window.addEventListener("pointermove",(e=>{n||(n=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());const{clientX:t,clientY:i,pointerId:r}=e;if(r!==hl(Uf,this))return void au(e);const[a,o]=this.screenToPageTranslation(t-hl(Yf,this),i-hl(Xf,this));fl(Yf,this,t),fl(Xf,this,i),this._uiManager.dragSelectedEditors(a,o)}),a),window.addEventListener("touchmove",au,a),window.addEventListener("pointerdown",(e=>{e.pointerType===hl(jf,this)&&(hl($f,this)||e.isPrimary)&&o(e),au(e)}),a));const s=e=>{hl(Uf,this)&&hl(Uf,this)!==e.pointerId?au(e):o(e)};window.addEventListener("pointerup",s,{signal:r}),window.addEventListener("blur",s,{signal:r})}function pp(){if(hl(Lf,this)||!this.div)return;fl(Lf,this,new AbortController);const e=this._uiManager.combinedSignal(hl(Lf,this));this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}function gp(e){xl._resizerKeyboardManager.exec(this,e)}function mp(e){var t;hl(qf,this)&&(null===(t=e.relatedTarget)||void 0===t?void 0:t.parentNode)!==hl(Ff,this)&&ul(Jf,this,yp).call(this)}function vp(e){fl(Bf,this,hl(qf,this)?e:"")}function bp(e){if(hl(Tf,this))for(const t of hl(Tf,this))t.tabIndex=e}function yp(){fl(qf,this,!1),ul(Jf,this,bp).call(this,-1),ul(Jf,this,sp).call(this)}xl=ep,Qe(ep,"_l10n",null),Qe(ep,"_l10nResizer",null),Qe(ep,"_borderLineWidth",-1),Qe(ep,"_colorManager",new pd),Qe(ep,"_zIndex",1),Qe(ep,"_telemetryTimeout",1e3);class xp extends ep{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const wp=3285377520,_p=4294901760,Dp=65535;class Sp{constructor(e){this.h1=e?4294967295&e:wp,this.h2=e?4294967295&e:wp}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let i=0,r=e.length;i<r;i++){const r=e.charCodeAt(i);r<=255?t[n++]=r:(t[n++]=r>>>8,t[n++]=255&r)}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");t=e.slice(),n=t.byteLength}const i=n>>2,r=n-4*i,a=new Uint32Array(t.buffer,0,i);let o=0,s=0,l=this.h1,c=this.h2;const u=3432918353,d=461845907,h=11601,f=13715;for(let p=0;p<i;p++)1&p?(o=a[p],o=o*u&_p|o*h&Dp,o=o<<15|o>>>17,o=o*d&_p|o*f&Dp,l^=o,l=l<<13|l>>>19,l=5*l+3864292196):(s=a[p],s=s*u&_p|s*h&Dp,s=s<<15|s>>>17,s=s*d&_p|s*f&Dp,c^=s,c=c<<13|c>>>19,c=5*c+3864292196);switch(o=0,r){case 3:o^=t[4*i+2]<<16;case 2:o^=t[4*i+1]<<8;case 1:o^=t[4*i],o=o*u&_p|o*h&Dp,o=o<<15|o>>>17,o=o*d&_p|o*f&Dp,1&i?l^=o:c^=o}this.h1=l,this.h2=c}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&_p|36045*e&Dp,t=4283543511*t&_p|(2950163797*(t<<16|e>>>16)&_p)>>>16,e^=t>>>1,e=444984403*e&_p|60499*e&Dp,t=3301882366*t&_p|(3120437893*(t<<16|e>>>16)&_p)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}const kp=Object.freeze({map:null,hash:"",transfer:void 0});var Cp=new WeakMap,Ap=new WeakMap,Tp=new WeakMap,Ep=new WeakMap,Np=new WeakSet;class Mp{constructor(){ll(this,Np),cl(this,Cp,!1),cl(this,Ap,null),
2cl(this,Tp,null),cl(this,Ep,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=hl(Ep,this).get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return hl(Ep,this).get(e)}remove(e){const t=hl(Ep,this).get(e);if(void 0!==t&&(t instanceof ep&&hl(Tp,this).delete(t.annotationElementId),hl(Ep,this).delete(e),0===hl(Ep,this).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor)){for(const e of hl(Ep,this).values())if(e instanceof ep)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=hl(Ep,this).get(e);let i=!1;if(void 0!==n)for(const[r,a]of Object.entries(t))n[r]!==a&&(i=!0,n[r]=a);else i=!0,hl(Ep,this).set(e,t);i&&ul(Np,this,Pp).call(this),t instanceof ep&&((hl(Tp,this)||fl(Tp,this,new Map)).set(t.annotationElementId,t),"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type))}has(e){return hl(Ep,this).has(e)}get size(){return hl(Ep,this).size}resetModified(){hl(Cp,this)&&(fl(Cp,this,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new jp(this)}get serializable(){if(0===hl(Ep,this).size)return kp;const e=new Map,t=new Sp,n=[],i=Object.create(null);let r=!1;for(const[a,o]of hl(Ep,this)){const n=o instanceof ep?o.serialize(!1,i):o;n&&(e.set(a,n),t.update("".concat(a,":").concat(JSON.stringify(n))),r||(r=!!n.bitmap))}if(r)for(const a of e.values())a.bitmap&&n.push(a.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfer:n}:kp}get editorStats(){let e=null;const t=new Map;let n=0,i=0;for(const o of hl(Ep,this).values()){var r;if(!(o instanceof ep)){o.popup&&(o.popup.deleted?i+=1:n+=1);continue}o.isCommentDeleted?i+=1:o.hasEditedComment&&(n+=1);const s=o.telemetryFinalData;if(!s)continue;const{type:l}=s;t.has(l)||t.set(l,Object.getPrototypeOf(o).constructor),e||(e=Object.create(null));const c=(r=e)[l]||(r[l]=new Map);for(const[e,t]of Object.entries(s)){var a;if("type"===e)continue;let n=c.get(e);n||(n=new Map,c.set(e,n));const i=null!==(a=n.get(t))&&void 0!==a?a:0;n.set(t,i+1)}}if((i>0||n>0)&&(e||(e=Object.create(null)),e.comments={deleted:i,edited:n}),!e)return null;for(const[o,s]of t)e[o]=s.computeTelemetryFinalData(e[o]);return e}resetModifiedIds(){fl(Ap,this,null)}updateEditor(e,t){var n;const i=null===(n=hl(Tp,this))||void 0===n?void 0:n.get(e);return!!i&&(i.updateFromAnnotationLayer(t),!0)}getEditor(e){var t;return(null===(t=hl(Tp,this))||void 0===t?void 0:t.get(e))||null}get modifiedIds(){if(hl(Ap,this))return hl(Ap,this);const e=[];if(hl(Tp,this))for(const t of hl(Tp,this).values())t.serialize()&&e.push(t.annotationElementId);return fl(Ap,this,{ids:new Set(e),hash:e.join(",")})}[Symbol.iterator](){return hl(Ep,this).entries()}}function Pp(){hl(Cp,this)||(fl(Cp,this,!0),"function"===typeof this.onSetModified&&this.onSetModified())}var Up=new WeakMap;class jp extends Mp{constructor(e){super(),cl(this,Up,void 0);const{map:t,hash:n,transfer:i}=e.serializable,r=structuredClone(t,i?{transfer:i}:null);fl(Up,this,{map:r,hash:n,transfer:i})}get print(){_c("Should not call PrintAnnotationStorage.print")}get serializable(){return hl(Up,this)}get modifiedIds(){return Cc(this,"modifiedIds",{ids:new Set,hash:""})}}var Fp=new WeakMap;class Rp{constructor(e){let{ownerDocument:t=globalThis.document,styleElement:n=null}=e;cl(this,Fp,new Set),this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),hl(Fp,this).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(e){let{systemFontInfo:t,disableFontFace:n,_inspectFont:i}=e;if(t&&!hl(Fp,this).has(t.loadedName))if(Dc(!n,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:e,src:n,style:a}=t,o=new FontFace(e,n,a);this.addNativeFontFace(o);try{await o.load(),hl(Fp,this).add(e),null===i||void 0===i||i(t)}catch(r){wc("Cannot load system font: ".concat(t.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(o)}}else _c("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo)return void await this.loadSystemFont(e);if(this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw wc("Failed to load font '".concat(t.family,"': '").concat(n,"'.")),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((t=>{const n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)}))}}get isFontLoadingAPISupported(){var e;return Cc(this,"isFontLoadingAPISupported",!(null===(e=this._document)||void 0===e||!e.fonts))}get isSyncFontLoadingSupported(){return Cc(this,"isSyncFontLoadingSupported",jl||Rc.platform.isFirefox)}_queueLoadingCallback(e){const{loadingRequests:t}=this,n={done:!1,complete:function(){for(Dc(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){const e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}get _loadTestFont(){return Cc(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,n,i){return e.substring(0,t)+i+e.substring(t+n)}let r,a;const o=this._document.createElement("canvas");o.width=1,o.height=1;const s=o.getContext("2d");let l=0;const c="lt".concat(Date.now()).concat(this.loadTestFontId++);let u=this._loadTestFont;u=i(u,976,c.length,c);const d=1482184792;let h=n(u,16);for(r=0,a=c.length-3;r<a;r+=4)h=h-d+n(c,r)|0;var f;r<c.length&&(h=h-d+n(c+"XXX",r)|0),u=i(u,16,4,(f=h,String.fromCharCode(f>>24&255,f>>16&255,f>>8&255,255&f)));const p="url(data:font/opentype;base64,".concat(btoa(u),");"),g='@font-face {font-family:"'.concat(c,'";src:').concat(p,"}");this.insertRule(g);const m=this._document.createElement("div");m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px";for(const v of[e.loadedName,c]){const e=this._document.createElement("span");e.textContent="Hi",e.style.fontFamily=v,m.append(e)}this._document.body.append(m),function e(t,n){if(++l>30)return wc("Load test font never loaded."),void n();s.font="30px "+t,s.fillText(".",0,20),s.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(c,(()=>{m.remove(),t.complete()}
2))}}var Op=new WeakMap;class Ip{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;cl(this,Op,void 0),this.compiledGlyphs=Object.create(null),fl(Op,this,e),this._inspectFont=t,n&&Object.assign(this,n),i&&(this.charProcOperatorList=i)}createNativeFontFace(){var e;if(!this.data||this.disableFontFace)return null;let t;if(this.cssFontInfo){const e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this._inspectFont)||void 0===e||e.call(this,this),t}createFontFaceRule(){var e;if(!this.data||this.disableFontFace)return null;const t="url(data:".concat(this.mimetype,";base64,").concat(Gc(this.data),");");let n;if(this.cssFontInfo){let e="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(e+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),n='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(e,"src:").concat(t,"}")}else n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];const n=this.loadedName+"_path_"+t;let i;try{i=e.get(n)}catch(a){wc('getPathGenerator - ignoring character: "'.concat(a,'".'))}const r=wu(i);return this.fontExtraProperties||e.delete(n),this.compiledGlyphs[t]=r}get black(){return hl(Op,this).black}get bold(){return hl(Op,this).bold}get disableFontFace(){var e;return null!==(e=hl(Op,this).disableFontFace)&&void 0!==e&&e}set disableFontFace(e){Cc(this,"disableFontFace",!!e)}get fontExtraProperties(){var e;return null!==(e=hl(Op,this).fontExtraProperties)&&void 0!==e&&e}get isInvalidPDFjsFont(){return hl(Op,this).isInvalidPDFjsFont}get isType3Font(){return hl(Op,this).isType3Font}get italic(){return hl(Op,this).italic}get missingFile(){return hl(Op,this).missingFile}get remeasure(){return hl(Op,this).remeasure}get vertical(){return hl(Op,this).vertical}get ascent(){return hl(Op,this).ascent}get defaultWidth(){return hl(Op,this).defaultWidth}get descent(){return hl(Op,this).descent}get bbox(){return hl(Op,this).bbox}set bbox(e){Cc(this,"bbox",e)}get fontMatrix(){return hl(Op,this).fontMatrix}get fallbackName(){return hl(Op,this).fallbackName}get loadedName(){return hl(Op,this).loadedName}get mimetype(){return hl(Op,this).mimetype}get name(){return hl(Op,this).name}get data(){return hl(Op,this).data}clearData(){hl(Op,this).clearData()}get cssFontInfo(){return hl(Op,this).cssFontInfo}get systemFontInfo(){return hl(Op,this).systemFontInfo}get defaultVMetrics(){return hl(Op,this).defaultVMetrics}}var Lp=new WeakMap,Bp=new WeakMap,Wp=new WeakMap,zp=new WeakSet;class Vp{static write(e){const t=new TextEncoder,n={};let i=0;for(const l of Vp.strings){const r=t.encode(e[l]);n[l]=r,i+=4+r.length}const r=new ArrayBuffer(i),a=new Uint8Array(r),o=new DataView(r);let s=0;for(const l of Vp.strings){const e=n[l],t=e.length;o.setUint32(s,t),a.set(e,s+4),s+=4+t}return Dc(s===r.byteLength,"CssFontInfo.write: Buffer overflow"),r}constructor(e){ll(this,zp),cl(this,Lp,void 0),cl(this,Bp,void 0),cl(this,Wp,void 0),fl(Lp,this,e),fl(Bp,this,new DataView(hl(Lp,this))),fl(Wp,this,new TextDecoder)}get fontFamily(){return ul(zp,this,Hp).call(this,0)}get fontWeight(){return ul(zp,this,Hp).call(this,1)}get italicAngle(){return ul(zp,this,Hp).call(this,2)}}function Hp(e){Dc(e<wl.strings.length,"Invalid string index");let t=0;for(let i=0;i<e;i++)t+=hl(Bp,this).getUint32(t)+4;const n=hl(Bp,this).getUint32(t);return hl(Wp,this).decode(new Uint8Array(hl(Lp,this),t+4,n))}wl=Vp,Qe(Vp,"strings",["fontFamily","fontWeight","italicAngle"]);var qp=new WeakMap,Gp=new WeakMap,Yp=new WeakMap,Xp=new WeakSet;class Kp{static write(e){const t=new TextEncoder,n={};let i=0;for(const d of Kp.strings){const r=t.encode(e[d]);n[d]=r,i+=4+r.length}i+=4;let r,a,o=1+i;e.style&&(r=t.encode(e.style.style),a=t.encode(e.style.weight),o+=4+r.length+4+a.length);const s=new ArrayBuffer(o),l=new Uint8Array(s),c=new DataView(s);let u=0;c.setUint8(u++,e.guessFallback?1:0),c.setUint32(u,0),u+=4,i=0;for(const d of Kp.strings){const e=n[d],t=e.length;i+=4+t,c.setUint32(u,t),l.set(e,u+4),u+=4+t}return c.setUint32(u-i-4,i),e.style&&(c.setUint32(u,r.length),l.set(r,u+4),u+=4+r.length,c.setUint32(u,a.length),l.set(a,u+4),u+=4+a.length),Dc(u<=s.byteLength,"SubstitionInfo.write: Buffer overflow"),s.transferTo
2FixedLength(u)}constructor(e){ll(this,Xp),cl(this,qp,void 0),cl(this,Gp,void 0),cl(this,Yp,void 0),fl(qp,this,e),fl(Gp,this,new DataView(hl(qp,this))),fl(Yp,this,new TextDecoder)}get guessFallback(){return 0!==hl(Gp,this).getUint8(0)}get css(){return ul(Xp,this,$p).call(this,0)}get loadedName(){return ul(Xp,this,$p).call(this,1)}get baseFontName(){return ul(Xp,this,$p).call(this,2)}get src(){return ul(Xp,this,$p).call(this,3)}get style(){let e=1;e+=4+hl(Gp,this).getUint32(e);const t=hl(Gp,this).getUint32(e),n=hl(Yp,this).decode(new Uint8Array(hl(qp,this),e+4,t));e+=4+t;const i=hl(Gp,this).getUint32(e);return{style:n,weight:hl(Yp,this).decode(new Uint8Array(hl(qp,this),e+4,i))}}}function $p(e){Dc(e<_l.strings.length,"Invalid string index");let t=5;for(let i=0;i<e;i++)t+=hl(Gp,this).getUint32(t)+4;const n=hl(Gp,this).getUint32(t);return hl(Yp,this).decode(new Uint8Array(hl(qp,this),t+4,n))}_l=Kp,Qe(Kp,"strings",["css","loadedName","baseFontName","src"]);var Qp=new WeakMap,Zp=new WeakMap,Jp=new WeakMap,eg=new WeakSet;class tg{constructor(e){let{data:t,extra:n}=e;ll(this,eg),cl(this,Qp,void 0),cl(this,Zp,void 0),cl(this,Jp,void 0),fl(Qp,this,t),fl(Zp,this,new TextDecoder),fl(Jp,this,new DataView(hl(Qp,this))),n&&Object.assign(this,n)}get black(){return ul(eg,this,ng).call(this,0)}get bold(){return ul(eg,this,ng).call(this,1)}get disableFontFace(){return ul(eg,this,ng).call(this,2)}get fontExtraProperties(){return ul(eg,this,ng).call(this,3)}get isInvalidPDFjsFont(){return ul(eg,this,ng).call(this,4)}get isType3Font(){return ul(eg,this,ng).call(this,5)}get italic(){return ul(eg,this,ng).call(this,6)}get missingFile(){return ul(eg,this,ng).call(this,7)}get remeasure(){return ul(eg,this,ng).call(this,8)}get vertical(){return ul(eg,this,ng).call(this,9)}get ascent(){return ul(eg,this,ig).call(this,0)}get defaultWidth(){return ul(eg,this,ig).call(this,1)}get descent(){return ul(eg,this,ig).call(this,2)}get bbox(){let e=og._;if(0===hl(Jp,this).getUint8(e))return;e+=1;const t=[];for(let n=0;n<4;n++)t.push(hl(Jp,this).getInt16(e,!0)),e+=2;return t}get fontMatrix(){let e=sg._;if(0===hl(Jp,this).getUint8(e))return;e+=1;const t=[];for(let n=0;n<6;n++)t.push(hl(Jp,this).getFloat64(e,!0)),e+=8;return t}get defaultVMetrics(){let e=lg._;if(0===hl(Jp,this).getUint8(e))return;e+=1;const t=[];for(let n=0;n<3;n++)t.push(hl(Jp,this).getInt16(e,!0)),e+=2;return t}get fallbackName(){return ul(eg,this,rg).call(this,0)}get loadedName(){return ul(eg,this,rg).call(this,1)}get mimetype(){return ul(eg,this,rg).call(this,2)}get name(){return ul(eg,this,rg).call(this,3)}get data(){let e=cg._;e+=4+hl(Jp,this).getUint32(e);e+=4+hl(Jp,this).getUint32(e);e+=4+hl(Jp,this).getUint32(e);const t=hl(Jp,this).getUint32(e);if(0!==t)return new Uint8Array(hl(Qp,this),e+4,t)}clearData(){let e=cg._;e+=4+hl(Jp,this).getUint32(e);e+=4+hl(Jp,this).getUint32(e);e+=4+hl(Jp,this).getUint32(e);const t=hl(Jp,this).getUint32(e);new Uint8Array(hl(Qp,this),e+4,t).fill(0),hl(Jp,this).setUint32(e,0)}get cssFontInfo(){let e=cg._;e+=4+hl(Jp,this).getUint32(e);e+=4+hl(Jp,this).getUint32(e);const t=hl(Jp,this).getUint32(e);if(0===t)return null;const n=new Uint8Array(t);return n.set(new Uint8Array(hl(Qp,this),e+4,t)),new Vp(n.buffer)}get systemFontInfo(){let e=cg._;e+=4+hl(Jp,this).getUint32(e);const t=hl(Jp,this).getUint32(e);if(0===t)return null;const n=new Uint8Array(t);return n.set(new Uint8Array(hl(Qp,this),e+4,t)),new Kp(n.buffer)}static write(e){const t=e.systemFontInfo?Kp.write(e.systemFontInfo):null,n=e.cssFontInfo?Vp.write(e.cssFontInfo):null,i=new TextEncoder,r={};let a=0;for(const p of tg.strings)r[p]=i.encode(e[p]),a+=4+r[p].length;const o=cg._+4+a+4+(t?t.byteLength:0)+4+(n?n.byteLength:0)+4+(e.data?e.data.length:0),s=new ArrayBuffer(o),l=new Uint8Array(s),c=new DataView(s);let u=0;const d=tg.bools.length;let h=0,f=0;for(let p=0;p<d;p++){const t=e[tg.bools[p]];h|=(void 0===t?0:t?2:1)<<f,f+=2,8!==f&&p!==d-1||(c.setUint8(u++,h),h=0,f=0)}Dc(u===ag._,"FontInfo.write: Boolean properties offset mismatch");for(const p of tg.numbers)c.setFloat64(u,e[p]),u+=8;if(Dc(u===og._,"FontInfo.write: Number properties offset mismatch"),e.bbox){c.setUint8(u++,4);for(const t of e.bbox)c.setInt16(u,t,!0),u+=2}else c.setUint8(u++,0),u+=8;if(Dc(u===sg._,"FontInfo.write: BBox properties offset mismatch"),e.fontMatrix){c.setUint8(u++,6);for(const t of e.fontMatrix)c.setFloat64(u,t,!0),u+=8}else c.setUint8(u++,0),u+=48;if(Dc(u===lg._,"FontInfo.write: FontMatrix properties offset mismatch"),e.defaultVMetrics){c.setUint8(u++,1);for(const t of e.defaultVMetrics)c.setInt16(u,t,!0),u+=2}else c.setUint8(u++,0),u+=6;Dc(u===cg._,"FontInfo.write: DefaultVMetrics properties offset mismatch"),c.setUint32(cg._,0),u+=4;for(const p of tg.strings){const e=r[p],t=e.length;c.setUint32(u,t),l.set(e,u+4),u+=4+t}if(c.setUint32(cg._,u-cg._-4),t){const e=t.byteLength;c.setUint32(u,e),Dc(u+4+e<=s.byteLength,"FontInfo.write: Buffer overflow at systemFontInfo"),l.set(new Uint8Array(t),u+4),u+=4+e}else c.setUint32(u,0),u+=4;if(n){const e=n.byteLength;c.setUint32(u,e),Dc(u+4+e<=s.byteLength,"FontInfo.write: Buffer overflow at cssFontInfo"),l.set(new Uint8Array(n),u+4),u+=4+e}else c.setUint32(u,0),u+=4;return void 0===e.data?(c.setUint32(u,0),u+=4):(c.setUint32(u,e.data.length),l.set(e.data,u
2+4),u+=4+e.data.length),Dc(u<=s.byteLength,"FontInfo.write: Buffer overflow"),s.transferToFixedLength(u)}}function ng(e){Dc(e<Dl.bools.length,"Invalid boolean index");const t=Math.floor(e/4),n=2*e%8,i=hl(Jp,this).getUint8(t)>>n&3;return 0===i?void 0:2===i}function ig(e){return Dc(e<Dl.numbers.length,"Invalid number index"),hl(Jp,this).getFloat64(ag._+8*e)}function rg(e){Dc(e<Dl.strings.length,"Invalid string index");let t=cg._+4;for(let r=0;r<e;r++)t+=hl(Jp,this).getUint32(t)+4;const n=hl(Jp,this).getUint32(t),i=new Uint8Array(n);return i.set(new Uint8Array(hl(Qp,this),t+4,n)),hl(Zp,this).decode(i)}Dl=tg,Qe(tg,"bools",["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"]),Qe(tg,"numbers",["ascent","defaultWidth","descent"]),Qe(tg,"strings",["fallbackName","loadedName","mimetype","name"]);var ag={_:Math.ceil(2*Dl.bools.length/8)},og={_:ul(Dl,Dl,ag)._+8*Dl.numbers.length},sg={_:ul(Dl,Dl,og)._+1+8},lg={_:ul(Dl,Dl,sg)._+1+48},cg={_:ul(Dl,Dl,lg)._+1+6};class ug{constructor(e){this.buffer=e,this.view=new DataView(e),this.data=new Uint8Array(e)}static write(e){let t,n=null,i=[],r=[],a=[],o=[],s=null,l=null;switch(e[0]){case"RadialAxial":t="axial"===e[1]?1:2,n=e[2],a=e[3],1===t?i.push(...e[4],...e[5]):i.push(e[4][0],e[4][1],e[6],e[5][0],e[5][1],e[7]);break;case"Mesh":t=3,s=e[1],i=e[2],r=e[3],o=e[4]||[],n=e[6],l=e[7];break;default:throw new Error("Unsupported pattern type: ".concat(e[0]))}const c=Math.floor(i.length/2),u=Math.floor(r.length/3),d=a.length,h=o.length;let f=0;for(const b of o)f+=1,f=4*Math.ceil(f/4),f+=4+4*b.coords.length,f+=4+4*b.colors.length,void 0!==b.verticesPerRow&&(f+=4);const p=new ArrayBuffer(20+8*c+3*u+8*d+(n?16:0)+(l?3:0)+f),g=new DataView(p),m=new Uint8Array(p);g.setUint8(dg._,t),g.setUint8(hg._,n?1:0),g.setUint8(fg._,l?1:0),g.setUint8(pg._,s),g.setUint32(gg._,c,!0),g.setUint32(mg._,u,!0),g.setUint32(vg._,d,!0),g.setUint32(bg._,h,!0);let v=20;new Float32Array(p,v,2*c).set(i),v+=8*c,m.set(r,v),v+=3*u;for(const[b,y]of a)g.setFloat32(v,b,!0),v+=4,g.setUint32(v,parseInt(y.slice(1),16),!0),v+=4;if(n)for(const b of n)g.setFloat32(v,b,!0),v+=4;l&&(m.set(l,v),v+=3);for(let b=0;b<o.length;b++){const e=o[b];g.setUint8(v,e.type),v+=1,v=4*Math.ceil(v/4),g.setUint32(v,e.coords.length,!0),v+=4;new Int32Array(p,v,e.coords.length).set(e.coords),v+=4*e.coords.length,g.setUint32(v,e.colors.length,!0),v+=4;new Int32Array(p,v,e.colors.length).set(e.colors),v+=4*e.colors.length,void 0!==e.verticesPerRow&&(g.setUint32(v,e.verticesPerRow,!0),v+=4)}return p}getIR(){const e=this.view,t=this.data[dg._],n=!!this.data[hg._],i=!!this.data[fg._],r=e.getUint32(gg._,!0),a=e.getUint32(mg._,!0),o=e.getUint32(vg._,!0),s=e.getUint32(bg._,!0);let l=20;const c=new Float32Array(this.buffer,l,2*r);l+=8*r;const u=new Uint8Array(this.buffer,l,3*a);l+=3*a;const d=[];for(let g=0;g<o;++g){const t=e.getFloat32(l,!0);l+=4;const n=e.getUint32(l,!0);l+=4,d.push([t,"#".concat(n.toString(16).padStart(6,"0"))])}let h=null;if(n){h=[];for(let t=0;t<4;++t)h.push(e.getFloat32(l,!0)),l+=4}let f=null;i&&(f=new Uint8Array(this.buffer,l,3),l+=3);const p=[];for(let g=0;g<s;++g){const t=e.getUint8(l);l+=1,l=4*Math.ceil(l/4);const n=e.getUint32(l,!0);l+=4;const i=new Int32Array(this.buffer,l,n);l+=4*n;const r=e.getUint32(l,!0);l+=4;const a=new Int32Array(this.buffer,l,r);l+=4*r;const o={type:t,coords:i,colors:a};t===$l&&(o.verticesPerRow=e.getUint32(l,!0),l+=4),p.push(o)}if(1===t)return["RadialAxial","axial",h,d,Array.from(c.slice(0,2)),Array.from(c.slice(2,4)),null,null];if(2===t)return["RadialAxial","radial",h,d,[c[0],c[1]],[c[3],c[4]],c[2],c[5]];if(3===t){const e=this.data[pg._];let t=null;if(c.length>0){let e=c[0],n=c[0],i=c[1],r=c[1];for(let t=0;t<c.length;t+=2){const a=c[t],o=c[t+1];e=e>a?a:e,i=i>o?o:i,n=n<a?a:n,r=r<o?o:r}t=[e,i,n,r]}return["Mesh",e,c,u,p,t,h,f]}throw new Error("Unsupported pattern kind: ".concat(t))}}var dg={_:0},hg={_:1},fg={_:2},pg={_:3},gg={_:4},mg={_:8},vg={_:12},bg={_:16};function yg(e){if("string"!==typeof e)return null;if(e.endsWith("/"))return e;throw new Error('Invalid factory url: "'.concat(e,'" must include trailing slash.'))}const xg=e=>"object"===typeof e&&Number.isInteger(null===e||void 0===e?void 0:e.num)&&e.num>=0&&Number.isInteger(null===e||void 0===e?void 0:e.gen)&&e.gen>=0,wg=function(e,t,n){if(!Array.isArray(n)||n.length<2)return!1;const[i,r,...a]=n;if(!e(i)&&!Number.isInteger(i))return!1;if(!t(r))return!1;const o=a.length;let s=!0;switch(r.name){case"XYZ":if(o<2||o>3)return!1;break;case"Fit":case"FitB":return 0===o;case"FitH":case"FitBH":case"FitV":case"FitBV":if(o>1)return!1;break;case"FitR":if(4!==o)return!1;s=!1;break;default:return!1}for(const l of a)if(!("number"===typeof l||s&&null===l))return!1;return!0}.bind(null,xg,(e=>"object"===typeof e&&"string"===typeof(null===e||void 0===e?void 0:e.name)));var _g=new WeakMap,Dg=new WeakMap;class Sg{constructor(){cl(this,_g,new Map),cl(this,Dg,Promise.resolve())}postMessage(e,t){const n={data:structuredClone(e,t?{transfer:t}:null)};hl(Dg,this).then((()=>{for(const[e]of hl(_g,this))e.call(this,n)}))}addEventListener(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;if((null===n||void 0===n?void 0:n.signal)instanceof AbortSignal){const{signal:r}=n;if(r.aborted)return void wc("LoopbackPort - cannot use an `aborted` signal.");const a=()=>this.removeEventListener(e,t);i=()=>r.removeEventListener("abort",a),r.addEventListener("abort",a)}hl(_g,this).set(t,i)}removeEventListener(e,t){const n=hl(_g,this).get(t);null===n||void 0===n||n(),hl(_g,this).delete(t)}terminate(){for(const[,e]of hl(_g,this))null===e||void 0===e||e();hl(_g,this).clear()}}
2const kg=1,Cg=2,Ag=1,Tg=2,Eg=3,Ng=4,Mg=5,Pg=6,Ug=7,jg=8;function Fg(){}function Rg(e){if(e instanceof Uc||e instanceof Nc||e instanceof Tc||e instanceof Mc||e instanceof Ec)return e;switch(e instanceof Error||"object"===typeof e&&null!==e||_c('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new Uc(e.message);case"InvalidPDFException":return new Nc(e.message);case"PasswordException":return new Tc(e.message,e.code);case"ResponseException":return new Mc(e.message,e.status,e.missing);case"UnknownErrorException":return new Ec(e.message,e.details)}return new Ec(e.message,e.toString())}var Og=new WeakMap,Ig=new WeakSet;class Lg{constructor(e,t,n){ll(this,Ig),cl(this,Og,new AbortController),this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),n.addEventListener("message",ul(Ig,this,Bg).bind(this),{signal:hl(Og,this).signal})}on(e,t){const n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,r=Promise.withResolvers();this.callbackCapabilities[i]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(a){r.reject(a)}return r.promise}sendWithStream(e,t,n,i){const r=this.streamId++,a=this.sourceName,o=this.targetName,s=this.comObj;return new ReadableStream({start:n=>{const l=Promise.withResolvers();return this.streamControllers[r]={controller:n,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},s.postMessage({sourceName:a,targetName:o,action:e,streamId:r,data:t,desiredSize:n.desiredSize},i),l.promise},pull:e=>{const t=Promise.withResolvers();return this.streamControllers[r].pullCall=t,s.postMessage({sourceName:a,targetName:o,stream:Pg,streamId:r,desiredSize:e.desiredSize}),t.promise},cancel:e=>{Dc(e instanceof Error,"cancel must have a valid reason");const t=Promise.withResolvers();return this.streamControllers[r].cancelCall=t,this.streamControllers[r].isClosed=!0,s.postMessage({sourceName:a,targetName:o,stream:Ag,streamId:r,reason:Rg(e)}),t.promise}},n)}destroy(){var e;null===(e=hl(Og,this))||void 0===e||e.abort(),fl(Og,this,null)}}function Bg(e){let{data:t}=e;if(t.targetName!==this.sourceName)return;if(t.stream)return void ul(Ig,this,zg).call(this,t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback ".concat(e));if(delete this.callbackCapabilities[e],t.callback===kg)n.resolve(t.data);else{if(t.callback!==Cg)throw new Error("Unexpected callback case");n.reject(Rg(t.reason))}return}const n=this.actionHandler[t.action];if(!n)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){const e=this.sourceName,i=t.sourceName,r=this.comObj;Promise.try(n,t.data).then((function(n){r.postMessage({sourceName:e,targetName:i,callback:kg,callbackId:t.callbackId,data:n})}),(function(n){r.postMessage({sourceName:e,targetName:i,callback:Cg,callbackId:t.callbackId,reason:Rg(n)})}))}else t.streamId?ul(Ig,this,Wg).call(this,t):n(t.data)}function Wg(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,r=this.comObj,a=this,o=this.actionHandler[e.action],s={enqueue(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const s=this.desiredSize;this.desiredSize-=a,s>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),r.postMessage({sourceName:n,targetName:i,stream:Ng,streamId:t,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:Eg,streamId:t}),delete a.streamSinks[t])},error(e){Dc(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,r.postMessage({sourceName:n,targetName:i,stream:Mg,streamId:t,reason:Rg(e)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[t]=s,Promise.try(o,e.data,s).then((function(){r.postMessage({sourceName:n,targetName:i,stream:jg,
2streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:jg,streamId:t,reason:Rg(e)})}))}function zg(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,r=this.comObj,a=this.streamControllers[t],o=this.streamSinks[t];switch(e.stream){case jg:e.success?a.startCall.resolve():a.startCall.reject(Rg(e.reason));break;case Ug:e.success?a.pullCall.resolve():a.pullCall.reject(Rg(e.reason));break;case Pg:if(!o){r.postMessage({sourceName:n,targetName:i,stream:Ug,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||Fg).then((function(){r.postMessage({sourceName:n,targetName:i,stream:Ug,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:Ug,streamId:t,reason:Rg(e)})}));break;case Ng:if(Dc(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(e.chunk);break;case Eg:if(Dc(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),ul(Ig,this,Vg).call(this,a,t);break;case Mg:Dc(a,"error should have stream controller"),a.controller.error(Rg(e.reason)),ul(Ig,this,Vg).call(this,a,t);break;case Tg:e.success?a.cancelCall.resolve():a.cancelCall.reject(Rg(e.reason)),ul(Ig,this,Vg).call(this,a,t);break;case Ag:if(!o)break;const s=Rg(e.reason);Promise.try(o.onCancel||Fg,s).then((function(){r.postMessage({sourceName:n,targetName:i,stream:Tg,streamId:t,success:!0})}),(function(e){r.postMessage({sourceName:n,targetName:i,stream:Tg,streamId:t,reason:Rg(e)})})),o.sinkCapability.reject(s),o.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async function Vg(e,t){var n,i,r;await Promise.allSettled([null===(n=e.startCall)||void 0===n?void 0:n.promise,null===(i=e.pullCall)||void 0===i?void 0:i.promise,null===(r=e.cancelCall)||void 0===r?void 0:r.promise]),delete this.streamControllers[t]}var Hg=new WeakMap;class qg{constructor(e){let{enableHWA:t=!1}=e;cl(this,Hg,!1),fl(Hg,this,t)}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!hl(Hg,this)})}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){_c("Abstract method `_createCanvas` called.")}}class Gg extends qg{constructor(e){let{ownerDocument:t=globalThis.document,enableHWA:n=!1}=e;super({enableHWA:n}),this._document=t}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}class Yg{constructor(e){let{baseUrl:t=null,isCompressed:n=!0}=e;this.baseUrl=t,this.isCompressed=n}async fetch(e){let{name:t}=e;if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":"");return this._fetch(n).then((e=>({cMapData:e,isCompressed:this.isCompressed}))).catch((e=>{throw new Error("Unable to load ".concat(this.isCompressed?"binary ":"","CMap at: ").concat(n))}))}async _fetch(e){_c("Abstract method `_fetch` called.")}}class Xg extends Yg{async _fetch(e){const t=await Qc(e,this.isCompressed?"arraybuffer":"text");return t instanceof ArrayBuffer?new Uint8Array(t):Fc(t)}}class Kg{addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,t,n,i,r){return"none"}destroy(){}}var $g=new WeakMap,Qg=new WeakMap,Zg=new WeakMap,Jg=new WeakMap,em=new WeakMap,tm=new WeakMap,nm=new WeakMap,im=new WeakSet;class rm extends Kg{constructor(e){let{docId:t,ownerDocument:n=globalThis.document}=e;super(),ll(this,im),cl(this,$g,void 0),cl(this,Qg,void 0),cl(this,Zg,void 0),cl(this,Jg,void 0),cl(this,em,void 0),cl(this,tm,void 0),cl(this,nm,0),fl(Jg,this,t),fl(em,this,n)}addFilter(e){var t,n;if(!e)return"none";let i=dl(im,this,am).get(e);if(i)return i;const[r,a,o]=ul(im,this,lm).call(this,e),s=1===e.length?r:"".concat(r).concat(a).concat(o);if(i=dl(im,this,am).get(s),i)return dl(im,this,am).set(e,i),i;const l="g_".concat(hl(Jg,this),"_transfer_map_").concat((fl(nm,this,(t=hl(nm,this),n=t++,t)),n)),c=ul
2(im,this,cm).call(this,l);dl(im,this,am).set(e,c),dl(im,this,am).set(s,c);const u=ul(im,this,hm).call(this,l);return ul(im,this,pm).call(this,r,a,o,u),c}addHCMFilter(e,t){var n;const i="".concat(e,"-").concat(t),r="base";let a=dl(im,this,om).get(r);if((null===(n=a)||void 0===n?void 0:n.key)===i)return a.url;var o;a?(null===(o=a.filter)||void 0===o||o.remove(),a.key=i,a.url="none",a.filter=null):(a={key:i,url:"none",filter:null},dl(im,this,om).set(r,a));if(!e||!t)return a.url;const s=ul(im,this,mm).call(this,e);e=Ic.makeHexColor(...s);const l=ul(im,this,mm).call(this,t);if(t=Ic.makeHexColor(...l),dl(im,this,sm).style.color="","#000000"===e&&"#ffffff"===t||e===t)return a.url;const c=new Array(256);for(let p=0;p<=255;p++){const e=p/255;c[p]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}const u=c.join(","),d="g_".concat(hl(Jg,this),"_hcm_filter"),h=a.filter=ul(im,this,hm).call(this,d);ul(im,this,pm).call(this,u,u,u,h),ul(im,this,dm).call(this,h);const f=(e,t)=>{const n=s[e]/255,i=l[e]/255,r=new Array(t+1);for(let a=0;a<=t;a++)r[a]=n+a/t*(i-n);return r.join(",")};return ul(im,this,pm).call(this,f(0,5),f(1,5),f(2,5),h),a.url=ul(im,this,cm).call(this,d),a.url}addAlphaFilter(e){var t,n;let i=dl(im,this,am).get(e);if(i)return i;const[r]=ul(im,this,lm).call(this,[e]),a="alpha_".concat(r);if(i=dl(im,this,am).get(a),i)return dl(im,this,am).set(e,i),i;const o="g_".concat(hl(Jg,this),"_alpha_map_").concat((fl(nm,this,(t=hl(nm,this),n=t++,t)),n)),s=ul(im,this,cm).call(this,o);dl(im,this,am).set(e,s),dl(im,this,am).set(a,s);const l=ul(im,this,hm).call(this,o);return ul(im,this,gm).call(this,r,l),s}addLuminosityFilter(e){var t,n;let i,r,a=dl(im,this,am).get(e||"luminosity");if(a)return a;if(e?([i]=ul(im,this,lm).call(this,[e]),r="luminosity_".concat(i)):r="luminosity",a=dl(im,this,am).get(r),a)return dl(im,this,am).set(e,a),a;const o="g_".concat(hl(Jg,this),"_luminosity_map_").concat((fl(nm,this,(t=hl(nm,this),n=t++,t)),n)),s=ul(im,this,cm).call(this,o);dl(im,this,am).set(e,s),dl(im,this,am).set(r,s);const l=ul(im,this,hm).call(this,o);return ul(im,this,um).call(this,l),e&&ul(im,this,gm).call(this,i,l),s}addHighlightHCMFilter(e,t,n,i,r){var a;const o="".concat(t,"-").concat(n,"-").concat(i,"-").concat(r);let s=dl(im,this,om).get(e);if((null===(a=s)||void 0===a?void 0:a.key)===o)return s.url;var l;s?(null===(l=s.filter)||void 0===l||l.remove(),s.key=o,s.url="none",s.filter=null):(s={key:o,url:"none",filter:null},dl(im,this,om).set(e,s));if(!t||!n)return s.url;const[c,u]=[t,n].map(ul(im,this,mm).bind(this));let d=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),h=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[f,p]=[i,r].map(ul(im,this,mm).bind(this));h<d&&([d,h,f,p]=[h,d,p,f]),dl(im,this,sm).style.color="";const g=(e,t,n)=>{const i=new Array(256),r=(h-d)/n,a=e/255,o=(t-e)/(255*n);let s=0;for(let l=0;l<=n;l++){const e=Math.round(d+l*r),t=a+l*o;for(let n=s;n<=e;n++)i[n]=t;s=e+1}for(let l=s;l<256;l++)i[l]=i[s-1];return i.join(",")},m="g_".concat(hl(Jg,this),"_hcm_").concat(e,"_filter"),v=s.filter=ul(im,this,hm).call(this,m);return ul(im,this,dm).call(this,v),ul(im,this,pm).call(this,g(f[0],p[0],5),g(f[1],p[1],5),g(f[2],p[2],5),v),s.url=ul(im,this,cm).call(this,m),s.url}destroy(){var e,t,n,i;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&null!==(e=hl(tm,this))&&void 0!==e&&e.size||(null===(t=hl(Zg,this))||void 0===t||t.parentNode.parentNode.remove(),fl(Zg,this,null),null===(n=hl(Qg,this))||void 0===n||n.clear(),fl(Qg,this,null),null===(i=hl(tm,this))||void 0===i||i.clear(),fl(tm,this,null),fl(nm,this,0))}}function am(e){return hl(Qg,e)||fl(Qg,e,new Map)}function om(e){return hl(tm,e)||fl(tm,e,new Map)}function sm(e){if(!hl(Zg,e)){const t=hl(em,e).createElement("div"),{style:n}=t;n.visibility="hidden",n.contain="strict",n.width=n.height=0,n.position="absolute",n.top=n.left=0,n.zIndex=-1;const i=hl(em,e).createElementNS(Kc,"svg");i.setAttribute("width",0),i.setAttribute("height",0),fl(Zg,e,hl(em,e).createElementNS(Kc,"defs")),t.append(i),i.append(hl(Zg,e)),hl(em,e).body.append(t)}return hl(Zg,e)}function lm(e){if(1===e.length){const t=e[0],n=new Array(256);for(let e=0;e<256;e++)n[e]=t[e]/255;const i=n.join(",");return[i,i,i]}const[t,n,i]=e,r=new Array(256),a=new Array(256),o=new Array(256);for(let s=0;s<256;s++)r[s]=t[s]/255,a[s]=n[s]/255,o[s]=i[s]/255;return[r.join(","),a.join(","),o.join(",")]}function cm(e){if(void 0===hl($g,this)){fl($g,this,"");const e=hl(em,this).URL;e!==hl(em,this).baseURI&&(eu(e)?wc('#createUrl: ignore "data:"-URL for performance reasons.'):fl($g,this,kc(e,"")))}
2return"url(".concat(hl($g,this),"#").concat(e,")")}function um(e){const t=hl(em,this).createElementNS(Kc,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(t)}function dm(e){const t=hl(em,this).createElementNS(Kc,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function hm(e){const t=hl(em,this).createElementNS(Kc,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),dl(im,this,sm).append(t),t}function fm(e,t,n){const i=hl(em,this).createElementNS(Kc,t);i.setAttribute("type","discrete"),i.setAttribute("tableValues",n),e.append(i)}function pm(e,t,n,i){const r=hl(em,this).createElementNS(Kc,"feComponentTransfer");i.append(r),ul(im,this,fm).call(this,r,"feFuncR",e),ul(im,this,fm).call(this,r,"feFuncG",t),ul(im,this,fm).call(this,r,"feFuncB",n)}function gm(e,t){const n=hl(em,this).createElementNS(Kc,"feComponentTransfer");t.append(n),ul(im,this,fm).call(this,n,"feFuncA",e)}function mm(e){return dl(im,this,sm).style.color=e,lu(getComputedStyle(dl(im,this,sm)).getPropertyValue("color"))}class vm{constructor(e){let{baseUrl:t=null}=e;this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!t)throw new Error("Font filename must be specified.");const n="".concat(this.baseUrl).concat(t);return this._fetch(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}async _fetch(e){_c("Abstract method `_fetch` called.")}}class bm extends vm{async _fetch(e){const t=await Qc(e,"arraybuffer");return new Uint8Array(t)}}class ym{constructor(e){let{baseUrl:t=null}=e;this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!t)throw new Error("Wasm filename must be specified.");const n="".concat(this.baseUrl).concat(t);return this._fetch(n).catch((e=>{throw new Error("Unable to load wasm data at: ".concat(n))}))}async _fetch(e){_c("Abstract method `_fetch` called.")}}class xm extends ym{async _fetch(e){const t=await Qc(e,"arraybuffer");return new Uint8Array(t)}}async function wm(e){const t=process.getBuiltinModule("fs"),n=await t.promises.readFile(e);return new Uint8Array(n)}jl&&wc("Please use the `legacy` build in Node.js environments.");class _m extends Kg{}class Dm extends qg{_createCanvas(e,t){return process.getBuiltinModule("module").createRequire("file:///opt/build/repo/node_modules/pdfjs-dist/build/pdf.mjs")("@napi-rs/canvas").createCanvas(e,t)}}class Sm extends Yg{async _fetch(e){return wm(e)}}class km extends vm{async _fetch(e){return wm(e)}}class Cm extends ym{async _fetch(e){return wm(e)}}const Am="__forcedDependency",{floor:Tm,ceil:Em}=Math;function Nm(e,t,n,i,r,a){e[4*t+0]=Math.min(e[4*t+0],n),e[4*t+1]=Math.min(e[4*t+1],i),e[4*t+2]=Math.max(e[4*t+2],r),e[4*t+3]=Math.max(e[4*t+3],a)}const Mm=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0];var Pm=new WeakMap,Um=new WeakMap;class jm{constructor(e,t){cl(this,Pm,void 0),cl(this,Um,void 0),fl(Pm,this,e),fl(Um,this,t)}get length(){return hl(Pm,this).length}isEmpty(e){return hl(Pm,this)[e]===Mm}minX(e){return hl(Um,this)[4*e+0]/256}minY(e){return hl(Um,this)[4*e+1]/256}maxX(e){return(hl(Um,this)[4*e+2]+1)/256}maxY(e){return(hl(Um,this)[4*e+3]+1)/256}}const Fm=(e,t)=>{if(!e)return;let n=e.get(t);return n||(n={dependencies:new Set,isRenderingOperation:!1},e.set(t,n)),n};var Rm=new WeakMap,Om=new WeakMap,Im=new WeakMap,Lm=new WeakMap,Bm=new WeakMap,Wm=new WeakMap,zm=new WeakMap,Vm=new WeakMap,Hm=new WeakMap,qm=new WeakMap,Gm=new WeakMap,Ym=new WeakMap,Xm=new WeakMap,Km=new WeakMap,$m=new WeakMap,Qm=new WeakMap,Zm=new WeakMap,Jm=new WeakSet;class ev{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];ll(this,Jm),cl(this,Rm,{__proto__:null}),cl(this,Om,{__proto__:null,transform:[],moveText:[],sameLineText:[],[Am]:[]}),cl(this,Im,new Map),cl(this,Lm,[]),cl(this,Bm,[]),cl(this,Wm,[[1,0,0,1,0,0]]),cl(this,zm,[-1/0,-1/0,1/0,1/0]),cl(this,Vm,new Float64Array([1/0,1/0,-1/0,-1/0])),cl(this,Hm,-1),cl(this,qm,new Set),cl(this,Gm,new Map),cl(this,Ym,new Map),cl(this,Xm,void 0),cl(this,Km,void 0),cl(this,$m,void 0),cl(this,Qm,void 0),cl(this,Zm,void 0),fl(Xm,this,e.width),fl(Km,this,e.height),ul(Jm,this,tv).call(this,t),n&&fl(Zm,this,new Map)}growOperationsCount(e){e>=hl(Qm,this).length&&ul(Jm,this,tv).call(this,e,hl(Qm,this))}save(e){return fl(Rm,this,{__proto__:hl(Rm,this)}),fl(Om,this,{__proto__:hl(Om,this),transform:{__proto__:hl(Om,this).transform},moveText:{__proto__:hl(Om,this).moveText},sameLineText:{__proto__:hl(Om,this).sameLineText},[Am]:{__proto__:hl(Om,this)[Am]}}),fl(zm,this,{__proto__:hl(zm,this)}),hl(Lm,this).push(e),this}restore(e){const t=Object.getPrototypeOf(hl(Rm,this));if(null===t)return this;fl(Rm,this,t),fl(Om,this,Object.getPrototypeOf(hl(Om,this))),fl(zm,this,Object.getPrototypeOf(hl(zm,this)));const n=hl(Lm,this).pop();var i;void 0!==n&&(null===(i=Fm(hl(Zm,this),e))||void 0===i||i.dependencies.add(n),hl(Qm,this)[e]=hl(Qm,this)[n]);return this}recordOpenMarker(e){return hl(Lm,this).push(e),this}getOpenMarker(){return 0===hl(Lm,this).length?null:hl(Lm,this).at(-1)}recordCloseMarker(e){const t=hl(Lm,this).pop();var n;void 0!==t&&(null===(n=Fm(hl(Zm,this),e))||void 0===n||n.dependencies.add(t),hl(Qm,this)[e]=hl(Qm,this)[t]);return this}beginMarkedContent(e){return hl(Bm,this).push(e),this}endMarkedContent(e){const t=hl(Bm,this).pop();var n;void 0!==t&&(null===(n=Fm(hl(Zm,this),e))||void 0===n||n.dependencies.add(t),hl(Qm,this)[e]=hl(Qm,this)[t]);return this}pushBaseTransform(e){return hl(Wm,this).push(Ic.multiplyByDOMMatrix(hl(Wm,this).at(-1),e.getTransform())),this}popBaseTransform(){return hl(Wm,this).length>1&&hl(Wm,this).pop(),this}recordSimpleData(e,t){return hl(Rm,this)[e]=t,this}recordIncrementalData(e,t){return hl(Om,this)[e].push(t),this}resetIncrementalData(e,t){return hl(Om,this)[e].length=0,this}
2recordNamedData(e,t){return hl(Im,this).set(e,t),this}recordSimpleDataFromNamed(e,t,n){var i;hl(Rm,this)[e]=null!==(i=hl(Im,this).get(t))&&void 0!==i?i:n}recordFutureForcedDependency(e,t){return this.recordIncrementalData(Am,t),this}inheritSimpleDataAsFutureForcedDependencies(e){for(const t of e)t in hl(Rm,this)&&this.recordFutureForcedDependency(t,hl(Rm,this)[t]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(const e of hl(qm,this))this.recordFutureForcedDependency(Am,e);return this}resetBBox(e){return hl(Hm,this)!==e&&(fl(Hm,this,e),hl(Vm,this)[0]=1/0,hl(Vm,this)[1]=1/0,hl(Vm,this)[2]=-1/0,hl(Vm,this)[3]=-1/0),this}recordClipBox(e,t,n,i,r,a){const o=Ic.multiplyByDOMMatrix(hl(Wm,this).at(-1),t.getTransform()),s=[1/0,1/0,-1/0,-1/0];Ic.axialAlignedBoundingBox([n,r,i,a],o,s);const l=Ic.intersect(hl(zm,this),s);return l?(hl(zm,this)[0]=l[0],hl(zm,this)[1]=l[1],hl(zm,this)[2]=l[2],hl(zm,this)[3]=l[3]):(hl(zm,this)[0]=hl(zm,this)[1]=1/0,hl(zm,this)[2]=hl(zm,this)[3]=-1/0),this}recordBBox(e,t,n,i,r,a){const o=hl(zm,this);if(o[0]===1/0)return this;const s=Ic.multiplyByDOMMatrix(hl(Wm,this).at(-1),t.getTransform());if(o[0]===-1/0)return Ic.axialAlignedBoundingBox([n,r,i,a],s,hl(Vm,this)),this;const l=[1/0,1/0,-1/0,-1/0];return Ic.axialAlignedBoundingBox([n,r,i,a],s,l),hl(Vm,this)[0]=Math.min(hl(Vm,this)[0],Math.max(l[0],o[0])),hl(Vm,this)[1]=Math.min(hl(Vm,this)[1],Math.max(l[1],o[1])),hl(Vm,this)[2]=Math.max(hl(Vm,this)[2],Math.min(l[2],o[2])),hl(Vm,this)[3]=Math.max(hl(Vm,this)[3],Math.min(l[3],o[3])),this}recordCharacterBBox(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;const s=n.bbox;let l,c;if(s&&(l=s[2]!==s[0]&&s[3]!==s[1]&&hl(Ym,this).get(n),!1!==l&&(c=[0,0,0,0],Ic.axialAlignedBoundingBox(s,n.fontMatrix,c),1===i&&0===r&&0===a||Ic.scaleMinMax([i,0,0,-i,r,a],c),l)))return this.recordBBox(e,t,c[0],c[2],c[1],c[3]);if(!o)return this.recordFullPageBBox(e);const u=o();return s&&c&&void 0===l&&(l=c[0]<=r-u.actualBoundingBoxLeft&&c[2]>=r+u.actualBoundingBoxRight&&c[1]<=a-u.actualBoundingBoxAscent&&c[3]>=a+u.actualBoundingBoxDescent,hl(Ym,this).set(n,l),l)?this.recordBBox(e,t,c[0],c[2],c[1],c[3]):this.recordBBox(e,t,r-u.actualBoundingBoxLeft,r+u.actualBoundingBoxRight,a-u.actualBoundingBoxAscent,a+u.actualBoundingBoxDescent)}recordFullPageBBox(e){return hl(Vm,this)[0]=Math.max(0,hl(zm,this)[0]),hl(Vm,this)[1]=Math.max(0,hl(zm,this)[1]),hl(Vm,this)[2]=Math.min(hl(Xm,this),hl(zm,this)[2]),hl(Vm,this)[3]=Math.min(hl(Km,this),hl(zm,this)[3]),this}getSimpleIndex(e){return hl(Rm,this)[e]}recordDependencies(e,t){const n=hl(qm,this),i=hl(Rm,this),r=hl(Om,this);for(const a of t)a in hl(Rm,this)?n.add(i[a]):a in r&&r[a].forEach(n.add,n);return this}recordNamedDependency(e,t){return hl(Im,this).has(t)&&hl(qm,this).add(hl(Im,this).get(t)),this}recordOperation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.recordDependencies(e,[Am]),hl(Zm,this)){const t=Fm(hl(Zm,this),e),{dependencies:n}=t;hl(qm,this).forEach(n.add,n),hl(Lm,this).forEach(n.add,n),hl(Bm,this).forEach(n.add,n),n.delete(e),t.isRenderingOperation=!0}if(hl(Hm,this)===e){const n=Tm(256*hl(Vm,this)[0]/hl(Xm,this)),i=Tm(256*hl(Vm,this)[1]/hl(Km,this)),r=Em(256*hl(Vm,this)[2]/hl(Xm,this)),a=Em(256*hl(Vm,this)[3]/hl(Km,this));Nm(hl($m,this),e,n,i,r,a);for(const t of hl(qm,this))t!==e&&Nm(hl($m,this),t,n,i,r,a);for(const t of hl(Lm,this))t!==e&&Nm(hl($m,this),t,n,i,r,a);for(const t of hl(Bm,this))t!==e&&Nm(hl($m,this),t,n,i,r,a);t||(hl(qm,this).clear(),fl(Hm,this,-1))}return this}recordShowTextOperation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Array.from(hl(qm,this));this.recordOperation(e,t),this.recordIncrementalData("sameLineText",e);for(const i of n)this.recordIncrementalData("sameLineText",i);return this}bboxToClipBoxDropOperation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return hl(Hm,this)===e&&(fl(Hm,this,-1),hl(zm,this)[0]=Math.max(hl(zm,this)[0],hl(Vm,this)[0]),hl(zm,this)[1]=Math.max(hl(zm,this)[1],hl(Vm,this)[1]),hl(zm,this)[2]=Math.min(hl(zm,this)[2],hl(Vm,this)[2]),hl(zm,this)[3]=Math.min(hl(zm,this)[3],hl(Vm,this)[3]),t||hl(qm,this).clear()),this}_takePendingDependencies(){const e=hl(qm,this);return fl(qm,this,new Set),e}_extractOperation(e){const t=hl(Gm,this).get(e);return hl(Gm,this).delete(e),t}_pushPendingDependencies(e){for(const t of e)hl(qm,this).add(t)}take(){return hl(Ym,this).clear(),new jm(hl(Qm,this),hl($m,this))}takeDebugMetadata(){return hl(Zm,this)}}function tv(e,t){const n=new ArrayBuffer(4*e);fl($m,this,new Uint8ClampedArray(n)),fl(Qm,this,new Uint32Array(n)),t&&t.length>0?(hl(Qm,this).set(t),hl(Qm,this).fill(Mm,t.length)):hl(Qm,this).fill(Mm)}var nv=new WeakMap,iv=new WeakMap,rv=new WeakMap,av=new WeakMap,ov=new WeakMap;class sv{constructor(e,t,n){if(cl(this,nv,void 0),cl(this,iv,void 0),cl(this,rv,void 0),cl(this,av,0),cl(this,ov,0),e instanceof sv&&hl(rv,e)===!!n)return e;
2fl(nv,this,e),fl(iv,this,t),fl(rv,this,!!n)}growOperationsCount(){throw new Error("Unreachable")}save(e){var t;return fl(ov,this,(t=hl(ov,this),t++,t)),hl(nv,this).save(hl(iv,this)),this}restore(e){var t;hl(ov,this)>0&&(hl(nv,this).restore(hl(iv,this)),fl(ov,this,(t=hl(ov,this),t--,t)));return this}recordOpenMarker(e){var t;return fl(av,this,(t=hl(av,this),t++,t)),this}getOpenMarker(){return hl(av,this)>0?hl(iv,this):hl(nv,this).getOpenMarker()}recordCloseMarker(e){var t;return fl(av,this,(t=hl(av,this),t--,t)),this}beginMarkedContent(e){return this}endMarkedContent(e){return this}pushBaseTransform(e){return hl(nv,this).pushBaseTransform(e),this}popBaseTransform(){return hl(nv,this).popBaseTransform(),this}recordSimpleData(e,t){return hl(nv,this).recordSimpleData(e,hl(iv,this)),this}recordIncrementalData(e,t){return hl(nv,this).recordIncrementalData(e,hl(iv,this)),this}resetIncrementalData(e,t){return hl(nv,this).resetIncrementalData(e,hl(iv,this)),this}recordNamedData(e,t){return this}recordSimpleDataFromNamed(e,t,n){return hl(nv,this).recordSimpleDataFromNamed(e,t,hl(iv,this)),this}recordFutureForcedDependency(e,t){return hl(nv,this).recordFutureForcedDependency(e,hl(iv,this)),this}inheritSimpleDataAsFutureForcedDependencies(e){return hl(nv,this).inheritSimpleDataAsFutureForcedDependencies(e),this}inheritPendingDependenciesAsFutureForcedDependencies(){return hl(nv,this).inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(e){return hl(rv,this)||hl(nv,this).resetBBox(hl(iv,this)),this}recordClipBox(e,t,n,i,r,a){return hl(rv,this)||hl(nv,this).recordClipBox(hl(iv,this),t,n,i,r,a),this}recordBBox(e,t,n,i,r,a){return hl(rv,this)||hl(nv,this).recordBBox(hl(iv,this),t,n,i,r,a),this}recordCharacterBBox(e,t,n,i,r,a,o){return hl(rv,this)||hl(nv,this).recordCharacterBBox(hl(iv,this),t,n,i,r,a,o),this}recordFullPageBBox(e){return hl(rv,this)||hl(nv,this).recordFullPageBBox(hl(iv,this)),this}getSimpleIndex(e){return hl(nv,this).getSimpleIndex(e)}recordDependencies(e,t){return hl(nv,this).recordDependencies(hl(iv,this),t),this}recordNamedDependency(e,t){return hl(nv,this).recordNamedDependency(hl(iv,this),t),this}recordOperation(e){return hl(nv,this).recordOperation(hl(iv,this),!0),this}recordShowTextOperation(e){return hl(nv,this).recordShowTextOperation(hl(iv,this),!0),this}bboxToClipBoxDropOperation(e){return hl(rv,this)||hl(nv,this).bboxToClipBoxDropOperation(hl(iv,this),!0),this}take(){throw new Error("Unreachable")}takeDebugMetadata(){throw new Error("Unreachable")}}const lv=["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],cv=["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],uv=["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],dv=["filter","fillColor","fillAlpha"],hv=["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],fv=["transform"],pv=["transform","fillColor"],gv="Fill",mv="Stroke",vv="Shading";function bv(e,t){if(!t)return;const n=t[2]-t[0],i=t[3]-t[1],r=new Path2D;r.rect(t[0],t[1],n,i),e.clip(r)}class yv{isModifyingCurrentTransform(){return!1}getPattern(){_c("Abstract method `getPattern` called.")}}class xv extends yv{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,i){let r;if(i===mv||i===gv){const a=t.current.getClippedPathBoundingBox(i,cu(e))||[0,0,0,0],o=Math.ceil(a[2]-a[0])||1,s=Math.ceil(a[3]-a[1])||1,l=t.cachedCanvases.getCanvas("pattern",o,s),c=l.context;c.clearRect(0,0,c.canvas.width,c.canvas.height),c.beginPath(),c.rect(0,0,c.canvas.width,c.canvas.height),c.translate(-a[0],-a[1]),n=Ic.transform(n,[1,0,0,1,a[0],a[1]]),c.transform(...t.baseTransform),this.matrix&&c.transform(...this.matrix
vendor: 11,769 bytes, line 2
2),bv(c,this._bbox),c.fillStyle=this._createGradient(c),c.fill(),r=e.createPattern(l.canvas,"no-repeat");const u=new DOMMatrix(n);r.setTransform(u)}else bv(e,this._bbox),r=this._createGradient(e);return r}}function wv(e,t,n,i,r,a,o,s){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let h;l[n+1]>l[i+1]&&(h=n,n=i,i=h,h=a,a=o,o=h),l[i+1]>l[r+1]&&(h=i,i=r,r=h,h=o,o=s,s=h),l[n+1]>l[i+1]&&(h=n,n=i,i=h,h=a,a=o,o=h);const f=(l[n]+t.offsetX)*t.scaleX,p=(l[n+1]+t.offsetY)*t.scaleY,g=(l[i]+t.offsetX)*t.scaleX,m=(l[i+1]+t.offsetY)*t.scaleY,v=(l[r]+t.offsetX)*t.scaleX,b=(l[r+1]+t.offsetY)*t.scaleY;if(p>=b)return;const y=c[a],x=c[a+1],w=c[a+2],_=c[o],D=c[o+1],S=c[o+2],k=c[s],C=c[s+1],A=c[s+2],T=Math.round(p),E=Math.round(b);let N,M,P,U,j,F,R,O;for(let I=T;I<=E;I++){if(I<m){const e=I<p?0:(p-I)/(p-m);N=f-(f-g)*e,M=y-(y-_)*e,P=x-(x-D)*e,U=w-(w-S)*e}else{let e;e=I>b?1:m===b?0:(m-I)/(m-b),N=g-(g-v)*e,M=_-(_-k)*e,P=D-(D-C)*e,U=S-(S-A)*e}let e;e=I<p?0:I>b?1:(p-I)/(p-b),j=f-(f-v)*e,F=y-(y-k)*e,R=x-(x-C)*e,O=w-(w-A)*e;const t=Math.round(Math.min(N,j)),n=Math.round(Math.max(N,j));let i=d*I+4*t;for(let r=t;r<=n;r++)e=(N-r)/(N-j),e<0?e=0:e>1&&(e=1),u[i++]=M-(M-F)*e|0,u[i++]=P-(P-R)*e|0,u[i++]=U-(U-O)*e|0,u[i++]=255}}function _v(e,t,n){const i=t.coords,r=t.colors;let a,o;switch(t.type){case $l:const s=t.verticesPerRow,l=Math.floor(i.length/s)-1,c=s-1;for(a=0;a<l;a++){let t=a*s;for(let a=0;a<c;a++,t++)wv(e,n,i[t],i[t+1],i[t+s],r[t],r[t+1],r[t+s]),wv(e,n,i[t+s+1],i[t+1],i[t+s],r[t+s+1],r[t+1],r[t+s])}break;case Kl:for(a=0,o=i.length;a<o;a+=3)wv(e,n,i[a],i[a+1],i[a+2],r[a],r[a+1],r[a+2]);break;default:throw new Error("illegal figure")}}class Dv extends yv{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[6],this._background=e[7],this.matrix=null}_createMeshCanvas(e,t,n){const i=Math.floor(this._bounds[0]),r=Math.floor(this._bounds[1]),a=Math.ceil(this._bounds[2])-i,o=Math.ceil(this._bounds[3])-r,s=Math.min(Math.ceil(Math.abs(a*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(o*e[1]*1.1)),3e3),c=a/s,u=o/l,d={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-r,scaleX:1/c,scaleY:1/u},h=s+4,f=l+4,p=n.getCanvas("mesh",h,f),g=p.context,m=g.createImageData(s,l);if(t){const e=m.data;for(let n=0,i=e.length;n<i;n+=4)e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=255}for(const v of this._figures)_v(m,v,d);g.putImageData(m,2,2);return{canvas:p.canvas,offsetX:i-2*c,offsetY:r-2*u,scaleX:c,scaleY:u}}isModifyingCurrentTransform(){return!0}getPattern(e,t,n,i){bv(e,this._bbox);const r=new Float32Array(2);if(i===vv)Ic.singularValueDecompose2dScale(cu(e),r);else if(this.matrix){Ic.singularValueDecompose2dScale(this.matrix,r);const[e,n]=r;Ic.singularValueDecompose2dScale(t.baseTransform,r),r[0]*=e,r[1]*=n}else Ic.singularValueDecompose2dScale(t.baseTransform,r);const a=this._createMeshCanvas(r,i===vv?null:this._background,t.cachedCanvases);return i!==vv&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(a.offsetX,a.offsetY),e.scale(a.scaleX,a.scaleY),e.createPattern(a.canvas,"no-repeat")}}class Sv extends yv{getPattern(){return"hotpink"}}const kv=1,Cv=2;class Av{constructor(e,t,n,i){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.ctx=t,this.canvasGraphicsFactory=n,this.baseTransform=i}createPatternCanvas(e,t){var n,i;const{bbox:r,operatorList:a,paintType:o,tilingType:s,color:l,canvasGraphicsFactory:c}=this;let{xstep:u,ystep:d}=this;u=Math.abs(u),d=Math.abs(d),xc("TilingType: "+s);const h=r[0],f=r[1],p=r[2],g=r[3],m=p-h,v=g-f,b=new Float32Array(2);Ic.singularValueDecompose2dScale(this.matrix,b);const[y,x]=b;Ic.singularValueDecompose2dScale(this.baseTransform,b);const w=y*b[0],_=x*b[1];let D=m,S=v,k=!1,C=!1;const A=Math.ceil(u*w),T=Math.ceil(d*_);A>=Math.ceil(m*w)?D=u:k=!0,T>=Math.ceil(v*_)?S=d:C=!0;const E=this.getSizeAndScale(D,this.ctx.canvas.width,w),N=this.getSizeAndScale(S,this.ctx.canvas.height,_),M=e.cachedCanvases.getCanvas("pattern",E.size,N.size),P=M.context,U=c.createCanvasGraphics(P,t);if(U.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(U,o,l),P.translate(-E.scale*h,-N.scale*f),U.transform(0,E.scale,0,0,N.scale,0,0),P.save(),null===(n=U.dependencyTracker)||void 0===n||n.save(),this.clipBbox(U,h,f,p,g),U.baseTransform=cu(U.ctx),U.executeOperatorList(a),U.endDrawing(),null===(i=U.dependencyTracker)||void 0===i||i.restore(),P.restore(),k||C){const t=M.canvas;k&&(D=u),C&&(S=d);const n=this.getSizeAndScale(D,this.ctx.canvas.width,w),i=this.getSizeAndScale(S,this.ctx.canvas.height,_),r=n.size,a=i.size,o=e.cachedCanvases.getCanvas("pattern-workaround",r,a),s=o.context,l=k?Math.floor(m/u):0,c=C?Math.floor(v/d):0;for(let e=0;e<=l;e++)for(let n=0;n<=c;n++)s.drawImage(t,r*e,a*n,r,a,0,0,r,a);return{canvas:o.canvas,scaleX:n.scale,scaleY:i.scale,offsetX:h,offsetY:f}}return{canvas:M.canvas,scaleX:E.scale,scaleY:N.scale,offsetX:h,offsetY:f}}getSizeAndScale(e,t,n){const i=Math.max(Av.MAX_PATTERN_SIZE,t);let r=Math.ceil(e*n);return r>=i?r=i:n=r/e,{scale:n,size:r}}clipBbox(e,t,n,i,r){const a=i-t,o=r-n;e.ctx.rect(t,n,a,o),Ic.axialAlignedBoundingBox([t,n,i,r],cu(e.ctx),e.current.minMax),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const i=e.ctx,r=e.current;switch(t){case kv:const{fillStyle:e,strokeStyle:a}=this.ctx;i.fillStyle=r.fillColor=e,i.strokeStyle=r.strokeColor=a;break;case Cv:i.fillStyle=i.strokeStyle=n,r.fillColor=r.strokeColor=n;break;default:throw new Pc("Unsupported paint type: ".concat(t))}}isModifyingCurrentTransform(){return!1}getPattern(e,t,n,i,r){let a=n;i!==vv&&(a=Ic.transform(a,t.baseTransform),this.matrix&&(a=Ic.transform(a,this.matrix)));const o=this.createPatternCanvas(t,r);let s=new DOMMatrix(a);s=s.translate(o.offsetX,o.offsetY),s=s.scale(1/o.scaleX,1/o.scaleY);const l=e.createPattern(o.canvas,"repeat");return l.setTransform(s),l}}function Tv(e){let{src:t,srcPos:n=0,dest:i,width:r,height:a,nonBlackColor:o=4294967295,inverseDecode:s=!1}=e;const l=Rc.isLittleEndian?4278190080:255,[c,u]=s?[o,l]:[l,o],d=r>>3,h=7&r,f=t.length;i=new Uint32Array(i.buffer);let p=0;for(let g=0;g<a;g++){for(const r=n+d;n<r;n++){const e=n<f?t[n]:255;i[p++]=128&e?u:c,i[p++]=64&e?u:c,i[p++]=32&e?u:c,i[p++]=16&e?u:c,i[p++]=8&e?u:c,i[p++]=4&e?u:c,i[p++]=2&e?u:c,i[p++]=1&e?u:c}if(0===h)continue;const e=n<f?t[n++]:255;for(let t=0;t<h;t++)i[p++]=e&1<<7-t?u:c}return{srcPos:n,destPos:p}}Qe(Av,"MAX_PATTERN_SIZE",3e3);const Ev=16,Nv=new DOMMatrix,Mv=new Float32Array(2),Pv=new Float32Array([1/0,1/0,-1/0,-1/0]);class Uv{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,n)):(i=this.canvasFactory.create(t,n),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function jv(e,t,n,i,r,a,o,s,l,c){const[u,d,h,f,p,g]=cu(e);if(0===d&&0===h){const m=o*u+p,v=Math.round(m),b=s*f+g,y=Math.round(b),x=(o+l)*u+p,w=Math.abs(Math.round(x)-v)||1,_=(s+c)*f+g,D=Math.abs(Math.round(_)-y)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(f),v,y),e.drawImage(t,n,i,r,a,0,0,w,D),e.setTransform(u,d,h,f,p,g),[w,D]}if(0===u&&0===f){const m=s*h+p,v=Math.round(m),b=o*d+g,y=Math.round(b),x=(s+c)*h+p,w=Math.abs(Math.round(x)-v)||1,_=(o+l)*d+g,D=Math.abs(Math.round(_)-y)||1;return e.setTransform(0,Math.sign(d),Math.sign(h),0,v,y),e.drawImage(t,n,i,r,a,0,0,D,w),e.setTransform(u,d,h,f,p,g),[D,w]}e.drawImage(t,n,i,r,a,o,s,l,c);return[Math.hypot(u,d)*l,Math.hypot(h,f)*c]}class Fv{constructor(e,t,n){Qe(this,"alphaIsShape",!1),Qe(this,"fontSize",0),Qe(this,"fontSizeScale",1),Qe(this,"textMatrix",null),Qe(this,"textMatrixScale",1),Qe(this,"fontMatrix",Fl),Qe(this,"leading",0),Qe(this,"x",0),Qe(this,"y",0),Qe(this,"lineX",0),Qe(this,"lineY",0),Qe(this,"charSpacing",0),Qe(this,"wordSpacing",0),Qe(this,"textHScale",1),Qe(this,"textRenderingMode",Ql),Qe(this,"textRise",0),Qe(this,"fillColor","#000000"),Qe(this,"strokeColor","#000000"),Qe(this,"patternFill",!1),Qe(this,"patternStroke",!1),Qe(this,"fillAlpha",1),Qe(this,"strokeAlpha",1),Qe(this,"lineWidth",1),Qe(this,"activeSMask",null),Qe(this,"transferMaps","none"),null===n||void 0===n||n(this),this.clipBox=new Float32Array([0,0,e,t]),this.minMax=Pv.slice()}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e.minMax=this.minMax.slice(),e}getPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gv,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=this.minMax.slice();if(e===mv){t||_c("Stroke bounding box must include transform."),Ic.singularValueDecompose2dScale(t,Mv);const e=Mv[0]*this.lineWidth/2,i=Mv[1]*this.lineWidth/2;n[0]-=e,n[1]-=i,n[2]+=e,n[3]+=i}return n}updateClipFromPath(){const e=Ic.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(e){this.clipBox.set(e,0),this.minMax.set(Pv,0)}getClippedPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gv,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Ic.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function Rv(e,t){if(t instanceof ImageData)return void e.putImageData(t,0,0);const n=t.height,i=t.width,r=n%Ev,a=(n-r)/Ev,o=0===r?a:a+1,s=e.createImageData(i,Ev);let l,c=0;const u=t.data,d=s.data;let h,f,p,g;if(t.kind===ic.GRAYSCALE_1BPP){const t=u.byteLength,n=new Uint32Array(d.buffer,0,d.byteLength>>2),g=n.length,m=i+7>>3,v=4294967295,b=Rc.isLittleEndian?4278190080:255;for(h=0;h<o;h++){for(p=h<a?Ev:r,l=0,f=0;f<p;f++){const e=t-c;let r=0;const a=e>m?i:8*e-7,o=-8&a;let s=0,d=0;for(;r<o;r+=8)d=u[c++],n[l++]=128&d?v:b,n[l++]=64&d?v:b,n[l++]=32&d?v:b,n[l++]=16&d?v:b,n[l++]=8&d?v:b,n[l++]=4&d?v:b,n[l++]=2&d?v:b,n[l++]=1&d?v:b;for(;r<a;r++)0===s&&(d=u[c++],s=128),n[l++]=d&s?v:b,s>>=1}for(;l<g;)n[l++]=0;e.putImageData(s,0,h*Ev)}}else if(t.kind===ic.RGBA_32BPP){for(f=0,g=i*Ev*4,h=0;h<a;h++)d.set(u.subarray(c,c+g)),c+=g,e.putImageData(s,0,f),f+=Ev;h<o&&(g=i*r*4,d.set(u.subarray(c,c+g)),e.putImageData(s,0,f))}else{if(t.kind!==ic.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(p=Ev,g=i*p,h=0;h<o;h++){for(h>=a&&(p=r,g=i*p),l=0,f=g;f--;)d[l++]=u[c++],d[l++]=u[c++],d[l++]=u[c++],d[l++]=255;e.putImageData(s,0,h*Ev)}}}function Ov(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,i=t.width,r=n%Ev,a=(n-r)/Ev,o=0===r?a:a+1,s=e.createImageData(i,Ev);let l=0;const c=t.data,u=s.data;for(let d=0;d<o;d++){const t=d<a?Ev:r;({srcPos:l}=Tv({src:c,srcPos:l,dest:u,width:i,height:t,nonBlackColor:0})),e.putImageData(s,0,d*Ev)}}function Iv(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const i of n)void 0!==e[i]&&(t[i]=e[i]);void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function Lv(e){e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0);const{filter:t}=e;"none"!==t&&""!==t&&(e.filter="none")}function Bv(e,t){if(t)return!0;Ic.singularValueDecompose2dScale(e,Mv);const n=Math.fround(hu.pixelRatio*$c.PDF_TO_CSS_UNITS);return Mv[0]<=n&&Mv[1]<=n}const Wv=["butt","round","square"],zv=["miter","round","bevel"],Vv={},Hv={};var qv=new WeakSet;class Gv{constructor(e,t,n,i,r,a,o,s,l){let{optionalContentConfig:c,markedContentStack:u=null}=a;
2ll(this,qv),this.ctx=e,this.current=new Fv(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=i,this.filterFactory=r,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=u||[],this.optionalContentConfig=c,this.cachedCanvases=new Uv(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=s,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=null!==l&&void 0!==l?l:null}getObject(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var i;return"string"===typeof t?(null===(i=this.dependencyTracker)||void 0===i||i.recordNamedDependency(e,t),t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t)):n}beginDrawing(e){let{transform:t,viewport:n,transparency:i=!1,background:r=null}=e;const a=this.ctx.canvas.width,o=this.ctx.canvas.height,s=this.ctx.fillStyle;if(this.ctx.fillStyle=r||"#ffffff",this.ctx.fillRect(0,0,a,o),this.ctx.fillStyle=s,i){const e=this.cachedCanvases.getCanvas("transparent",a,o);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...cu(this.compositeCtx))}this.ctx.save(),Lv(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=cu(this.ctx)}executeOperatorList(e,t,n,i,r){const a=e.argsArray,o=e.fnArray;let s=t||0;const l=a.length;if(l===s)return s;const c=l-s>10&&"function"===typeof n,u=c?Date.now()+15:0;let d=0;const h=this.commonObjs,f=this.objs;let p,g;for(;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,n),s;var m;if(!r||r(s))if(p=o[s],g=null!==(m=a[s])&&void 0!==m?m:null,p!==dc.dependency)null===g?this[p](s):this[p](s,...g);else for(const e of g){var v;null===(v=this.dependencyTracker)||void 0===v||v.recordNamedData(e,s);const t=e.startsWith("g_")?h:f;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++d>10){if(Date.now()>u)return n(),s;d=0}}}endDrawing(){ul(qv,this,Yv).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),ul(qv,this,Xv).call(this)}_scaleImage(e,t){var n,i;const r=null!==(n=e.width)&&void 0!==n?n:e.displayWidth,a=null!==(i=e.height)&&void 0!==i?i:e.displayHeight;let o,s,l=Math.max(Math.hypot(t[0],t[1]),1),c=Math.max(Math.hypot(t[2],t[3]),1),u=r,d=a,h="prescale1";for(;l>2&&u>1||c>2&&d>1;){let t=u,n=d;l>2&&u>1&&(t=u>=16384?Math.floor(u/2)-1||1:Math.ceil(u/2),l/=u/t),c>2&&d>1&&(n=d>=16384?Math.floor(d/2)-1||1:Math.ceil(d)/2,c/=d/n),o=this.cachedCanvases.getCanvas(h,t,n),s=o.context,s.clearRect(0,0,t,n),s.drawImage(e,0,0,u,d,0,0,t,n),e=o.canvas,u=t,d=n,h="prescale1"===h?"prescale2":"prescale1"}return{img:e,paintWidth:u,paintHeight:d}}_createMaskCanvas(e,t){var n;const i=this.ctx,{width:r,height:a}=t,o=this.current.fillColor,s=this.current.patternFill,l=cu(i);let c,u,d,h;if((t.bitmap||t.data)&&t.count>1){const n=t.bitmap||t.data.buffer;u=JSON.stringify(s?l:[l.slice(0,4),o]),c=this._cachedBitmapsMap.get(n),c||(c=new Map,this._cachedBitmapsMap.set(n,c));const i=c.get(u);if(i&&!s){var f;const t=Math.round(Math.min(l[0],l[2])+l[4]),n=Math.round(Math.min(l[1],l[3])+l[5]);return null===(f=this.dependencyTracker)||void 0===f||f.recordDependencies(e,pv),{canvas:i,offsetX:t,offsetY:n}}d=i}d||(h=this.cachedCanvases.getCanvas("maskCanvas",r,a),Ov(h.context,t));let p=Ic.transform(l,[1/r,0,0,-1/a,0,0]);p=Ic.transform(p,[1,0,0,1,0,-a]);const g=Pv.slice();Ic.axialAlignedBoundingBox([0,0,r,a],p,g);const[m,v,b,y]=g,x=Math.round(b-m)||1,w=Math.round(y-v)||1,_=this.cachedCanvases.getCanvas("fillCanvas",x,w),D=_.context,S=m,k=v;D.translate(-S,-k),D.transform(...p),d||(d=this._scaleImage(h.canvas,uu(D)),d=d.img,c&&s&&c.set(u,d)),D.imageSmoothingEnabled=Bv(cu(D),t.interpolate),jv(D,d,0,0,d.width,d.height,0,0,r,a),D.globalCompositeOperation="source-in";const C=Ic.transform(uu(D),[1,0,0,1,-S,-k]);return D.fillStyle=s?o.getPattern(i,this,C,gv,e):o,D.fillRect(0,0,r,a),c&&!s&&(this.cachedCanvases.delete("fillCanvas"),c.set(u,_.canvas)),null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(e,pv),{canvas:_.canvas,offsetX:Math.round(S),offsetY:Math.round(k)}}setLineWidth(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("lineWidth",e),t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("lineCap",e),this.ctx.lineCap=Wv[t]}setLineJoin(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("lineJoin",e),this.ctx.lineJoin=zv[t]}setMiterLimit(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("miterLimit",e),this.ctx.miterLimit=t}setDash(e,t,n){var i;null===(i=this.dependencyTracker)||void 0===i||i.recordSimpleData("dash",e);const r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(t),r.lineDashOffset=n)}
2setRenderingIntent(e,t){}setFlatness(e,t){}setGState(e,t){var n,i,r,a,o;for(const[s,l]of t)switch(s){case"LW":this.setLineWidth(e,l);break;case"LC":this.setLineCap(e,l);break;case"LJ":this.setLineJoin(e,l);break;case"ML":this.setMiterLimit(e,l);break;case"D":this.setDash(e,l[0],l[1]);break;case"RI":this.setRenderingIntent(e,l);break;case"FL":this.setFlatness(e,l);break;case"Font":this.setFont(e,l[0],l[1]);break;case"CA":null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("strokeAlpha",e),this.current.strokeAlpha=l;break;case"ca":null===(i=this.dependencyTracker)||void 0===i||i.recordSimpleData("fillAlpha",e),this.ctx.globalAlpha=this.current.fillAlpha=l;break;case"BM":null===(r=this.dependencyTracker)||void 0===r||r.recordSimpleData("globalCompositeOperation",e),this.ctx.globalCompositeOperation=l;break;case"SMask":null===(a=this.dependencyTracker)||void 0===a||a.recordSimpleData("SMask",e),this.current.activeSMask=l?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":null===(o=this.dependencyTracker)||void 0===o||o.recordSimpleData("filter",e),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(l)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(e){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,n=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(i,t,n);this.suspendedCtx=this.ctx;const a=this.ctx=r.context;a.setTransform(this.suspendedCtx.getTransform()),Iv(this.suspendedCtx,a),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,i,r,a,o){t.transform(e,n,i,r,a,o),this.__originalTransform(e,n,i,r,a,o)},e.setTransform=function(e,n,i,r,a,o){t.setTransform(e,n,i,r,a,o),this.__originalSetTransform(e,n,i,r,a,o)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,i,r,a,o){t.bezierCurveTo(e,n,i,r,a,o),this.__originalBezierCurveTo(e,n,i,r,a,o)},e.rect=function(e,n,i,r){t.rect(e,n,i,r),this.__originalRect(e,n,i,r)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(a,this.suspendedCtx),this.setGState(e,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Iv(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore(
2)}composeSMask(e,t,n,i){const r=i[0],a=i[1],o=i[2]-r,s=i[3]-a;0!==o&&0!==s&&(this.genericComposeSMask(t.context,n,o,s,t.subtype,t.backdrop,t.transferMap,r,a,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}genericComposeSMask(e,t,n,i,r,a,o,s,l,c,u){let d=e.canvas,h=s-c,f=l-u;if(a)if(h<0||f<0||h+n>d.width||f+i>d.height){const e=this.cachedCanvases.getCanvas("maskExtension",n,i),t=e.context;t.drawImage(d,-h,-f),t.globalCompositeOperation="destination-atop",t.fillStyle=a,t.fillRect(0,0,n,i),t.globalCompositeOperation="source-over",d=e.canvas,h=f=0}else{e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const t=new Path2D;t.rect(h,f,n,i),e.clip(t),e.globalCompositeOperation="destination-atop",e.fillStyle=a,e.fillRect(h,f,n,i),e.restore()}t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0),"Alpha"===r&&o?t.filter=this.filterFactory.addAlphaFilter(o):"Luminosity"===r&&(t.filter=this.filterFactory.addLuminosityFilter(o));const p=new Path2D;p.rect(s,l,n,i),t.clip(p),t.globalCompositeOperation="destination-in",t.drawImage(d,h,f,n,i,s,l,n,i),t.restore()}save(e){var t;this.inSMaskMode&&Iv(this.ctx,this.suspendedCtx),this.ctx.save();const n=this.current;this.stateStack.push(n),this.current=n.clone(),null===(t=this.dependencyTracker)||void 0===t||t.save(e)}restore(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.restore(e),0!==this.stateStack.length?(this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&Iv(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null):this.inSMaskMode&&this.endSMaskMode()}transform(e,t,n,i,r,a,o){var s;null===(s=this.dependencyTracker)||void 0===s||s.recordIncrementalData("transform",e),this.ctx.transform(t,n,i,r,a,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n,i){let[r]=n;if(!i)return r||(r=n[0]=new Path2D),void this[t](e,r);if(null!==this.dependencyTracker){const n=t===dc.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(e).recordBBox(e,this.ctx,i[0]-n,i[2]+n,i[1]-n,i[3]+n).recordDependencies(e,["transform"])}r instanceof Path2D||(r=n[0]=wu(r)),Ic.axialAlignedBoundingBox(i,cu(this.ctx),this.current.minMax),this[t](e,r),this._pathStartIdx=e}closePath(e){this.ctx.closePath()}stroke(e,t){var n;let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this.ctx,a=this.current.strokeColor;if(r.globalAlpha=this.current.strokeAlpha,this.contentVisible)if("object"===typeof a&&null!==a&&void 0!==a&&a.getPattern){const n=a.isModifyingCurrentTransform()?r.getTransform():null;if(r.save(),r.strokeStyle=a.getPattern(r,this,uu(r),mv,e),n){const e=new Path2D;e.addPath(t,r.getTransform().invertSelf().multiplySelf(n)),t=e}this.rescaleAndStroke(t,!1),r.restore()}else this.rescaleAndStroke(t,!0);null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(e,lv),i&&this.consumePath(e,t,this.current.getClippedPathBoundingBox(mv,cu(this.ctx))),r.globalAlpha=this.current.fillAlpha}closeStroke(e,t){this.stroke(e,t)}fill(e,t){var n;let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=this.ctx,a=this.current.fillColor;let o=!1;if(this.current.patternFill){var s;const n=a.isModifyingCurrentTransform()?r.getTransform():null;if(null===(s=this.dependencyTracker)||void 0===s||s.save(e),r.save(),r.fillStyle=a.getPattern(r,this,uu(r),gv,e),n){const e=new Path2D;e.addPath(t,r.getTransform().invertSelf().multiplySelf(n)),t=e}o=!0}const l=this.current.getClippedPathBoundingBox();var c;(this.contentVisible&&null!==l&&(this.pendingEOFill?(r.fill(t,"evenodd"),this.pendingEOFill=!1):r.fill(t)),null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(e,cv),o)&&(r.restore(),null===(c=this.dependencyTracker)||void 0===c||c.restore(e));i&&this.consumePath(e,t,l)}eoFill(e,t){this.pendingEOFill=!0,this.fill(e,t)}fillStroke(e,t){this.fill(e,t,!1),this.stroke(e,t,!1),this.consumePath(e,t)}eoFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}closeFillStroke(e,t){this.fillStroke(e,t)}closeEOFillStroke(e,t){this.pendingEOFill=!0,this.fillStroke(e,t)}endPath(e,t){this.consumePath(e,t)}rawFillPath(e,t){var n;this.ctx.fill(t),null===(n=this.dependencyTracker)||void 0===n||n.recordDependencies(e,dv).recordOperation(e)}clip(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.recordFutureForcedDependency("clipMode",e),this.pendingClip=Vv}eoClip(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.recordFutureForcedDependency("clipMode",e),this.pendingClip=Hv}beginText(e){var t;this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,null===(t=this.dependencyTracker)||void 0===t||t.recordOpenMarker(e).resetIncrementalData("sameLineText").resetIncrementalData("moveText",e)}endText(e){const t=this.pendingTextPaths,n=this.ctx;if(this.dependencyTracker){const{dependencyTracker:n}=this;void 0!==t&&n.recordFutureForcedDependency("textClip",n.getOpenMarker()).recordFutureForcedDependency("textClip",e),n.recordCloseMarker(e)}if(void 0!==t){const e=new Path2D,i=n.getTransform().invertSelf();for(const{transform:n,x:r,y:a,fontSize:o,path:s}of t)s&&e.addPath(s,new DOMMatrix(n).preMultiplySelf(i).translate(r,a).scale(o,-o));n.clip(e)}delete this.pendingTextPaths}setCharSpacing(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("charSpacing",e),this.current.charSpacing=t}setWordSpacing(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("wordSpacing",e),this.current.wordSpacing=t}setHScale(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("hScale",e),this.current.textHScale=t/100}setLeading(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("leading",e),this.current.leading=-t}setFont(e,t,n){var i,r;null===(i=this.dependencyTracker)||void 0===i||i.recordSimpleData("font",e).recordSimpleDataFromNamed("fontObj",t,e);const a=this.commonObjs.get(t),o=this.current;if(!a)throw new Error("Can't find font for ".concat(t));if(o.fontMatrix=a.fontMatrix||Fl,0!==o.fontMatrix[0]&&0!==o.fontMatrix[3]||wc("Invalid font matrix for font "+t),n<0?(n=-n,o.fontDirection=-1):o.fontDirection=1,this.current.font=a,this.current.fontSize=n,a.isType3Font)return;const s=a.loadedName||"sans-serif",l=(null===(r=a.systemFontInfo)||void 0===r?void 0:r.css)||'"'.concat(s,'", ').concat(a.fallbackName);let c="normal";a.black?c="900":a.bold&&(c="bold");const u=a.italic?"italic":"normal";let d=n;n<16?d=16:n>100&&(d=100),this.current.fontSizeScale=n/d,this.ctx.font="".concat(u," ").concat(c," ").concat(d,"px ").concat(l)}setTextRenderingMode(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("textRenderingMode",e),this.current.textRenderingMode=t}setTextRise(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("textRise",e),this.current.textRise=t}moveText(e,t,n){var i;null===(i=this.dependencyTracker)||void 0===i||i.resetIncrementalData("sameLineText").recordIncrementalData("moveText",e),this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(e,t,n){this.setLeading(e,-n),this.moveText(e,t,n)}setTextMatrix(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.resetIncrementalData("sameLineText").recordSimpleData("textMatrix",e);const{current:i}=this;i.textMatrix=t,i.textMatrixScale=Math.hypot(t[0],t[1]),i.x=i.lineX=0,i.y=i.lineY=0}nextLine(e){var t,n;this.moveText(e,0,this.current.leading),null===(t=this.dependencyTracker)||void 0===t||t.recordIncrementalData("moveText",null!==(n=this.dependencyTracker.getSimpleIndex("leading"))&&void 0!==n?n:e)}
2paintChar(e,t,n,i,r,a){const o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&tc,h=!!(c&nc),f=s.patternFill&&!l.missingFile,p=s.patternStroke&&!l.missingFile;let g;if((l.disableFontFace||h||f||p)&&!l.missingFile&&(g=l.getPathGenerator(this.commonObjs,t)),g&&(l.disableFontFace||f||p)){var m;let t;if(o.save(),o.translate(n,i),o.scale(u,-u),null===(m=this.dependencyTracker)||void 0===m||m.recordCharacterBBox(e,o,l),d===Ql||d===Jl)if(r){t=o.getTransform(),o.setTransform(...r);const e=ul(qv,this,Kv).call(this,g,t,r);o.fill(e)}else o.fill(g);if(d===Zl||d===Jl)if(a){t||(t=o.getTransform()),o.setTransform(...a);const{a:e,b:n,c:i,d:r}=t,s=Ic.inverseTransform(a),l=Ic.transform([e,n,i,r,0,0],s);Ic.singularValueDecompose2dScale(l,Mv),o.lineWidth*=Math.max(Mv[0],Mv[1])/u,o.stroke(ul(qv,this,Kv).call(this,g,t,a))}else o.lineWidth/=u,o.stroke(g);o.restore()}else{var v;if(d===Ql||d===Jl)o.fillText(t,n,i),null===(v=this.dependencyTracker)||void 0===v||v.recordCharacterBBox(e,o,l,u,n,i,(()=>o.measureText(t)));if(d===Zl||d===Jl){var b;if(this.dependencyTracker)null===(b=this.dependencyTracker)||void 0===b||b.recordCharacterBBox(e,o,l,u,n,i,(()=>o.measureText(t))).recordDependencies(e,lv);o.strokeText(t,n,i)}}if(h){var y;(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:cu(o),x:n,y:i,fontSize:u,path:g}),null===(y=this.dependencyTracker)||void 0===y||y.recordCharacterBBox(e,o,l,u,n,i)}}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){n=!0;break}return Cc(this,"isFontSubpixelAAEnabled",n)}showText(e,t){var n;this.dependencyTracker&&(this.dependencyTracker.recordDependencies(e,hv).resetBBox(e),this.current.textRenderingMode&nc&&this.dependencyTracker.recordFutureForcedDependency("textClip",e).inheritPendingDependenciesAsFutureForcedDependencies());const i=this.current,r=i.font;var a;if(r.isType3Font)return this.showType3Text(e,t),void(null===(a=this.dependencyTracker)||void 0===a||a.recordShowTextOperation(e));const o=i.fontSize;var s;if(0===o)return void(null===(s=this.dependencyTracker)||void 0===s||s.recordOperation(e));const l=this.ctx,c=i.fontSizeScale,u=i.charSpacing,d=i.wordSpacing,h=i.fontDirection,f=i.textHScale*h,p=t.length,g=r.vertical,m=g?1:-1,v=r.defaultVMetrics,b=o*i.fontMatrix[0],y=i.textRenderingMode===Ql&&!r.disableFontFace&&!i.patternFill;let x,w;if(l.save(),i.textMatrix&&l.transform(...i.textMatrix),l.translate(i.x,i.y+i.textRise),h>0?l.scale(f,-1):l.scale(f,1),i.patternFill){l.save();const t=i.fillColor.getPattern(l,this,uu(l),gv,e);x=cu(l),l.restore(),l.fillStyle=t}if(i.patternStroke){l.save();const t=i.strokeColor.getPattern(l,this,uu(l),mv,e);w=cu(l),l.restore(),l.strokeStyle=t}let _=i.lineWidth;const D=i.textMatrixScale;if(0===D||0===_){const e=i.textRenderingMode&tc;e!==Zl&&e!==Jl||(_=this.getSinglePixelWidth())}else _/=D;if(1!==c&&(l.scale(c,c),_/=c),l.lineWidth=_,r.isInvalidPDFjsFont){const n=[];let r=0;for(const e of t)n.push(e.unicode),r+=e.width;const a=n.join("");if(l.fillText(a,0,0),null!==this.dependencyTracker){const t=l.measureText(a);this.dependencyTracker.recordBBox(e,this.ctx,-t.actualBoundingBoxLeft,t.actualBoundingBoxRight,-t.actualBoundingBoxAscent,t.actualBoundingBoxDescent).recordShowTextOperation(e)}return i.x+=r*b*f,l.restore(),void this.compose()}let S,k=0;for(S=0;S<p;++S){const n=t[S];if("number"===typeof n){k+=m*n*o/1e3;continue}let i=!1;const a=(n.isSpace?d:0)+u,s=n.fontChar,f=n.accent;let p,_,D,A=n.width;if(g){const e=n.vmetric||v,t=-(n.vmetric?e[1]:.5*A)*b,i=e[2]*b;A=e?-e[0]:A,p=t/c,_=(k+i)/c}else p=k/c,_=0;if(r.remeasure&&A>0){D=l.measureText(s);const e=1e3*D.width/o*c;if(A<e&&this.isFontSubpixelAAEnabled){const t=A/e;i=!0,l.save(),l.scale(t,1),p/=t}else A!==e&&(p+=(A-e)/2e3*o/c)}var C;if(this.contentVisible&&(n.isInFont||r.missingFile))if(y&&!f)l.fillText(s,p,_),null===(C=this.dependencyTracker)||void 0===C||C.recordCharacterBBox(e,l,D?{bbox:null}:r,o/c,p,_,(()=>{var e;return null!==(e=D)&&void 0!==e?e:l.measureText(s)}));else if(this.paintChar(e,s,p,_,x,w),f){const t=p+o*f.offset.x/c,n=_-o*f.offset.y/c;this.paintChar(e,f.fontChar,t,n,x,w)}
2k+=g?A*b-a*h:A*b+a*h,i&&l.restore()}g?i.y-=k:i.x+=k*f,l.restore(),this.compose(),null===(n=this.dependencyTracker)||void 0===n||n.recordShowTextOperation(e)}showType3Text(e,t){const n=this.ctx,i=this.current,r=i.font,a=i.fontSize,o=i.fontDirection,s=r.vertical?1:-1,l=i.charSpacing,c=i.wordSpacing,u=i.textHScale*o,d=i.fontMatrix||Fl,h=t.length;let f,p,g,m;if(i.textRenderingMode===ec||0===a)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),i.textMatrix&&n.transform(...i.textMatrix),n.translate(i.x,i.y+i.textRise),n.scale(u,o);const v=this.dependencyTracker;for(this.dependencyTracker=v?new sv(v,e):null,f=0;f<h;++f){if(p=t[f],"number"===typeof p){m=s*p*a/1e3,this.ctx.translate(m,0),i.x+=m*u;continue}const e=(p.isSpace?c:0)+l,o=r.charProcOperatorList[p.operatorListId];o?this.contentVisible&&(this.save(),n.scale(a,a),n.transform(...d),this.executeOperatorList(o),this.restore()):wc('Type3 character "'.concat(p.operatorListId,'" is not available.'));const h=[p.width,0];Ic.applyTransform(h,d),g=h[0]*a+e,n.translate(g,0),i.x+=g*u}
2n.restore(),v&&(this.dependencyTracker=v)}setCharWidth(e,t,n){}setCharWidthAndBounds(e,t,n,i,r,a,o){var s;const l=new Path2D;l.rect(i,r,a-i,o-r),this.ctx.clip(l),null===(s=this.dependencyTracker)||void 0===s||s.recordBBox(e,this.ctx,i,a,r,o).recordClipBox(e,this.ctx,i,a,r,o),this.endPath(e)}getColorN_Pattern(e,t){let n;if("TilingPattern"===t[0]){const e=this.baseTransform||cu(this.ctx),i={createCanvasGraphics:(e,t)=>new Gv(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new sv(this.dependencyTracker,t,!0):null)};n=new Av(t,this.ctx,i,e)}else n=this._getPattern(e,t[1],t[2]);return n}setStrokeColorN(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.recordSimpleData("strokeColor",e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.current.strokeColor=this.getColorN_Pattern(e,i),this.current.patternStroke=!0}setFillColorN(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.recordSimpleData("fillColor",e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.current.fillColor=this.getColorN_Pattern(e,i),this.current.patternFill=!0}setStrokeRGBColor(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor=t,this.current.patternStroke=!1}
2setStrokeTransparent(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor=t,this.current.patternFill=!1}setFillTransparent(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,t){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.cachedPatterns.has(t)?n=this.cachedPatterns.get(t):(n=function(e){switch(e[0]){case"RadialAxial":return new xv(e);case"Mesh":return new Dv(e);case"Dummy":return new Sv}throw new Error("Unknown IR type: ".concat(e[0]))}(this.getObject(e,t)),this.cachedPatterns.set(t,n)),i&&(n.matrix=i),n}shadingFill(e,t){var n;if(!this.contentVisible)return;const i=this.ctx;this.save(e);const r=this._getPattern(e,t);i.fillStyle=r.getPattern(i,this,uu(i),vv,e);const a=uu(i);if(a){const{width:e,height:t}=i.canvas,n=Pv.slice();Ic.axialAlignedBoundingBox([0,0,e,t],a,n);const[r,o,s,l]=n;this.ctx.fillRect(r,o,s-r,l-o)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(e).recordFullPageBBox(e).recordDependencies(e,fv).recordDependencies(e,cv).recordOperation(e),this.compose(this.current.getClippedPathBoundingBox()),this.restore(e)}beginInlineImage(){_c("Should not call beginInlineImage")}beginImageData(){_c("Should not call beginImageData")}paintFormXObjectBegin(e,t,n){if(this.contentVisible&&(this.save(e),this.baseTransformStack.push(this.baseTransform),t&&this.transform(e,...t),this.baseTransform=cu(this.ctx),n)){var i;Ic.axialAlignedBoundingBox(n,this.baseTransform,this.current.minMax);const[t,r,a,o]=n,s=new Path2D;s.rect(t,r,a-t,o-r),this.ctx.clip(s),null===(i=this.dependencyTracker)||void 0===i||i.recordClipBox(e,this.ctx,t,a,r,o),this.endPath(e)}}paintFormXObjectEnd(e){this.contentVisible&&(this.restore(e),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e,t){var n;if(!this.contentVisible)return;this.save(e),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const i=this.ctx;t.isolated||xc("TODO: Support non-isolated groups."),t.knockout&&wc("Knockout groups not supported.");const r=cu(i);if(t.matrix&&i.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=Pv.slice();Ic.axialAlignedBoundingBox(t.bbox,cu(i),a);const o=[0,0,i.canvas.width,i.canvas.height];a=Ic.intersect(a,o)||[0,0,0,0];const s=Math.floor(a[0]),l=Math.floor(a[1]),c=Math.max(Math.ceil(a[2])-s,1),u=Math.max(Math.ceil(a[3])-l,1);this.current.startNewPathAndClipBox([0,0,c,u]);let d="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(d,c,u),f=h.context;f.translate(-s,-l),f.transform(...r);let p=new Path2D;const[g,m,v,b]=t.bbox;if(p.rect(g,m,v-g,b-m),t.matrix){const e=new Path2D;e.addPath(p,new DOMMatrix(t.matrix)),p=e}f.clip(p),t.smask&&this.smaskStack.push({canvas:h.canvas,context:f,offsetX:s,offsetY:l,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}),t.smask&&!this.dependencyTracker||(i.setTransform(1,0,0,1,0,0),i.translate(s,l),i.save()),Iv(i,f),this.ctx=f,null===(n=this.dependencyTracker)||void 0===n||n.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(i),this.setGState(e,[["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++}endGroup(e,t){var n;if(!this.contentVisible)return;this.groupLevel--;const i=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,null===(n=this.dependencyTracker)||void 0===n||n.popBaseTransform(),t.smask)this.tempSMask=this.smaskStack.pop(),this.restore(e),this.dependencyTracker&&this.ctx.restore();else{this.ctx.restore();const t=cu(this.ctx);this.restore(e),this.ctx.save(),this.ctx.setTransform(...t);const n=Pv.slice();Ic.axialAlignedBoundingBox([0,0,i.canvas.width,i.canvas.height],t,n),this.ctx.drawImage(i.canvas,0,0),this.ctx.restore(
2),this.compose(n)}}beginAnnotation(e,t,n,i,r,a){if(ul(qv,this,Yv).call(this),Lv(this.ctx),this.ctx.save(),this.save(e),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const r=n[2]-n[0],o=n[3]-n[1];if(a&&this.annotationCanvasMap){(i=i.slice())[4]-=n[0],i[5]-=n[1],(n=n.slice())[0]=n[1]=0,n[2]=r,n[3]=o,Ic.singularValueDecompose2dScale(cu(this.ctx),Mv);const{viewportScale:e}=this,a=Math.ceil(r*this.outputScaleX*e),s=Math.ceil(o*this.outputScaleY*e);this.annotationCanvas=this.canvasFactory.create(a,s);const{canvas:l,context:c}=this.annotationCanvas;this.annotationCanvasMap.set(t,l),this.annotationCanvas.savedCtx=this.ctx,this.ctx=c,this.ctx.save(),this.ctx.setTransform(Mv[0],0,0,-Mv[1],0,o*Mv[1]),Lv(this.ctx)}else{Lv(this.ctx),this.endPath(e);const t=new Path2D;t.rect(n[0],n[1],r,o),this.ctx.clip(t)}}this.current=new Fv(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(e,...i),this.transform(e,...r)}endAnnotation(e){this.annotationCanvas&&(this.ctx.restore(),ul(qv,this,Xv).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e,t){var n;if(!this.contentVisible)return;const i=t.count;(t=this.getObject(e,t.data,t)).count=i;const r=this.ctx,a=this._createMaskCanvas(e,t),o=a.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(o,a.offsetX,a.offsetY),null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(e).recordBBox(e,this.ctx,a.offsetX,a.offsetX+o.width,a.offsetY,a.offsetY+o.height).recordOperation(e),r.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,n){var i,r;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0;if(!this.contentVisible)return;t=this.getObject(e,t.data,t);const c=this.ctx;c.save();const u=cu(c);c.transform(n,a,o,s,0,0);const d=this._createMaskCanvas(e,t);c.setTransform(1,0,0,1,d.offsetX-u[4],d.offsetY-u[5]),null===(i=this.dependencyTracker)||void 0===i||i.resetBBox(e);for(let f=0,p=l.length;f<p;f+=2){var h;const t=Ic.transform(u,[n,a,o,s,l[f],l[f+1]]);c.drawImage(d.canvas,t[4],t[5]),null===(h=this.dependencyTracker)||void 0===h||h.recordBBox(e,this.ctx,t[4],t[4]+d.canvas.width,t[5],t[5]+d.canvas.height)}c.restore(),this.compose(),null===(r=this.dependencyTracker)||void 0===r||r.recordOperation(e)}paintImageMaskXObjectGroup(e,t){var n,i;if(!this.contentVisible)return;const r=this.ctx,a=this.current.fillColor,o=this.current.patternFill;null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(e).recordDependencies(e,pv);for(const l of t){var s;const{data:t,width:n,height:i,transform:c}=l,u=this.cachedCanvases.getCanvas("maskCanvas",n,i),d=u.context;d.save();Ov(d,this.getObject(e,t,l)),d.globalCompositeOperation="source-in",d.fillStyle=o?a.getPattern(d,this,uu(r),gv,e):a,d.fillRect(0,0,n,i),d.restore(),r.save(),r.transform(...c),r.scale(1,-1),jv(r,u.canvas,0,0,n,i,0,-1,1,1),null===(s=this.dependencyTracker)||void 0===s||s.recordBBox(e,r,0,n,0,i),r.restore()}this.compose(),null===(i=this.dependencyTracker)||void 0===i||i.recordOperation(e)}paintImageXObject(e,t){if(!this.contentVisible)return;const n=this.getObject(e,t);n?this.paintInlineImageXObject(e,n):wc("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,n,i,r){if(!this.contentVisible)return;const a=this.getObject(e,t);if(!a)return void wc("Dependent image isn't ready yet");const o=a.width,s=a.height,l=[];for(let c=0,u=r.length;c<u;c+=2)l.push({transform:[n,0,0,i,r[c],r[c+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(e,a,l)}applyTransferMapsToCanvas(e){return"none"!==this.current.transferMaps&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if("none"===this.current.transferMaps)return e.bitmap;const{bitmap:t,width:n,height:i}=e,r=this.cachedCanvases.getCanvas("inlineImage",n,i),a=r.context;return a.filter=this.current.transferMaps,a.drawImage(t,0,0),a.filter="none",r.canvas}paintInlineImageXObject(e,t){var n;if(!this.contentVisible)return;
2const i=t.width,r=t.height,a=this.ctx;this.save(e);const{filter:o}=a;let s;if("none"!==o&&""!==o&&(a.filter="none"),a.scale(1/i,-1/r),t.bitmap)s=this.applyTransferMapsToBitmap(t);else if("function"===typeof HTMLElement&&t instanceof HTMLElement||!t.data)s=t;else{const e=this.cachedCanvases.getCanvas("inlineImage",i,r).context;Rv(e,t),s=this.applyTransferMapsToCanvas(e)}const l=this._scaleImage(s,uu(a));a.imageSmoothingEnabled=Bv(cu(a),t.interpolate),null===(n=this.dependencyTracker)||void 0===n||n.resetBBox(e).recordBBox(e,a,0,i,-r,0).recordDependencies(e,uv).recordOperation(e),jv(a,l.img,0,0,l.paintWidth,l.paintHeight,0,-r,i,r),this.compose(),this.restore(e)}paintInlineImageXObjectGroup(e,t,n){var i,r;if(!this.contentVisible)return;const a=this.ctx;let o;if(t.bitmap)o=t.bitmap;else{const e=t.width,n=t.height,i=this.cachedCanvases.getCanvas("inlineImage",e,n).context;Rv(i,t),o=this.applyTransferMapsToCanvas(i)}null===(i=this.dependencyTracker)||void 0===i||i.resetBBox(e);for(const l of n){var s;a.save(),a.transform(...l.transform),a.scale(1,-1),jv(a,o,l.x,l.y,l.w,l.h,0,-1,1,1),null===(s=this.dependencyTracker)||void 0===s||s.recordBBox(e,a,0,1,-1,0),a.restore()}null===(r=this.dependencyTracker)||void 0===r||r.recordOperation(e),this.compose()}paintSolidColorImageMask(e){var t;this.contentVisible&&(null===(t=this.dependencyTracker)||void 0===t||t.resetBBox(e).recordBBox(e,this.ctx,0,1,0,1).recordDependencies(e,cv).recordOperation(e),this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e,t){}markPointProps(e,t,n){}beginMarkedContent(e,t){var n;null===(n=this.dependencyTracker)||void 0===n||n.beginMarkedContent(e),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t,n){var i;null===(i=this.dependencyTracker)||void 0===i||i.beginMarkedContent(e),"OC"===t?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(n)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(e){var t;null===(t=this.dependencyTracker)||void 0===t||t.endMarkedContent(e),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(e){}endCompat(e){}consumePath(e,t,n){const i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(n);const r=this.ctx;var a,o;this.pendingClip?(i||(this.pendingClip===Hv?r.clip(t,"evenodd"):r.clip(t)),this.pendingClip=null,null===(a=this.dependencyTracker)||void 0===a||a.bboxToClipBoxDropOperation(e).recordFutureForcedDependency("clipPath",e)):null===(o=this.dependencyTracker)||void 0===o||o.recordOperation(e);this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=cu(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,i)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){const{lineWidth:e}=this.current,{a:t,b:n,c:i,d:r}=this.ctx.getTransform();let a,o;if(0===n&&0===i){const n=Math.abs(t),i=Math.abs(r);if(n===i)if(0===e)a=o=1/n;else{const t=n*e;a=o=t<1?1/t:1}else if(0===e)a=1/n,o=1/i;else{const t=n*e,r=i*e;a=t<1?1/t:1,o=r<1?1/r:1}}else{const s=Math.abs(t*r-n*i),l=Math.hypot(t,n),c=Math.hypot(i,r);if(0===e)a=c/s,o=l/s;else{const t=e*s;a=c>t?c/t:1,o=l>t?l/t:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(e,t){const{ctx:n,current:{lineWidth:i}}=this,[r,a]=this.getScaleForStroking();if(r===a)return n.lineWidth=(i||1)*r,void n.stroke(e);const o=n.getLineDash();t&&n.save(),n.scale(r,a),Nv.a=1/r,Nv.d=1/a;const s=new Path2D;if(s.addPath(e,Nv),o.length>0){const e=Math.max(r,a);n.setLineDash(o.map((t=>t/e))),n.lineDashOffset/=e}n.lineWidth=i||1,n.stroke(s),t&&n.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function Yv(){for(;this.stateStack.length||this.inSMaskMode;
2)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function Xv(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}function Kv(e,t,n){const i=new Path2D;return i.addPath(e,new DOMMatrix(n).invertSelf().multiplySelf(t)),i}for(const n in dc)void 0!==Gv.prototype[n]&&(Gv.prototype[dc[n]]=Gv.prototype[n]);class $v{static get workerPort(){return ul($v,this,Qv)._}static set workerPort(e){if(!("undefined"!==typeof Worker&&e instanceof Worker)&&null!==e)throw new Error("Invalid `workerPort` type.");Qv._=ul($v,this,e)}static get workerSrc(){return ul($v,this,Zv)._}static set workerSrc(e){if("string"!==typeof e)throw new Error("Invalid `workerSrc` type.");Zv._=ul($v,this,e)}}var Qv={_:null},Zv={_:""},Jv=new WeakMap,eb=new WeakMap;class tb{constructor(e){let{parsedData:t,rawData:n}=e;cl(this,Jv,void 0),cl(this,eb,void 0),fl(Jv,this,t),fl(eb,this,n)}getRaw(){return hl(eb,this)}get(e){var t;return null!==(t=hl(Jv,this).get(e))&&void 0!==t?t:null}[Symbol.iterator](){return hl(Jv,this).entries()}}const nb=Symbol("INTERNAL");var ib=new WeakMap,rb=new WeakMap,ab=new WeakMap,ob=new WeakMap;class sb{constructor(e,t){let{name:n,intent:i,usage:r,rbGroups:a}=t;cl(this,ib,!1),cl(this,rb,!1),cl(this,ab,!1),cl(this,ob,!0),fl(ib,this,!!(e&Il)),fl(rb,this,!!(e&Ll)),this.name=n,this.intent=i,this.usage=r,this.rbGroups=a}get visible(){if(hl(ab,this))return hl(ob,this);if(!hl(ob,this))return!1;const{print:e,view:t}=this.usage;return hl(ib,this)?"OFF"!==(null===t||void 0===t?void 0:t.viewState):!hl(rb,this)||"OFF"!==(null===e||void 0===e?void 0:e.printState)}_setVisible(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e!==nb&&_c("Internal method `_setVisible` called."),fl(ab,this,n),fl(ob,this,t)}}var lb=new WeakMap,cb=new WeakMap,ub=new WeakMap,db=new WeakMap,hb=new WeakSet;class fb{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Il;if(ll(this,hb),cl(this,lb,null),cl(this,cb,new Map),cl(this,ub,null),cl(this,db,null),this.renderingIntent=t,this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,fl(db,this,e.order);for(const n of e.groups)hl(cb,this).set(n.id,new sb(t,n));if("OFF"===e.baseState)for(const e of hl(cb,this).values())e._setVisible(nb,!1);for(const t of e.on)hl(cb,this).get(t)._setVisible(nb,!0);for(const t of e.off)hl(cb,this).get(t)._setVisible(nb,!1);fl(ub,this,this.getHash())}}isVisible(e){if(0===hl(cb,this).size)return!0;if(!e)return xc("Optional content group not defined."),!0;if("OCG"===e.type)return hl(cb,this).has(e.id)?hl(cb,this).get(e.id).visible:(wc("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return ul(hb,this,pb).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!hl(cb,this).has(t))return wc("Optional content group not found: ".concat(t)),!0;if(hl(cb,this).get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!hl(cb,this).has(t))return wc("Optional content group not found: ".concat(t)),!0;if(!hl(cb,this).get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!hl(cb,this).has(t))return wc("Optional content group not found: ".concat(t)),!0;if(!hl(cb,this).get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!hl(cb,this).has(t))return wc("Optional content group not found: ".concat(t)),!0;if(hl(cb,this).get(t).visible)return!1}return!0}return wc("Unknown optional content policy ".concat(e.policy,".")),!0}return wc("Unknown group type ".concat(e.type,".")),!0}setVisibility(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=hl(cb,this).get(e);if(i){if(n&&t&&i.rbGroups.length)for(const t of i.rbGroups)for(const n of t){var r;if(n!==e)null===(r=hl(cb,this).get(n))||void 0===r||r._setVisible(nb,!1,!0)}i._setVisible(nb,!!t,!0),fl(lb,this,null)}else wc("Optional content group not found: ".concat(e))}setOCGState(e){let t,{state:n,preserveRB:i}=e;for(const r of n){switch(r){case"ON":case"OFF":case"Toggle":t=r;continue}const e=hl(cb,this).get(r);if(e)switch(t){case"ON":this.setVisibility(r,!0,i);break;case"OFF":this.setVisibility(r,!1,i);break;case"Toggle":this.setVisibility(r,!e.visible,i)}}fl(lb,this,null)}get hasInitialVisibility(){return null===hl(ub,this)||this.getHash()===hl(ub,this)}getOrder(){return hl(cb,this).size?hl(db,this)?hl(db,this).slice():[...hl(cb,this).keys()]:null}getGroup(e){return hl(cb,this).get(e)||null}getHash(){if(null!==hl(lb,this))return hl(lb,this);const e=new Sp;for(const[t,n]of hl(cb,this))e.update("".concat(t,":").concat(n.visible));return fl(lb,this,e.hexdigest())}[Symbol.iterator](){return hl(cb,this).entries()}}function pb(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let i=1;i<t;i++){const t=e[i];let r;if(Array.isArray(t))r=ul(hb,this,pb).call(this,t);else{if(!hl(cb,this).has(t))return wc("Optional content group not found: ".concat(t)),!0;r=hl(cb,this).get(t).visible}switch(n){case"And":if(!r)return!1;break;case"Or":if(r)return!0;break;case"Not":return!r;default:return!0}}return"And"===n}class gb{constructor(e,t){let{disableRange:n=!1,disableStream:i=!1}=t;Dc(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:r,initialData:a,progressiveDone:o,contentDispositionFilename:s}=e;if(this._queuedChunks=[],this._progressiveDone=o,this._contentDispositionFilename=s,(null===a||void 0===a?void 0:a.length)>0){const e=a instanceof Uint8Array&&a.byteLength===a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!i,this._isRangeSupported=!n,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),e.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),e.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),e.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),e.transportReady()}_onReceiveData(e){let{begin:t,chunk:n}=e;const i=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{Dc(this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(i),!0)})),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}_onProgress(e){var t,n,i,r;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded}):null===(i=this._fullRequestReader)||void 0===i||null===(r=i.onProgress)||void 0===r||r.call(i,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){Dc(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new mb(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new vb(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeReaders.slice(0))n.cancel(e);this._pdfDataRangeTransport.abort()}}class mb{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=e,this._done=n||!1,this._filename=tu(i)?i:null,this._queuedChunks=t||[],this._loaded=0;for(const r of this._queuedChunks)this._loaded+=r.byteLength;
2this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0){return{value:this._queuedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class vb{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function bb(e,t){const n=new Headers;if(!e||!t||"object"!==typeof t)return n;for(const i in t){const e=t[i];void 0!==e&&n.append(i,e)}return n}function yb(e){var t,n;return null!==(t=null===(n=URL.parse(e))||void 0===n?void 0:n.origin)&&void 0!==t?t:null}function xb(e){let{responseHeaders:t,isHttp:n,rangeChunkSize:i,disableRange:r}=e;const a={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(t.get("Content-Length"),10);if(!Number.isInteger(o))return a;if(a.suggestedLength=o,o<=2*i)return a;if(r||!n)return a;if("bytes"!==t.get("Accept-Ranges"))return a;return"identity"!==(t.get("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a}function wb(e){const t=e.get("Content-Disposition");if(t){let e=function(e){let t=!0,n=i("filename\\*","i").exec(e);if(n){n=n[1];let e=o(n);return e=unescape(e),e=s(e),e=l(e),a(e)}if(n=function(e){const t=[];let n;const r=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,i,r]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[i,r]}const a=[];for(let i=0;i<t.length&&i in t;++i){let[e,n]=t[i];n=o(n),e&&(n=unescape(n),0===i&&(n=s(n))),a.push(n)}return a.join("")}(e),n)return a(l(n));if(n=i("filename","i").exec(e),n){n=n[1];let e=o(n);return e=l(e),a(e)}function i(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function r(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const i=new TextDecoder(e,{fatal:!0}),r=Fc(n);n=i.decode(r),t=!1}catch(i){}}return n}function a(e){return t&&/[\x80-\xff]/.test(e)&&(e=r("utf-8",e),t&&(e=r("iso-8859-1",e))),e}function o(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replaceAll(/\\(.)/g,"$1")}e=t.join('"')}return e}function s(e){const t=e.indexOf("'");return-1===t?e:r(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function l(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,i){if("q"===n||"Q"===n)return i=(i=i.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})),r(t,i);try{i=atob(i)}catch(a){}return r(t,i)}))}return""}(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(n){}if(tu(e))return e}return null}
2function _b(e,t){return new Mc("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e,404===e||0===e&&t.startsWith("file:"))}function Db(e){return 200===e||206===e}function Sb(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function kb(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(wc("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}class Cb{constructor(e){Qe(this,"_responseOrigin",null),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.headers=bb(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return Dc(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Ab(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new Tb(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class Ab{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange;const n=new Headers(e.headers),i=t.url;fetch(i,Sb(n,this._withCredentials,this._abortController)).then((t=>{if(e._responseOrigin=yb(t.url),!Db(t.status))throw _b(t.status,i);this._reader=t.body.getReader(),this._headersCapability.resolve();const n=t.headers,{allowRangeRequests:r,suggestedLength:a}=xb({responseHeaders:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=r,this._contentLength=a||this._contentLength,this._filename=wb(n),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Uc("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),{value:kb(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class Tb{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController;const r=new Headers(e.headers);r.append("Range","bytes=".concat(t,"-").concat(n-1));const a=i.url;fetch(a,Sb(r,this._withCredentials,this._abortController)).then((t=>{const n=yb(t.url);if(n!==e._responseOrigin)throw new Error('Expected range response-origin "'.concat(n,'" to match "').concat(e._responseOrigin,'".'));if(!Db(t.status))throw _b(t.status,a);this._readCapability.resolve(),this._reader=t.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),{value:kb(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class Eb{constructor(e){let{url:t,httpHeaders:n,withCredentials:i}=e;Qe(this,"_responseOrigin",null),this.url=t,this.isHttp=/^https?:/i.test(t),this.headers=bb(this.isHttp,n),this.withCredentials=i||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(e){const t=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const[r,a]of this.headers)t.setRequestHeader(r,a);return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),i.expectedStatus=206):i.expectedStatus=200,t.responseType="arraybuffer",Dc(e.onError,"Expected `onError` callback to be provided."),t.onerror=()=>{e.onError(t.status)},t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){var n;const i=this.pendingRequests[e];i&&(null===(n=i.onProgress)||void 0===n||n.call(i,t))}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void n.onError(i.status);const r=i.status||200;if(!(200===r&&206===n.expectedStatus)&&r!==n.expectedStatus)return void n.onError(i.status);const a=function(e){const t=e.response;return"string"!==typeof t?t:Fc(t).buffer}(i);if(206===r){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);t?n.onDone({begin:parseInt(t[1],10),chunk:a}):(wc('Missing or invalid "Content-Range" header.'),n.onError(0))}else a?n.onDone({begin:0,chunk:a}):n.onError(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}
2abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}class Nb{constructor(e){this._source=e,this._manager=new Eb(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return Dc(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new Mb(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new Pb(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class Mb{constructor(e,t){this._manager=e,this._url=t.url,this._fullRequestId=e.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e);this._manager._responseOrigin=yb(t.responseURL);const n=t.getAllResponseHeaders(),i=new Headers(n?n.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map((e=>{const[t,...n]=e.split(": ");return[t,n.join(": ")]})):[]),{allowRangeRequests:r,suggestedLength:a}=xb({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=wb(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersCapability.resolve()}_onDone(e){if(e)if(this._requests.length>0){this._requests.shift().resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=_b(e,this._url),this._headersCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0){return{value:this._cachedChunks.shift(),done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class Pb{constructor(e,t,n){this._manager=e,this._url=e.url,this._requestId=e.request({begin:t,end:n,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){var e;const t=yb(null===(e=this._manager.getRequestXhr(this._requestId))||void 0===e?void 0:e.responseURL);
2t!==this._manager._responseOrigin&&(this._storedError=new Error('Expected range response-origin "'.concat(t,'" to match "').concat(this._manager._responseOrigin,'".')),this._onError(0))}_close(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}_onDone(e){const t=e.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){var t;null!==(t=this._storedError)&&void 0!==t||(this._storedError=_b(e,this._url));for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||(null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded}))}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Ub=/^[a-z][a-z0-9\-+.]+:/i;class jb{constructor(e){this.source=e,this.url=function(e){if(Ub.test(e))return new URL(e);const t=process.getBuiltinModule("url");return new URL(t.pathToFileURL(e))}(e.url),Dc("file:"===this.url.protocol,"PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return Dc(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new Fb(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new Rb(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class Fb{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const n=process.getBuiltinModule("fs");n.promises.lstat(this._url).then((e=>{this._contentLength=e.size,this._setReadableStream(n.createReadStream(this._url)),this._headersCapability.resolve()}),(e=>{"ENOENT"===e.code&&(e=_b(0,this._url.href)),this._storedError=e,this._headersCapability.reject(e)}))}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();if(null===t)return this._readCapability=Promise.withResolvers(),this.read();this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength});return{value:new Uint8Array(t).buffer,done:!1}}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new 
2Uc("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Rb{constructor(e,t,n){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const i=e.source;this._isStreamingSupported=!i.disableStream;const r=process.getBuiltinModule("fs");this._setReadableStream(r.createReadStream(this._url,{start:t,end:n-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();if(null===t)return this._readCapability=Promise.withResolvers(),this.read();this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded});return{value:new Uint8Array(t).buffer,done:!1}}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}const Ob=Symbol("INITIAL_DATA");var Ib=new WeakMap,Lb=new WeakSet;class Bb{constructor(){ll(this,Lb),cl(this,Ib,Object.create(null))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){const n=ul(Lb,this,Wb).call(this,e);return n.promise.then((()=>t(n.data))),null}const n=hl(Ib,this)[e];if(!n||n.data===Ob)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}has(e){const t=hl(Ib,this)[e];return!!t&&t.data!==Ob}delete(e){const t=hl(Ib,this)[e];return!(!t||t.data===Ob)&&(delete hl(Ib,this)[e],!0)}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=ul(Lb,this,Wb).call(this,e);n.data=t,n.resolve()}clear(){for(const t in hl(Ib,this)){var e;const{data:n}=hl(Ib,this)[t];null===n||void 0===n||null===(e=n.bitmap)||void 0===e||e.close()}fl(Ib,this,Object.create(null))}*[Symbol.iterator](){for(const e in hl(Ib,this)){const{data:t}=hl(Ib,this)[e];t!==Ob&&(yield[e,t])}}}function Wb(e){var t;return(t=hl(Ib,this))[e]||(t[e]=Je(Je({},Promise.withResolvers()),{},{data:Ob}))}var zb=new WeakMap,Vb=new WeakMap,Hb=new WeakMap,qb=new WeakMap,Gb=new WeakMap,Yb=new WeakMap,Xb=new WeakMap,Kb=new WeakMap,$b=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,Jb=new WeakMap,ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,iy=new WeakMap,ry=new WeakMap,ay=new WeakMap,oy=new WeakSet;class sy{constructor(e){var t;let{textContentSource:n,container:i,viewport:r}=e;if(ll(this,oy),cl(this,zb,Promise.withResolvers()),cl(this,Vb,null),cl(this,Hb,!1),cl(this,qb,!(null===(t=globalThis.FontInspector)||void 0===t||!t.enabled)),cl(this,Gb,null),cl(this,Yb,null),cl(this,Xb,0),cl(this,Kb,0),cl(this,$b,null),cl(this,Qb,null),cl(this,Zb,0),cl(this,Jb,0),cl(this,ey,Object.create(null)),cl(this,ty,[]),cl(this,ny,null),cl(this,iy,[]),cl(this,ry,new WeakMap),cl(this,ay,null),n instanceof ReadableStream)fl(ny,this,n);else{if("object"!==typeof n)throw new Error('No "textContentSource" parameter specified.');fl(ny,this,new ReadableStream({start(e){e.enqueue(n),e.close()}}))}fl(Vb,this,fl(Qb,this,i)),fl(Jb,this,r.scale*hu.pixelRatio),fl(Zb,this,r.rotation),fl(Yb,this,{div:null,properties:null,ctx:null});const{pageWidth:a,pageHeight:o,pageX:s,pageY:l}=r.rawDims;fl(ay,this,[1,0,0,-1,-s,l+o]),fl(Kb,this,a),fl(Xb,this,o),fy.call(sy),du(i,r),hl(zb,this).promise.finally((()=>{yy._.delete(this),fl(Yb,this,null),fl(ey,this,null)})).catch((()=>{}))}static get fontFamilyMap(){const{isWindows:e,isFirefox:t}=Rc.platform;return Cc(this,"fontFamilyMap",new Map([["sans-serif","".concat(e&&t?"Calibri, ":"","sans-serif")],["monospace","".concat(e&&t?"Lucida Console, ":"","monospace")]]))}render(){const e=()=>{hl($b,this).read().then((t=>{var n;let{value:i,done:r}=t;r?hl(zb,this).resolve():(null!==(n=hl(Gb,this))&&void 0!==n||fl(Gb,this,i.lang),Object.assign(hl(ey,this),i.styles),ul(oy,this,ly).call(this,i.items),e())}),hl(zb,this).reject)};return fl($b,this,hl(ny,this).getReader()),yy._.add(this),e(),hl(zb,this).promise}update(e){let{viewport:t,onBefore:n=null}=e;const i=t.scale*hu.pixelRatio,r=t.rotation;if(r!==hl(Zb,this)&&(null===n||void 0===n||n(),fl(Zb,this,r),du(hl(Qb,this),{rotation:r})),i!==hl(Jb,this)){null===n||void 0===n||n(),fl(Jb,this,i);const e={div:null,properties:null,ctx:dy.call(sy,hl(Gb,this))};for(const t of hl(iy,this))e.properties=hl(ry,this).get(t),e.div=t,ul(oy,this,uy).call(this,e)}}cancel(){var e;const t=new Uc("TextLayer task cancelled.");null===(e=hl($b,this))||void 0===e||e.cancel(t).catch((()=>{})),fl($b,this,null),hl(zb,this).reject(t)}get textDivs(){return hl(iy,this)}get textContentItemsStr(){return hl(ty,this)}static cleanup(){if(!(ul(sy,this,yy)._.size>0)){ul(sy,this,gy)._.clear();for(const{canvas:e}of ul(sy,this,my)._.values())e.remove();ul(sy,this,my)._.clear()}}}function ly(e){var t,n;if(hl(Hb,this))return;null!==(n=(t=hl(Yb,this)).ctx)&&void 0!==n||(t.ctx=dy.call(Sl,hl(Gb,this)));const i=hl(iy,this),r=hl(ty,this);for(const a of e){if(i.length>1e5)return wc("Ignoring additional textDivs for performance reasons."),void fl(Hb,this,!0);if(void 0!==a.str)r.push(a.str),ul(oy,this,cy).call(this,a);else if("beginMarkedContentProps"===a.type||"beginMarkedContent"===a.type){const e=hl(Vb,this);fl(Vb,this,document.createElement("span")),hl(Vb,this).classList.add("markedContent"),a.id&&hl(Vb,this).setAttribute("id","".concat(a.id)),e.append(hl(Vb,this))}else"endMarkedContent"===a.type&&fl(Vb,this,hl(Vb,this).parentNode)}}function cy(e){const t=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:""!==e.str,hasEOL:e.hasEOL,fontSize:0};hl(iy,this).push(t);const i=Ic.transform(hl(ay,this),e.transform);let r=Math.atan2(i[1],i[0]);const a=hl(ey,this)[e.fontName];a.vertical&&(r+=Math.PI/2);let o=hl(qb,this)&&a.fontSubstitution||a.fontFamily;o=Sl.fontFamilyMap.get(o)||o;const s=Math.hypot(i[2],i[3]),l=s*py.call(Sl,o,a,hl(Gb,this));let c,u;0===r?(c=i[4],u=i[5]-l):(c=i[4]+l*Math.sin(r),u=i[5]-l*Math.cos(r));const d="calc(var(--total-scale-factor) *",h=t.style;hl(Vb,this)===hl(Qb,this)?(h.left="".concat((100*c/hl(Kb,this)).toFixed(2),"%"),h.top="".concat((100*u/hl(Xb,this)).toFixed(2),"%")):(h.left="".concat(d).concat(c.toFixed(2),"px)"),h.top="".concat(d).concat(u.toFixed(2),"px)")),h.fontSize="".concat(d).concat((by._*s).toFixed(2),"px)"),h.fontFamily=o,n.fontSize=s,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,hl(qb,this)&&(t.dataset.fontName=a.fontSubstitutionLoadedName||e.fontName),0!==r&&(n.angle=r*(180/Math.PI));let f=!1;if(e.str.length>1)f=!0;else if(" "!==e.str&&e.transform[0]!==e.transform[3]){const t=Math.abs(e.transform[0]),n=Math.abs(e.transform[3]);t!==n&&Math.max(t,n)/Math.min(t,n)>1.5&&(f=!0)}if(f&&(n.canvasWidth=a.vertical?e.height:e.width),hl(ry,this).set(t,n),hl(Yb,this).div=t,hl(Yb,this).properties=n,ul(oy,this,uy).call(this,hl(Yb,this)),n.hasText&&hl(Vb,this).append(t),n.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),hl(Vb,this).append(e)}}function uy(e){const{div:t,properties:n,ctx:i}=e,{style:r}=t;let a="";if(by._>1&&(a="scale(".concat(1/by._,")")),0!==n.canvasWidth&&n.hasText){const{fontFamily:e}=r,{canvasWidth:o,fontSize:s}=n;hy.call(Sl,i,s*hl(Jb,this),e);const{width:l}=i.measureText(t.textContent);l>0&&(a="scaleX(".concat(o*hl(Jb,this)/l,") ").concat(a))}0!==n.angle&&(a="rotate(".concat(n.angle,"deg) ").concat(a)),a.length>0&&(r.transform=a)}function dy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=ul(Sl,this,my)._.get(e||(e=""));if(!t){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=e,document.body.append(n),t=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),ul(Sl,this,my)._.set(e,t),ul(Sl,this,vy)._.set(t,{size:0,family:""})}return t}function hy(e,t,n){const i=ul(Sl,this,vy)._.get(e);t===i.size&&n===i.family||(e.font="".concat(t,"px ").concat(n),i.size=t,i.family=n)}function fy(){if(null!==ul(Sl,this,by)._)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),by._=ul(Sl,this,e.getBoundingClientRect().height),e.remove()}function py(e,t,n){const i=ul(Sl,this,gy)._.get(e);if(i)return i;const r=ul(Sl,this,dy).call(this,n);r.canvas.width=r.canvas.height=30,ul(Sl,this,hy).call(this,r,30,e);const a=r.measureText(""),o=a.fontBoundingBoxAscent,s=Math.abs(a.fontBoundingBoxDescent);r.canvas.width=r.canvas.height=0;let l=.8;return o?l=o/(o+s):(Rc.platform.isFirefox&&wc("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),t.ascent?l=t.ascent:t.descent&&(l=1+t.descent)),ul(Sl,this,gy)._.set(e,l),l}Sl=sy;var gy={_:new Map},my={_:new Map},vy={_:new WeakMap},by={_:null},yy={_:new Set};function xy(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"===typeof n||n instanceof URL?n={url:n}:(n instanceof ArrayBuffer||ArrayBuffer.isView(n))&&(n={data:n});const i=new wy,{docId:r}=i,a=n.url?function(e){if(e instanceof URL)return e.href;if("string"===typeof e){if(jl)return e;const t=URL.parse(e,window.location);if(t)return t.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(n.url):null,o=n.data?function(e){if(jl&&"undefined"!==typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"===typeof e)return Fc(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||"object"===typeof e&&!isNaN(null===e||void 0===e?void 0:e.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(n.data):null,s=n.httpHeaders||null,l=!0===n.withCredentials,c=null!==(e=n.password)&&void 0!==e?e:null,u=n.range instanceof Ty?n.range:null,d=Number.isInteger(n.rangeChunkSize)&&n.rangeChunkSize>0?n.rangeChunkSize:65536;let h=n.worker instanceof Ly?n.worker:null;const f=n.verbosity,p="string"!==typeof n.docBaseUrl||eu(n.docBaseUrl)?null:n.docBaseUrl,g=yg(n.cMapUrl),m=!1!==n.cM
2apPacked,v=n.CMapReaderFactory||(jl?Sm:Xg),b=yg(n.iccUrl),y=yg(n.standardFontDataUrl),x=n.StandardFontDataFactory||(jl?km:bm),w=yg(n.wasmUrl),_=n.WasmFactory||(jl?Cm:xm),D=!0!==n.stopAtErrors,S=Number.isInteger(n.maxImageSize)&&n.maxImageSize>-1?n.maxImageSize:-1,k=!1!==n.isEvalSupported,C="boolean"===typeof n.isOffscreenCanvasSupported?n.isOffscreenCanvasSupported:!jl,A="boolean"===typeof n.isImageDecoderSupported?n.isImageDecoderSupported:!jl&&(Rc.platform.isFirefox||!globalThis.chrome),T=Number.isInteger(n.canvasMaxAreaInBytes)?n.canvasMaxAreaInBytes:-1,E="boolean"===typeof n.disableFontFace?n.disableFontFace:jl,N=!0===n.fontExtraProperties,M=!0===n.enableXfa,P=n.ownerDocument||globalThis.document,U=!0===n.disableRange,j=!0===n.disableStream,F=!0===n.disableAutoFetch,R=!0===n.pdfBug,O=n.CanvasFactory||(jl?Dm:Gg),I=n.FilterFactory||(jl?_m:rm),L=!0===n.enableHWA,B=!1!==n.useWasm,W=u?u.length:null!==(t=n.length)&&void 0!==t?t:NaN,z="boolean"===typeof n.useSystemFonts?n.useSystemFonts:!jl&&!E,V="boolean"===typeof n.useWorkerFetch?n.useWorkerFetch:!!(v===Xg&&x===bm&&_===xm&&g&&y&&w&&iu(g,document.baseURI)&&iu(y,document.baseURI)&&iu(w,document.baseURI));bc(f);const H={canvasFactory:new O({ownerDocument:P,enableHWA:L}),filterFactory:new I({docId:r,ownerDocument:P}),cMapReaderFactory:V?null:new v({baseUrl:g,isCompressed:m}),standardFontDataFactory:V?null:new x({baseUrl:y}),wasmFactory:V?null:new _({baseUrl:w})};h||(h=Ly.create({verbosity:f,port:$v.workerPort}),i._worker=h);const q={docId:r,apiVersion:"5.4.449",data:o,password:c,disableAutoFetch:F,rangeChunkSize:d,length:W,docBaseUrl:p,enableXfa:M,evaluatorOptions:{maxImageSize:S,disableFontFace:E,ignoreErrors:D,isEvalSupported:k,isOffscreenCanvasSupported:C,isImageDecoderSupported:A,canvasMaxAreaInBytes:T,fontExtraProperties:N,useSystemFonts:z,useWasm:B,useWorkerFetch:V,cMapUrl:g,iccUrl:b,standardFontDataUrl:y,wasmUrl:w}},G={ownerDocument:P,pdfBug:R,styleElement:null,loadingParams:{disableAutoFetch:F,enableXfa:M}};return h.promise.then((function(){if(i.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");const e=h.messageHandler.sendWithPromise("GetDocRequest",q,o?[o.buffer]:null);let t;if(u)t=new gb(u,{disableRange:U,disableStream:j});else if(!o){if(!a)throw new Error("getDocument - no `url` parameter provided.");const e=iu(a)?Cb:jl?jb:Nb;t=new e({url:a,length:W,httpHeaders:s,withCredentials:l,rangeChunkSize:d,disableRange:U,disableStream:j})}return e.then((e=>{if(i.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");const n=new Lg(r,e,h.port),a=new ex(n,i,t,G,H,L);i._transport=a,n.send("Ready",null)}))})).catch(i._capability.reject),i}class wy{constructor(){Qe(this,"_capability",Promise.withResolvers()),Qe(this,"_transport",null),Qe(this,"_worker",null),Qe(this,"docId","d".concat((_y._=(kl=_y._,Cl=kl++,kl),Cl))),Qe(this,"destroyed",!1),Qe(this,"onPassword",null),Qe(this,"onProgress",null)}get promise(){return this._capability.promise}async destroy(){var e;this.destroyed=!0;try{var t,n;null!==(t=this._worker)&&void 0!==t&&t.port&&(this._worker._pendingDestroy=!0),await(null===(n=this._transport)||void 0===n?void 0:n.destroy())}catch(r){var i;throw null!==(i=this._worker)&&void 0!==i&&i.port&&delete this._worker._pendingDestroy,r}this._transport=null,null===(e=this._worker)||void 0===e||e.destroy(),this._worker=null}async getData(){return this._transport.getData()}}var _y={_:0},Dy=new WeakMap,Sy=new WeakMap,ky=new WeakMap,Cy=new WeakMap,Ay=new WeakMap;class Ty{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;cl(this,Dy,Promise.withResolvers()),cl(this,Sy,[]),cl(this,ky,[]),cl(this,Cy,[]),cl(this,Ay,[]),this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=i}addRangeListener(e){hl(Ay,this).push(e)}addProgressListener(e){hl(Cy,this).push(e)}addProgressiveReadListener(e){hl(ky,this).push(e)}addProgressiveDoneListener(e){hl(Sy,this).push(e)}onDataRange(e,t){for(const n of hl(Ay,this))n(e,t)}onDataProgress(e,t){hl(Dy,this).promise.then((()=>{for(const n of hl(Cy,this))n(e,t)}))}onDataProgressiveRead(e){hl(Dy,this).promise.then((()=>{for(const t of hl(ky,this))t(e)}))}onDataProgressiveDone(){hl(Dy,this).promise.then((()=>{for(const e of hl(Sy,this))e()}))}transportReady(){hl(Dy,this).resolve()}requestDataRange(e,t){_c("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class Ey{constructor(e,t){this._pdfInfo=e,this._transport=t}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Cc(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}
2getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAnnotationsByType(e,t){return this._transport.getAnnotationsByType(e,t)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(t)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}extractPages(e){return this._transport.extractPages(e)}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}var Ny=new WeakMap,My=new WeakSet;class Py{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];ll(this,My),cl(this,Ny,!1),this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=i?new nu:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new Bb,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Zc({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:r})}getAnnotations(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Cc(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var e;return(null===(e=this._transport._htmlForXfa)||void 0===e?void 0:e.children[this._pageIndex])||null}render(e){var t,n,i;let{canvasContext:r,canvas:a=r.canvas,viewport:o,intent:s="display",annotationMode:l=ql.ENABLE,transform:c=null,background:u=null,optionalContentConfigPromise:d=null,annotationCanvasMap:h=null,pageColors:f=null,printAnnotationStorage:p=null,isEditing:g=!1,recordOperations:m=!1,operationsFilter:v=null}=e;null===(t=this._stats)||void 0===t||t.time("Overall");const b=this._transport.getRenderingIntent(s,l,p,g),{renderingIntent:y,cacheKey:x}=b;fl(Ny,this,!1),d||(d=this._transport.getOptionalContentConfig(y));let w=this._intentStates.get(x);w||(w=Object.create(null),this._intentStates.set(x,w)),w.streamReaderCancelTimeout&&(clearTimeout(w.streamReaderCancelTimeout),w.streamReaderCancelTimeout=null);const _=!!(y&Ll);var D;w.displayReadyCapability||(w.displayReadyCapability=Promise.withResolvers(),w.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(D=this._stats)||void 0===D||D.time("Page Request"),this._pumpOperatorList(b));const S=Boolean(this._pdfBug&&(null===(n=globalThis.StepperManager)||void 0===n?void 0:n.enabled)),k=!this.recordedBBoxes&&(m||S),C=e=>{if(w.renderTasks.delete(A),k){var t;const e=null===(t=A.gfx)||void 0===t?void 0:t.dependencyTracker.take();e&&(A.stepper&&A.stepper.setOperatorBBoxes(e,A.gfx.dependencyTracker.takeDebugMetadata()),m&&(this.recordedBBoxes=e))}var n;(_&&fl(Ny,this,!0),ul(My,this,Uy).call(this),e?(A.capability.reject(e),this._abortOperatorList({intentState:w,reason:e instanceof Error?e:new Error(e)})):A.capability.resolve(),this._stats)&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),null!==(n=globalThis.Stats)&&void 0!==n&&n.enabled&&globalThis.Stats.add(this.pageNumber,this._stats)
2)},A=new ax({callback:C,params:{canvas:a,canvasContext:r,dependencyTracker:k?new ev(a,w.operatorList.length,S):null,viewport:o,transform:c,background:u},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:h,operatorList:w.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!_,pdfBug:this._pdfBug,pageColors:f,enableHWA:this._transport.enableHWA,operationsFilter:v});((i=w).renderTasks||(i.renderTasks=new Set)).add(A);const T=A.task;return Promise.all([w.displayReadyCapability.promise,d]).then((e=>{var t;let[n,i]=e;if(this.destroyed)C();else{if(null===(t=this._stats)||void 0===t||t.time("Rendering"),!(i.renderingIntent&y))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");A.initializeGraphics({transparency:n,optionalContentConfig:i}),A.operatorListChanged()}})).catch(C),T}getOperatorList(){let{intent:e="display",annotationMode:t=ql.ENABLE,printAnnotationStorage:n=null,isEditing:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this._transport.getRenderingIntent(e,t,n,i,!0);let a,o=this._intentStates.get(r.cacheKey);var s,l;(o||(o=Object.create(null),this._intentStates.set(r.cacheKey,o)),o.opListReadCapability)||(a=Object.create(null),a.operatorListChanged=function(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(a))},o.opListReadCapability=Promise.withResolvers(),((s=o).renderTasks||(s.renderTasks=new Set)).add(a),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(l=this._stats)||void 0===l||l.time("Page Request"),this._pumpOperatorList(r));return o.opListReadCapability.promise}streamTextContent(){let{includeMarkedContent:e=!1,disableNormalization:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>Yc.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const i=t.getReader(),r={items:[],styles:Object.create(null),lang:null};!function t(){i.read().then((function(n){var i;let{value:a,done:o}=n;o?e(r):(null!==(i=r.lang)&&void 0!==i||(r.lang=a.lang),Object.assign(r.styles,a.styles),r.items.push(...a.items),t())}),n)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),fl(Ny,this,!1),Promise.all(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];fl(Ny,this,!0);const t=ul(My,this,Uy).call(this);return e&&t&&this._stats&&(this._stats=new nu),t}_startRenderPage(e,t){var n,i;const r=this._intentStates.get(t);r&&(null===(n=this._stats)||void 0===n||n.timeEnd("Page Request"),null===(i=r.displayReadyCapability)||void 0===i||i.resolve(e))}_renderPageChunk(e,t){for(let n=0,i=e.length;n<i;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const n of t.renderTasks)n.operatorListChanged();e.lastChunk&&ul(My,this,Uy).call(this)}_pumpOperatorList(e){let{renderingIntent:t,cacheKey:n,annotationStorageSerializable:i,modifiedIds:r}=e;const{map:a,transfer:o}=i,s=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:a,modifiedIds:r},o).getReader(),l=this._intentStates.get(n);l.streamReader=s;const c=()=>{s.read().then((e=>{let{value:t,done:n}=e;n?l.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,l),c())}),(e=>
2{if(l.streamReader=null,!this._transport.destroyed){if(l.operatorList){l.operatorList.lastChunk=!0;for(const e of l.renderTasks)e.operatorListChanged();ul(My,this,Uy).call(this)}if(l.displayReadyCapability)l.displayReadyCapability.reject(e);else{if(!l.opListReadCapability)throw e;l.opListReadCapability.reject(e)}}}))};c()}_abortOperatorList(e){let{intentState:t,reason:n,force:i=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!i){if(t.renderTasks.size>0)return;if(n instanceof Jc){let e=100;return n.extraDelay>0&&n.extraDelay<1e3&&(e+=n.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})}),e))}}if(t.streamReader.cancel(new Uc(n.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(const[e,n]of this._intentStates)if(n===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}function Uy(){if(!hl(Ny,this)||this.destroyed)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),fl(Ny,this,!1),!0}var jy=new WeakMap,Fy=new WeakMap,Ry=new WeakMap,Oy=new WeakMap,Iy=new WeakSet;class Ly{constructor(){let{name:e=null,port:t=null,verbosity:n=yc()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ll(this,Iy),cl(this,jy,Promise.withResolvers()),cl(this,Fy,null),cl(this,Ry,null),cl(this,Oy,null),this.name=e,this.destroyed=!1,this.verbosity=n,t){if(Yy._.has(t))throw new Error("Cannot use more than one PDFWorker per port.");Yy._.set(t,this),ul(Iy,this,Wy).call(this,t)}else ul(Iy,this,zy).call(this)}get promise(){return hl(jy,this).promise}get port(){return hl(Ry,this)}get messageHandler(){return hl(Fy,this)}destroy(){var e,t;this.destroyed=!0,null===(e=hl(Oy,this))||void 0===e||e.terminate(),fl(Oy,this,null),Yy._.delete(hl(Ry,this)),fl(Ry,this,null),null===(t=hl(Fy,this))||void 0===t||t.destroy(),fl(Fy,this,null)}static create(e){const t=ul(Ly,this,Yy)._.get(null===e||void 0===e?void 0:e.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new Ly(e)}static get workerSrc(){if($v.workerSrc)return $v.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return Cc(this,"_setupFakeWorkerGlobal",(async()=>{if(dl(Ly,this,Hy))return dl(Ly,this,Hy);return(await import(this.workerSrc)).WorkerMessageHandler})())}}function By(){hl(jy,this).resolve(),hl(Fy,this).send("configure",{verbosity:this.verbosity})}function Wy(e){fl(Ry,this,e),fl(Fy,this,new Lg("main","worker",e)),hl(Fy,this).on("ready",(()=>{})),ul(Iy,this,By).call(this)}function zy(){if(Gy._||Hy(Al))return void ul(Iy,this,Vy).call(this);let{workerSrc:e}=Al;try{Al._isSameOrigin(window.location,e)||(e=Al._createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e,{type:"module"}),n=new Lg("main","worker",t),i=()=>{r.abort(),n.destroy(),t.terminate(),this.destroyed?hl(jy,this).reject(new Error("Worker was destroyed")):ul(Iy,this,Vy).call(this)},r=new AbortController;t.addEventListener("error",(()=>{hl(Oy,this)||i()}),{signal:r.signal}),n.on("test",(e=>{r.abort(),!this.destroyed&&e?(fl(Fy,this,n),fl(Ry,this,t),fl(Oy,this,t),ul(Iy,this,By).call(this)):i()})),n.on("ready",(e=>{if(r.abort(),this.destroyed)i();else try{a()}catch(t){ul(Iy,this,Vy).call(this)}}));const a=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void a()}catch(t){xc("The worker has been disabled.")}ul(Iy,this,Vy).call(this)}function Vy(){Gy._||(wc("Setting up fake worker."),Gy._=!0),Al._setupFakeWorkerGlobal.then((e=>{var t,n;if(this.destroyed)return void hl(jy,this).reject(new Error("Worker was destroyed"));const i=new Sg;fl(Ry,this,i);const r="fake".concat((qy._=(t=qy._,n=t++,t),n)),a=new Lg(r+"_worker",r,i);e.setup(a,i),fl(Fy,this,new Lg(r,r+"_worker",i)),ul(Iy,this,By).call(this)})).catch((e=>{hl(jy,this).reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}function Hy(e){try{var t;return(null===(t=globalThis.pdfjsWorker)||void 0===t?void 0:t.WorkerMessageHandler)||null}catch(n){return null}}Al=Ly;var qy={_:0},Gy={_:!1},Yy={_:new WeakMap};
2jl&&(Gy._=ul(Al,Al,!0),$v.workerSrc||($v.workerSrc="./pdf.worker.mjs")),Al._isSameOrigin=(e,t)=>{const n=URL.parse(e);if(null===n||void 0===n||!n.origin||"null"===n.origin)return!1;const i=new URL(t,n);return n.origin===i.origin},Al._createCDNWrapper=e=>{const t='await import("'.concat(e,'");');return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))},Al.fromPort=e=>{var t;if(t="`PDFWorker.fromPort` - please use `PDFWorker.create` instead.",console.log("Deprecated API usage: "+t),null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return Al.create(e)};var Xy=new WeakMap,Ky=new WeakMap,$y=new WeakMap,Qy=new WeakMap,Zy=new WeakMap,Jy=new WeakSet;class ex{constructor(e,t,n,i,r,a){ll(this,Jy),cl(this,Xy,new Map),cl(this,Ky,new Map),cl(this,$y,new Map),cl(this,Qy,new Map),cl(this,Zy,null),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new Bb,this.fontLoader=new Rp({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=r.canvasFactory,this.filterFactory=r.filterFactory,this.cMapReaderFactory=r.cMapReaderFactory,this.standardFontDataFactory=r.standardFontDataFactory,this.wasmFactory=r.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.enableHWA=a,this.setupMessageHandler()}get annotationStorage(){return Cc(this,"annotationStorage",new Mp)}getRenderingIntent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ql.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=Il,o=kp;switch(e){case"any":a=Ol;break;case"display":break;case"print":a=Ll;break;default:wc("getRenderingIntent - invalid intent: ".concat(e))}const s=a&Ll&&n instanceof jp?n:this.annotationStorage;switch(t){case ql.DISABLE:a+=zl;break;case ql.ENABLE:break;case ql.ENABLE_FORMS:a+=Bl;break;case ql.ENABLE_STORAGE:a+=Wl,o=s.serializable;break;default:wc("getRenderingIntent - invalid annotationMode: ".concat(t))}i&&(a+=Vl),r&&(a+=Hl);const{ids:l,hash:c}=s.modifiedIds;return{renderingIntent:a,cacheKey:[a,o.hash,c].join("_"),annotationStorageSerializable:o,modifiedIds:l}}destroy(){var e;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),null===(e=hl(Zy,this))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const i of hl(Ky,this).values())t.push(i._destroy());hl(Ky,this).clear(),hl($y,this).clear(),hl(Qy,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((()=>{var e,t;this.commonObjs.clear(),this.fontLoader.clear(),hl(Xy,this).clear(),this.filterFactory.destroy(),sy.cleanup(),null===(e=this._networkStream)||void 0===e||e.cancelAllRequests(new Uc("Worker was terminated.")),null===(t=this.messageHandler)||void 0===t||t.destroy(),this.messageHandler=null,this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{Dc(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){let{value:n,done:i}=e;i?t.close():(Dc(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(async e=>{await this._fullReader.headersReady;const{isStreamingSupported:n,isRangeSupported:i,contentLength:r}=this._fullReader;if(!n||!i){var a;if(this._lastProgress)null===(a=t.onProgress)||void 0===a||a.call(t,this._lastProgress);this._fullReader.onProgress=e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})}}return{isStreamingSupported:n,isRangeSupported:i,contentLength:r}})),e.on("GetRangeReader",((e,t)=>
2{Dc(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function(e){let{value:n,done:i}=e;i?t.close():(Dc(n instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{let{pdfInfo:n}=e;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new Ey(n,this))})),e.on("DocException",(e=>{t._capability.reject(Rg(e))})),e.on("PasswordRequest",(e=>{fl(Zy,this,Promise.withResolvers());try{if(!t.onPassword)throw Rg(e);const n=e=>{e instanceof Error?hl(Zy,this).reject(e):hl(Zy,this).resolve({password:e})};t.onPassword(n,e.code)}catch(n){hl(Zy,this).reject(n)}return hl(Zy,this).promise})),e.on("DataLoaded",(e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{if(this.destroyed)return;hl(Ky,this).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var n;let[i,r,a]=t;if(this.destroyed)return null;if(this.commonObjs.has(i))return null;switch(r){case"Font":if("error"in a){const e=a.error;wc("Error during font loading: ".concat(e)),this.commonObjs.resolve(i,e);break}const t=new tg(a),o=this._params.pdfBug&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,s=new Ip(t,o,a.extra,a.charProcOperatorList);this.fontLoader.bind(s).catch((()=>e.sendWithPromise("FontFallback",{id:i}))).finally((()=>{!s.fontExtraProperties&&s.data&&s.clearData(),this.commonObjs.resolve(i,s)}));break;case"CopyLocalImage":const{imageRef:l}=a;Dc(l,"The imageRef must be defined.");for(const e of hl(Ky,this).values())for(const[,t]of e.objs)if((null===t||void 0===t?void 0:t.ref)===l)return t.dataLen?(this.commonObjs.resolve(i,structuredClone(t)),t.dataLen):null;break;case"FontPath":case"Image":this.commonObjs.resolve(i,a);break;case"Pattern":const c=new ug(a);this.commonObjs.resolve(i,c.getIR());break;default:throw new Error("Got unknown common object type ".concat(r))}return null})),e.on("obj",(e=>{let[t,n,i,r]=e;if(this.destroyed)return;const a=hl(Ky,this).get(n);var o;if(!a.objs.has(t))if(0!==a._intentStates.size)switch(i){case"Image":case"Pattern":a.objs.resolve(t,r);break;default:throw new Error("Got unknown object type ".concat(i))}else null===r||void 0===r||null===(o=r.bitmap)||void 0===o||o.close()})),e.on("DocProgress",(e=>{var n;this.destroyed||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})})),e.on("FetchBinaryData",(async e=>{if(this.destroyed)throw new Error("Worker was destroyed.");const t=this[e.type];if(!t)throw new Error("".concat(e.type," not initialized, see the `useWorkerFetch` parameter."));return t.fetch(e)}))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var e,t;this.annotationStorage.size<=0&&wc("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:n,transfer:i}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:n,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},i).finally((()=>{this.annotationStorage.resetModified()}))}extractPages(e){return this.messageHandler.sendWithPromise("ExtractPages",{pageInfos:e})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=hl($y,this).get(t);if(n)return n;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((n=>{if(this.destroyed)throw new Error("Transport destroyed");n.refStr&&hl(Qy,this).set(n.refStr,e);const i=new Py(t,n,this,this._params.pdfBug);return hl(Ky,this).set(t,i),i}));return hl($y,this).set(t,i),i}
2getPageIndex(e){return xg(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return ul(Jy,this,tx).call(this,"GetFieldObjects")}hasJSActions(){return ul(Jy,this,tx).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getAnnotationsByType(e,t){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:e,pageIndexesToSkip:t})}getDocJSActions(){return ul(Jy,this,tx).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return ul(Jy,this,tx).call(this,"GetOptionalContentConfig").then((t=>new fb(t,e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=hl(Xy,this).get(e);if(t)return t;const n=this.messageHandler.sendWithPromise(e,null).then((e=>{var t,n,i,r;return{info:e[0],metadata:e[1]?new tb(e[1]):null,contentDispositionFilename:null!==(t=null===(n=this._fullReader)||void 0===n?void 0:n.filename)&&void 0!==t?t:null,contentLength:null!==(i=null===(r=this._fullReader)||void 0===r?void 0:r.contentLength)&&void 0!==i?i:null,hasStructTree:e[2]}}));return hl(Xy,this).set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of hl(Ky,this).values()){if(!e.cleanup())throw new Error("startCleanup: Page ".concat(e.pageNumber," is currently rendering."))}this.commonObjs.clear(),e||this.fontLoader.clear(),hl(Xy,this).clear(),this.filterFactory.destroy(!0),sy.cleanup()}}cachedPageNumber(e){var t;if(!xg(e))return null;const n=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return null!==(t=hl(Qy,this).get(n))&&void 0!==t?t:null}}function tx(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=hl(Xy,this).get(e);if(n)return n;const i=this.messageHandler.sendWithPromise(e,t);return hl(Xy,this).set(e,i),i}var nx=new WeakMap;class ix{constructor(e){cl(this,nx,null),Qe(this,"onContinue",null),Qe(this,"onError",null),fl(nx,this,e)}get promise(){return hl(nx,this).capability.promise}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;hl(nx,this).cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=hl(nx,this).operatorList;if(!e)return!1;const{annotationCanvasMap:t}=hl(nx,this);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}var rx=new WeakMap;class ax{constructor(e){let{callback:t,params:n,objs:i,commonObjs:r,annotationCanvasMap:a,operatorList:o,pageIndex:s,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:h=null,enableHWA:f=!1,operationsFilter:p=null}=e;cl(this,rx,null),this.callback=t,this.params=n,this.objs=i,this.commonObjs=r,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&"undefined"!==typeof window,this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new ix(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvas,this._canvasContext=n.canvas?null:n.canvasContext,this._enableHWA=f,this._dependencyTracker=n.dependencyTracker,this._operationsFilter=p}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t,n;let{transparency:i=!1,optionalContentConfig:r}=e;if(this.cancelled)return;
2if(this._canvas){if(ox._.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");ox._.add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{viewport:a,transform:o,background:s,dependencyTracker:l}=this.params,c=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new Gv(c,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:r},this.annotationCanvasMap,this.pageColors,l),this.gfx.beginDrawing({transform:o,viewport:a,transparency:i,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,null===(n=this.graphicsReadyCallback)||void 0===n||n.call(this)}cancel(){var e,t,n;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(e=this.gfx)||void 0===e||e.endDrawing(),hl(rx,this)&&(window.cancelAnimationFrame(hl(rx,this)),fl(rx,this,null)),ox._.delete(this._canvas),i||(i=new Jc("Rendering cancelled, page ".concat(this._pageIndex+1),r)),this.callback(i),null===(t=(n=this.task).onError)||void 0===t||t.call(n,i)}operatorListChanged(){var e,t;this.graphicsReady?(null===(e=this.gfx.dependencyTracker)||void 0===e||e.growOperationsCount(this.operatorList.fnArray.length),null===(t=this.stepper)||void 0===t||t.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?fl(rx,this,window.requestAnimationFrame((()=>{fl(rx,this,null),this._nextBound().catch(this._cancelBound)}))):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),ox._.delete(this._canvas),this.callback())))}}var ox={_:new WeakSet};var sx=new WeakMap,lx=new WeakMap,cx=new WeakMap,ux=new WeakMap,dx=new WeakMap,hx=new WeakMap,fx=new WeakMap,px=new WeakMap,gx=new WeakMap,mx=new WeakMap,vx=new WeakSet;class bx{static get _keyboardManager(){return Cc(this,"_keyboardManager",new hd([[["Escape","mac+Escape"],bx.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],bx.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],bx.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],bx.prototype._moveToPrevious],[["Home","mac+Home"],bx.prototype._moveToBeginning],[["End","mac+End"],bx.prototype._moveToEnd]]))}constructor(e){var t,n;let{editor:i=null,uiManager:r=null}=e;ll(this,vx),cl(this,sx,null),cl(this,lx,null),cl(this,cx,void 0),cl(this,ux,null),cl(this,dx,!1),cl(this,hx,!1),cl(this,fx,null),cl(this,px,void 0),cl(this,gx,null),cl(this,mx,null),i?(fl(hx,this,!1),fl(fx,this,i)):fl(hx,this,!0),fl(mx,this,(null===i||void 0===i?void 0:i._uiManager)||r),fl(px,this,hl(mx,this)._eventBus),fl(cx,this,(null===i||void 0===i||null===(t=i.color)||void 0===t?void 0:t.toUpperCase())||(null===(n=hl(mx,this))||void 0===n?void 0:n.highlightColors.values().next().value)||"#FFFF98"),kx._||(kx._=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"}))}renderButton(){const e=fl(sx,this,document.createElement("button"));e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.ariaHasPopup="true",hl(fx,this)&&(e.ariaControl
2s="".concat(hl(fx,this).id,"_colorpicker_dropdown"));const t=hl(mx,this)._signal;e.addEventListener("click",ul(vx,this,_x).bind(this),{signal:t}),e.addEventListener("keydown",ul(vx,this,wx).bind(this),{signal:t});const n=fl(lx,this,document.createElement("span"));return n.className="swatch",n.ariaHidden="true",n.style.backgroundColor=hl(cx,this),e.append(n),e}renderMainDropdown(){const e=fl(ux,this,ul(vx,this,yx).call(this));return e.ariaOrientation="horizontal",e.ariaLabelledBy="highlightColorPickerLabel",e}_colorSelectFromKeyboard(e){if(e.target===hl(sx,this))return void ul(vx,this,_x).call(this,e);const t=e.target.getAttribute("data-color");t&&ul(vx,this,xx).call(this,t,e)}_moveToNext(e){var t,n;dl(vx,this,Sx)?e.target!==hl(sx,this)?null===(t=e.target.nextSibling)||void 0===t||t.focus():null===(n=hl(ux,this).firstElementChild)||void 0===n||n.focus():ul(vx,this,_x).call(this,e)}_moveToPrevious(e){var t,n;e.target!==(null===(t=hl(ux,this))||void 0===t?void 0:t.firstElementChild)&&e.target!==hl(sx,this)?(dl(vx,this,Sx)||ul(vx,this,_x).call(this,e),null===(n=e.target.previousSibling)||void 0===n||n.focus()):dl(vx,this,Sx)&&this._hideDropdownFromKeyboard()}_moveToBeginning(e){var t;dl(vx,this,Sx)?null===(t=hl(ux,this).firstElementChild)||void 0===t||t.focus():ul(vx,this,_x).call(this,e)}_moveToEnd(e){var t;dl(vx,this,Sx)?null===(t=hl(ux,this).lastElementChild)||void 0===t||t.focus():ul(vx,this,_x).call(this,e)}hideDropdown(){var e,t;null===(e=hl(ux,this))||void 0===e||e.classList.add("hidden"),hl(sx,this).ariaExpanded="false",null===(t=hl(gx,this))||void 0===t||t.abort(),fl(gx,this,null)}_hideDropdownFromKeyboard(){var e;hl(hx,this)||(dl(vx,this,Sx)?(this.hideDropdown(),hl(sx,this).focus({preventScroll:!0,focusVisible:hl(dx,this)})):null===(e=hl(fx,this))||void 0===e||e.unselect())}updateColor(e){if(hl(lx,this)&&(hl(lx,this).style.backgroundColor=e),!hl(ux,this))return;const t=hl(mx,this).highlightColors.values();for(const n of hl(ux,this).children)n.ariaSelected=t.next().value===e.toUpperCase()}destroy(){var e,t;null===(e=hl(sx,this))||void 0===e||e.remove(),fl(sx,this,null),fl(lx,this,null),null===(t=hl(ux,this))||void 0===t||t.remove(),fl(ux,this,null)}}function yx(){const e=document.createElement("div"),t=hl(mx,this)._signal;e.addEventListener("contextmenu",ru,{signal:t}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),hl(fx,this)&&(e.id="".concat(hl(fx,this).id,"_colorpicker_dropdown"));for(const[n,i]of hl(mx,this).highlightColors){const r=document.createElement("button");r.tabIndex="0",r.role="option",r.setAttribute("data-color",i),r.title=n,r.setAttribute("data-l10n-id",kx._[n]);const a=document.createElement("span");r.append(a),a.className="swatch",a.style.backgroundColor=i,r.ariaSelected=i===hl(cx,this),r.addEventListener("click",ul(vx,this,xx).bind(this,i),{signal:t}),e.append(r)}return e.addEventListener("keydown",ul(vx,this,wx).bind(this),{signal:t}),e}function xx(e,t){t.stopPropagation(),hl(px,this).dispatch("switchannotationeditorparams",{source:this,type:Xl.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}function wx(e){Tl._keyboardManager.exec(this,e)}function _x(e){if(dl(vx,this,Sx))return void this.hideDropdown();if(fl(dx,this,0===e.detail),hl(gx,this)||(fl(gx,this,new AbortController),window.addEventListener("pointerdown",ul(vx,this,Dx).bind(this),{signal:hl(mx,this).combinedSignal(hl(gx,this))})),hl(sx,this).ariaExpanded="true",hl(ux,this))return void hl(ux,this).classList.remove("hidden");const t=fl(ux,this,ul(vx,this,yx).call(this));hl(sx,this).append(t)}function Dx(e){var t;null!==(t=hl(ux,this))&&void 0!==t&&t.contains(e.target)||this.hideDropdown()}function Sx(e){return hl(ux,e)&&!hl(ux,e).classList.contains("hidden")}Tl=bx;var kx={_:null},Cx=new WeakMap,Ax=new WeakMap,Tx=new WeakMap;class Ex{constructor(e){cl(this,Cx,null),cl(this,Ax,null),cl(this,Tx,null),fl(Ax,this,e),fl(Tx,this,e._uiManager),Nx._||(Nx._=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"}))}renderButton(){if(hl(Cx,this))return hl(Cx,this);const{editorType:e,colorType:t,color:n}=hl(Ax,this),i=fl(Cx,this,document.createElement("input"));return i.type="color",i.value=n||"#000000",i.className="basicColorPicker",i.tabIndex=0,i.setAttribute("data-l10n-id",Nx._[e]),i.addEventListener("input",(()=>{hl(Tx,this).updateParams(t,i.value)}),{signal:hl(Tx,this)._signal}),i}update(e){hl(Cx,this)&&(hl(Cx,this).value=e)}destroy(){var e;null===(e=hl(Cx,this))||void 0===e||e.remove(),fl(Cx,this,null)}hideDropdown(){}}var Nx={_:null};function Mx(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function Px(e){return Math.max(0,Math.min(255,255*e))}class Ux{static CMYK_G(e){let[t,n,i,r]=e;return["G",1-Math.min(1,.3*t+.59*i+.11*n+r)]}static G_CMYK(e){let[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){let[t]=e;return["RGB",t,t,t]}static G_rgb(e){let[t]=e;return t=Px(t),[t,t,t]}static G_HTML(e){let[t]=e;const n=Mx(t);return"#".concat(n).concat(n).concat(n)}static RGB_G(e){let[t,n,i]=e;return["G",.3*t+.59*n+.11*i]}static RGB_rgb(e){return e.map(Px)}static RGB_HTML(e){return"#".concat(e.map(Mx).join(""))}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){let[t,n,i,r]=e;return["RGB",1-Math.min(1,t+r),1-Math.min(1,i+r),1-Math.min(1,n+r)]}static CMYK_rgb(e){let[t,n,i,r]=e;return[Px(1-Math.min(1,t+r)),Px(1-Math.min(1,i+r)),Px(1-Math.min(1,n+r))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){let[t,n,i]=e;const r=1-t,a=1-n,o=1-i;return["CMYK",r,a,o,Math.min(r,a,o)]}}class jx{create(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),n||(i.setAttribute("width","".concat(e,"px")),i.setAttribute("height","".concat(t,"px"))),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),i}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){_c("Abstract method `_createSVG` called.")}}class Fx extends jx{_createSVG(e){return document.createElementNS(Kc,e)}}const Rx=new WeakSet,Ox=60*(new Date).getTimezoneOffset()*1e3;class Ix{static create(e){switch(e.data.annotationType){case rc.LINK:return new Yx(e);case rc.TEXT:return new Qx(e);case rc.WIDGET:switch(e.data.fieldType){case"Tx":return new Jx(e);case"Btn":return e.data.radioButton?new nw(e):e.data.checkBox?new tw(e):new iw(e);case"Ch":return new rw(e);case"Sig":return new ew(e)}return new Zx(e);case rc.POPUP:return new ow(e);case rc.FREETEXT:return new Kw(e);case rc.LINE:return new Qw(e);case rc.SQUARE:return new Jw(e);case rc.CIRCLE:return new t_(e);case rc.POLYLINE:return new i_(e);case rc.CARET:return new a_(e);case rc.INK:return new c_(e);case rc.POLYGON:return new r_(e);case rc.HIGHLIGHT:return new d_(e);case rc.UNDERLINE:return new h_(e);case rc.SQUIGGLY:return new f_(e);case rc.STRIKEOUT:return new p_(e);case rc.STAMP:return new g_(e);case rc.FILEATTACHMENT:return new b_(e);default:return new Vx(e)}}}var Lx=new WeakMap,Bx=new WeakMap,Wx=new WeakMap,zx=new WeakSet;class Vx{constructor(e){let{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ll(this,zx),cl(this,Lx,null),cl(this,Bx,!1),cl(this,Wx,null),this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableComment=e.enableComment,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,this.hasOwnCommentButton=!1,t&&(this.contentElement=this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}
2static _hasPopupData(e){let{contentsObj:t,richText:n}=e;return!!(null!==t&&void 0!==t&&t.str||null!==n&&void 0!==n&&n.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Vx._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){var e;const{data:t}=this,n=null===(e=this.annotationStorage)||void 0===e?void 0:e.getEditor(t.id);return n?n.getData():t}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){var e;const t=null===(e=this.annotationStorage)||void 0===e?void 0:e.getEditor(this.data.id);if(t)return t.commentButtonPositionInPage;const{quadPoints:n,inkLists:i,rect:r}=this.data;let a=-1/0,o=-1/0;if((null===n||void 0===n?void 0:n.length)>=8){for(let e=0;e<n.length;e+=8)n[e+1]>o?(o=n[e+1],a=n[e+2]):n[e+1]===o&&(a=Math.max(a,n[e+2]));return[a,o]}if((null===i||void 0===i?void 0:i.length)>=1){for(const e of i)for(let t=0,n=e.length;t<n;t+=2)e[t+1]>o?(o=e[t+1],a=e[t]):e[t+1]===o&&(a=Math.max(a,e[t]));if(a!==1/0)return[a,o]}return r?[r[2],r[3]]:null}_normalizePoint(e){const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:i,pageX:r,pageY:a}}}=this.parent;return e[1]=t[3]-e[1]+t[1],e[0]=100*(e[0]-r)/n,e[1]=100*(e[1]-a)/i,e}get commentText(){var e,t;const{data:n}=this;return(null===(e=this.annotationStorage.getRawValue("".concat(Gl).concat(n.id)))||void 0===e||null===(e=e.popup)||void 0===e?void 0:e.contents)||(null===(t=n.contentsObj)||void 0===t?void 0:t.str)||""}set commentText(e){const{data:t}=this,n={deleted:!e,contents:e||""};this.annotationStorage.updateEditor(t.id,{popup:n})||this.annotationStorage.setValue("".concat(Gl).concat(t.id),{id:t.id,annotationType:t.annotationType,pageIndex:this.parent.page._pageIndex,popup:n,popupRef:t.popupRef,modificationDate:new Date}),e||this.removePopup()}removePopup(){var e,t;null===(e=(null===(t=hl(Wx,this))||void 0===t?void 0:t.popup)||this.popup)||void 0===e||e.remove(),fl(Wx,this,this.popup=null)}updateEdited(e){var t;if(!this.container)return;e.rect&&(hl(Lx,this)||fl(Lx,this,{rect:this.data.rect.slice(0)}));const{rect:n,popup:i}=e;n&&ul(zx,this,Hx).call(this,n);let r=(null===(t=hl(Wx,this))||void 0===t?void 0:t.popup)||this.popup;!r&&null!==i&&void 0!==i&&i.text&&(this._createPopup(i),r=hl(Wx,this).popup),r&&(r.updateEdited(e),null!==i&&void 0!==i&&i.deleted&&(r.remove(),fl(Wx,this,null),this.popup=null))}resetEdited(){var e;hl(Lx,this)&&(ul(zx,this,Hx).call(this,hl(Lx,this).rect),null===(e=hl(Wx,this))||void 0===e||e.popup.resetEdited(),fl(Lx,this,null))}_createContainer(e){const{data:t,parent:{page:n,viewport:i}}=this,r=document.createElement("section");r.setAttribute("data-annotation-id",t.id),this instanceof Zx||this instanceof Yx||(r.tabIndex=0);const{style:a}=r;if(a.zIndex=this.parent.zIndex,this.parent.zIndex+=2,t.alternativeText&&(r.title=t.alternativeText),t.noRotate&&r.classList.add("norotate"),!t.rect||this instanceof ow){const{rotation:e}=t;return t.hasOwnCanvas||0===e||this.setRotation(e,r),r}const{width:o,height:s}=this;if(!e&&t.borderStyle.width>0){a.borderWidth="".concat(t.borderStyle.width,"px");const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t="calc(".concat(e,"px * var(--total-scale-factor)) / calc(").concat(n,"px * var(--total-scale-factor))");a.borderRadius=t}else if(this instanceof nw){const e="calc(".concat(o,"px * var(--total-scale-factor)) / calc(").concat(s,"px * var(--total-scale-factor))");a.borderRadius=e}switch(t.borderStyle.style){case ac:a.borderStyle="solid";break;case oc:a.borderStyle="dashed";break;case sc:wc("Unimplemented border style: beveled");break;case lc:wc("Unimplemented border style: inset");break;case cc:a.borderBottomStyle="solid"}const i=t.borderColor||null;i?(fl(Bx,this,!0),a.borderColor=Ic.makeHexColor(0|i[0],0|i[1],0|i[2])):a.borderWidth=0}const l=Ic.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]),{pageWidth:c,pageHeight:u,pageX:d,pageY:h}=i.rawDims;a.left="".concat(100*(l[0]-d)/c,"%"),a.top="".concat(100*(l[1]-h)/u,"%");const{rotation:f}=t;return t.hasOwnCanvas||0===f?(a.width="".concat(100*o/c,"%"),a.height="".concat(100*s/u,"%")):this.setRotation(f,r),r}setRotation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(!this.data.rect)return;const{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims;let{width:r,height:a}=this;e%180!==0&&([r,a]=[a,r]),t.style.width="".concat(100*r/n,"%"),t.style.height="".concat(100*a/i,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}
2get _commonActions(){const e=(e,t,n)=>{const i=n.detail[e],r=i[0],a=i.slice(1);n.target.style[t]=Ux["".concat(r,"_HTML")](a),this.annotationStorage.setValue(this.data.id,{[t]:Ux["".concat(r,"_rgb")](a)})};return Cc(this,"_commonActions",{display:e=>{const{display:t}=e.detail,n=t%2===1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const i of Object.keys(t.detail)){const r=e[i]||n[i];null===r||void 0===r||r(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[i,r]of Object.entries(t)){const a=n[i];if(a){a({detail:{[i]:r},target:e}),delete t[i]}}}
2_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,n,i,r]=this.data.rect.map((e=>Math.fround(e)));if(8===e.length){const[a,o,s,l]=e.subarray(2,6);if(i===a&&r===o&&t===s&&n===l)return}const{style:a}=this.container;let o;if(hl(Bx,this)){const{borderColor:e,borderWidth:t}=a;a.borderWidth=0,o=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">','<g fill="transparent" stroke="'.concat(e,'" stroke-width="').concat(t,'">')],this.container.classList.add("hasBorder")}const s=i-t,l=r-n,{svgFactory:c}=this,u=c.createElement("svg");u.classList.add("quadrilateralsContainer"),u.setAttribute("width",0),u.setAttribute("height",0),u.role="none";const d=c.createElement("defs");u.append(d);const h=c.createElement("clipPath"),f="clippath_".concat(this.data.id);h.setAttribute("id",f),h.setAttribute("clipPathUnits","objectBoundingBox"),d.append(h);for(let g=2,m=e.length;g<m;g+=8){var p;const n=e[g],i=e[g+1],a=e[g+2],u=e[g+3],d=c.createElement("rect"),f=(a-t)/s,m=(r-i)/l,v=(n-a)/s,b=(i-u)/l;d.setAttribute("x",f),d.setAttribute("y",m),d.setAttribute("width",v),d.setAttribute("height",b),h.append(d),null===(p=o)||void 0===p||p.push('<rect vector-effect="non-scaling-stroke" x="'.concat(f,'" y="').concat(m,'" width="').concat(v,'" height="').concat(b,'"/>'))}hl(Bx,this)&&(o.push("</g></svg>')"),a.backgroundImage=o.join("")),this.container.append(u),this.container.style.clipPath="url(#".concat(f,")")}_createPopup(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const{data:t}=this;let n,i;e?(n={str:e.text},i=e.date):(n=t.contentsObj,i=t.modificationDate),fl(Wx,this,new ow({data:{color:t.color,titleObj:t.titleObj,modificationDate:i,contentsObj:n,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_".concat(t.id),rotation:t.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]}))}get hasPopupElement(){return!!(hl(Wx,this)||this.popup||this.data.popupRef)}get extraPopupElement(){return hl(Wx,this)}render(){_c("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:e,id:r,exportValues:a}of i){if(-1===e)continue;if(r===t)continue;const i="string"===typeof a?a:null,o=document.querySelector('[data-element-id="'.concat(r,'"]'));!o||Rx.has(o)?n.push({id:r,exportValue:i,domElement:o}):wc("_getElementsByName - element not allowed: ".concat(r))}return n}for(const i of document.getElementsByName(e)){const{exportValue:e}=i,r=i.getAttribute("data-element-id");r!==t&&(Rx.has(i)&&n.push({id:r,exportValue:e,domElement:i}))}return n}show(){var e;this.container&&(this.container.hidden=!1),null===(e=this.popup)||void 0===e||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),null===(e=this.popup)||void 0===e||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{var n;null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t,mustEnterInEditMode:!0})}))}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}function Hx(e){const{container:{style:t},data:{rect:n,rotation:i},parent:{viewport:{rawDims:{pageWidth:r,pageHeight:a,pageX:o,pageY:s}}}}=this;null===n||void 0===n||n.splice(0,4,...e),t.left="".concat(100*(e[0]-o)/r,"%"),t.top="".concat(100*(a-e[3]+s)/a,"%"),0===i?(t.width="".concat(100*(e[2]-e[0])/r,"%"),t.height="".concat(100*(e[3]-e[1])/a,"%")):this.setRotation(i)}class qx extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.editor=e.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){const{editor:e}=this;e.hasComment&&this._createPopup(e.comment)}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}
2get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(e){this.editor.comment=e,e||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.parent.removeAnnotation(this.data.id),this.container.remove(),this.container=null,this.removePopup()}}var Gx=new WeakSet;class Yx extends Vx{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!(null===t||void 0===t||!t.ignoreBorder),createQuadrilaterals:!0}),ll(this,Gx),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let i=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(n,e.action,e.overlaidText),i=!0):e.attachment?(ul(Gx,this,Kx).call(this,n,e.attachment,e.overlaidText,e.attachmentDest),i=!0):e.setOCGState?(ul(Gx,this,$x).call(this,n,e.setOCGState,e.overlaidText),i=!0):e.dest?(this._bindLink(n,e.dest,e.overlaidText),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),i=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&(this.contentElement=n,this.container.append(n)),this.container}_bindLink(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&ul(Gx,this,Xx).call(this),n&&(e.title=n)}_bindNamedAction(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),n&&(e.title=n),ul(Gx,this,Xx).call(this)}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(t.actions)){const r=n.get(i);r&&(e[r]=()=>{var e;return null===(e=this.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:i}}),!1})}t.overlaidText&&(e.title=t.overlaidText),e.onclick||(e.onclick=()=>!1),ul(Gx,this,Xx).call(this)}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),ul(Gx,this,Xx).call(this),!this._fieldObjects)return wc('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{null===n||void 0===n||n();const{fields:e,refs:i,include:r}=t,a=[];if(0!==e.length||0!==i.length){const t=new Set(i);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===r&&a.push(n)}else for(const t of Object.values(this._fieldObjects))a.push(...t);const o=this.annotationStorage,s=[];for(const t of a){const{id:e}=t;switch(s.push(e),t.type){case"text":{const n=t.defaultValue||"";o.setValue(e,{value:n});break}case"checkbox":case"radiobutton":{const n=t.defaultValue===t.exportValues;o.setValue(e,{value:n});break}case"combobox":case"listbox":{const n=t.defaultValue||"";o.setValue(e,{value:n});break}default:continue}const n=document.querySelector('[data-element-id="'.concat(e,'"]'));n&&(Rx.has(n)?n.dispatchEvent(new Event("resetform")):wc("_bindResetFormAction - element not allowed: ".concat(e)))}var l;this.enableScripting&&(null===(l=this.linkService.eventBus)||void 0===l||l.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:s,name:"ResetForm"}}));return!1}}}function Xx(){this.container.setAttribute("data-internal-link","")}function Kx(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e.href=this.linkService.getAnchorUrl(""),t.description?e.title=t.description:n&&(e.title=n),e.onclick=()=>{var e;return null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(t.content,t.filename,i),!1},ul(Gx,this,Xx).call(this)}function $x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),n&&(e.title=n),ul(Gx,this,Xx).call(this)}class Qx extends Vx{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(e),this.container}}
2class Zx extends Vx{render(){return this.container}showElementAndHideCanvas(e){var t;this.data.hasOwnCanvas&&("CANVAS"===(null===(t=e.previousSibling)||void 0===t?void 0:t.nodeName)&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return Rc.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,t,n,i,r){n.includes("mouse")?e.addEventListener(n,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(n,(e=>{var a;if("blur"===n){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===n){if(t.focused)return;t.focused=!0}r&&(null===(a=this.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:r(e)}}))}))}_setEventListeners(e,t,n,i){for(const[s,l]of n){var r,a,o;if("Action"===l||null!==(r=this.data.actions)&&void 0!==r&&r[l])"Focus"!==l&&"Blur"!==l||t||(t={focused:!1}),this._setEventListener(e,t,s,l,i),"Focus"!==l||null!==(a=this.data.actions)&&void 0!==a&&a.Blur?"Blur"!==l||null!==(o=this.data.actions)&&void 0!==o&&o.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null)}}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":Ic.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,r=e.style;let a;const o=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(Rl*i))||1);a=Math.min(i,o(t/Rl))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);a=Math.min(i,o(e/Rl))}r.fontSize="calc(".concat(a,"px * var(--total-scale-factor))"),r.color=Ic.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(r.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class Jx extends Zx{constructor(e){super(e,{isRenderable:e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,i){const r=this.annotationStorage;
2for(const a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[t]=n),r.setValue(a.id,{[i]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){var i;const s=e.getValue(t,{value:this.data.fieldValue});let l=s.value||"";const c=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;c&&l.length>c&&(l=l.slice(0,c));let u=s.formattedValue||(null===(i=this.data.textContent)||void 0===i?void 0:i.join("\n"))||null;u&&this.data.comb&&(u=u.replaceAll(/\s+/g,""));const d={userValue:l,formattedValue:u,lastCommittedValue:null,commitKey:1,focused:!1};var r,a;if(this.data.multiLine)n=document.createElement("textarea"),n.textContent=null!==(r=u)&&void 0!==r?r:l,this.data.doNotScroll&&(n.style.overflowY="hidden");else n=document.createElement("input"),n.type=this.data.password?"password":"text",n.setAttribute("value",null!==(a=u)&&void 0!==a?a:l),this.data.doNotScroll&&(n.style.overflowX="hidden");this.data.hasOwnCanvas&&(n.hidden=!0),Rx.add(n),this.contentElement=n,n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=0;const{datetimeFormat:h,datetimeType:f,timeStep:p}=this.data,g=!!f&&this.enableScripting;h&&(n.title=h),this._setRequired(n,this.data.required),c&&(n.maxLength=c),n.addEventListener("input",(i=>{e.setValue(t,{value:i.target.value}),this.setPropertyOnSiblings(n,"value",i.target.value,"value"),d.formattedValue=null})),n.addEventListener("resetform",(e=>{var t;const i=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";n.value=d.userValue=i,d.formattedValue=null}));let m=e=>{const{formattedValue:t}=d;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var o;n.addEventListener("focus",(e=>{var t;if(d.focused)return;const{target:n}=e;if(g&&(n.type=f,p&&(n.step=p)),d.userValue){const e=d.userValue;if(g)if("time"===f){const t=new Date(e),i=[t.getHours(),t.getMinutes(),t.getSeconds()];n.value=i.map((e=>e.toString().padStart(2,"0"))).join(":")}else n.value=new Date(e-Ox).toISOString().split("date"===f?"T":".",1)[0];else n.value=e}d.lastCommittedValue=n.value,d.commitKey=1,null!==(t=this.data.actions)&&void 0!==t&&t.Focus||(d.focused=!0)})),n.addEventListener("updatefromsandbox",(n=>{this.showElementAndHideCanvas(n.target);const i={value(n){var i;d.userValue=null!==(i=n.detail.value)&&void 0!==i?i:"",g||e.setValue(t,{value:d.userValue.toString()}),n.target.value=d.userValue},formattedValue(n){const{formattedValue:i}=n.detail;d.formattedValue=i,null!==i&&void 0!==i&&n.target!==document.activeElement&&(n.target.value=i);const r={formattedValue:i};g&&(r.value=i),e.setValue(t,r)},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{var i;const{charLimit:r}=n.detail,{target:a}=n;if(0===r)return void a.removeAttribute("maxLength");a.setAttribute("maxLength",r);let o=d.userValue;!o||o.length<=r||(o=o.slice(0,r),a.value=d.userValue=o,e.setValue(t,{value:o}),null===(i=this.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:1,selStart:a.selectionStart,selEnd:a.selectionEnd}}))}};this._dispatchEventFromSandbox(i,n)})),n.addEventListener("keydown",(e=>{var n;d.commitKey=1;let i=-1;if("Escape"===e.key?i=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(d.commitKey=3):i=2,-1===i)return;const{value:r}=e.target;d.lastCommittedValue!==r&&(d.lastCommittedValue=r,d.userValue=r,null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,willCommit:!0,commitKey:i,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const i=m;m=null,n.addEventListener("blur",(e=>{var n;if(!d.focused||!e.relatedTarget)return;null!==(n=this.data.actions)&&void 0!==n&&n.Blur||(d.focused=!1);const{target:r}=e;let{value:a}=r;if(g){if(a&&"time"===f){const e=a.split(":").map((e=>parseInt(e,10)));a=new Date(2e3,0,1,e[0],e[1],e[2]||0).valueOf(),r.step=""}else a.includes("T")||(a="".concat(a,"T00:00")),a=new Date(a).valueOf();r.type="text"}var o;(d.userValue=a,d.lastCommittedValue!==a)&&(null===(o=this.linkService.eventBus)||void 0===o||o.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,willCommit:!0,
2commitKey:d.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}));i(e)})),null!==(o=this.data.actions)&&void 0!==o&&o.Keystroke&&n.addEventListener("beforeinput",(e=>{var n;d.lastCommittedValue=null;const{data:i,target:r}=e,{value:a,selectionStart:o,selectionEnd:s}=r;let l=o,c=s;switch(e.inputType){case"deleteWordBackward":{const e=a.substring(0,o).match(/\w*[^\w]*$/);e&&(l-=e[0].length);break}case"deleteWordForward":{const e=a.substring(o).match(/^[^\w]*\w*/);e&&(c+=e[0].length);break}case"deleteContentBackward":o===s&&(l-=1);break;case"deleteContentForward":o===s&&(c+=1)}e.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,change:i||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(n,d,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(m&&n.addEventListener("blur",m),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/c;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(e,"px * var(--total-scale-factor) - 1ch)")}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class ew extends Zx{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class tw extends Zx{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let i=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"===typeof i&&(i="Off"!==i,e.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const r=document.createElement("input");return Rx.add(r),r.setAttribute("data-element-id",n),r.disabled=t.readOnly,this._setRequired(r,this.data.required),r.type="checkbox",r.name=t.fieldName,i&&r.setAttribute("checked",!0),r.setAttribute("exportValue",t.exportValue),r.tabIndex=0,r.addEventListener("change",(i=>{const{name:r,checked:a}=i.target;for(const o of this._getElementsByName(r,n)){const n=a&&o.exportValue===t.exportValue;o.domElement&&(o.domElement.checked=n),e.setValue(o.id,{value:n})}e.setValue(n,{value:a})})),r.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(r.addEventListener("updatefromsandbox",(t=>{const i={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class nw extends Zx{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,t=this.data,n=t.id;let i=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;if("string"===typeof i&&(i=i!==t.buttonValue,e.setValue(n,{value:i})),i)for(const a of this._getElementsByName(t.fieldName,n))e.setValue(a.id,{value:!1});const r=document.createElement("input");if(Rx.add(r),r.setAttribute("data-element-id",n),r.disabled=t.readOnly,this._setRequired(r,this.data.required),r.type="radio",r.name=t.fieldName,i&&r.setAttribute("checked",!0),r.tabIndex=0,r.addEventListener("change",(t=>{const{name:i,checked:r}=t.target;for(const a of this._getElementsByName(i,n))e.setValue(a.id,{value:!1});e.setValue(n,{value:r})})),r.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!==n&&void 0!==n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const i=t.buttonValue;r.addEventListener("updatefromsandbox",(t=>{const r={value:t=>{const r=i===t.detail.value;for(const i of this._getElementsByName(t.target.name)){const t=r&&i.id===n;i.domElement&&(i.domElement.checked=t),e.setValue(i.id,{value:t})}}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}
2return this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class iw extends Yx{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class rw extends Zx{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),i=document.createElement("select");Rx.add(i),i.setAttribute("data-element-id",t),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=0;let r=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const n of i.options)n.selected=n.value===t}));for(const c of this.data.options){const e=document.createElement("option");e.textContent=c.displayValue,e.value=c.exportValue,n.value.includes(c.exportValue)&&(e.setAttribute("selected",!0),r=!1),i.append(e)}let a=null;if(r){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),i.prepend(e),a=()=>{e.remove(),i.removeEventListener("input",a),a=null},i.addEventListener("input",a)}const o=e=>{const t=e?"value":"textContent",{options:n,multiple:r}=i;return r?Array.prototype.filter.call(n,(e=>e.selected)).map((e=>e[t])):-1===n.selectedIndex?null:n[n.selectedIndex][t]};let s=o(!1);const l=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",(n=>{const r={value(n){var r;null===(r=a)||void 0===r||r();const l=n.detail.value,c=new Set(Array.isArray(l)?l:[l]);for(const e of i.options)e.selected=c.has(e.value);e.setValue(t,{value:o(!0)}),s=o(!1)},multipleSelection(e){i.multiple=!0},remove(n){const r=i.options,a=n.detail.remove;if(r[a].selected=!1,i.remove(a),r.length>0){-1===Array.prototype.findIndex.call(r,(e=>e.selected))&&(r[0].selected=!0)}e.setValue(t,{value:o(!0),items:l(n)}),s=o(!1)},clear(n){for(;0!==i.length;)i.remove(0);e.setValue(t,{value:null,items:[]}),s=o(!1)},insert(n){const{index:r,displayValue:a,exportValue:c}=n.detail.insert,u=i.children[r],d=document.createElement("option");d.textContent=a,d.value=c,u?u.before(d):i.append(d),e.setValue(t,{value:o(!0),items:l(n)}),s=o(!1)},items(n){const{items:r}=n.detail;for(;0!==i.length;)i.remove(0);for(const e of r){const{displayValue:t,exportValue:n}=e,r=document.createElement("option");r.textContent=t,r.value=n,i.append(r)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(t,{value:o(!0),items:l(n)}),s=o(!1)},indices(n){const i=new Set(n.detail.indices);for(const e of n.target.options)e.selected=i.has(e.index);e.setValue(t,{value:o(!0)}),s=o(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(r,n)})),i.addEventListener("input",(n=>{var i;const r=o(!0),a=o(!1);e.setValue(t,{value:r}),n.preventDefault(),null===(i=this.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,change:a,changeEx:r,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):i.addEventListener("input",(function(n){e.setValue(t,{value:o(!0)})})),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}var aw=new WeakSet;class ow extends Vx{constructor(e){const{data:t,elements:n,parent:i}=e,r=!!i._commentManager;if(super(e,{isRenderable:!r&&Vx._hasPopupData(t)}),ll(this,aw),this.elements=n,r&&Vx._hasPopupData(t)){const e=this.popup=ul(aw,this,sw).call(this);for(const t of n)t.popup=e}else this.popup=null}render(){const{container:e}=this;e.classList.add("popupAnnotation"),e.role="comment";
2const t=this.popup=ul(aw,this,sw).call(this),n=[];for(const i of this.elements)i.popup=t,i.container.ariaHasPopup="dialog",n.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",n.map((e=>"".concat(Hc).concat(e))).join(",")),this.container}}function sw(){return new Fw({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}var lw=new WeakMap,cw=new WeakMap,uw=new WeakMap,dw=new WeakMap,hw=new WeakMap,fw=new WeakMap,pw=new WeakMap,gw=new WeakMap,mw=new WeakMap,vw=new WeakMap,bw=new WeakMap,yw=new WeakMap,xw=new WeakMap,ww=new WeakMap,_w=new WeakMap,Dw=new WeakMap,Sw=new WeakMap,kw=new WeakMap,Cw=new WeakMap,Aw=new WeakMap,Tw=new WeakMap,Ew=new WeakMap,Nw=new WeakMap,Mw=new WeakMap,Pw=new WeakMap,Uw=new WeakMap,jw=new WeakSet;
2class Fw{constructor(e){let{container:t,color:n,elements:i,titleObj:r,modificationDate:a,contentsObj:o,richText:s,parent:l,rect:c,parentRect:u,open:d,commentManager:h=null}=e;ll(this,jw),cl(this,lw,null),cl(this,cw,ul(jw,this,Hw).bind(this)),cl(this,uw,ul(jw,this,Xw).bind(this)),cl(this,dw,ul(jw,this,Yw).bind(this)),cl(this,hw,ul(jw,this,Gw).bind(this)),cl(this,fw,null),cl(this,pw,null),cl(this,gw,null),cl(this,mw,null),cl(this,vw,null),cl(this,bw,null),cl(this,yw,null),cl(this,xw,!1),cl(this,ww,null),cl(this,_w,null),cl(this,Dw,null),cl(this,Sw,null),cl(this,kw,null),cl(this,Cw,null),cl(this,Aw,null),cl(this,Tw,null),cl(this,Ew,null),cl(this,Nw,null),cl(this,Mw,!1),cl(this,Pw,null),cl(this,Uw,null),fl(pw,this,t),fl(Ew,this,r),fl(gw,this,o),fl(Tw,this,s),fl(bw,this,l),fl(fw,this,n),fl(Aw,this,c),fl(yw,this,u),fl(vw,this,i),fl(lw,this,h),fl(Pw,this,i[0]),fl(mw,this,ou.toDateObject(a)),this.trigger=i.flatMap((e=>e.getElementsToTriggerPopup())),h||(ul(jw,this,Rw).call(this),hl(pw,this).hidden=!0,d&&ul(jw,this,Gw).call(this))}renderCommentButton(){if(hl(Sw,this))return void(hl(Sw,this).parentNode||hl(Pw,this).container.after(hl(Sw,this)));if(hl(kw,this)||ul(jw,this,Ow).call(this),!hl(kw,this))return;const{signal:e}=fl(_w,this,new AbortController),t=hl(Pw,this).hasOwnCommentButton,n=()=>{hl(lw,this).toggleCommentPopup(this,!0,void 0,!t)},i=()=>{hl(lw,this).toggleCommentPopup(this,!1,!0,!t)},r=()=>{hl(lw,this).toggleCommentPopup(this,!1,!1)};if(t){fl(Sw,this,hl(Pw,this).container);for(const t of this.trigger)t.ariaHasPopup="dialog",t.ariaControls="commentPopup",t.addEventListener("keydown",hl(cw,this),{signal:e}),t.addEventListener("click",n,{signal:e}),t.addEventListener("pointerenter",i,{signal:e}),t.addEventListener("pointerleave",r,{signal:e}),t.classList.add("popupTriggerArea")}else{const t=fl(Sw,this,document.createElement("button"));t.className="annotationCommentButton";const a=hl(Pw,this).container;t.style.zIndex=a.style.zIndex+1,t.tabIndex=0,t.ariaHasPopup="dialog",t.ariaControls="commentPopup",t.setAttribute("data-l10n-id","pdfjs-show-comment-button"),ul(jw,this,Lw).call(this),ul(jw,this,Iw).call(this),t.addEventListener("keydown",hl(cw,this),{signal:e}),t.addEventListener("click",n,{signal:e}),t.addEventListener("pointerenter",i,{signal:e}),t.addEventListener("pointerleave",r,{signal:e}),a.after(t)}}get commentButtonColor(){const{color:e,opacity:t}=hl(Pw,this).commentData;return e?hl(bw,this)._commentManager.makeCommentColor(e,t):null}focusCommentButton(){setTimeout((()=>{var e;null===(e=hl(Sw,this))||void 0===e||e.focus()}),0)}
2getData(){const{richText:e,color:t,opacity:n,creationDate:i,modificationDate:r}=hl(Pw,this).commentData;return{contentsObj:{str:this.comment},richText:e,color:t,opacity:n,creationDate:i,modificationDate:r}}get elementBeforePopup(){return hl(Sw,this)}get comment(){return hl(Uw,this)||fl(Uw,this,hl(Pw,this).commentText),hl(Uw,this)}set comment(e){e!==this.comment&&(hl(Pw,this).commentText=fl(Uw,this,e))}focus(){var e;null===(e=hl(Pw,this).container)||void 0===e||e.focus()}get parentBoundingClientRect(){return hl(Pw,this).layer.getBoundingClientRect()}setCommentButtonStates(e){let{selected:t,hasPopup:n}=e;hl(Sw,this)&&(hl(Sw,this).classList.toggle("selected",t),hl(Sw,this).ariaExpanded=n)}setSelectedCommentButton(e){hl(Sw,this).classList.toggle("selected",e)}get commentPopupPosition(){if(hl(Cw,this))return hl(Cw,this);const{x:e,y:t,height:n}=hl(Sw,this).getBoundingClientRect(),{x:i,y:r,width:a,height:o}=hl(Pw,this).layer.getBoundingClientRect();return[(e-i)/a,(t+n-r)/o]}set commentPopupPosition(e){fl(Cw,this,e)}hasDefaultPopupPosition(){return null===hl(Cw,this)}get commentButtonPosition(){return hl(kw,this)}get commentButtonWidth(){return hl(Sw,this).getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(e){const[t,n]=hl(Cw,this)||this.commentButtonPosition.map((e=>e/100)),i=this.parentBoundingClientRect,{x:r,y:a,width:o,height:s}=i;hl(lw,this).showDialog(null,this,r+t*o,a+n*s,Je(Je({},e),{},{parentDimensions:i}))}render(){var e,t;if(hl(ww,this))return;const n=fl(ww,this,document.createElement("div"));if(n.className="popup",hl(fw,this)){const e=n.style.outlineColor=Ic.makeHexColor(...hl(fw,this));n.style.backgroundColor="color-mix(in srgb, ".concat(e," 30%, white)")}const i=document.createElement("span");if(i.className="header",null!==(e=hl(Ew,this))&&void 0!==e&&e.str){const e=document.createElement("span");e.className="title",i.append(e),({dir:e.dir,str:e.textContent}=hl(Ew,this))}if(n.append(i),hl(mw,this)){const e=document.createElement("time");e.className="popupDate",e.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),e.setAttribute("data-l10n-args",JSON.stringify({dateObj:hl(mw,this).valueOf()})),e.dateTime=hl(mw,this).toISOString(),i.append(e)}xu({html:dl(jw,this,Bw)||hl(gw,this).str,dir:null===(t=hl(gw,this))||void 0===t?void 0:t.dir,className:"popupContent"},n),hl(pw,this).append(n)}updateEdited(e){var t;let{rect:n,popup:i,deleted:r}=e;if(hl(lw,this))return r?(this.remove(),fl(Uw,this,null)):i&&(i.deleted?this.remove():(ul(jw,this,Lw).call(this),fl(Uw,this,i.text))),void(n&&(fl(kw,this,null),ul(jw,this,Ow).call(this),ul(jw,this,Iw).call(this)));r||null!==i&&void 0!==i&&i.deleted?this.remove():(ul(jw,this,Rw).call(this),hl(Nw,this)||fl(Nw,this,{contentsObj:hl(gw,this),richText:hl(Tw,this)}),n&&fl(Dw,this,null),i&&i.text&&(fl(Tw,this,ul(jw,this,Vw).call(this,i.text)),fl(mw,this,ou.toDateObject(i.date)),fl(gw,this,null)),null===(t=hl(ww,this))||void 0===t||t.remove(),fl(ww,this,null))}resetEdited(){var e;hl(Nw,this)&&(({contentsObj:ol(fl,[gw,this])._,richText:ol(fl,[Tw,this])._}=hl(Nw,this)),fl(Nw,this,null),null===(e=hl(ww,this))||void 0===e||e.remove(),fl(ww,this,null),fl(Dw,this,null))}remove(){var e,t,n;if(null===(e=hl(_w,this))||void 0===e||e.abort(),fl(_w,this,null),null===(t=hl(ww,this))||void 0===t||t.remove(),fl(ww,this,null),fl(Mw,this,!1),fl(xw,this,!1),null===(n=hl(Sw,this))||void 0===n||n.remove(),fl(Sw,this,null),this.trigger)for(const i of this.trigger)i.classList.remove("popupTriggerArea")}forceHide(){fl(Mw,this,this.isVisible),hl(Mw,this)&&(hl(pw,this).hidden=!0)}maybeShow(){hl(lw,this)||(ul(jw,this,Rw).call(this),hl(Mw,this)&&(hl(ww,this)||ul(jw,this,Yw).call(this),fl(Mw,this,!1),hl(pw,this).hidden=!1))}get isVisible(){return!hl(lw,this)&&!1===hl(pw,this).hidden}}function Rw(){if(hl(_w,this))return;fl(_w,this,new AbortController);const{signal:e}=hl(_w,this);for(const n of this.trigger)n.addEventListener("click",hl(hw,this),{signal:e}),n.addEventListener("pointerenter",hl(dw,this),{signal:e}),n.addEventListener("pointerleave",hl(uw,this),{signal:e}),n.classList.add("popupTriggerArea");for(const n of hl(vw,this)){var t;null===(t=n.container)||void 0===t||t.addEventListener("keydown",hl(cw,this),{signal:e})}}function Ow(){const e=hl(vw,this).find((e=>e.hasCommentButton));e&&fl(kw,this,e._normalizePoint(e.commentButtonPosition))}function Iw(){if(hl(Pw,this).extraPopupElement&&!hl(Pw,this).editor)return;hl(Sw,this)||this.renderCommentButton();const[e,t]=hl(kw,this),{style:n}=hl(Sw,this);n.left="calc(".concat(e,"%)"),n.top="calc(".concat(t,"% - var(--comment-button-dim))")}function Lw(){hl(Pw,this).extraPopupElement||(hl(Sw,this)||this.renderCommentButton(),hl(Sw,this).style.backgroundColor=this.commentButtonColor||"")}function Bw(e){const t=hl(Tw,e),n=hl(gw,e);return null===t||void 0===t||!t.str||null!==n&&void 0!==n&&n.str&&n.str!==t.str?null:hl(Tw,e).html||null}function Ww(e){var t;return(null===(t=dl(jw,e,Bw))||void 0===t||null===(t=t.attributes)||void 0===t||null===(t=t.style)||void 0===t?void 0:t.fontSize)||0}function zw(e){var t;return(null===(t=dl(jw,e,Bw))||void 0===t||null===(t=t.attributes)||void 0===t||null===(t=t.style)||void 0===t?void 0:t.color)||null}function Vw(e){const t=[],n={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:t}]}},i={style:{color:dl(jw,this,zw),fontSize:dl(jw,this,Ww)?"calc(".concat(dl(jw,this,Ww),"px * var(--total-scale-factor))"):""}};for(const r of e.split("\n"))t.push({name:"span",value:r,attributes:i});return n}function Hw(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||("Enter"===e.key||"Escape"===e.key&&hl(xw,this))&&ul(jw,this,Gw).call(this)}function qw(){if(null!==hl(Dw,this))return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:i,pageY:r}}}=hl(bw,this);let a=!!hl(yw,this),o=hl(a?yw:Aw,this);for(const h of hl(vw,this))if(!o||null!==Ic.intersect(h.data.rect,o)){o=h.data.rect,a=!0;break}const s=Ic.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),l=a?o[2]-o[0]+5:0,c=s[0]+l,u=s[1];fl(Dw,this,[100*(c-i)/t,100*(u-r)/n]);const{style:d}=hl(pw,this);
2d.left="".concat(hl(Dw,this)[0],"%"),d.top="".concat(hl(Dw,this)[1],"%")}function Gw(){hl(lw,this)?hl(lw,this).toggleCommentPopup(this,!1):(fl(xw,this,!hl(xw,this)),hl(xw,this)?(ul(jw,this,Yw).call(this),hl(pw,this).addEventListener("click",hl(hw,this)),hl(pw,this).addEventListener("keydown",hl(cw,this))):(ul(jw,this,Xw).call(this),hl(pw,this).removeEventListener("click",hl(hw,this)),hl(pw,this).removeEventListener("keydown",hl(cw,this))))}function Yw(){hl(ww,this)||this.render(),this.isVisible?hl(xw,this)&&hl(pw,this).classList.add("focused"):(ul(jw,this,qw).call(this),hl(pw,this).hidden=!1,hl(pw,this).style.zIndex=parseInt(hl(pw,this).style.zIndex)+1e3)}function Xw(){hl(pw,this).classList.remove("focused"),!hl(xw,this)&&this.isVisible&&(hl(pw,this).hidden=!0,hl(pw,this).style.zIndex=parseInt(hl(pw,this).style.zIndex)-1e3)}class Kw extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=Yl.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=this.contentElement=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}}var $w=new WeakMap;class Qw extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),cl(this,$w,null)}render(){this.container.classList.add("lineAnnotation");const{data:e,width:t,height:n}=this,i=this.svgFactory.create(t,n,!0),r=fl($w,this,this.svgFactory.createElement("svg:line"));return r.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),r.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),r.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),r.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),r.setAttribute("stroke-width",e.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","transparent"),i.append(r),this.container.append(i),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return hl($w,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var Zw=new WeakMap;class Jw extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),cl(this,Zw,null)}render(){this.container.classList.add("squareAnnotation");const{data:e,width:t,height:n}=this,i=this.svgFactory.create(t,n,!0),r=e.borderStyle.width,a=fl(Zw,this,this.svgFactory.createElement("svg:rect"));return a.setAttribute("x",r/2),a.setAttribute("y",r/2),a.setAttribute("width",t-r),a.setAttribute("height",n-r),a.setAttribute("stroke-width",r||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return hl(Zw,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var e_=new WeakMap;class t_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),cl(this,e_,null)}render(){this.container.classList.add("circleAnnotation");const{data:e,width:t,height:n}=this,i=this.svgFactory.create(t,n,!0),r=e.borderStyle.width,a=fl(e_,this,this.svgFactory.createElement("svg:ellipse"));return a.setAttribute("cx",t/2),a.setAttribute("cy",n/2),a.setAttribute("rx",t/2-r/2),a.setAttribute("ry",n/2-r/2),a.setAttribute("stroke-width",r||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!e.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return hl(e_,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var n_=new WeakMap;class i_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),cl(this,n_,null),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,vertices:t,borderStyle:n,popupRef:i},width:r,height:a}=this;if(!t)return this.container;const o=this.svgFactory.create(r,a,!0);let s=[];for(let c=0,u=t.length;c<u;c+=2){const n=t[c]-e[0],i=e[3]-t[c+1];s.push("".concat(n,",").concat(i))}s=s.join(" ");const l=fl(n_,this,this.svgFactory.createElement(this.svgElementName));return l.setAttribute("points",s),l.setAttribute("stroke-width",n.width||1),l.setAttribute("stroke","transparent"),l.setAttribute("fill","transparent"),o.append(l),this.container.append(o),!i&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}getElementsToTriggerPopup(){return hl(n_,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}class r_ extends i_{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class a_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container}}
2var o_=new WeakMap,s_=new WeakMap,l_=new WeakSet;class c_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),ll(this,l_),cl(this,o_,null),cl(this,s_,[]),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType="InkHighlight"===this.data.it?Yl.HIGHLIGHT:Yl.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,rotation:t,inkLists:n,borderStyle:i,popupRef:r}}=this,{transform:a,width:o,height:s}=ul(l_,this,u_).call(this,t,e),l=this.svgFactory.create(o,s,!0),c=fl(o_,this,this.svgFactory.createElement("svg:g"));l.append(c),c.setAttribute("stroke-width",i.width||1),c.setAttribute("stroke-linecap","round"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit",10),c.setAttribute("stroke","transparent"),c.setAttribute("fill","transparent"),c.setAttribute("transform",a);for(let u=0,d=n.length;u<d;u++){const e=this.svgFactory.createElement(this.svgElementName);hl(s_,this).push(e),e.setAttribute("points",n[u].join(",")),c.append(e)}return!r&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.append(l),this._editOnDoubleClick(),this.container}updateEdited(e){super.updateEdited(e);const{thickness:t,points:n,rect:i}=e,r=hl(o_,this);if(t>=0&&r.setAttribute("stroke-width",t||1),n)for(let a=0,o=hl(s_,this).length;a<o;a++)hl(s_,this)[a].setAttribute("points",n[a].join(","));if(i){const{transform:e,width:t,height:n}=ul(l_,this,u_).call(this,this.data.rotation,i);r.parentElement.setAttribute("viewBox","0 0 ".concat(t," ").concat(n)),r.setAttribute("transform",e)}}getElementsToTriggerPopup(){return hl(s_,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}function u_(e,t){switch(e){case 90:return{transform:"rotate(90) translate(".concat(-t[0],",").concat(t[1],") scale(1,-1)"),width:t[3]-t[1],height:t[2]-t[0]};case 180:return{transform:"rotate(180) translate(".concat(-t[2],",").concat(t[1],") scale(1,-1)"),width:t[2]-t[0],height:t[3]-t[1]};case 270:return{transform:"rotate(270) translate(".concat(-t[2],",").concat(t[3],") scale(1,-1)"),width:t[3]-t[1],height:t[2]-t[0]};default:return{transform:"translate(".concat(-t[0],",").concat(t[3],") scale(1,-1)"),width:t[2]-t[0],height:t[3]-t[1]}}}class d_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=Yl.HIGHLIGHT}render(){const{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),e){const t=document.createElement("mark");t.classList.add("overlaidText"),t.textContent=e,this.container.append(t)}return this.container}}class h_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("underlineAnnotation"),e){const t=document.createElement("u");t.classList.add("overlaidText"),t.textContent=e,this.container.append(t)}return this.container}}class f_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("squigglyAnnotation"),e){const t=document.createElement("u");t.classList.add("overlaidText"),t.textContent=e,this.container.append(t)}return this.container}}class p_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:t}}=this;if(!t&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this.container.classList.add("strikeoutAnnotation"),e){const t=document.createElement("s");t.classList.add("overlaidText"),t.textContent=e,this.container.append(t)}return this.container}}class g_ extends Vx{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=Yl.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&(this.hasOwnCommentButton=!0,this._createPopup()),this._editOnDoubleClick(),this.container}}
2var m_=new WeakMap,v_=new WeakSet;class b_ extends Vx{constructor(e){var t;super(e,{isRenderable:!0}),ll(this,v_),cl(this,m_,null);const{file:n}=this.data;this.filename=n.filename,this.content=n.content,null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("fileattachmentannotation",Je({source:this},n))}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:e,data:t}=this;let n;t.hasAppearance||0===t.fillAlpha?n=document.createElement("div"):(n=document.createElement("img"),n.src="".concat(this.imageResourcesPath,"annotation-").concat(/paperclip/i.test(t.name)?"paperclip":"pushpin",".svg"),t.fillAlpha&&t.fillAlpha<1&&(n.style="filter: opacity(".concat(Math.round(100*t.fillAlpha),"%);"))),n.addEventListener("dblclick",ul(v_,this,y_).bind(this)),fl(m_,this,n);const{isMac:i}=Rc.platform;return e.addEventListener("keydown",(e=>{"Enter"===e.key&&(i?e.metaKey:e.ctrlKey)&&ul(v_,this,y_).call(this)})),!t.popupRef&&this.hasPopupData?(this.hasOwnCommentButton=!0,this._createPopup()):n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return hl(m_,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}function y_(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.content,this.filename)}var x_=new WeakMap,w_=new WeakMap,__=new WeakMap,D_=new WeakMap,S_=new WeakMap,k_=new WeakMap,C_=new WeakMap,A_=new WeakMap,T_=new WeakSet;class E_{constructor(e){let{div:t,accessibilityManager:n,annotationCanvasMap:i,annotationEditorUIManager:r,page:a,viewport:o,structTreeLayer:s,commentManager:l,linkService:c,annotationStorage:u}=e;ll(this,T_),cl(this,x_,null),cl(this,w_,null),cl(this,__,null),cl(this,D_,new Map),cl(this,S_,null),cl(this,k_,null),cl(this,C_,[]),cl(this,A_,!1),this.div=t,fl(x_,this,n),fl(w_,this,i),fl(S_,this,s||null),fl(k_,this,c||null),fl(__,this,u||new Mp),this.page=a,this.viewport=o,this.zIndex=0,this._annotationEditorUIManager=r,this._commentManager=l||null}hasEditableAnnotations(){return hl(D_,this).size>0}async render(e){const{annotations:t}=e,n=this.div;du(n,this.viewport);const i=new Map,r=[],a={data:null,layer:n,linkService:hl(k_,this),downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new Fx,annotationStorage:hl(__,this),enableComment:!0===e.enableComment,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const s of t){if(s.noHTML)continue;const e=s.annotationType===rc.POPUP;if(e){const e=i.get(s.id);if(!e)continue;if(!this._commentManager){r.push(s);continue}a.elements=e}else if(s.rect[2]===s.rect[0]||s.rect[3]===s.rect[1])continue;a.data=s;const t=Ix.create(a);if(!t.isRenderable)continue;if(!e&&(hl(C_,this).push(t),s.popupRef)){const e=i.get(s.popupRef);e?e.push(t):i.set(s.popupRef,[t])}const n=t.render();var o;if(s.hidden&&(n.style.visibility="hidden"),t._isEditable)hl(D_,this).set(t.data.id,t),null===(o=this._annotationEditorUIManager)||void 0===o||o.renderAnnotationElement(t)}await ul(T_,this,N_).call(this);for(const s of r){const e=a.elements=i.get(s.id);a.data=s;const t=Ix.create(a);if(!t.isRenderable)continue;const n=t.render();t.contentElement.id="".concat(Hc).concat(s.id),s.hidden&&(n.style.visibility="hidden"),e.at(-1).container.after(n)}ul(T_,this,M_).call(this)}async addLinkAnnotations(e){const t={data:null,layer:this.div,linkService:hl(k_,this),svgFactory:new Fx,parent:this};for(const n of e){n.borderStyle||(n.borderStyle=E_._defaultBorderStyle),t.data=n;const e=Ix.create(t);e.isRenderable&&(e.render(),e.contentElement.id="".concat(Hc).concat(n.id),hl(C_,this).push(e))}await ul(T_,this,N_).call(this)}update(e){let{viewport:t}=e;const n=this.div;this.viewport=t,du(n,{rotation:t.rotation}),ul(T_,this,M_).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(hl(D_,this).values())}getEditableAnnotation(e){return hl(D_,this).get(e)}addFakeAnnotation(e){const{div:t}=this,{id:n,rotation:i}=e,r=new qx({data:{id:n,rect:e.getPDFRect(),rotation:i},editor:e,layer:t,parent:this,enableComment:!!this._commentManager,linkService:hl(k_,this),annotationStorage:hl(__,this)});return r.render(),r.contentElement.id="".concat(Hc).concat(n),r.createOrUpdatePopup(),hl(C_,this).push(r),r}removeAnnotation(e){var t;const n=hl(C_,this).findIndex((t=>t.data.id===e));if(n<0)return;const[i]=hl(C_,this).splice(n,1);null===(t=hl(x_,this))||void 0===t||t.removePointerInTextLayer(i.contentElement)}updateFakeAnnotations(e){if(0!==e.length){for(const t of e)t.updateFakeAnnotationElement(this);ul(T_,this,N_).call(this)}}togglePointerEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("disabled",!e)}static get _defaultBorderStyle(){return Cc(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:ac,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}}async function N_(){if(0===hl(C_,this).length)return;this.div.replaceChildren();const e=[];
2if(!hl(A_,this)){fl(A_,this,!0);for(const{contentElement:n,data:{id:i}}of hl(C_,this)){var t;const r=n.id="".concat(Hc).concat(i);e.push(null===(t=hl(S_,this))||void 0===t?void 0:t.getAriaAttributes(r).then((e=>{if(e)for(const[t,i]of e)n.setAttribute(t,i)})))}}hl(C_,this).sort(((e,t)=>{let{data:{rect:[n,i,r,a]}}=e,{data:{rect:[o,s,l,c]}}=t;if(n===r&&i===a)return 1;if(o===l&&s===c)return-1;const u=(i+a)/2,d=(s+c)/2;if(u>=c&&d<=i)return-1;if(d>=a&&u<=s)return 1;return(n+r)/2-(o+l)/2}));const n=document.createDocumentFragment();for(const a of hl(C_,this)){var i,r;if(n.append(a.container),this._commentManager)null===(i=(null===(r=a.extraPopupElement)||void 0===r?void 0:r.popup)||a.popup)||void 0===i||i.renderCommentButton();else a.extraPopupElement&&n.append(a.extraPopupElement.render())}if(this.div.append(n),await Promise.all(e),hl(x_,this))for(const a of hl(C_,this))hl(x_,this).addPointerInTextLayer(a.contentElement,!1)}function M_(){if(!hl(w_,this))return;const e=this.div;for(const[n,i]of hl(w_,this)){const r=e.querySelector('[data-annotation-id="'.concat(n,'"]'));if(!r)continue;i.className="annotationContent";const{firstChild:a}=r;a?"CANVAS"===a.nodeName?a.replaceWith(i):a.classList.contains("annotationContent")?a.after(i):a.before(i):r.append(i);const o=hl(D_,this).get(n);var t;if(o)if(o._hasNoCanvas)null===(t=this._annotationEditorUIManager)||void 0===t||t.setMissingCanvas(n,r.id,i),o._hasNoCanvas=!1;else o.canvas=i}hl(w_,this).clear()}const P_=/\r\n?|\n/g;var U_=new WeakMap,j_=new WeakMap,F_=new WeakMap,R_=new WeakMap,O_=new WeakSet;class I_ extends ep{static get _keyboardManager(){const e=I_.prototype,t=e=>e.isEmpty(),n=dh.TRANSLATE_SMALL,i=dh.TRANSLATE_BIG;return Cc(this,"_keyboardManager",new hd([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[i,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,i],checker:t}]]))}constructor(e){super(Je(Je({},e),{},{name:"freeTextEditor"})),ll(this,O_),cl(this,U_,""),cl(this,j_,"".concat(this.id,"-editor")),cl(this,F_,null),cl(this,R_,void 0),Qe(this,"_colorPicker",null),this.color=e.color||I_._defaultColor||ep._defaultLineColor,fl(R_,this,e.fontSize||I_._defaultFontSize),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert"),this.canAddComment=!1}static initialize(e,t){ep.initialize(e,t);const n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case Xl.FREETEXT_SIZE:I_._defaultFontSize=t;break;case Xl.FREETEXT_COLOR:I_._defaultColor=t}}updateParams(e,t){switch(e){case Xl.FREETEXT_SIZE:ul(O_,this,L_).call(this,t);break;case Xl.FREETEXT_COLOR:ul(O_,this,B_).call(this,t)}}static get defaultPropertiesToUpdate(){return[[Xl.FREETEXT_SIZE,I_._defaultFontSize],[Xl.FREETEXT_COLOR,I_._defaultColor||ep._defaultLineColor]]}get propertiesToUpdate(){return[[Xl.FREETEXT_SIZE,hl(R_,this)],[Xl.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new Ex(this)),[["colorPicker",this._colorPicker]]}get colorType(){return Xl.FREETEXT_COLOR}onUpdatedColor(){var e;this.editorDiv.style.color=this.color,null===(e=this._colorPicker)||void 0===e||e.update(this.color),super.onUpdatedColor()}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){const e=this.parentScale;return[-I_._internalPadding*e,-(I_._internalPadding+hl(R_,this))*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),fl(F_,this,new AbortController);const e=this._uiManager.combinedSignal(hl(F_,this));return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){var e;return!!super.disableEditMode()&&(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",hl(j_,this)),this._isDraggable=!0,null===(e=hl(F_,this))||void 0===e||e.abort(),fl(F_,this,null),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0)}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){var t;this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),null!==(t=this._initialOptions)&&void 0!==t&&t.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=hl(U_,this),t=fl(U_,this,ul(O_,this,W_).call(this).trimEnd());if(e===t)return;const n=e=>{fl(U_,this,e),e?(ul(O_,this,H_).call(this),this._uiManager.rebuild(this),ul(O_,this,z_).call(this)):this.remove()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),ul(O_,this,z_).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){I_._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}
2render(){if(this.div)return this.div;let e,t;(this._isCopy||this.annotationElementId)&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",hl(j_,this)),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize="calc(".concat(hl(R_,this),"px * var(--total-scale-factor))"),n.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){const[n,i]=this.parentDimensions;if(this.annotationElementId){const{position:r}=this._initialData;let[a,o]=this.getInitialTranslation();[a,o]=this.pageTranslationToScreen(a,o);const[s,l]=this.pageDimensions,[c,u]=this.pageTranslation;let d,h;switch(this.rotation){case 0:d=e+(r[0]-c)/s,h=t+this.height-(r[1]-u)/l;break;case 90:d=e+(r[0]-c)/s,h=t-(r[1]-u)/l,[a,o]=[o,-a];break;case 180:d=e-this.width+(r[0]-c)/s,h=t-(r[1]-u)/l,[a,o]=[-a,-o];break;case 270:d=e+(r[0]-c-this.height*l)/s,h=t+(r[1]-u-this.width*s)/l,[a,o]=[-o,a]}this.setAt(d*n,h*i,a,o)}else this._moveAfterPaste(e,t);ul(O_,this,H_).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}editorDivPaste(e){const t=e.clipboardData||window.clipboardData,{types:n}=t;if(1===n.length&&"text/plain"===n[0])return;e.preventDefault();const i=G_.call(I_,t.getData("text")||"").replaceAll(P_,"\n");if(!i)return;const r=window.getSelection();if(!r.rangeCount)return;this.editorDiv.normalize(),r.deleteFromDocument();const a=r.getRangeAt(0);if(!i.includes("\n"))return a.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),void r.collapseToStart();const{startContainer:o,startOffset:s}=a,l=[],c=[];if(o.nodeType===Node.TEXT_NODE){const e=o.parentElement;if(c.push(o.nodeValue.slice(s).replaceAll(P_,"")),e!==this.editorDiv){let t=l;for(const n of this.editorDiv.childNodes)n!==e?t.push(V_.call(I_,n)):t=c}l.push(o.nodeValue.slice(0,s).replaceAll(P_,""))}else if(o===this.editorDiv){let e=l,t=0;for(const n of this.editorDiv.childNodes)t++===s&&(e=c),e.push(V_.call(I_,n))}fl(U_,this,"".concat(l.join("\n")).concat(i).concat(c.join("\n"))),ul(O_,this,H_).call(this);const u=new Range;let d=Math.sumPrecise(l.map((e=>e.length)));for(const{firstChild:h}of this.editorDiv.childNodes)if(h.nodeType===Node.TEXT_NODE){const e=h.nodeValue.length;if(d<=e){u.setStart(h,d),u.setEnd(h,d);break}d-=e}r.removeAllRanges(),r.addRange(u)}get contentDiv(){return this.editorDiv}getPDFRect(){const e=I_._internalPadding*this.parentScale;return this.getRect(e,e)}static async deserialize(e,t,n){let i=null;if(e instanceof Kw){const{data:{defaultAppearanceData:{fontSize:t,fontColor:n},rect:r,rotation:a,id:o,popupRef:s,richText:l,contentsObj:c,creationDate:u,modificationDate:d},textContent:h,textPosition:f,parent:{page:{pageNumber:p}}}=e;if(!h||0===h.length)return null;i=e={annotationType:Yl.FREETEXT,color:Array.from(n),fontSize:t,value:h.join("\n"),position:f,pageIndex:p-1,rect:r.slice(0),rotation:a,annotationElementId:o,id:o,deleted:!1,popupRef:s,comment:(null===c||void 0===c?void 0:c.str)||null,richText:l,creationDate:u,modificationDate:d}}const r=await super.deserialize(e,t,n);return fl(R_,r,e.fontSize),r.color=Ic.makeHexColor(...e.color),fl(U_,r,G_.call(I_,e.value)),r._initialData=i,e.comment&&r.setCommentData(e),r}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const t=ep._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),n=Object.assign(super.serialize(e),{color:t,fontSize:hl(R_,this),value:ul(O_,this,q_).call(this)});return this.addComment(n),e?(n.isCopy=!0,n):this.annotationElementId&&!ul(O_,this,Y_).call(this,n)?null:(n.id=this.annotationElementId,n)}renderAnnotationElement(e){const t=super.renderAnnotationElement(e);
2if(!t)return null;const{style:n}=t;n.fontSize="calc(".concat(hl(R_,this),"px * var(--total-scale-factor))"),n.color=this.color,t.replaceChildren();for(const i of hl(U_,this).split("\n")){const e=document.createElement("div");e.append(i?document.createTextNode(i):document.createElement("br")),t.append(e)}return e.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:hl(U_,this)}}),t}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}}function L_(e){const t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--total-scale-factor))"),this.translate(0,-(e-hl(R_,this))*this.parentScale),fl(R_,this,e),ul(O_,this,z_).call(this)},n=hl(R_,this);this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Xl.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function B_(e){const t=e=>{this.color=e,this.onUpdatedColor()},n=this.color;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Xl.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function W_(){const e=[];this.editorDiv.normalize();let t=null;for(const i of this.editorDiv.childNodes){var n;(null===(n=t)||void 0===n?void 0:n.nodeType)===Node.TEXT_NODE&&"BR"===i.nodeName||(e.push(V_.call(El,i)),t=i)}return e.join("\n")}function z_(){const[e,t]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,i=t.style.display,r=t.classList.contains("hidden");t.classList.remove("hidden"),t.style.display="hidden",e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=i,t.classList.toggle("hidden",r)}this.rotation%180===this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}function V_(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(P_,"")}function H_(){if(this.editorDiv.replaceChildren(),hl(U_,this))for(const e of hl(U_,this).split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}function q_(){return hl(U_,this).replaceAll("\xa0"," ")}function G_(e){return e.replaceAll(" ","\xa0")}function Y_(e){const{value:t,fontSize:n,color:i,pageIndex:r}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==t||e.fontSize!==n||e.color.some(((e,t)=>e!==i[t]))||e.pageIndex!==r}El=I_,Qe(I_,"_freeTextDefaultContent",""),Qe(I_,"_internalPadding",0),Qe(I_,"_defaultColor",null),Qe(I_,"_defaultFontSize",10),Qe(I_,"_type","freetext"),Qe(I_,"_editorType",Yl.FREETEXT);class X_{toSVGPath(){_c("Abstract method `toSVGPath` must be implemented.")}get box(){_c("Abstract getter `box` must be implemented.")}serialize(e,t){_c("Abstract method `serialize` must be implemented.")}static _rescale(e,t,n,i,r,a){a||(a=new Float32Array(e.length));for(let o=0,s=e.length;o<s;o+=2)a[o]=t+e[o]*i,a[o+1]=n+e[o+1]*r;return a}static _rescaleAndSwap(e,t,n,i,r,a){a||(a=new Float32Array(e.length));for(let o=0,s=e.length;o<s;o+=2)a[o]=t+e[o+1]*i,a[o+1]=n+e[o]*r;return a}static _translate(e,t,n,i){i||(i=new Float32Array(e.length));for(let r=0,a=e.length;r<a;r+=2)i[r]=t+e[r],i[r+1]=n+e[r+1];return i}static svgRound(e){return Math.round(1e4*e)}static _normalizePoint(e,t,n,i,r){switch(r){case 90:return[1-t/n,e/i];case 180:return[1-e/n,1-t/i];case 270:return[t/n,1-e/i];default:return[e/n,t/i]}}static _normalizePagePoint(e,t,n){switch(n){case 90:return[1-t,e];case 180:return[1-e,1-t];case 270:return[t,1-e];default:return[e,t]}}static createBezierPoints(e,t,n,i,r,a){return[(e+5*n)/6,(t+5*i)/6,(5*n+r)/6,(5*i+a)/6,(n+r)/2,(i+a)/2]}}Qe(X_,"PRECISION",1e-4);var K_=new WeakMap,$_=new WeakMap,Q_=new WeakMap,Z_=new WeakMap,J_=new WeakMap,eD=new WeakMap,tD=new WeakMap,nD=new WeakMap,iD=new WeakMap,rD=new WeakMap,aD=new WeakMap,oD=new WeakMap,sD=new WeakMap,lD=new WeakSet;class cD{constructor(e,t,n,i,r){let{x:a,y:o}=e,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;ll(this,lD),cl(this,K_,void 0),cl(this,$_,[]),cl(this,Q_,void 0),cl(this,Z_,void 0),cl(this,J_,[]),cl(this,eD,new Float32Array(18)),cl(this,tD,void 0),cl(this,nD,void 0),cl(this,iD,void 0),cl(this,rD,void 0),cl(this,aD,void 0),cl(this,oD,void 0),cl(this,sD,[]),fl(K_,this,t),fl(oD,this,i*n),fl(Z_,this,r),hl(eD,this).set([NaN,NaN,NaN,NaN,a,o],6),fl(Q_,this,s),fl(rD,this,vD._*n),fl(iD,this,bD._*n),fl(aD,this,n),hl(sD,this).push(a,o)}isEmpty(){return isNaN(hl(eD,this)[8])}add(e){var t;let{x:n,y:i}=e;fl(tD,this,n),fl(nD,this,i);const[r,a,o,s]=hl(K_,this);let[l,c,u,d]=hl(eD,this).subarray(8,12);const h=n-u,f=i-d,p=Math.hypot(h,f);if(p<hl(iD,this))return!1;const g=p-hl(rD,this),m=g/p,v=m*h,b=m*f;let y=l,x=c;l=u,c=d,u+=v,d+=b,null===(t=hl(sD,this))||void 0===t||t.push(n,i);const w=v/g,_=-b/g*hl(oD,this),D=w*hl(oD,this);if(hl(eD,this).set(hl(eD,this).subarray(2,8),0),hl(eD,this).set([u+_,d+D],4),hl(eD,this).set(hl(eD,this).subarray(14,18),12),hl(eD,this).set([u-_,d-D],16),isNaN(hl(eD,this)[6]))return 0===hl(J_,this).length&&(hl(eD,this).set([l+_,c+D],2),hl(J_,this).push(NaN,NaN,NaN,NaN,(l+_-r)/o,(c+D-a)/s),hl(eD,this).set([l-_,c-D],14),hl($_,this).push(NaN,NaN,NaN,NaN,(l-_-r)/o,(c-D-a)/s)),hl(eD,this).set([y,x,l,c,u,d],6),!this.isEmpty();hl(eD,this).set([y,x,l,c,u,d],6);return Math.abs(Math.atan2(x-c,y-l)-Math.atan2(b,v))<Math.PI/2?([l,c,u,d]=hl(eD,this).subarray(2,6),hl(J_,this).push(NaN,NaN,NaN,NaN,((l+u)/2-r)/o,((c+d)/2-a)
2/s),[l,c,y,x]=hl(eD,this).subarray(14,18),hl($_,this).push(NaN,NaN,NaN,NaN,((y+l)/2-r)/o,((x+c)/2-a)/s),!0):([y,x,l,c,u,d]=hl(eD,this).subarray(0,6),hl(J_,this).push(((y+5*l)/6-r)/o,((x+5*c)/6-a)/s,((5*l+u)/6-r)/o,((5*c+d)/6-a)/s,((l+u)/2-r)/o,((c+d)/2-a)/s),[u,d,l,c,y,x]=hl(eD,this).subarray(12,18),hl($_,this).push(((y+5*l)/6-r)/o,((x+5*c)/6-a)/s,((5*l+u)/6-r)/o,((5*c+d)/6-a)/s,((l+u)/2-r)/o,((c+d)/2-a)/s),!0)}toSVGPath(){if(this.isEmpty())return"";const e=hl(J_,this),t=hl($_,this);if(isNaN(hl(eD,this)[6])&&!this.isEmpty())return ul(lD,this,dD).call(this);const n=[];n.push("M".concat(e[4]," ").concat(e[5]));for(let i=6;i<e.length;i+=6)isNaN(e[i])?n.push("L".concat(e[i+4]," ").concat(e[i+5])):n.push("C".concat(e[i]," ").concat(e[i+1]," ").concat(e[i+2]," ").concat(e[i+3]," ").concat(e[i+4]," ").concat(e[i+5]));ul(lD,this,fD).call(this,n);for(let i=t.length-6;i>=6;i-=6)isNaN(t[i])?n.push("L".concat(t[i+4]," ").concat(t[i+5])):n.push("C".concat(t[i]," ").concat(t[i+1]," ").concat(t[i+2]," ").concat(t[i+3]," ").concat(t[i+4]," ").concat(t[i+5]));return ul(lD,this,hD).call(this,n),n.join(" ")}newFreeDrawOutline(e,t,n,i,r,a){return new AD(e,t,n,i,r,a)}getOutlines(){var e,t;const n=hl(J_,this),i=hl($_,this),r=hl(eD,this),[a,o,s,l]=hl(K_,this),c=new Float32Array((null!==(e=null===(t=hl(sD,this))||void 0===t?void 0:t.length)&&void 0!==e?e:0)+2);for(let h=0,f=c.length-2;h<f;h+=2)c[h]=(hl(sD,this)[h]-a)/s,c[h+1]=(hl(sD,this)[h+1]-o)/l;if(c[c.length-2]=(hl(tD,this)-a)/s,c[c.length-1]=(hl(nD,this)-o)/l,isNaN(r[6])&&!this.isEmpty())return ul(lD,this,pD).call(this,c);const u=new Float32Array(hl(J_,this).length+24+hl($_,this).length);let d=n.length;for(let h=0;h<d;h+=2)isNaN(n[h])?u[h]=u[h+1]=NaN:(u[h]=n[h],u[h+1]=n[h+1]);d=ul(lD,this,mD).call(this,u,d);for(let h=i.length-6;h>=6;h-=6)for(let e=0;e<6;e+=2)isNaN(i[h+e])?(u[d]=u[d+1]=NaN,d+=2):(u[d]=i[h+e],u[d+1]=i[h+e+1],d+=2);return ul(lD,this,gD).call(this,u,d),this.newFreeDrawOutline(u,c,hl(K_,this),hl(aD,this),hl(Q_,this),hl(Z_,this))}}function uD(){const e=hl(eD,this).subarray(4,6),t=hl(eD,this).subarray(16,18),[n,i,r,a]=hl(K_,this);return[(hl(tD,this)+(e[0]-t[0])/2-n)/r,(hl(nD,this)+(e[1]-t[1])/2-i)/a,(hl(tD,this)+(t[0]-e[0])/2-n)/r,(hl(nD,this)+(t[1]-e[1])/2-i)/a]}function dD(){const[e,t,n,i]=hl(K_,this),[r,a,o,s]=ul(lD,this,uD).call(this);return"M".concat((hl(eD,this)[2]-e)/n," ").concat((hl(eD,this)[3]-t)/i," L").concat((hl(eD,this)[4]-e)/n," ").concat((hl(eD,this)[5]-t)/i," L").concat(r," ").concat(a," L").concat(o," ").concat(s," L").concat((hl(eD,this)[16]-e)/n," ").concat((hl(eD,this)[17]-t)/i," L").concat((hl(eD,this)[14]-e)/n," ").concat((hl(eD,this)[15]-t)/i," Z")}function hD(e){const t=hl($_,this);e.push("L".concat(t[4]," ").concat(t[5]," Z"))}function fD(e){const[t,n,i,r]=hl(K_,this),a=hl(eD,this).subarray(4,6),o=hl(eD,this).subarray(16,18),[s,l,c,u]=ul(lD,this,uD).call(this);e.push("L".concat((a[0]-t)/i," ").concat((a[1]-n)/r," L").concat(s," ").concat(l," L").concat(c," ").concat(u," L").concat((o[0]-t)/i," ").concat((o[1]-n)/r))}function pD(e){const t=hl(eD,this),[n,i,r,a]=hl(K_,this),[o,s,l,c]=ul(lD,this,uD).call(this),u=new Float32Array(36);return u.set([NaN,NaN,NaN,NaN,(t[2]-n)/r,(t[3]-i)/a,NaN,NaN,NaN,NaN,(t[4]-n)/r,(t[5]-i)/a,NaN,NaN,NaN,NaN,o,s,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,(t[16]-n)/r,(t[17]-i)/a,NaN,NaN,NaN,NaN,(t[14]-n)/r,(t[15]-i)/a],0),this.newFreeDrawOutline(u,e,hl(K_,this),hl(aD,this),hl(Q_,this),hl(Z_,this))}function gD(e,t){const n=hl($_,this);return e.set([NaN,NaN,NaN,NaN,n[4],n[5]],t),t+6}function mD(e,t){const n=hl(eD,this).subarray(4,6),i=hl(eD,this).subarray(16,18),[r,a,o,s]=hl(K_,this),[l,c,u,d]=ul(lD,this,uD).call(this);return e.set([NaN,NaN,NaN,NaN,(n[0]-r)/o,(n[1]-a)/s,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,u,d,NaN,NaN,NaN,NaN,(i[0]-r)/o,(i[1]-a)/s],t),t+24}var vD={_:8},bD={_:vD._+2},yD=new WeakMap,xD=new WeakMap,wD=new WeakMap,_D=new WeakMap,DD=new WeakMap,SD=new WeakMap,kD=new WeakMap,CD=new WeakSet;class AD extends X_{constructor(e,t,n,i,r,a){super(),ll(this,CD),cl(this,yD,void 0),cl(this,xD,new Float32Array(4)),cl(this,wD,void 0),cl(this,_D,void 0),cl(this,DD,void 0),cl(this,SD,void 0),cl(this,kD,void 0),fl(kD,this,e),fl(DD,this,t),fl(yD,this,n),fl(SD,this,i),fl(wD,this,r),fl(_D,this,a),this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],ul(CD,this,TD).call(this,a);const[o,s,l,c]=hl(xD,this);for(let u=0,d=e.length;u<d;u+=2)e[u]=(e[u]-o)/l,e[u+1]=(e[u+1]-s)/c;for(let u=0,d=t.length;u<d;u+=2)t[u]=(t[u]-o)/l,t[u+1]=(t[u+1]-s)/c}toSVGPath(){const e=["M".concat(hl(kD,this)[4]," ").concat(hl(kD,this)[5])];for(let t=6,n=hl(kD,this).length;t<n;t+=6)isNaN(hl(kD,this)[t])?e.push("L".concat(hl(kD,this)[t+4]," ").concat(hl(kD,this)[t+5])):e.push("C".concat(hl(kD,this)[t]," ").concat(hl(kD,this)[t+1]," ").concat(hl(kD,this)[t+2]," ").concat(hl(kD,this)[t+3]," ").concat(hl(kD,this)[t+4]," ").concat(hl(kD,this)[t+5]));return e.push("Z"),e.join(" ")}serialize(e,t){let[n,i,r,a]=e;const o=r-n,s=a-i;let l,c;switch(t){case 0:l=X_._rescale(hl(kD,this),n,a,o,-s),c=X_._rescale(hl(DD,this),n,a,o,-s);break;case 90:l=X_._rescaleAndSwap(hl(kD,this),n,i,o,s),c=X_._rescaleAndSwap(hl(DD,this),n,i,o,s);break;case 180:l=X_._rescale(hl(kD,this),r,i,-o,s),c=X_._rescale(hl(DD,this),r,i,-o,s);break;case 270:l=X_._rescaleAndSwap(hl(kD,this),r,a,-o,-s),c=X_._rescaleAndSwap(hl(DD,this),r,a,-o,-s)}return{outline:Array.from(l),points:[Array.from(c)]}}get box(){return hl(xD,this)}
2newOutliner(e,t,n,i,r){return new cD(e,t,n,i,r,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0)}getNewOutline(e,t){const[n,i,r,a]=hl(xD,this),[o,s,l,c]=hl(yD,this),u=r*l,d=a*c,h=n*l+o,f=i*c+s,p=this.newOutliner({x:hl(DD,this)[0]*u+h,y:hl(DD,this)[1]*d+f},hl(yD,this),hl(SD,this),e,hl(_D,this),null!==t&&void 0!==t?t:hl(wD,this));for(let g=2;g<hl(DD,this).length;g+=2)p.add({x:hl(DD,this)[g]*u+h,y:hl(DD,this)[g+1]*d+f});return p.getOutlines()}}function TD(e){const t=hl(kD,this);let n=t[4],i=t[5];const r=[n,i,n,i];let a=n,o=i,s=n,l=i;const c=e?Math.max:Math.min,u=new Float32Array(4);for(let h=6,f=t.length;h<f;h+=6){const e=t[h+4],d=t[h+5];isNaN(t[h])?(Ic.pointBoundingBox(e,d,r),o>d?(a=e,o=d):o===d&&(a=c(a,e)),l<d?(s=e,l=d):l===d&&(s=c(s,e))):(u[0]=u[1]=1/0,u[2]=u[3]=-1/0,Ic.bezierBoundingBox(n,i,...t.slice(h,h+6),u),Ic.rectBoundingBox(u[0],u[1],u[2],u[3],r),o>u[1]?(a=u[0],o=u[1]):o===u[1]&&(a=c(a,u[0])),l<u[3]?(s=u[2],l=u[3]):l===u[3]&&(s=c(s,u[2]))),n=e,i=d}const d=hl(xD,this);d[0]=r[0]-hl(wD,this),d[1]=r[1]-hl(wD,this),d[2]=r[2]-r[0]+2*hl(wD,this),d[3]=r[3]-r[1]+2*hl(wD,this),this.firstPoint=[a,o],this.lastPoint=[s,l]}var ED=new WeakMap,ND=new WeakMap,MD=new WeakMap,PD=new WeakMap,UD=new WeakMap,jD=new WeakSet;class FD{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];ll(this,jD),cl(this,ED,void 0),cl(this,ND,void 0),cl(this,MD,void 0),cl(this,PD,[]),cl(this,UD,[]);const r=[1/0,1/0,-1/0,-1/0],a=10**-4;for(const{x:p,y:g,width:m,height:v}of e){const e=Math.floor((p-t)/a)*a,n=Math.ceil((p+m+t)/a)*a,i=Math.floor((g-t)/a)*a,o=Math.ceil((g+v+t)/a)*a,s=[e,i,o,!0],l=[n,i,o,!1];hl(PD,this).push(s,l),Ic.rectBoundingBox(e,i,n,o,r)}const o=r[2]-r[0]+2*n,s=r[3]-r[1]+2*n,l=r[0]-n,c=r[1]-n;let u=i?-1/0:1/0,d=1/0;const h=hl(PD,this).at(i?-1:-2),f=[h[0],h[2]];for(const p of hl(PD,this)){const[e,t,n,r]=p;!r&&i?t<d?(d=t,u=e):t===d&&(u=Math.max(u,e)):r&&!i&&(t<d?(d=t,u=e):t===d&&(u=Math.min(u,e))),p[0]=(e-l)/o,p[1]=(t-c)/s,p[2]=(n-c)/s}fl(ED,this,new Float32Array([l,c,o,s])),fl(ND,this,[u,d]),fl(MD,this,f)}getOutlines(){hl(PD,this).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2]));const e=[];for(const t of hl(PD,this))t[3]?(e.push(...ul(jD,this,BD).call(this,t)),ul(jD,this,ID).call(this,t)):(ul(jD,this,LD).call(this,t),e.push(...ul(jD,this,BD).call(this,t)));return ul(jD,this,RD).call(this,e)}}function RD(e){const t=[],n=new Set;for(const a of e){const[e,n,i]=a;t.push([e,n,a],[e,i,a])}t.sort(((e,t)=>e[1]-t[1]||e[0]-t[0]));for(let a=0,o=t.length;a<o;a+=2){const e=t[a][2],i=t[a+1][2];e.push(i),i.push(e),n.add(e),n.add(i)}const i=[];let r;for(;n.size>0;){const e=n.values().next().value;let[t,a,o,s,l]=e;n.delete(e);let c=t,u=a;for(r=[t,o],i.push(r);;){let e;if(n.has(s))e=s;else{if(!n.has(l))break;e=l}n.delete(e),[t,a,o,s,l]=e,c!==t&&(r.push(c,u,t,u===a?a:o),c=t),u=u===a?o:a}r.push(c,u)}return new VD(i,hl(ED,this),hl(ND,this),hl(MD,this))}function OD(e){const t=hl(UD,this);let n=0,i=t.length-1;for(;n<=i;){const r=n+i>>1,a=t[r][0];if(a===e)return r;a<e?n=r+1:i=r-1}return i+1}function ID(e){let[,t,n]=e;const i=ul(jD,this,OD).call(this,t);hl(UD,this).splice(i,0,[t,n])}function LD(e){let[,t,n]=e;const i=ul(jD,this,OD).call(this,t);for(let r=i;r<hl(UD,this).length;r++){const[e,i]=hl(UD,this)[r];if(e!==t)break;if(e===t&&i===n)return void hl(UD,this).splice(r,1)}for(let r=i-1;r>=0;r--){const[e,i]=hl(UD,this)[r];if(e!==t)break;if(e===t&&i===n)return void hl(UD,this).splice(r,1)}}function BD(e){const[t,n,i]=e,r=[[t,n,i]],a=ul(jD,this,OD).call(this,i);for(let o=0;o<a;o++){const[e,n]=hl(UD,this)[o];for(let i=0,a=r.length;i<a;i++){const[,o,s]=r[i];if(!(n<=o||s<=e))if(o>=e)if(s>n)r[i][1]=n;else{if(1===a)return[];r.splice(i,1),i--,a--}else r[i][2]=e,s>n&&r.push([t,n,s])}}return r}var WD=new WeakMap,zD=new WeakMap;class VD extends X_{constructor(e,t,n,i){super(),cl(this,WD,void 0),cl(this,zD,void 0),fl(zD,this,e),fl(WD,this,t),this.firstPoint=n,this.lastPoint=i}toSVGPath(){const e=[];for(const t of hl(zD,this)){let[n,i]=t;e.push("M".concat(n," ").concat(i));for(let r=2;r<t.length;r+=2){const a=t[r],o=t[r+1];a===n?(e.push("V".concat(o)),i=o):o===i&&(e.push("H".concat(a)),n=a)}e.push("Z")}return e.join(" ")}serialize(e,t){let[n,i,r,a]=e;const o=[],s=r-n,l=a-i;for(const c of hl(zD,this)){const e=new Array(c.length);for(let t=0;t<c.length;t+=2)e[t]=n+c[t]*s,e[t+1]=a-c[t+1]*l;o.push(e)}return o}get box(){return hl(WD,this)}get classNamesForOutlining(){return["highlightOutline"]}}class HD extends cD{newFreeDrawOutline(e,t,n,i,r,a){return new qD(e,t,n,i,r,a)}}class qD extends AD{newOutliner(e,t,n,i,r){return new HD(e,t,n,i,r,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0)}}var GD=new WeakMap,YD=new WeakMap,XD=new WeakMap,KD=new WeakMap,$D=new WeakMap,QD=new WeakMap,ZD=new WeakMap,JD=new WeakMap,eS=new WeakMap,tS=new WeakMap,nS=new WeakMap,iS=new WeakMap,rS=new WeakMap,aS=new WeakMap,oS=new WeakMap,sS=new WeakMap,lS=new WeakMap,cS=new WeakMap,uS=new WeakSet;class dS extends ep{static get _keyboardManager(){const e=dS.prototype;return Cc(this,"_keyboardManager",new hd([[["ArrowLeft","mac+ArrowLeft"],e._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],e._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],e._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],e._moveCaret,{args:[3]}]]))}constructor(e){super(Je(Je({},e),{},{name:"highlightEditor"}
2)),ll(this,uS),cl(this,GD,null),cl(this,YD,0),cl(this,XD,void 0),cl(this,KD,null),cl(this,$D,null),cl(this,QD,null),cl(this,ZD,null),cl(this,JD,0),cl(this,eS,null),cl(this,tS,null),cl(this,nS,null),cl(this,iS,!1),cl(this,rS,null),cl(this,aS,null),cl(this,oS,null),cl(this,sS,""),cl(this,lS,void 0),cl(this,cS,""),this.color=e.color||dS._defaultColor,fl(lS,this,e.thickness||dS._defaultThickness),this.opacity=e.opacity||dS._defaultOpacity,fl(XD,this,e.boxes||null),fl(cS,this,e.methodOfCreation||""),fl(sS,this,e.text||""),this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",e.highlightId>-1?(fl(iS,this,!0),ul(uS,this,fS).call(this,e),ul(uS,this,bS).call(this)):hl(XD,this)&&(fl(GD,this,e.anchorNode),fl(YD,this,e.anchorOffset),fl(ZD,this,e.focusNode),fl(JD,this,e.focusOffset),ul(uS,this,hS).call(this),ul(uS,this,bS).call(this),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}get telemetryInitialData(){return{action:"added",type:hl(iS,this)?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:hl(lS,this),methodOfCreation:hl(cS,this)}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(e){return{numberOfColors:e.get("
2color").size}}static initialize(e,t){var n;ep.initialize(e,t),dS._defaultColor||(dS._defaultColor=(null===(n=t.highlightColors)||void 0===n?void 0:n.values().next().value)||"#fff066")}static updateDefaultParams(e,t){switch(e){case Xl.HIGHLIGHT_COLOR:dS._defaultColor=t;break;case Xl.HIGHLIGHT_THICKNESS:dS._defaultThickness=t}}translateInPage(e,t){}get toolbarPosition(){return hl(aS,this)}get commentButtonPosition(){return hl(rS,this)}updateParams(e,t){switch(e){case Xl.HIGHLIGHT_COLOR:ul(uS,this,pS).call(this,t);break;case Xl.HIGHLIGHT_THICKNESS:ul(uS,this,gS).call(this,t)}}static get defaultPropertiesToUpdate(){return[[Xl.HIGHLIGHT_COLOR,dS._defaultColor],[Xl.HIGHLIGHT_THICKNESS,dS._defaultThickness]]}get propertiesToUpdate(){return[[Xl.HIGHLIGHT_COLOR,this.color||dS._defaultColor],[Xl.HIGHLIGHT_THICKNESS,hl(lS,this)||dS._defaultThickness],[Xl.HIGHLIGHT_FREE,hl(iS,this)]]}onUpdatedColor(){var e,t;null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(hl(nS,this),{root:{fill:this.color,"fill-opacity":this.opacity}}),null===(t=hl($D,this))||void 0===t||t.updateColor(this.color),super.onUpdatedColor()}get toolbarButtons(){if(this._uiManager.highlightColors){return[["colorPicker",fl($D,this,new bx({editor:this}))]]}return super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(ul(uS,this,_S).call(this))}getBaseTranslation(){return[0,0]}getRect(e,t){return super.getRect(e,t,ul(uS,this,_S).call(this))}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){ul(uS,this,vS).call(this),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(ul(uS,this,bS).call(this),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let t=!1;if(this.parent&&!e)ul(uS,this,vS).call(this);else if(e){var n;ul(uS,this,bS).call(this,e),t=!this.parent&&(null===(n=this.div)||void 0===n?void 0:n.classList.contains("selectedEditor"))}super.setParent(e),this.show(this._isVisible),t&&this.select()}rotate(e){const{drawLayer:t}=this.parent;let n;hl(iS,this)?(e=(e-this.rotation+360)%360,n=yS.call(dS,hl(tS,this).box,e)):n=yS.call(dS,[this.x,this.y,this.width,this.height],e),t.updateProperties(hl(nS,this),{bbox:n,root:{"data-main-rotation":e}}),t.updateProperties(hl(oS,this),{bbox:yS.call(dS,hl(QD,this).box,e),root:{"data-main-rotation":e}})}render(){if(this.div)return this.div;const e=super.render();hl(sS,this)&&(e.setAttribute("aria-label",hl(sS,this)),e.setAttribute("role","mark")),hl(iS,this)?e.classList.add("free"):this.div.addEventListener("keydown",ul(uS,this,xS).bind(this),{signal:this._uiManager._signal});const t=fl(eS,this,document.createElement("div"));return e.append(t),t.setAttribute("aria-hidden","true"),t.className="internal",t.style.clipPath=hl(KD,this),this.setDims(),Gu(this,hl(eS,this),["pointerover","pointerleave"]),this.enableEditing(),e}pointerover(){var e;this.isSelected||(null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(hl(oS,this),{rootClass:{hovered:!0}}))}pointerleave(){var e;this.isSelected||(null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(hl(oS,this),{rootClass:{hovered:!1}}))}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:ul(uS,this,wS).call(this,!0);break;case 1:case 3:ul(uS,this,wS).call(this,!1)}}select(){var e;super.select(),hl(oS,this)&&(null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(hl(oS,this),{rootClass:{hovered:!1,selected:!0}}))}unselect(){var e;super.unselect(),hl(oS,this)&&(null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(hl(oS,this),{rootClass:{selected:!1}}),hl(iS,this)||ul(uS,this,wS).call(this,!1))}get _mustFixPosition(){return!hl(iS,this)}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible;super.show(e),this.parent&&(this.parent.drawLayer.updateProperties(hl(nS,this),{rootClass:{hidden:!e}}),this.parent.drawLayer.updateProperties(hl(oS,this),{rootClass:{hidden:!e}}))}static startHighlighting(e,t,n){let{target:i,x:r,y:a}=n;const{x:o,y:s,width:l,height:c}=i.getBoundingClientRect(),u=new AbortController,d=e.combinedSignal(u),h=t=>{u.abort(),ul(dS,this,CS).call(this,e,t)};window.addEventListener("blur",h,{signal:d}),window.addEventListener("pointerup",h,{signal:d}),window.addEventListener("pointerdown",au,{capture:!0,passive:!1,signal:d}),window.addEventListener("contextmenu",ru,{signal:d}),i.addEventListener("pointermove",ul(dS,this,kS).bind(this,e),{signal:d}),this._freeHighlight=new HD({x:r,y:a},[o,s,l,c],e.scale,this._defaultThickness/2,t,.001),({id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0))}static async deserialize(e,t,n){let i=null;if(e instanceof d_){const{data:{quadPoints:t,rect:n,rotation:r,id:a,color:o,opacity:s,popupRef:l,richText:c,contentsObj:u,creationDate:d,modificationDate:h},parent:{page:{pageNumber:f}}}=e;i=e={annotationType:Yl.HIGHLIGHT,color:Array.from(o),opacity:s,quadPoints:t,boxes:null,pageIndex:f-1,rect:n.slice(0),rotation:r,annotationElementId:a,id:a,deleted:!1,popupRef:l,richText:c,comment:(null===u||void 0===u?void 0:u.str)||null,creationDate:d,modificationDate:h}}else if(e instanceof c_){const{data:{inkLists:t,rect:n,rotation:r,id:a,color:o,borderStyle:{rawWidth:s},popupRef:l,richText:c,contentsObj:u,creationDate:d,modificationDate:h},parent:{page:{pageNumber:f}}}=e;i=e={annotationType:Yl.HIGHLIGHT,color:Array.from(o),thickness:s,inkLists:t,boxes:null,pageIndex:f-1,rect:n.slice(0),rotation:r,annotationElementId:a,id:a,deleted:!1,popupRef:l,richText:c,comment:(null===u||void 0===u?void 0:u.str)||null,creationDate:d,modificationDate:h}}const{color:r,quadPoints:a,inkLists:o,opacity:s}=e,l=await super.deserialize(e,t,n);l.color=Ic.makeHexColor(...r),l.opacity=s||1,o&&fl(lS,l,e.thickness),l._initialData=i,e.comment&&l.setCommentData(e);const[c,u]=l.pageDimensions,[d,h]=l.pageTranslation;if(a){const e=fl(XD,l,[]);for(let t=0;t<a.length;t+=8)e.push({x:(a[t]-d)/c,y:1-(a[t+1]-h)/u,width:(a[t+2]-a[t])/c,height:(a[t+1]-a[t+5])/u});ul(uS,l,hS).call(l),ul(uS,l,bS).call(l),l.rotate(l.rotation)}else if(o){fl(iS,l,!0);const e=o[0],n={x:e[0]-d,y:u-(e[1]-h)},i=new HD(n,[0,0,c,u],1,hl(lS,l)/2,!0,.001);for(let t=0,o=e.length;t<o;t+=2)n.x=e[t]-d,n.y=u-(e[t+1]-h),i.add(n);const{id:r,clipPathId:a}=t.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:l.color,"fill-opacity":l._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:i.toSVGPath()}},!0,!0);ul(uS,l,fS).call(l,{highlightOutlines:i.getOutlines(),highlightId:r,clipPathId:a}),ul(uS,l,bS).call(l),l.rotate(l.parentRotation)}return l}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty()||e)return null;if(this.deleted)return this.serializeDeleted();const t=ep._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),n=super.serialize(e);
2return Object.assign(n,{color:t,opacity:this.opacity,thickness:hl(lS,this),quadPoints:ul(uS,this,DS).call(this),outlines:ul(uS,this,SS).call(this,n.rect)}),this.addComment(n),this.annotationElementId&&!ul(uS,this,AS).call(this,n)?null:(n.id=this.annotationElementId,n)}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}}function hS(){const e=new FD(hl(XD,this),.001);fl(tS,this,e.getOutlines()),[this.x,this.y,this.width,this.height]=hl(tS,this).box;const t=new FD(hl(XD,this),.0025,.001,"ltr"===this._uiManager.direction);fl(QD,this,t.getOutlines());const{firstPoint:n}=hl(tS,this);fl(rS,this,[(n[0]-this.x)/this.width,(n[1]-this.y)/this.height]);const{lastPoint:i}=hl(QD,this);fl(aS,this,[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height])}function fS(e){let{highlightOutlines:t,highlightId:n,clipPathId:i}=e;fl(tS,this,t);if(fl(QD,this,t.getNewOutline(hl(lS,this)/2+1.5,.0025)),n>=0)fl(nS,this,n),fl(KD,this,i),this.parent.drawLayer.finalizeDraw(n,{bbox:t.box,path:{d:t.toSVGPath()}}),fl(oS,this,this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:hl(QD,this).box,path:{d:hl(QD,this).toSVGPath()}},!0));else if(this.parent){const e=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(hl(nS,this),{bbox:yS.call(Nl,hl(tS,this).box,(e-this.rotation+360)%360),path:{d:t.toSVGPath()}}),this.parent.drawLayer.updateProperties(hl(oS,this),{bbox:yS.call(Nl,hl(QD,this).box,e),path:{d:hl(QD,this).toSVGPath()}})}const[r,a,o,s]=t.box;switch(this.rotation){case 0:this.x=r,this.y=a,this.width=o,this.height=s;break;case 90:{const[e,t]=this.parentDimensions;this.x=a,this.y=1-r,this.width=o*t/e,this.height=s*e/t;break}case 180:this.x=1-r,this.y=1-a,this.width=o,this.height=s;break;case 270:{const[e,t]=this.parentDimensions;this.x=1-a,this.y=r,this.width=o*t/e,this.height=s*e/t;break}}const{firstPoint:l}=t;fl(rS,this,[(l[0]-r)/o,(l[1]-a)/s]);const{lastPoint:c}=hl(QD,this);fl(aS,this,[(c[0]-r)/o,(c[1]-a)/s])}function pS(e){const t=(e,t)=>{this.color=e,this.opacity=t,this.onUpdatedColor()},n=this.color,i=this.opacity;this.addCommands({cmd:t.bind(this,e,Nl._defaultOpacity),undo:t.bind(this,n,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Xl.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(e)},!0)}function gS(e){const t=hl(lS,this),n=e=>{fl(lS,this,e),ul(uS,this,mS).call(this,e)};this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:Xl.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:e},!0)}function mS(e){hl(iS,this)&&(ul(uS,this,fS).call(this,{highlightOutlines:hl(tS,this).getNewOutline(e/2)}),this.fixAndSetPosition(),this.setDims())}function vS(){null!==hl(nS,this)&&this.parent&&(this.parent.drawLayer.remove(hl(nS,this)),fl(nS,this,null),this.parent.drawLayer.remove(hl(oS,this)),fl(oS,this,null))}function bS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent;null===hl(nS,this)&&(({id:ol(fl,[nS,this])._,clipPathId:ol(fl,[KD,this])._}=e.drawLayer.draw({bbox:hl(tS,this).box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:hl(iS,this)},path:{d:hl(tS,this).toSVGPath()}},!1,!0)),fl(oS,this,e.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:hl(iS,this)},bbox:hl(QD,this).box,path:{d:hl(QD,this).toSVGPath()}},hl(iS,this))),hl(eS,this)&&(hl(eS,this).style.clipPath=hl(KD,this)))}function yS(e,t){let[n,i,r,a]=e;switch(t){case 90:return[1-i-a,n,a,r];case 180:return[1-n-r,1-i-a,r,a];case 270:return[i,1-n-r,a,r]}return[n,i,r,a]}function xS(e){Nl._keyboardManager.exec(this,e)}function wS(e){if(!hl(GD,this))return;const t=window.getSelection();e?t.setPosition(hl(GD,this),hl(YD,this)):t.setPosition(hl(ZD,this),hl(JD,this))}function _S(){return hl(iS,this)?this.rotation:0}function DS(){if(hl(iS,this))return null;const[e,t]=this.pageDimensions,[n,i]=this.pageTranslation,r=hl(XD,this),a=new Float32Array(8*r.length);let o=0;for(const{x:s,y:l,width:c,height:u}of r){const r=s*e+n,d=(1-l)*t+i;a[o]=a[o+4]=r,a[o+1]=a[o+3]=d,a[o+2]=a[o+6]=r+c*e,a[o+5]=a[o+7]=d-u*t,o+=8}return a}function SS(e){return hl(tS,this).serialize(e,ul(uS,this,_S).call(this))}function kS(e,t){this._freeHighlight.add(t)&&e.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}function CS(e,t){this._freeHighlight.isEmpty()?e.drawLayer.remove(this._freeHighlightId):e.createAndAddNewEditor(t,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}function AS(e){const{color:t}=this._initialData;return this.hasEditedComment||e.color.some(((e,n)=>e!==t[n]))}Nl=dS,Qe(dS,"_defaultColor",null),Qe(dS,"_defaultOpacity",1),Qe(dS,"_defaultThickness",12),Qe(dS,"_type","highlight"),Qe(dS,"_editorType",Yl.HIGHLIGHT),Qe(dS,"_freeHighlightId",-1),Qe(dS,"_freeHighlight",null),Qe(dS,"_freeHighlightClipId","");var TS=new WeakMap;class ES{constructor(){cl(this,TS,Object.create(null))}updateProperty(e,t){this[e]=t,this.updateSVGProperty(e,t)}updateProperties(e){if(e)for(const[t,n]of Object.entries(e))t.startsWith("_")||this.updateProperty(t,n)}updateSVGProperty(e,t){hl(TS,this)[e]=t}toSVGProperties(){const e=hl(TS,this);return fl(TS,this,Object.create(null)),{root:e}}reset(){fl(TS,this,Object.create(null))}updateAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;this.updateProperties(e)}clone(){_c("Not implemented")}}var NS=new WeakMap,MS=new WeakMap,PS=new WeakSet;class US extends ep{constructor(e){super(e),ll(this,PS),cl(this,NS,null),
2cl(this,MS,void 0),Qe(this,"_colorPicker",null),Qe(this,"_drawId",null),fl(MS,this,e.mustBeCommitted||!1),this._addOutlines(e)}onUpdatedColor(){var e;null===(e=this._colorPicker)||void 0===e||e.update(this.color),super.onUpdatedColor()}_addOutlines(e){e.drawOutlines&&(ul(PS,this,jS).call(this,e),ul(PS,this,OS).call(this))}static _mergeSVGProperties(e,t){const n=new Set(Object.keys(e));for(const[i,r]of Object.entries(t))n.has(i)?Object.assign(e[i],r):e[i]=r;return e}static getDefaultDrawingOptions(e){_c("Not implemented")}static get typesMap(){_c("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(e,t){const n=this.typesMap.get(e);n&&this._defaultDrawingOptions.updateProperty(n,t),this._currentParent&&(zS._.updateProperty(n,t),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,t){const n=this.constructor.typesMap.get(e);n&&this._updateProperty(e,n,t)}static get defaultPropertiesToUpdate(){const e=[],t=this._defaultDrawingOptions;for(const[n,i]of this.typesMap)e.push([n,t[i]]);return e}get propertiesToUpdate(){const e=[],{_drawingOptions:t}=this;for(const[n,i]of this.constructor.typesMap)e.push([n,t[i]]);return e}_updateProperty(e,t,n){const i=this._drawingOptions,r=i[t],a=n=>{var r;i.updateProperty(t,n);const a=hl(NS,this).updateProperty(t,n);a&&ul(PS,this,BS).call(this,a),null===(r=this.parent)||void 0===r||r.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),e===this.colorType&&this.onUpdatedColor()};this.addCommands({cmd:a.bind(this,n),undo:a.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){var e;null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(this._drawId,US._mergeSVGProperties(hl(NS,this).getPathResizingSVGProperties(ul(PS,this,LS).call(this)),{bbox:ul(PS,this,WS).call(this)}))}_onResized(){var e;null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(this._drawId,US._mergeSVGProperties(hl(NS,this).getPathResizedSVGProperties(ul(PS,this,LS).call(this)),{bbox:ul(PS,this,WS).call(this)}))}_onTranslating(e,t){var n;null===(n=this.parent)||void 0===n||n.drawLayer.updateProperties(this._drawId,{bbox:ul(PS,this,WS).call(this)})}_onTranslated(){var e;null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(this._drawId,US._mergeSVGProperties(hl(NS,this).getPathTranslatedSVGProperties(ul(PS,this,LS).call(this),this.parentDimensions),{bbox:ul(PS,this,WS).call(this)}))}_onStartDragging(){var e;null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){var e;null===(e=this.parent)||void 0===e||e.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,hl(MS,this)&&(fl(MS,this,!1),this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){ul(PS,this,RS).call(this),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(ul(PS,this,OS).call(this),ul(PS,this,BS).call(this,hl(NS,this).box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let t=!1;if(this.parent&&!e)this._uiManager.removeShouldRescale(this),ul(PS,this,RS).call(this);else if(e){var n;this._uiManager.addShouldRescale(this),ul(PS,this,OS).call(this,e),t=!this.parent&&(null===(n=this.div)||void 0===n?void 0:n.classList.contains("selectedEditor"))}super.setParent(e),t&&this.select()}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,US._mergeSVGProperties({bbox:ul(PS,this,WS).call(this)},hl(NS,this).updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&ul(PS,this,BS).call(this,hl(NS,this).updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}
2render(){if(this.div)return this.div;let e,t;this._isCopy&&(e=this.x,t=this.y);const n=super.render();n.classList.add("draw");const i=document.createElement("div");return n.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,t),n}static createDrawerInstance(e,t,n,i,r){_c("Not implemented")}static startDrawing(e,t,n,i){var r;const{target:a,offsetX:o,offsetY:s,pointerId:l,pointerType:c}=i;if(Yu.isInitializedAndDifferentPointerType(c))return;const{viewport:{rotation:u}}=e,{width:d,height:h}=a.getBoundingClientRect(),f=VS._=new AbortController,p=e.combinedSignal(f);Yu.setPointer(c,l),window.addEventListener("pointerup",(e=>{Yu.isSamePointerIdOrRemove(e.pointerId)&&this._endDraw(e)}),{signal:p}),window.addEventListener("pointercancel",(e=>{Yu.isSamePointerIdOrRemove(e.pointerId)&&this._currentParent.endDrawingSession()}),{signal:p}),window.addEventListener("pointerdown",(e=>{Yu.isSamePointerType(e.pointerType)&&(Yu.initializeAndAddPointerId(e.pointerId),zS._.isCancellable()&&(zS._.removeLastElement(),zS._.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))}),{capture:!0,passive:!1,signal:p}),window.addEventListener("contextmenu",ru,{signal:p}),a.addEventListener("pointermove",this._drawMove.bind(this),{signal:p}),a.addEventListener("touchmove",(e=>{Yu.isSameTimeStamp(e.timeStamp)&&au(e)}),{signal:p}),e.toggleDrawing(),null===(r=t._editorUndoBar)||void 0===r||r.hide(),zS._?e.drawLayer.updateProperties(this._currentDrawId,zS._.startNew(o,s,d,h,u)):(t.updateUIForDefaultProperties(this),zS._=this.createDrawerInstance(o,s,d,h,u),HS._=this.getDefaultDrawingOptions(),this._currentParent=e,({id:this._currentDrawId}=e.drawLayer.draw(this._mergeSVGProperties(HS._.toSVGProperties(),zS._.defaultSVGProperties),!0,!1)))}static _drawMove(e){if(Yu.isSameTimeStamp(e.timeStamp),!zS._)return;const{offsetX:t,offsetY:n,pointerId:i}=e;Yu.isSamePointerId(i)&&(Yu.isUsingMultiplePointers()?this._endDraw(e):(this._currentParent.drawLayer.updateProperties(this._currentDrawId,zS._.add(t,n)),Yu.setTimeStamp(e.timeStamp),au(e)))}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,zS._=null,HS._=null,Yu.clearPointerType(),Yu.clearTimeStamp()),VS._&&(VS._.abort(),VS._=null,Yu.clearPointerIds())}static _endDraw(e){const t=this._currentParent;if(t)if(t.toggleDrawing(!0),this._cleanup(!1),(null===e||void 0===e?void 0:e.target)===t.div&&t.drawLayer.updateProperties(this._currentDrawId,zS._.end(e.offsetX,e.offsetY)),this.supportMultipleDrawings){const e=zS._,n=this._currentDrawId,i=e.getLastElement();t.addCommands({cmd:()=>{t.drawLayer.updateProperties(n,e.setLastElement(i))},undo:()=>{t.drawLayer.updateProperties(n,e.removeLastElement())},mustExec:!1,type:Xl.DRAW_STEP})}else this.endDrawing(!1)}static endDrawing(e){const t=this._currentParent;if(!t)return null;if(t.toggleDrawing(!0),t.cleanUndoStack(Xl.DRAW_STEP),!zS._.isEmpty()){const{pageDimensions:[n,i],scale:r}=t,a=t.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:zS._.getOutlines(n*r,i*r,r,this._INNER_MARGIN),drawingOptions:HS._,mustBeCommitted:!e});return this._cleanup(!0),a}return t.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,t,n,i,r,a){_c("Not implemented")}static async deserialize(e,t,n){const{rawDims:{pageWidth:i,pageHeight:r,pageX:a,pageY:o}}=t.viewport,s=this.deserializeDraw(a,o,i,r,this._INNER_MARGIN,e),l=await super.deserialize(e,t,n);return l.createDrawingOptions(e),ul(PS,l,jS).call(l,{drawOutlines:s}),ul(PS,l,OS).call(l),l.onScaleChanging(),l.rotate(),l}serializeDraw(e){const[t,n]=this.pageTranslation,[i,r]=this.pageDimensions;return hl(NS,this).serialize([t,n,i,r],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}}function jS(e){let{drawOutlines:t,drawId:n,drawingOptions:i}=e;fl(NS,this,t),this._drawingOptions||(this._drawingOptions=i),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-".concat(this.editorType,"-added-alert")),n>=0?(this._drawId=n,this.parent.drawLayer.finalizeDraw(n,t.defaultProperties)):this._drawId=ul(PS,this,FS).call(this,t,this.parent),ul(PS,this,BS).call(this,t.box)}function FS(e,t){const{id:n}=t.drawLayer.draw(Ml._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,!1);return n}function RS(){null!==this._drawId&&this.parent&&(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}function OS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parent;null!==this._drawId&&this.parent===e||(null===this._drawId?(this._drawingOptions.updateAll(),this._drawId=ul(PS,this,FS).call(this,hl(NS,this),e)):this.parent.drawLayer.updateParent(this._drawId,e.drawLayer))}function IS(e){let[t,n,i,r]=e;const{parentDimensions:[a,o],rotation:s}=this;switch(s){case 90:return[n,1-t,i*(o/a),r*(a/o)];case 180:return[1-t,1-n,i,r];case 270:return[1-n,t,i*(o/a),r*(a/o)];default:return[t,n,i,r]}}function LS(){const{x:e,y:t,width:n,height:i,parentDimensions:[r,a],rotation:o}=this;switch(o){case 90:return[1-t,e,n*(r/a),i*(a/r)];case 180:return[1-e,1-t,n,i];case 270:return[t,1-e,n*(r/a),i*(a/r)];default:return[e,t,n,i]}}function BS(e){[this.x,this.y,this.width,this.height]=ul(PS,this,IS).call(this,e),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}function WS(){const{x:e,y:t,width:n,height:i,rotation:r,parentRotation:a,parentDimensions:[o,s]}=this;switch((4*r+a)/90){case 1:return[1-t-i,e,i,n];case 2:return[1-e-n,1-t-i,n,i];case 3:return[t,1-e-n,i,n];case 4:return[e,t-n*(o/s),i*(s/o),n*(o/s)];case 5:return[1-t,e,n*(o/s),i*(s/o)];case 6:return[1-e-i*(s/o),1-t,i*(s/o),n*(o/s)];case 7:return[t-n*(o/s),1-e-i*(s/o),n*(o/s),i*(s/o)];case 8:return[e-n,t-i,n,i];case 9:return[1-t,e-n,i,n];case 10:return[1-e,1-t,n,i];case 11:return[t-i,1-e,i,n];case 12:return[e-i*(s/o),t,i*(s/o),n*(o/s)];case 13:return[1-t-n*(o/s),e-i*(s/o),n*(o/s),i*(s/o)];case 14:return[1-e,1-t-n*(o/s),i*(s/o),n*(o/s)];case 15:return[t,1-e,n*(o/s),i*(s/o)];default:return[e,t,n,i]}}Ml=US,Qe(US,"_currentDrawId",-1),Qe(US,"_currentParent",null);var zS={_:null},VS={_:null},HS={_:null};Qe(US,"_INNER_MARGIN",3);var qS=new WeakMap,GS=new WeakMap,YS=new WeakMap,XS=new WeakMap,KS=new WeakMap,$S=new WeakMap,QS=new WeakMap,ZS=new WeakMap,JS=new WeakMap,ek=new WeakMap,tk=new WeakMap,nk=new WeakSet;class ik{constructor(e,t,n,i,r,a){ll(this,nk),cl(this,qS,new Float64Array(6)),cl(this,GS,void 0),cl(this,YS,void 0),cl(this,XS,void 0),cl(this,KS,void 0),cl(this,$S,void 0),cl(this,QS,""),cl(this,ZS,0),cl(this,JS,new gk),cl(this,ek,void 0),cl(this,tk,void 0),fl(ek,this,n),fl(tk,this,i),fl(XS,this,r),fl(KS,this,a),[e,t]=ul(nk,this,rk).call(this,e,t);const o=fl(GS,this,[NaN,NaN,NaN,NaN,e,t]);fl($S,this,[e,t]),fl(YS,this,[{line:o,points:hl($S,this)}]),hl(qS,this).set(o,0)}updateProperty(e,t){"stroke-width"===e&&fl(KS,this,t)}isEmpty(){return!hl(YS,this)||0===hl(YS,this).length}isCancellable(){return hl($S,this).length<=10}add(e,t){[e,t]=ul(nk,this,rk).call(this,e,t);const[n,i,r,a]=hl(qS,this).subarray(2,6),o=e-r,s=t-a;return Math.hypot(hl(ek,this)*o,hl(tk,this)*s)<=2?null:(hl($S,this).push(e,t),isNaN(n)?(hl(qS,this).set([r,a,e,t],2),hl(GS,this).push(NaN,NaN,NaN,NaN,e,t),{path:{d:this.toSVGPath()}}):(isNaN(hl(qS,this)[0])&&hl(GS,this).splice(6,6),hl(qS,this).set([n,i,r,a,e,t],0),hl(GS,this).push(...X_.createBezierPoints(n,i,r,a,e,t)),{path:{d:this.toSVGPath()}}))}end(e,t){const n=this.add(e,t);return n||(2===hl($S,this).length?{path:{d:this.toSVGPath()}}:null)}startNew(e,t,n,i,r){fl(ek,this,n),fl(tk,this,i),fl(XS,this,r),[e,t]=ul(nk,this,rk).call(this,e,t);const a=fl(GS,this,[NaN,NaN,NaN,NaN,e,t]);fl($S,this,[e,t]);const o=hl(YS,this).at(-1);return o&&(o.line=new Float32Array(o.line),o.points=new Float32Array(o.points)),hl(YS,this).push({line:a,points:hl($S,this)}),hl(qS,this).set(a,0),fl(ZS,this,0),this.toSVGPath(),null}getLastElement(){return hl(YS,this).at(-1)}setLastElement(e){return hl(YS,this)?(hl(YS,this).push(e),fl(GS,this,e.line),fl($S,this,e.points),fl(ZS,this,0),{path:{d:this.toSVGPath()}}):hl(JS,this).setLastElement(e)}removeLastElement(){if(!hl(YS,this))return hl(JS,this).removeLastElement();hl(YS,this).pop(),fl(QS,this,"");for(let e=0,t=hl(YS,this).length;e<t;e++){const{line:t,points:n}=hl(YS,this)[e];fl(GS,this,t),fl($S,this,n),fl(ZS,this,0),this.toSVGPath()}return{path:{d:hl(QS,this)}}}toSVGPath(){const e=X_.svgRound(hl(GS,this)[4]),t=X_.svgRound(hl(GS,this)[5]);if(2===hl($S,this).length)return fl(QS,this,"".concat(hl(QS,this)," M ").concat(e," ").concat(t," Z")),hl(QS,this);if(hl($S,this).length<=6){const n=hl(QS,this).lastIndexOf("M");
2fl(QS,this,"".concat(hl(QS,this).slice(0,n)," M ").concat(e," ").concat(t)),fl(ZS,this,6)}if(4===hl($S,this).length){const e=X_.svgRound(hl(GS,this)[10]),t=X_.svgRound(hl(GS,this)[11]);return fl(QS,this,"".concat(hl(QS,this)," L ").concat(e," ").concat(t)),fl(ZS,this,12),hl(QS,this)}const n=[];0===hl(ZS,this)&&(n.push("M ".concat(e," ").concat(t)),fl(ZS,this,6));for(let i=hl(ZS,this),r=hl(GS,this).length;i<r;i+=6){const[e,t,r,a,o,s]=hl(GS,this).slice(i,i+6).map(X_.svgRound);n.push("C".concat(e," ").concat(t," ").concat(r," ").concat(a," ").concat(o," ").concat(s))}return fl(QS,this,hl(QS,this)+n.join(" ")),fl(ZS,this,hl(GS,this).length),hl(QS,this)}getOutlines(e,t,n,i){const r=hl(YS,this).at(-1);return r.line=new Float32Array(r.line),r.points=new Float32Array(r.points),hl(JS,this).build(hl(YS,this),e,t,n,hl(XS,this),hl(KS,this),i),fl(qS,this,null),fl(GS,this,null),fl(YS,this,null),fl(QS,this,null),hl(JS,this)}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}function rk(e,t){return X_._normalizePoint(e,t,hl(ek,this),hl(tk,this),hl(XS,this))}var ak=new WeakMap,ok=new WeakMap,sk=new WeakMap,lk=new WeakMap,ck=new WeakMap,uk=new WeakMap,dk=new WeakMap,hk=new WeakMap,fk=new WeakMap,pk=new WeakSet;class gk extends X_{constructor(){super(...arguments),ll(this,pk),cl(this,ak,void 0),cl(this,ok,0),cl(this,sk,void 0),cl(this,lk,void 0),cl(this,ck,void 0),cl(this,uk,void 0),cl(this,dk,void 0),cl(this,hk,void 0),cl(this,fk,void 0)}build(e,t,n,i,r,a,o){fl(ck,this,t),fl(uk,this,n),fl(dk,this,i),fl(hk,this,r),fl(fk,this,a),fl(sk,this,null!==o&&void 0!==o?o:0),fl(lk,this,e),ul(pk,this,bk).call(this)}get thickness(){return hl(fk,this)}setLastElement(e){return hl(lk,this).push(e),{path:{d:this.toSVGPath()}}}removeLastElement(){return hl(lk,this).pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const e=[];for(const{line:t}of hl(lk,this))if(e.push("M".concat(X_.svgRound(t[4])," ").concat(X_.svgRound(t[5]))),6!==t.length)if(12===t.length&&isNaN(t[6]))e.push("L".concat(X_.svgRound(t[10])," ").concat(X_.svgRound(t[11])));else for(let n=6,i=t.length;n<i;n+=6){const[i,r,a,o,s,l]=t.subarray(n,n+6).map(X_.svgRound);e.push("C".concat(i," ").concat(r," ").concat(a," ").concat(o," ").concat(s," ").concat(l))}else e.push("Z");return e.join("")}serialize(e,t){let[n,i,r,a]=e;const o=[],s=[],[l,c,u,d]=ul(pk,this,vk).call(this);let h,f,p,g,m,v,b,y,x;switch(hl(hk,this)){case 0:x=X_._rescale,h=n,f=i+a,p=r,g=-a,m=n+l*r,v=i+(1-c-d)*a,b=n+(l+u)*r,y=i+(1-c)*a;break;case 90:x=X_._rescaleAndSwap,h=n,f=i,p=r,g=a,m=n+c*r,v=i+l*a,b=n+(c+d)*r,y=i+(l+u)*a;break;case 180:x=X_._rescale,h=n+r,f=i,p=-r,g=a,m=n+(1-l-u)*r,v=i+c*a,b=n+(1-l)*r,y=i+(c+d)*a;break;case 270:x=X_._rescaleAndSwap,h=n+r,f=i+a,p=-r,g=-a,m=n+(1-c-d)*r,v=i+(1-l-u)*a,b=n+(1-c)*r,y=i+(1-l)*a}for(const{line:w,points:_}of hl(lk,this))o.push(x(w,h,f,p,g,t?new Array(w.length):null)),s.push(x(_,h,f,p,g,t?new Array(_.length):null));return{lines:o,points:s,rect:[m,v,b,y]}}static deserialize(e,t,n,i,r,a){let{paths:{lines:o,points:s},rotation:l,thickness:c}=a;const u=[];let d,h,f,p,g;switch(l){case 0:g=X_._rescale,d=-e/n,h=t/i+1,f=1/n,p=-1/i;break;case 90:g=X_._rescaleAndSwap,d=-t/i,h=-e/n,f=1/i,p=1/n;break;case 180:g=X_._rescale,d=e/n+1,h=-t/i,f=-1/n,p=1/i;break;case 270:g=X_._rescaleAndSwap,d=t/i+1,h=e/n+1,f=-1/i,p=-1/n}if(!o){o=[];for(const e of s){const t=e.length;if(2===t){o.push(new Float32Array([NaN,NaN,NaN,NaN,e[0],e[1]]));continue}if(4===t){o.push(new Float32Array([NaN,NaN,NaN,NaN,e[0],e[1],NaN,NaN,NaN,NaN,e[2],e[3]]));continue}const n=new Float32Array(3*(t-2));o.push(n);let[i,r,a,s]=e.subarray(0,4);n.set([NaN,NaN,NaN,NaN,i,r],0);for(let o=4;o<t;o+=2){const t=e[o],l=e[o+1];n.set(X_.createBezierPoints(i,r,a,s,t,l),3*(o-2)),[i,r,a,s]=[a,s,t,l]}}}for(let v=0,b=o.length;v<b;v++)u.push({line:g(o[v].map((e=>null!==e&&void 0!==e?e:NaN)),d,h,f,p),points:g(s[v].map((e=>null!==e&&void 0!==e?e:NaN)),d,h,f,p)});const m=new this.prototype.constructor;return m.build(u,n,i,1,l,c,r),m}get box(){return hl(ak,this)}updateProperty(e,t){return"stroke-width"===e?ul(pk,this,yk).call(this,t):null}updateParentDimensions(e,t){let[n,i]=e;const[r,a]=ul(pk,this,mk).call(this);fl(ck,this,n),fl(uk,this,i),fl(dk,this,t);const[o,s]=ul(pk,this,mk).call(this),l=o-r,c=s-a,u=hl(ak,this);return u[0]-=l,u[1]-=c,u[2]+=2*l,u[3]+=2*c,u}updateRotation(e){return fl(ok,this,e),{path:{transform:this.rotationTransform}}}get viewBox(){return hl(ak,this).map(X_.svgRound).join(" ")}get defaultProperties(){const[e,t]=hl(ak,this);return{root:{viewBox:this.viewBox},path:{"transform-origin":"".concat(X_.svgRound(e)," ").concat(X_.svgRound(t))}}}get rotationTransform(){const[,,e,t]=hl(ak,this);let n=0,i=0,r=0,a=0,o=0,s=0;switch(hl(ok,this)){case 90:i=t/e,r=-e/t,o=e;break;case 180:n=-1,a=-1,o=e,s=t;break;case 270:i=-t/e,r=e/t,s=t;break;default:return""}return"matrix(".concat(n," ").concat(i," ").concat(r," ").concat(a," ").concat(X_.svgRound(o)," ").concat(X_.svgRound(s),")")}getPathResizingSVGProperties(e){let[t,n,i,r]=e;const[a,o]=ul(pk,this,mk).call(this),[s,l,c,u]=hl(ak,this);
2if(Math.abs(c-a)<=X_.PRECISION||Math.abs(u-o)<=X_.PRECISION){const e=t+i/2-(s+c/2),a=n+r/2-(l+u/2);return{path:{"transform-origin":"".concat(X_.svgRound(t)," ").concat(X_.svgRound(n)),transform:"".concat(this.rotationTransform," translate(").concat(e," ").concat(a,")")}}}const d=(i-2*a)/(c-2*a),h=(r-2*o)/(u-2*o),f=c/i,p=u/r;return{path:{"transform-origin":"".concat(X_.svgRound(s)," ").concat(X_.svgRound(l)),transform:"".concat(this.rotationTransform," scale(").concat(f," ").concat(p,") ")+"translate(".concat(X_.svgRound(a)," ").concat(X_.svgRound(o),") scale(").concat(d," ").concat(h,") ")+"translate(".concat(X_.svgRound(-a)," ").concat(X_.svgRound(-o),")")}}}getPathResizedSVGProperties(e){let[t,n,i,r]=e;const[a,o]=ul(pk,this,mk).call(this),s=hl(ak,this),[l,c,u,d]=s;if(s[0]=t,s[1]=n,s[2]=i,s[3]=r,Math.abs(u-a)<=X_.PRECISION||Math.abs(d-o)<=X_.PRECISION){const e=t+i/2-(l+u/2),a=n+r/2-(c+d/2);for(const{line:t,points:n}of hl(lk,this))X_._translate(t,e,a,t),X_._translate(n,e,a,n);return{root:{viewBox:this.viewBox},path:{"transform-origin":"".concat(X_.svgRound(t)," ").concat(X_.svgRound(n)),transform:this.rotationTransform||null,d:this.toSVGPath()}}}const h=(i-2*a)/(u-2*a),f=(r-2*o)/(d-2*o),p=-h*(l+a)+t+a,g=-f*(c+o)+n+o;if(1!==h||1!==f||0!==p||0!==g)for(const{line:m,points:v}of hl(lk,this))X_._rescale(m,p,g,h,f,m),X_._rescale(v,p,g,h,f,v);return{root:{viewBox:this.viewBox},path:{"transform-origin":"".concat(X_.svgRound(t)," ").concat(X_.svgRound(n)),transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties(e,t){let[n,i]=e;const[r,a]=t,o=hl(ak,this),s=n-o[0],l=i-o[1];if(hl(ck,this)===r&&hl(uk,this)===a)for(const{line:c,points:u}of hl(lk,this))X_._translate(c,s,l,c),X_._translate(u,s,l,u);else{const e=hl(ck,this)/r,t=hl(uk,this)/a;fl(ck,this,r),fl(uk,this,a);for(const{line:n,points:i}of hl(lk,this))X_._rescale(n,s,l,e,t,n),X_._rescale(i,s,l,e,t,i);o[2]*=e,o[3]*=t}return o[0]=n,o[1]=i,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":"".concat(X_.svgRound(n)," ").concat(X_.svgRound(i))}}}get defaultSVGProperties(){const e=hl(ak,this);return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":"".concat(X_.svgRound(e[0])," ").concat(X_.svgRound(e[1])),transform:this.rotationTransform||null},bbox:e}}}function mk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hl(fk,this);const t=hl(sk,this)+e/2*hl(dk,this);return hl(hk,this)%180===0?[t/hl(ck,this),t/hl(uk,this)]:[t/hl(uk,this),t/hl(ck,this)]}function vk(){const[e,t,n,i]=hl(ak,this),[r,a]=ul(pk,this,mk).call(this,0);return[e+r,t+a,n-2*r,i-2*a]}function bk(){const e=fl(ak,this,new Float32Array([1/0,1/0,-1/0,-1/0]));for(const{line:i}of hl(lk,this)){if(i.length<=12){for(let t=4,n=i.length;t<n;t+=6)Ic.pointBoundingBox(i[t],i[t+1],e);continue}let t=i[4],n=i[5];for(let r=6,a=i.length;r<a;r+=6){const[a,o,s,l,c,u]=i.subarray(r,r+6);Ic.bezierBoundingBox(t,n,a,o,s,l,c,u,e),t=c,n=u}}const[t,n]=ul(pk,this,mk).call(this);e[0]=qc(e[0]-t,0,1),e[1]=qc(e[1]-n,0,1),e[2]=qc(e[2]+t,0,1),e[3]=qc(e[3]+n,0,1),e[2]-=e[0],e[3]-=e[1]}function yk(e){const[t,n]=ul(pk,this,mk).call(this);fl(fk,this,e);const[i,r]=ul(pk,this,mk).call(this),[a,o]=[i-t,r-n],s=hl(ak,this);return s[0]-=a,s[1]-=o,s[2]+=2*a,s[3]+=2*o,s}
2class xk extends ES{constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:"none",stroke:ep._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(e,t){var n;"stroke-width"===e&&(null!==(n=t)&&void 0!==n||(t=this["stroke-width"]),t*=this._viewParameters.realScale);super.updateSVGProperty(e,t)}clone(){const e=new xk(this._viewParameters);return e.updateAll(this),e}}var wk=new WeakSet;class _k extends US{constructor(e){super(Je(Je({},e),{},{name:"inkEditor"})),ll(this,wk),this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(e,t){ep.initialize(e,t),this._defaultDrawingOptions=new xk(t.viewParameters)}static getDefaultDrawingOptions(e){const t=this._defaultDrawingOptions.clone();return t.updateProperties(e),t}static get supportMultipleDrawings(){return!0}static get typesMap(){return Cc(this,"typesMap",new Map([[Xl.INK_THICKNESS,"stroke-width"],[Xl.INK_COLOR,"stroke"],[Xl.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(e,t,n,i,r){return new ik(e,t,n,i,r,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(e,t,n,i,r,a){return gk.deserialize(e,t,n,i,r,a)}static async deserialize(e,t,n){let i=null;if(e instanceof c_){const{data:{inkLists:t,rect:n,rotation:r,id:a,color:o,opacity:s,borderStyle:{rawWidth:l},popupRef:c,richText:u,contentsObj:d,creationDate:h,modificationDate:f},parent:{page:{pageNumber:p}}}=e;i=e={annotationType:Yl.INK,color:Array.from(o),thickness:l,opacity:s,paths:{points:t},boxes:null,pageIndex:p-1,rect:n.slice(0),rotation:r,annotationElementId:a,id:a,deleted:!1,popupRef:c,richText:u,comment:(null===d||void 0===d?void 0:d.str)||null,creationDate:h,modificationDate:f}}const r=await super.deserialize(e,t,n);return r._initialData=i,e.comment&&r.setCommentData(e),r}get toolbarButtons(){return this._colorPicker||(this._colorPicker=new Ex(this)),[["colorPicker",this._colorPicker]]}get colorType(){return Xl.INK_COLOR}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:e,_drawingOptions:t,parent:n}=this;t.updateSVGProperty("stroke-width"),n.drawLayer.updateProperties(e,t.toSVGProperties())}static onScaleChangingWhenDrawing(){const e=this._currentParent;e&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),e.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions(e){let{color:t,thickness:n,opacity:i}=e;this._drawingOptions=_k.getDefaultDrawingOptions({stroke:Ic.makeHexColor(...t),"stroke-width":n,"stroke-opacity":i})}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:t,points:n}=this.serializeDraw(e),{_drawingOptions:{stroke:i,"stroke-opacity":r,"stroke-width":a}}=this,o=Object.assign(super.serialize(e),{color:ep._colorManager.convert(i),opacity:r,thickness:a,paths:{lines:t,points:n}});return this.addComment(o),e?(o.isCopy=!0,o):this.annotationElementId&&!ul(wk,this,Dk).call(this,o)?null:(o.id=this.annotationElementId,o)}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;const{points:t,rect:n}=this.serializeDraw(!1);return e.updateEdited({rect:n,thickness:this._drawingOptions["stroke-width"],points:t,popup:this.comment}),null}}function Dk(e){const{color:t,thickness:n,opacity:i,pageIndex:r}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||e.color.some(((e,n)=>e!==t[n]))||e.thickness!==n||e.opacity!==i||e.pageIndex!==r}Qe(_k,"_type","ink"),Qe(_k,"_editorType",Yl.INK),Qe(_k,"_defaultDrawingOptions",null);class Sk extends gk{toSVGPath(){let e=super.toSVGPath();return e.endsWith("Z")||(e+="Z"),e}}class kk{static extractContoursFromText(e,t,n,i,r,a){let{fontFamily:o,fontStyle:s,fontWeight:l}=t,c=new OffscreenCanvas(1,1),u=c.getContext("2d",{alpha:!1});const d=u.font="".concat(s," ").concat(l," ").concat(200,"px ").concat(o),{actualBoundingBoxLeft:h,actualBoundingBoxRight:f,actualBoundingBoxAscent:p,actualBoundingBoxDescent:g,fontBoundingBoxAscent:m,fontBoundingBoxDescent:v,width:b}=u.measureText(e),y=1.5,x=Math.ceil(Math.max(Math.abs(h)+Math.abs(f)||0,b)*y),w=Math.ceil(Math.max(Math.abs(p)+Math.abs(g)||200,Math.abs(m)+Math.abs(v)||200)*y);c=new OffscreenCanvas(x,w),u=c.getContext("2d",{alpha:!0,willReadFrequently:!0}),u.font=d,u.filter="grayscale(1)",u.fillStyle="white",u.fillRect(0,0,x,w),u.fillStyle="black",u.fillText(e,.5*x/2,1.5*w/2);const _=ul(kk,this,jk).call(this,u.getImageData(0,0,x,w).data),D=ul(kk,this,Uk).call(this,_),S=ul(kk,this,Fk).call(this,D),k=ul(kk,this,Ek).call(this,_,x,w,S);return this.processDrawnLines({lines:{curves:k,width:x,height:w},pageWidth:n,pageHeight:i,rotation:r,innerMargin:a,mustSmooth:!0,areContours:!0})}static process(e,t,n,i,r){const[a,o,s]=ul(kk,this,Rk).call(this,e),[l,c]=ul(kk,this,Pk).call(this,a,o,s,Math.hypot(o,s)*ul(kk,this,Ok)._.sigmaSFactor,ul(kk,this,Ok)._.sigmaR,ul(kk,this,Ok)._.kernelSize),u=ul(kk,this,Fk).call(this,c),d=ul(kk,this,Ek).call(this,l,o,s,u);return this.processDrawnLines({lines:{curves:d,width:o,height:s},pageWidth:t,pageHeight:n,rotation:i,innerMargin:r,mustSmooth:!0,areContours:!0})}static processDrawnLines(e){var t;let{lines:n,pageWidth:i,pageHeight:r,rotation:a,innerMargin:o,mustSmooth:s,areContours:l}=e;a%180!==0&&([i,r]=[r,i]);const{curves:c,width:u,height:d}=n,h=null!==(t=n.thickness)&&void 0!==t?t:0,f=[],p=Math.min(i/u,r/d),g=p/i,m=p/r,v=[];for(const{points:y}
2of c){const e=s?ul(kk,this,Mk).call(this,y):y;if(!e)continue;v.push(e);const t=e.length,n=new Float32Array(t),i=new Float32Array(3*(2===t?2:t-2));if(f.push({line:i,points:n}),2===t){n[0]=e[0]*g,n[1]=e[1]*m,i.set([NaN,NaN,NaN,NaN,n[0],n[1]],0);continue}let[r,a,o,l]=e;r*=g,a*=m,o*=g,l*=m,n.set([r,a,o,l],0),i.set([NaN,NaN,NaN,NaN,r,a],0);for(let s=4;s<t;s+=2){const t=n[s]=e[s]*g,c=n[s+1]=e[s+1]*m;i.set(X_.createBezierPoints(r,a,o,l,t,c),3*(s-2)),[r,a,o,l]=[o,l,t,c]}}if(0===f.length)return null;const b=l?new Sk:new gk;return b.build(f,i,r,1,a,l?0:h,o),{outline:b,newCurves:v,areContours:l,thickness:h,width:u,height:d}}static async compressSignature(e){let t,{outlines:n,areContours:i,thickness:r,width:a,height:o}=e,s=1/0,l=-1/0,c=0;for(const b of n){c+=b.length;for(let e=2,t=b.length;e<t;e++){const t=b[e]-b[e-2];s=Math.min(s,t),l=Math.max(l,t)}}t=s>=-128&&l<=127?Int8Array:s>=-32768&&l<=32767?Int16Array:Int32Array;const u=n.length,d=8+3*u,h=new Uint32Array(d);let f=0;h[f++]=d*Uint32Array.BYTES_PER_ELEMENT+(c-2*u)*t.BYTES_PER_ELEMENT,h[f++]=0,h[f++]=a,h[f++]=o,h[f++]=i?0:1,h[f++]=Math.max(0,Math.floor(null!==r&&void 0!==r?r:0)),h[f++]=u,h[f++]=t.BYTES_PER_ELEMENT;for(const b of n)h[f++]=b.length-2,h[f++]=b[0],h[f++]=b[1];const p=new CompressionStream("deflate-raw"),g=p.writable.getWriter();await g.ready,g.write(h);const m=t.prototype.constructor;for(const b of n){const e=new m(b.length-2);for(let t=2,n=b.length;t<n;t++)e[t-2]=b[t]-b[t-2];g.write(e)}g.close();const v=await new Response(p.readable).arrayBuffer();return Gc(new Uint8Array(v))}static async decompressSignature(e){try{const l=(o=e,Uint8Array.fromBase64?Uint8Array.fromBase64(o):Fc(atob(o))),{readable:c,writable:u}=new DecompressionStream("deflate-raw"),d=u.getWriter();await d.ready,d.write(l).then((async()=>{await d.ready,await d.close()})).catch((()=>{}));let h=null,f=0;var t,n=!1,i=!1;try{for(var r,a=pl(c);n=!(r=await a.next()).done;n=!1){const e=r.value;h||(h=new Uint8Array(new Uint32Array(e.buffer,0,4)[0])),h.set(e,f),f+=e.length}}catch(s){i=!0,t=s}finally{try{n&&null!=a.return&&await a.return()}finally{if(i)throw t}}const p=new Uint32Array(h.buffer,0,h.length>>2),g=p[1];if(0!==g)throw new Error("Invalid version: ".concat(g));const m=p[2],v=p[3],b=0===p[4],y=p[5],x=p[6],w=p[7],_=[],D=(8+3*x)*Uint32Array.BYTES_PER_ELEMENT;let S;switch(w){case Int8Array.BYTES_PER_ELEMENT:S=new Int8Array(h.buffer,D);break;case Int16Array.BYTES_PER_ELEMENT:S=new Int16Array(h.buffer,D);break;case Int32Array.BYTES_PER_ELEMENT:S=new Int32Array(h.buffer,D)}f=0;for(let e=0;e<x;e++){const t=p[3*e+8],n=new Float32Array(t+2);_.push(n);for(let i=0;i<2;i++)n[i]=p[3*e+8+i+1];for(let e=0;e<t;e++)n[e+2]=n[e]+S[f++]}return{areContours:b,thickness:y,outlines:_,width:m,height:v}}catch(eQ){return wc("decompressSignature: ".concat(eQ)),null}var o}}function Ck(e,t,n,i){return i-=t,0===(n-=e)?i>0?0:4:1===n?i+6:2-i}function Ak(e,t,n,i,r,a,o){const s=ul(Pl,this,Ck).call(this,n,i,r,a);for(let l=0;l<8;l++){const r=(-l+s-o+16)%8;if(0!==e[(n+ul(Pl,this,Ik)._[2*r])*t+(i+ul(Pl,this,Ik)._[2*r+1])])return r}return-1}function Tk(e,t,n,i,r,a,o){const s=ul(Pl,this,Ck).call(this,n,i,r,a);for(let l=0;l<8;l++){const r=(l+s+o+16)%8;if(0!==e[(n+ul(Pl,this,Ik)._[2*r])*t+(i+ul(Pl,this,Ik)._[2*r+1])])return r}return-1}function Ek(e,t,n,i){const r=e.length,a=new Int32Array(r);for(let c=0;c<r;c++)a[c]=e[c]<=i?1:0;for(let c=1;c<n-1;c++)a[c*t]=a[c*t+t-1]=0;for(let c=0;c<t;c++)a[c]=a[t*n-1-c]=0;let o,s=1;const l=[];for(let c=1;c<n-1;c++){o=1;for(let e=1;e<t-1;e++){const n=c*t+e,i=a[n];if(0===i)continue;let r=c,u=e;if(1===i&&0===a[n-1])s+=1,u-=1;else{if(!(i>=1&&0===a[n+1])){1!==i&&(o=Math.abs(i));continue}s+=1,u+=1,i>1&&(o=i)}const d=[e,c],h=u===e+1,f={isHole:h,points:d,id:s,parent:0};let p;l.push(f);for(const e of l)if(e.id===o){p=e;break}p?p.isHole?f.parent=h?p.parent:o:f.parent=h?o:p.parent:f.parent=h?o:0;const g=ul(Pl,this,Ak).call(this,a,t,c,e,r,u,0);if(-1===g){a[n]=-s,1!==a[n]&&(o=Math.abs(a[n]));continue}let m=ul(Pl,this,Ik)._[2*g],v=ul(Pl,this,Ik)._[2*g+1];const b=c+m,y=e+v;r=b,u=y;let x=c,w=e;for(;;){const i=ul(Pl,this,Tk).call(this,a,t,x,w,r,u,1);m=ul(Pl,this,Ik)._[2*i],v=ul(Pl,this,Ik)._[2*i+1];const l=x+m,h=w+v;d.push(h,l);const f=x*t+w;if(0===a[f+1]?a[f]=-s:1===a[f]&&(a[f]=s),l===c&&h===e&&x===b&&w===y){1!==a[n]&&(o=Math.abs(a[n])
2);break}r=x,u=w,x=l,w=h}}}return l}function Nk(e,t,n,i){if(n-t<=4){for(let r=t;r<n-2;r+=2)i.push(e[r],e[r+1]);return}const r=e[t],a=e[t+1],o=e[n-4]-r,s=e[n-3]-a,l=Math.hypot(o,s),c=o/l,u=s/l,d=c*a-u*r,h=s/o,f=1/l,p=Math.atan(h),g=Math.cos(p),m=Math.sin(p),v=f*(Math.abs(g)+Math.abs(m)),b=f*(1-v+v**2),y=Math.max(Math.atan(Math.abs(m+g)*b),Math.atan(Math.abs(m-g)*b));let x=0,w=t;for(let _=t+2;_<n-2;_+=2){const t=Math.abs(d-c*e[_+1]+u*e[_]);t>x&&(w=_,x=t)}x>(l*y)**2?(ul(Pl,this,Nk).call(this,e,t,w+2,i),ul(Pl,this,Nk).call(this,e,w,n,i)):i.push(r,a)}function Mk(e){const t=[],n=e.length;return ul(Pl,this,Nk).call(this,e,0,n,t),t.push(e[n-2],e[n-1]),t.length<=4?null:t}function Pk(e,t,n,i,r,a){const o=new Float32Array(a**2),s=-2*i**2,l=a>>1;for(let p=0;p<a;p++){const e=(p-l)**2;for(let t=0;t<a;t++)o[p*a+t]=Math.exp((e+(t-l)**2)/s)}const c=new Float32Array(256),u=-2*r**2;for(let p=0;p<256;p++)c[p]=Math.exp(p**2/u);const d=e.length,h=new Uint8Array(d),f=new Uint32Array(256);for(let p=0;p<n;p++)for(let i=0;i<t;i++){const r=p*t+i,s=e[r];let u=0,d=0;for(let h=0;h<a;h++){const r=p+h-l;if(!(r<0||r>=n))for(let n=0;n<a;n++){const f=i+n-l;if(f<0||f>=t)continue;const p=e[r*t+f],g=o[h*a+n]*c[Math.abs(p-s)];u+=p*g,d+=g}}f[h[r]=Math.round(u/d)]++}return[h,f]}function Uk(e){const t=new Uint32Array(256);for(const n of e)t[n]++;return t}function jk(e){const t=e.length,n=new Uint8ClampedArray(t>>2);let i=-1/0,r=1/0;for(let o=0,s=n.length;o<s;o++){const t=n[o]=e[o<<2];i=Math.max(i,t),r=Math.min(r,t)}const a=255/(i-r);for(let o=0,s=n.length;o<s;o++)n[o]=(n[o]-r)*a;return n}function Fk(e){let t,n=-1/0,i=-1/0;const r=e.findIndex((e=>0!==e));let a=r,o=r;for(t=r;t<256;t++){const r=e[t];r>n&&(t-a>i&&(i=t-a,o=t-1),n=r,a=t)}for(t=o-1;t>=0&&!(e[t]>e[t+1]);t--);return t}function Rk(e){const t=e,{width:n,height:i}=e,{maxDim:r}=ul(Pl,this,Ok)._;let a=n,o=i;if(n>r||i>r){let s=n,l=i,c=Math.log2(Math.max(n,i)/r);const u=Math.floor(c);c=c===u?u-1:u;for(let n=0;n<c;n++){a=Math.ceil(s/2),o=Math.ceil(l/2);const n=new OffscreenCanvas(a,o);n.getContext("2d").drawImage(e,0,0,s,l,0,0,a,o),s=a,l=o,e!==t&&e.close(),e=n.transferToImageBitmap()}const d=Math.min(r/a,r/o);a=Math.round(a*d),o=Math.round(o*d)}const s=new OffscreenCanvas(a,o).getContext("2d",{willReadFrequently:!0});s.fillStyle="white",s.fillRect(0,0,a,o),s.filter="grayscale(1)",s.drawImage(e,0,0,e.width,e.height,0,0,a,o);const l=s.getImageData(0,0,a,o).data;return[ul(Pl,this,jk).call(this,l),a,o]}Pl=kk;var Ok={_:{maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16}},Ik={_:new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1])};class Lk extends ES{constructor(){super(),super.updateProperties({fill:ep._defaultLineColor,"stroke-width":0})}clone(){const e=new Lk;return e.updateAll(this),e}}class Bk extends xk{constructor(e){super(e),super.updateProperties({stroke:ep._defaultLineColor,"stroke-width":1})}clone(){const e=new Bk(this._viewParameters);return e.updateAll(this),e}}var Wk=new WeakMap,zk=new WeakMap,Vk=new WeakMap,Hk=new WeakMap;class qk extends US{constructor(e){super(Je(Je({},e),{},{mustBeCommitted:!0,name:"signatureEditor"})),cl(this,Wk,!1),cl(this,zk,null),cl(this,Vk,null),cl(this,Hk,null),this._willKeepAspectRatio=!0,fl(Vk,this,e.signatureData||null),fl(zk,this,null),this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(e,t){ep.initialize(e,t),this._defaultDrawingOptions=new Lk,this._defaultDrawnSignatureOptions=new Bk(t.viewParameters)}static getDefaultDrawingOptions(e){const t=this._defaultDrawingOptions.clone();return t.updateProperties(e),t}static get supportMultipleDrawings(){return!1}static get typesMap(){return Cc(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!hl(zk,this)}}static computeTelemetryFinalData(e){var t,n;const i=e.get("hasDescription");return{hasAltText:null!==(t=i.get(!0))&&void 0!==t?t:0,hasNoAltText:null!==(n=i.get(!1))&&void 0!==n?n:0}}get isResizable(){return!0}onScaleChanging(){null!==this._drawId&&super.onScaleChanging()}render(){if(this.div)return this.div;let e,t;const{_isCopy:n}=this;if(n&&(this._isCopy=!1,e=this.x,t=this.y),super.render(),null===this._drawId)if(hl(Vk,this)){const{lines:e,mustSmooth:t,areContours:n,description:i,uuid:r,heightInPage:a}=hl(Vk,this),{rawDims:{pageWidth:o,pageHeight:s},rotation:l}=this.parent.viewport,c=kk.processDrawnLines({lines:e,pageWidth:o,pageHeight:s,rotation:l,innerMargin:qk._INNER_MARGIN,mustSmooth:t,areContours:n});this.addSignature(c,a,i,r)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:hl(zk,this)||""}));return n&&(this._isCopy=!0,this._moveAfterPaste(e,t)),this.div}setUuid(e){fl(Hk,this,e),this.addEditToolbar()}getUuid(){return hl(Hk,this)}get description(){return hl(zk,this)}set description(e){fl(zk,this,e),this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:e})),super.addEditToolbar().then((t=>{null===t||void 0===t||t.updateEditSignatureButton(e)})))}getSignaturePreview(){const{newCurves:e,areContours:t,thickness:n,width:i,height:r}=hl(Vk,this),a=Math.max(i,r);return{areContours:t,outline:kk.processDrawnLines({lines:{curves:e.map((e=>({points:e}))),thickness:n,width:i,height:r},pageWidth:a,pageHeight:a,rotation:0,innerMargin:0,mustSmooth:!1,areContours:t}).outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(e,t,n,i){const{x:r,y:a}=this,{outline:o}=fl(Vk,this,e);let s;fl(Wk,this,o instanceof Sk),this.description=n,hl(Wk,this)?s=qk.getDefaultDrawingOptions():(s=qk._defaultDrawnSignatureOptions.clone(),s.updateProperties({"stroke-width":o.thickness})),this._addOutlines({drawOutlines:o,drawingOptions:s});const[,l]=this.pageDimensions;let c=t/l;c=c>=1?.5:c,this.width*=c/this.height,this.width>=1&&(c*=.9/this.width,this.width=.9),this.height=c,this.setDims(),this.x=r,this.y=a,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!n}}),this.div.hidden=!1}getFromImage(e){const{rawDims:{pageWidth:t,pageHeight:n},rotation:i}=this.parent.viewport;return kk.process(e,t,n,i,qk._INNER_MARGIN)}getFromText(e,t){const{rawDims:{pageWidth:n,pageHeight:i},rotation:r}=this.parent.viewport;return kk.extractContoursFromText(e,t,n,i,r,qk._INNER_MARGIN)}getDrawnSignature(e){const{rawDims:{pageWidth:t,pageHeight:n},rotation:i}=this.parent.viewport;return kk.processDrawnLines({lines:e,pageWidth:t,pageHeight:n,rotation:i,innerMargin:qk._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions(e){let{areContours:t,thickness:n}=e;t?this._drawingOptions=qk.getDefaultDrawingOptions():(this._drawingOptions=qk._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":n}))}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;const{lines:t,points:n}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":i}}=this,r=Object.assign(super.serialize(e),{isSignature:!0,areContours:hl(Wk,this),color:[0,0,0],thickness:hl(Wk,this)?0:i});return this.addComment(r),e?(r.paths={lines:t,points:n},r.uuid=hl(Hk,this),r.isCopy=!0):r.lines=t,hl(zk,this)&&(r.accessibilityData={type:"Figure",alt:hl(zk,this)}),r}static deserializeDraw(e,t,n,i,r,a){return a.areContours?Sk.deserialize(e,t,n,i,r,a):gk.deserialize(e,t,n,i,r,a)}static async deserialize(e,t,n){var i;const r=await super.deserialize(e,t,n);return fl(Wk,r,e.areContours),r.description=(null===(i=e.accessibilityData)||void 0===i?void 0:i.alt)||"",fl(Hk,r,e.uuid),r}}Qe(qk,"_type","signature"),Qe(qk,"_editorType",Yl.SIGNATURE),Qe(qk,"_defaultDrawingOptions",null);var Gk=new WeakMap,Yk=new WeakMap,Xk=new WeakMap,Kk=new WeakMap,$k=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,Jk=new WeakMap,eC=new WeakMap,tC=new WeakMap,nC=new WeakMap,iC=new WeakSet;class rC extends ep{constructor(e){super(Je(Je({},e),{},{name:"stampEditor"})),ll(this,iC),cl(this,Gk,null),cl(this,Yk,null),cl(this,Xk,null),
2cl(this,Kk,null),cl(this,$k,null),cl(this,Qk,""),cl(this,Zk,null),cl(this,Jk,!1),cl(this,eC,null),cl(this,tC,!1),cl(this,nC,!1),fl(Kk,this,e.bitmapUrl),fl($k,this,e.bitmapFile),this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(e,t){ep.initialize(e,t)}static isHandlingMimeForPasting(e){return fu.includes(e)}static paste(e,t){t.pasteEditor({mode:Yl.STAMP},{bitmapFile:e.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){var e;return{type:"stamp",hasAltText:!(null===(e=this.altTextData)||void 0===e||!e.altText)}}static computeTelemetryFinalData(e){var t,n;const i=e.get("hasAltText");return{hasAltText:null!==(t=i.get(!0))&&void 0!==t?t:0,hasNoAltText:null!==(n=i.get(!1))&&void 0!==n?n:0}}async mlGuessAltText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.hasAltTextData())return null;const{mlManager:n}=this._uiManager;if(!n)throw new Error("No ML.");if(!await n.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:r,height:a}=e||this.copyCanvas(null,null,!0).imageData,o=await n.guess({name:"altText",request:{data:i,width:r,height:a,channels:i.length/(r*a)}});if(!o)throw new Error("No response from the AI service.");if(o.error)throw new Error("Error from the AI service.");if(o.cancel)return null;if(!o.output)throw new Error("No valid response from the AI service.");const s=o.output;return await this.setGuessedAltText(s),t&&!this.hasAltTextData()&&(this.altTextData={alt:s,decorative:!1}),s}remove(){var e;hl(Yk,this)&&(fl(Gk,this,null),this._uiManager.imageManager.deleteId(hl(Yk,this)),null===(e=hl(Zk,this))||void 0===e||e.remove(),fl(Zk,this,null),hl(eC,this)&&(clearTimeout(hl(eC,this)),fl(eC,this,null)));super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(hl(Yk,this)&&null===hl(Zk,this)&&ul(iC,this,sC).call(this),this.isAttachedToDOM||this.parent.add(this))):hl(Yk,this)&&ul(iC,this,sC).call(this)}onceAdded(e){this._isDraggable=!0,e&&this.div.focus()}isEmpty(){return!(hl(Xk,this)||hl(Gk,this)||hl(Kk,this)||hl($k,this)||hl(Yk,this)||hl(Jk,this))}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let e,t;return this._isCopy&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,this.createAltText(),hl(Jk,this)||(hl(Gk,this)?ul(iC,this,lC).call(this):ul(iC,this,sC).call(this)),this._isCopy&&this._moveAfterPaste(e,t),this._uiManager.addShouldRescale(this),this.div}setCanvas(e,t){const{id:n,bitmap:i}=this._uiManager.imageManager.getFromCanvas(e,t);t.remove(),n&&this._uiManager.imageManager.isValidId(n)&&(fl(Yk,this,n),i&&fl(Gk,this,i),fl(Jk,this,!1),ul(iC,this,lC).call(this))}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;null!==hl(eC,this)&&clearTimeout(hl(eC,this));fl(eC,this,setTimeout((()=>{fl(eC,this,null),ul(iC,this,uC).call(this)}),200))}copyCanvas(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e||(e=224);const{width:i,height:r}=hl(Gk,this),a=new hu;let o=hl(Gk,this),s=i,l=r,c=null;if(t){if(i>t||r>t){const e=Math.min(t/i,t/r);s=Math.floor(i*e),l=Math.floor(r*e)}c=document.createElement("canvas");const e=c.width=Math.ceil(s*a.sx),n=c.height=Math.ceil(l*a.sy);hl(tC,this)||(o=ul(iC,this,cC).call(this,e,n));const u=c.getContext("2d");u.filter=this._uiManager.hcmFilter;let d="white",h="#cfcfd8";"none"!==this._uiManager.hcmFilter?h="black":pu.isDarkMode&&(d="#8f8f9d",h="#42414d");const f=15,p=f*a.sx,g=f*a.sy,m=new OffscreenCanvas(2*p,2*g),v=m.getContext("2d");v.fillStyle=d,v.fillRect(0,0,2*p,2*g),v.fillStyle=h,v.fillRect(0,0,p,g),v.fillRect(p,g,p,g),u.fillStyle=u.createPattern(m,"repeat"),u.fillRect(0,0,e,n),u.drawImage(o,0,0,o.width,o.height,0,0,e,n)}let u=null;if(n){let t,n;if(a.symmetric&&o.width<e&&o.height<e)t=o.width,n=o.height;else if(o=hl(Gk,this),i>e||r>e){const a=Math.min(e/i,e/r);t=Math.floor(i*a),n=Math.floor(r*a),hl(tC,this)||(o=ul(iC,this,cC).call(this,t,n))}const s=new OffscreenCanvas(t,n).getContext("2d",{willReadFrequently:!0});s.drawImage(o,0,0,o.width,o.height,0,0,t,n),u={width:t,height:n,data:s.getImageData(0,0,t,n).data}}return{canvas:c,width:s,height:l,imageData:u}}static async deserialize(e,t,n){let i=null,r=!1;if(e instanceof g_){var a;const{data:{rect:o,rotation:s,id:l,structParent:c,popupRef:u,richText:d,contentsObj:h,creationDate:f,modificationDate:p},container:g,parent:{page:{pageNumber:m}},canvas:v}=e;let b,y;
2v?(delete e.canvas,({id:b,bitmap:y}=n.imageManager.getFromCanvas(g.id,v)),v.remove()):(r=!0,e._hasNoCanvas=!0);const x=(null===(a=await t._structTree.getAriaAttributes("".concat(Hc).concat(l)))||void 0===a?void 0:a.get("aria-label"))||"";i=e={annotationType:Yl.STAMP,bitmapId:b,bitmap:y,pageIndex:m-1,rect:o.slice(0),rotation:s,annotationElementId:l,id:l,deleted:!1,accessibilityData:{decorative:!1,altText:x},isSvg:!1,structParent:c,popupRef:u,richText:d,comment:(null===h||void 0===h?void 0:h.str)||null,creationDate:f,modificationDate:p}}const o=await super.deserialize(e,t,n),{rect:s,bitmap:l,bitmapUrl:c,bitmapId:u,isSvg:d,accessibilityData:h}=e;r?(n.addMissingCanvas(e.id,o),fl(Jk,o,!0)):u&&n.imageManager.isValidId(u)?(fl(Yk,o,u),l&&fl(Gk,o,l)):fl(Kk,o,c),fl(tC,o,d);const[f,p]=o.pageDimensions;return o.width=(s[2]-s[0])/f,o.height=(s[3]-s[1])/p,h&&(o.altTextData=h),o._initialData=i,e.comment&&o.setCommentData(e),fl(nC,o,!!i),o}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const n=Object.assign(super.serialize(e),{bitmapId:hl(Yk,this),isSvg:hl(tC,this)});if(this.addComment(n),e)return n.bitmapUrl=ul(iC,this,dC).call(this,!0),n.accessibilityData=this.serializeAltText(!0),n.isCopy=!0,n;const{decorative:i,altText:r}=this.serializeAltText(!1);if(!i&&r&&(n.accessibilityData={type:"Figure",alt:r}),this.annotationElementId){const e=ul(iC,this,hC).call(this,n);if(e.isSame)return null;var a;if(e.isSameAltText)delete n.accessibilityData;else n.accessibilityData.structParent=null!==(a=this._initialData.structParent)&&void 0!==a?a:-1;return n.id=this.annotationElementId,delete n.bitmapId,n}if(null===t)return n;t.stamps||(t.stamps=new Map);const o=hl(tC,this)?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(t.stamps.has(hl(Yk,this))){if(hl(tC,this)){const e=t.stamps.get(hl(Yk,this));o>e.area&&(e.area=o,e.serialized.bitmap.close(),e.serialized.bitmap=ul
2(iC,this,dC).call(this,!1))}}else t.stamps.set(hl(Yk,this),{area:o,serialized:n}),n.bitmap=ul(iC,this,dC).call(this,!1);return n}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}function aC(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(fl(Gk,this,e.bitmap),t||(fl(Yk,this,e.id),fl(tC,this,e.isSvg)),e.file&&fl(Qk,this,e.file.name),ul(iC,this,lC).call(this)):this.remove()}function oC(){if(fl(Xk,this,null),this._uiManager.enableWaiting(!1),hl(Zk,this))if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&hl(Gk,this))this.addEditToolbar().then((()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)}));else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&hl(Gk,this)){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch(e){}}this.div.focus()}}function sC(){if(hl(Yk,this))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(hl(Yk,this)).then((e=>ul(iC,this,aC).call(this,e,!0))).finally((()=>ul(iC,this,oC).call(this)));if(hl(Kk,this)){const e=hl(Kk,this);return fl(Kk,this,null),this._uiManager.enableWaiting(!0),void fl(Xk,this,this._uiManager.imageManager.getFromUrl(e).then((e=>ul(iC,this,aC).call(this,e))).finally((()=>ul(iC,this,oC).call(this))))}if(hl($k,this)){const e=hl($k,this);return fl($k,this,null),this._uiManager.enableWaiting(!0),void fl(Xk,this,this._uiManager.imageManager.getFromFile(e).then((e=>ul(iC,this,aC).call(this,e))).finally((()=>ul(iC,this,oC).call(this))))}const e=document.createElement("input");e.type="file",e.accept=fu.join(",");const t=this._uiManager._signal;fl(Xk,this,new Promise((n=>{e.addEventListener("change",(async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0);const t=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),ul(iC,this,aC).call(this,t)}else this.remove();n()}),{signal:t}),e.addEventListener("cancel",(()=>{this.remove(),n()}),{signal:t})})).finally((()=>ul(iC,this,oC).call(this)))),e.click()}function lC(){var e;const{div:t}=this;let{width:n,height:i}=hl(Gk,this);const[r,a]=this.pageDimensions,o=.75;if(this.width)n=this.width*r,i=this.height*a;else if(n>o*r||i>o*a){const e=Math.min(o*r/n,o*a/i);n*=e,i*=e}this._uiManager.enableWaiting(!1);const s=fl(Zk,this,document.createElement("canvas"));s.setAttribute("role","img"),this.addContainer(s),this.width=n/r,this.height=i/a,this.setDims(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&!this.annotationElementId||(t.hidden=!1),ul(iC,this,uC).call(this),hl(nC,this)||(this.parent.addUndoableEditor(this),fl(nC,this,!0)),this._reportTelemetry({action:"inserted_image"}),hl(Qk,this)&&this.div.setAttribute("aria-description",hl(Qk,this)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")}function cC(e,t){const{width:n,height:i}=hl(Gk,this);let r=n,a=i,o=hl(Gk,this);for(;r>2*e||a>2*t;){const n=r,i=a;r>2*e&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),a>2*t&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));const s=new OffscreenCanvas(r,a);s.getContext("2d").drawImage(o,0,0,n,i,0,0,r,a),o=s.transferToImageBitmap()}return o}function uC(){const[e,t]=this.parentDimensions,{width:n,height:i}=this,r=new hu,a=Math.ceil(n*e*r.sx),o=Math.ceil(i*t*r.sy),s=hl(Zk,this);if(!s||s.width===a&&s.height===o)return;s.width=a,s.height=o;const l=hl(tC,this)?hl(Gk,this):ul(iC,this,cC).call(this,a,o),c=s.getContext("2d");c.filter=this._uiManager.hcmFilter,c.drawImage(l,0,0,l.width,l.height,0,0,a,o)}function dC(e){if(e){if(hl(tC,this)){const e=this._uiManager.imageManager.getSvgUrl(hl(Yk,this));if(e)return e}const e=document.createElement("canvas");({width:e.width,height:e.height}=hl(Gk,this));return e.getContext("2d").drawImage(hl(Gk,this),0,0),e.toDataURL()}if(hl(tC,this)){const[e,t]=this.pageDimensions,n=Math.round(this.width*e*$c.PDF_TO_CSS_UNITS),i=Math.round(this.height*t*$c.PDF_TO_CSS_UNITS),r=new OffscreenCanvas(n,i);return r.getContext("2d").drawImage(hl(Gk,this),0,0,hl(Gk,this).width,hl(Gk,this).height,0,0,n,i),r.transferToImageBitmap()}return structuredClone(hl(Gk,this))}function hC(e){var t;const{pageIndex:n,accessibilityData:{altText:i}}=this._initialData,r=e.pageIndex===n,a=((null===(t=e.accessibilityData)||void 0===t?void 0:t.alt)||"")===i;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&r&&a,isSameAltText:a}}Qe(rC,"_type","stamp"),Qe(rC,"_editorType",Yl.STAMP);var fC=new WeakMap,pC=new WeakMap,gC=new WeakMap,mC=new WeakMap,vC=new WeakMap,bC=new WeakMap,yC=new WeakMap,xC=new WeakMap,wC=new WeakMap,_C=new WeakMap,DC=new WeakMap,SC=new WeakMap,kC=new WeakMap,CC=new WeakMap,AC=new WeakMap,TC=new WeakMap,EC=new WeakSet;class NC{constructor(e){let{uiManager:t,pageIndex:n,div:i,structTreeLayer:r,accessibilityManager:a,annotationLayer:o,drawLayer:s,textLayer:l,viewport:c,l10n:u}=e;ll(this,EC),cl(this,fC,void 0),cl(this,pC,!1),cl(this,gC,null),cl(this,mC,null),cl(this,vC,null),cl(this,bC,new Map),cl(this,yC,!1),cl(this,xC,!1),cl(this,wC,!1),cl(this,_C,null),cl(this,DC,null),
2cl(this,SC,null),cl(this,kC,null),cl(this,CC,null),cl(this,AC,-1),cl(this,TC,void 0);const d=[...OC._.values()];if(!NC._initialized){NC._initialized=!0;for(const e of d)e.initialize(u,t)}t.registerEditorTypes(d),fl(TC,this,t),this.pageIndex=n,this.div=i,fl(fC,this,a),fl(gC,this,o),this.viewport=c,fl(SC,this,l),this.drawLayer=s,this._structTree=r,hl(TC,this).addLayer(this)}get isEmpty(){return 0===hl(bC,this).size}get isInvisible(){return this.isEmpty&&hl(TC,this).getMode()===Yl.NONE}updateToolbar(e){hl(TC,this).updateToolbar(e)}updateMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hl(TC,this).getMode();switch(ul(EC,this,RC).call(this),e){case Yl.NONE:return this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),void this.disableClick();case Yl.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case Yl.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:t}=this.div;if(t.toggle("nonEditing",!1),e===Yl.POPUP)t.toggle("commentEditing",!0);else{t.toggle("commentEditing",!1);for(const n of OC._.values())t.toggle("".concat(n._type,"Editing"),e===n._editorType)}this.div.hidden=!1}hasTextLayer(e){var t;return e===(null===(t=hl(SC,this))||void 0===t?void 0:t.div)}setEditingState(e){hl(TC,this).setEditingState(e)}addCommands(e){hl(TC,this).addCommands(e)}cleanUndoStack(e){hl(TC,this).cleanUndoStack(e)}toggleDrawing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("drawing",!e)}togglePointerEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===(e=hl(gC,this))||void 0===e||e.togglePointerEvents(t)}async enable(){var e;fl(wC,this,!0),this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),null===(e=hl(CC,this))||void 0===e||e.abort(),fl(CC,this,null);const t=new Set;for(const i of dl(EC,this,MC))i.enableEditing(),i.show(!0),i.annotationElementId&&(hl(TC,this).removeChangedExistingAnnotation(i),t.add(i.annotationElementId));const n=hl(gC,this);if(n)for(const i of n.getEditableAnnotations()){if(i.hide(),hl(TC,this).isDeletedAnnotationElement(i.data.id))continue;if(t.has(i.data.id))continue;const e=await this.deserialize(i);e&&(this.addOrRebuild(e),e.enableEditing())}fl(wC,this,!1),hl(TC,this)._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){if(fl(xC,this,!0),this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),hl(SC,this)&&!hl(CC,this)){fl(CC,this,new AbortController);const e=hl(TC,this).combinedSignal(hl(CC,this));hl(SC,this).div.addEventListener("pointerdown",(e=>{const{clientX:t,clientY:n,timeStamp:i}=e;if(i-hl(AC,this)>500)return void fl(AC,this,i);fl(AC,this,-1);const{classList:r}=this.div;r.toggle("getElements",!0);const a=document.elementsFromPoint(t,n);if(r.toggle("getElements",!1),!this.div.contains(a[0]))return;let o;const s=new RegExp("^".concat(Gl,"[0-9]+$"));for(const c of a)if(s.test(c.id)){o=c.id;break}if(!o)return;const l=hl(bC,this).get(o);null===(null===l||void 0===l?void 0:l.annotationElementId)&&(e.stopPropagation(),e.preventDefault(),l.dblclick(e))}),{signal:e,capture:!0})}const e=hl(gC,this),t=[];if(e){const i=new Map,r=new Map;for(const e of dl(EC,this,MC)){var n;e.disableEditing(),e.annotationElementId?null===e.serialize()?(r.set(e.annotationElementId,e),null===(n=this.getEditableAnnotation(e.annotationElementId))||void 0===n||n.show(),e.remove()):i.set(e.annotationElementId,e):t.push(e)}const a=e.getEditableAnnotations();for(const e of a){const{id:t}=e.data;if(hl(TC,this).isDeletedAnnotationElement(t)){e.updateEdited({deleted:!0});continue}let n=r.get(t);n?(n.resetAnnotationElement(e),n.show(!1),e.show()):(n=i.get(t),n&&(hl(TC,this).addChangedExistingAnnotation(n),n.renderAnnotationElement(e)&&n.show(!1)),e.show())}}ul(EC,this,RC).call(this),this.isEmpty&&(this.div.hidden=!0);const{classList:i}=this.div;for(const r of OC._.values())i.remove("".concat(r._type,"Editing"));this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),null===e||void 0===e||e.updateFakeAnnotations(t),fl(xC,this,!1)}getEditableAnnotation(e){var t;return(null===(t=hl(gC,this))||void 0===t?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){hl(TC,this).getActive()!==e&&hl(TC,this).setActiveEditor(e)}enableTextSelection(){var e;if(this.div.tabIndex=-1,null!==(e=hl(SC,this))&&void 0!==e&&e.div&&!hl(kC,this)){fl(kC,this,new AbortController);const e=hl(TC,this).combinedSignal(hl(kC,this));hl(SC,this).div.addEventListener("pointerdown",ul(EC,this,PC).bind(this),{signal:e}),hl(SC,this).div.classList.add("highlighting")}}disableTextSelection(){var e;this.div.tabIndex=0,null!==(e=hl(SC,this))&&void 0!==e&&e.div&&hl(kC,this)&&(hl(kC,this).abort(),fl(kC,this,null),hl(SC,this).div.classList.remove("highlighting"))}enableClick(){if(hl(mC,this))return;fl(mC,this,new AbortController);const e=hl(TC,this).combinedSignal(hl(mC,this));this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const t=this.pointerup.bind(this);this.div.addEventListener("pointerup",t,{signal:e}),this.div.addEventListener("pointercancel",t,{signal:e})}disableClick(){var e;null===(e=hl(mC,this))||void 0===e||e.abort(),fl(mC,this,null)}attach(e){hl(bC,this).set(e.id,e);const{annotationElementId:t}=e;t&&hl(TC,this).isDeletedAnnotationElement(t)&&hl(TC,this).removeDeletedAnnotationElement(e)}detach(e){var t;hl(bC,this).delete(e.id),null===(t=hl(fC,this))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!hl(xC,this)&&e.annotationElementId&&hl(TC,this).addDeletedAnnotationElement(e)}remove(e){this.detach(e),hl(TC,this).removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){var t;e.parent!==this&&(e.parent&&e.annotationElementId&&(hl(TC,this).addDeletedAnnotationElement(e),ep.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(e.parent!==this||!e.isAttachedToDOM){if(this.changeParent(e),hl(TC,this).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!hl(wC,this)),hl(TC,this).addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){var t;if(!e.isAttachedToDOM)return;const{activeElement:n}=document;e.div.contains(n)&&!hl(vC,this)&&(e._focusEventsAllowed=!1,fl(vC,this,setTimeout((()=>{fl(vC,this,null),e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0,signal:hl(TC,this)._signal}),n.focus())}),0))),e._structTreeParentId=null===(t=hl(fC,this))||void 0===t?void 0:t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||(e.parent=this),e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getEditorByUID(e){for(const t of hl(bC,this).values())if(t.uid===e)return t;return null}getNextId(){return hl(TC,this).getId()}combinedSignal(e){return hl(TC,this).combinedSignal(e)}canCreateNewEmptyEditor(){var e;return null===(e=dl(EC,this,UC))||void 0===e?void 0:e.canCreateNewEmptyEditor()}async pasteEditor(e,t){this.updateToolbar(e),await hl(TC,this).updateMode(e.mode);const{offsetX:n,offsetY:i}=ul(EC,this,FC).call(this),r=this.getNextId(),a=ul(EC,this,jC).call(this,Je({parent:this,id:r,x:n,y:i,uiManager:hl(TC,this),isCentered:!0},t));a&&this.add(a)}async deserialize(e){var t,n;return await(null===(t=OC._.get(null!==(n=e.annotationType)&&void 0!==n?n:e.annotationEditorType))||void 0===t?void 0:t.deserialize(e,this,hl(TC,this)))||null}createAndAddNewEditor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getNextId(),r=ul(EC,this,jC).call(this,Je({parent:this,id:i,x:e.offsetX,y:e.offsetY,uiManager:hl(TC,this),isCentered:t},n));return r&&this.add(r),r}get boundingClientRect(){return this.div.getBoundingClientRect()}addNewEditor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.createAndAddNewEditor(ul(EC,this,FC).call(this),!0,e)}setSelected(e){hl(TC,this).setSelected(e)}toggleSelected(e){hl(TC,this).toggleSelected(e)}unselect(e){hl(TC,this).unselect(e)}pointerup(e){var t;const{isMac:n}=Rc.platform;if(0!==e.button||e.ctrlKey&&n)return;if(e.target!==this.div)return;if(!hl(yC,this))return;if(fl(yC,this,!1),null!==(t=dl(EC,this,UC))&&void 0!==t&&t.isDrawer&&dl(EC,this,UC).supportMultipleDrawings)return;if(!hl(pC,this))return void fl(pC,this,!0);const i=hl(TC,this).getMode();i!==Yl.STAMP&&i!==Yl.SIGNATURE?this.createAndAddNewEditor(e,!1):hl(TC,this).unselectAll()}pointerdown(e){var t;if(hl(TC,this).getMode()===Yl.HIGHLIGHT&&this.enableTextSelection(),hl(yC,this))return void fl(yC,this,!1);const{isMac:n}=Rc.platform;if(0!==e.button||e.ctrlKey&&n)return;if(e.target!==this.div)return;if(fl(yC,this,!0),null!==(t=dl(EC,this,UC))&&void 0!==t&&t.isDrawer)return void this.startDrawingSession(e);const i=hl(TC,this).getActive();fl(pC,this,!i||i.isEmpty())}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),hl(_C,this))return void dl(EC,this,UC).startDrawing(this,hl(TC,this),!1,e);hl(TC,this).setCurrentDrawingSession(this),fl(_C,this,new AbortController);const t=hl(TC,this).combinedSignal(hl(_C,this));this.div.addEventListener("blur",(e=>{let{relatedTarget:t}=e;t&&!this.div.contains(t)&&(fl(DC,this,null),this.commitOrRemove())}),{signal:t}),dl(EC,this,UC).startDrawing(this,hl(TC,this),!1,e)}pause(e){if(e){const{activeElement:e}=document;this.div.contains(e)&&fl(DC,this,e)}else hl(DC,this)&&setTimeout((()=>{var e;null===(e=hl(DC,this))||void 0===e||e.focus(),fl(DC,this,null)}),0)}endDrawingSession(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return hl(_C,this)?(hl(TC,this).setCurrentDrawingSession(null),hl(_C,this).abort(),fl(_C,this,null),fl(DC,this,null),dl(EC,this,UC).endDrawing(e)):null}findNewParent(e,t,n){const i=hl(TC,this).findParent(t,n);return null!==i&&i!==this&&(i.changeParent(e),!0)}commitOrRemove(){return!!hl(_C,this)&&(this.endDrawingSession(),!0)}onScaleChanging(){hl(_C,this)&&dl(EC,this,UC).onScaleChangingWhenDrawing(this)}destroy(){var e;this.commitOrRemove(),(null===(e=hl(TC,this).getActive())||void 0===e?void 0:e.parent)===this&&(hl(TC,this).commitOrRemove(),hl(TC,this).setActiveEditor(null)),hl(vC,this)&&(clearTimeout(hl(vC,this)),fl(vC,this,null));for(const n of hl(bC,this).values()){var t;null===(t=hl(fC,this))||void 0===t||t.removePointerInTextLayer(n.contentDiv),n.setParent(null),n.isAttachedToDOM=!1,n.div.remove()}this.div=null,hl(bC,this).clear(),hl(TC,this).removeLayer(this)}render(e){let{viewport:t}=e;this.viewport=t,du(this.div,t);for(const n of hl(TC,this).getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update(e){let{viewport:t}=e;hl(TC,this).commitOrRemove(),ul(EC,this,RC).call(this);const n=this.viewport.rotation,i=t.rotation;if(this.viewport=t,du(this.div,{rotation:i}),n!==i)for(const r of hl(bC,this).values())r.rotate(i)}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}get scale(){return hl(TC,this).viewParameters.realScale}}function MC(e){return 0!==hl(bC,e).size?hl(bC,e).values():hl(TC,e).getEditors(e.pageIndex)}function PC(e){hl(TC,this).unselectAll();const{target:t}=e;if(t===hl(SC,this).div||("img"===t.getAttribute("role")||t.classList.contains("endOfContent"))&&hl(SC,this).div.contains(t)){const{isMac:t}=Rc.platform;if(0!==e.button||e.ctrlKey&&t)return;hl(TC,this).showAllEditors("highlight",!0,!0),hl(SC,this).div.classList.add("free"),this.toggleDrawing(),dS.startHighlighting(this,"ltr"===hl(TC,this).direction,{target:hl(SC,this).div,x:e.x,y:e.y}),hl(SC,this).div.addEventListener("pointerup",(()=>{hl(SC,this).div.classList.remove("free"),this.toggleDrawing(!0)}),{once:!0,signal:hl(TC,this)._signal}),e.preventDefault()}}function UC(e){return OC._.get(hl(TC,e).getMode())}function jC(e){const t=dl(EC,this,UC);return t?new t.prototype.constructor(e):null}function FC(){const{x:e,y:t,width:n,height:i}=this.boundingClientRect,r=Math.max(0,e),a=Math.max(0,t),o=(r+Math.min(window.innerWidth,e+n))/2-e,s=(a+Math.min(window.innerHeight,t+i))/2-t,[l,c]=this.viewport.rotation%180===0?[o,s]:[s,o];return{offsetX:l,offsetY:c}}function RC(){for(const e of hl(bC,this).values())e.isEmpty()&&e.remove()}Qe(NC,"_initialized",!1);var OC={_:new Map([I_,_k,rC,dS,qk].map((e=>[e._editorType,e])))},IC=new WeakMap,LC=new WeakMap,BC=new WeakMap,WC=new WeakSet;class zC{constructor(e){let{pageIndex:t}=e;
2ll(this,WC),cl(this,IC,null),cl(this,LC,new Map),cl(this,BC,new Map),this.pageIndex=t}setParent(e){if(hl(IC,this)){if(hl(IC,this)!==e){if(hl(LC,this).size>0)for(const t of hl(LC,this).values())t.remove(),e.append(t);fl(IC,this,e)}}else fl(IC,this,e)}static get _svgFactory(){return Cc(this,"_svgFactory",new Fx)}draw(e){var t,n;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=(YC._=(t=YC._,n=t++,t),n),o=ul(WC,this,HC).call(this),s=zC._svgFactory.createElement("defs");o.append(s);const l=zC._svgFactory.createElement("path");s.append(l);const c="path_p".concat(this.pageIndex,"_").concat(a);l.setAttribute("id",c),l.setAttribute("vector-effect","non-scaling-stroke"),i&&hl(BC,this).set(a,l);const u=r?ul(WC,this,qC).call(this,s,c):null,d=zC._svgFactory.createElement("use");return o.append(d),d.setAttribute("href","#".concat(c)),this.updateProperties(o,e),hl(LC,this).set(a,o),{id:a,clipPathId:"url(#".concat(u,")")}}drawOutline(e,t){var n,i;const r=(YC._=(n=YC._,i=n++,n),i),a=ul(WC,this,HC).call(this),o=zC._svgFactory.createElement("defs");a.append(o);const s=zC._svgFactory.createElement("path");o.append(s);const l="path_p".concat(this.pageIndex,"_").concat(r);let c;if(s.setAttribute("id",l),s.setAttribute("vector-effect","non-scaling-stroke"),t){const e=zC._svgFactory.createElement("mask");o.append(e),c="mask_p".concat(this.pageIndex,"_").concat(r),e.setAttribute("id",c),e.setAttribute("maskUnits","objectBoundingBox");const t=zC._svgFactory.createElement("rect");e.append(t),t.setAttribute("width","1"),t.setAttribute("height","1"),t.setAttribute("fill","white");const n=zC._svgFactory.createElement("use");e.append(n),n.setAttribute("href","#".concat(l)),n.setAttribute("stroke","none"),n.setAttribute("fill","black"),n.setAttribute("fill-rule","nonzero"),n.classList.add("mask")}const u=zC._svgFactory.createElement("use");a.append(u),u.setAttribute("href","#".concat(l)),c&&u.setAttribute("mask","url(#".concat(c,")"));const d=u.cloneNode();return a.append(d),u.classList.add("mainOutline"),d.classList.add("secondaryOutline"),this.updateProperties(a,e),hl(LC,this).set(r,a),r}finalizeDraw(e,t){hl(BC,this).delete(e),this.updateProperties(e,t)}updateProperties(e,t){if(!t)return;const{root:n,bbox:i,rootClass:r,path:a}=t,o="number"===typeof e?hl(LC,this).get(e):e;if(o){if(n&&ul(WC,this,GC).call(this,o,n),i&&VC.call(zC,o,i),r){const{classList:e}=o;for(const[t,n]of Object.entries(r))e.toggle(t,n)}if(a){const e=o.firstElementChild.firstElementChild;ul(WC,this,GC).call(this,e,a)}}}updateParent(e,t){if(t===this)return;const n=hl(LC,this).get(e);n&&(hl(IC,t).append(n),hl(LC,this).delete(e),hl(LC,t).set(e,n))}remove(e){hl(BC,this).delete(e),null!==hl(IC,this)&&(hl(LC,this).get(e).remove(),hl(LC,this).delete(e))}destroy(){fl(IC,this,null);for(const e of hl(LC,this).values())e.remove();hl(LC,this).clear(),hl(BC,this).clear()}}function VC(e,t){let[n,i,r,a]=t;const{style:o}=e;o.top="".concat(100*i,"%"),o.left="".concat(100*n,"%"),o.width="".concat(100*r,"%"),o.height="".concat(100*a,"%")}
2function HC(){const e=Ul._svgFactory.create(1,1,!0);return hl(IC,this).append(e),e.setAttribute("aria-hidden",!0),e}function qC(e,t){const n=Ul._svgFactory.createElement("clipPath");e.append(n);const i="clip_".concat(t);n.setAttribute("id",i),n.setAttribute("clipPathUnits","objectBoundingBox");const r=Ul._svgFactory.createElement("use");return n.append(r),r.setAttribute("href","#".concat(t)),r.classList.add("clip"),i}function GC(e,t){for(const[n,i]of Object.entries(t))null===i?e.removeAttribute(n):e.setAttribute(n,i)}Ul=zC;var YC={_:0};globalThis._pdfjsTestingUtils={HighlightOutliner:FD},globalThis.pdfjsLib={AbortException:Uc,AnnotationEditorLayer:NC,AnnotationEditorParamsType:Xl,AnnotationEditorType:Yl,AnnotationEditorUIManager:dh,AnnotationLayer:E_,AnnotationMode:ql,AnnotationType:rc,applyOpacity:function(e,t,n,i){var r;const a=255*(1-(i=Math.min(Math.max(null!==(r=i)&&void 0!==r?r:1,0),1)));return[e=Math.round(e*i+a),t=Math.round(t*i+a),n=Math.round(n*i+a)]},build:"f44e5f0e6",ColorPicker:bx,createValidAbsoluteUrl:Sc,CSSConstants:class{static get commentForegroundColor(){const e=document.createElement("span");e.classList.add("comment","sidebar");const{style:t}=e;t.width=t.height="0",t.display="none",t.color="var(--comment-fg-color)",document.body.append(e);const{color:n}=window.getComputedStyle(e);return e.remove(),Cc(this,"commentForegroundColor",lu(n))}},DOMSVGFactory:Fx,DrawLayer:zC,FeatureTest:Rc,fetchData:Qc,findContrastColor:function(e,t){const n=e[0]+256*e[1]+65536*e[2]+16777216*t[0]+4294967296*t[1]+1099511627776*t[2];let i=yu.get(n);if(i)return i;const r=new Float32Array(9),a=r.subarray(0,3),o=r.subarray(3,6);gu(e,o);const s=r.subarray(6,9);gu(t,s);const l=s[2]<.5,c=l?12:4.5;if(o[2]=l?Math.sqrt(o[2]):1-Math.sqrt(1-o[2]),bu(o,s,a)<c){let e,t;l?(e=o[2],t=1):(e=0,t=o[2]);const n=.005;for(;t-e>n;){const n=o[2]=(e+t)/2;l===bu(o,s,a)<c?e=n:t=n}o[2]=l?t:e}return mu(o,a),i=Ic.makeHexColor(Math.round(255*a[0]),Math.round(255*a[1]),Math.round(255*a[2])),yu.set(n,i),i},getDocument:xy,getFilenameFromUrl:function(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)},getPdfFilenameFromUrl:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(eu(e))return wc('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=(e=>{try{return new URL(e)}catch(t){try{return new URL(decodeURIComponent(e))}catch(n){try{return new URL(e,"https://foo.bar")}catch(i){try{return new URL(decodeURIComponent(e),"https://foo.bar")}catch(r){return null}}}}})(e);if(!n)return t;const i=e=>{try{let t=decodeURIComponent(e);return t.includes("/")?(t=t.split("/").at(-1),t.test(/^\.pdf$/i)?t:e):t}catch(t){return e}},r=/\.pdf$/i,a=n.pathname.split("/").at(-1);if(r.test(a))return i(a);if(n.searchParams.size>0){const e=Array.from(n.searchParams.values()).reverse();for(const n of e)if(r.test(n))return i(n);const t=Array.from(n.searchParams.keys()).reverse();for(const n of t)if(r.test(n))return i(n)}if(n.hash){const e=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(n.hash);if(e)return i(e[0])}return t},getRGB:lu,getUuid:Vc,getXfaPageViewport:function(e,t){let{scale:n=1,rotation:i=0}=t;const{width:r,height:a}=e.attributes.style,o=[0,0,parseInt(r),parseInt(a)];return new Zc({viewBox:o,userUnit:1,scale:n,rotation:i})},GlobalWorkerOptions:$v,ImageKind:ic,InvalidPDFException:Nc,isDataScheme:eu,isPdfFile:tu,isValidExplicitDest:wg,MathClamp:qc,noContextMenu:ru,normalizeUnicode:function(e){return Wc||(Wc=/([\xA0\xB5\u037E\u0EB3\u2000-\u200A\u202F\u2126\uFB00-\uFB04\uFB06\uFB20-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBA1\uFBA4-\uFBA9\uFBAE-\uFBB1\uFBD3-\uFBDC\uFBDE-\uFBE7\uFBEA-\uFBF8\uFBFC\uFBFD\uFC00-\uFC5D\uFC64-\uFCF1\uFCF5-\uFD3D\uFD88\uFDF4\uFDFA\uFDFB\uFE71\uFE77\uFE79\uFE7B\uFE7D]+)|(\uFB05+)/g,zc=new Map([["\ufb05","\u017ft"]])),e.replaceAll(Wc,((e,t,n)=>t?t.normalize("NFKC"):zc.get(n)))},OPS:dc,OutputScale:hu,PasswordResponses:{NEED_PASSWORD:1,INCORRECT_PASSWORD:2},PDFDataRangeTransport:Ty,PDFDateString:ou,PDFWorker:Ly,PermissionFlag:{PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},PixelsPerInch:$c,RenderingCancelledException:Jc,renderRichText:xu,ResponseException:Mc,setLayerDimensions:du,shadow:Cc,SignatureExtractor:kk,stopEvent:au,Supp
2ortedImageMimeTypes:fu,TextLayer:sy,TouchManager:Df,updateUrlHash:kc,Util:Ic,VerbosityLevel:uc,version:"5.4.449",XfaLayer:Xc};var XC=n(7633);n(446);const KC=["title","titleId"];function $C(e,t){let{title:n,titleId:i}=e,r=Xe(e,KC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},r),n?o.createElement("title",{id:i},n):null,o.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"}))}const QC=o.forwardRef($C),ZC=["title","titleId"];function JC(e,t){let{title:n,titleId:i}=e,r=Xe(e,ZC);return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},r),n?o.createElement("title",{id:i},n):null,o.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const eA=o.forwardRef(JC);$v.workerSrc="/pdf.worker.min.js";function tA(e){let{slideIndex:t,setSlideIndex:n,children:i,className:r=""}=e;const a=(0,o.useRef)(null),s=o.Children.count(i),l=(0,o.useCallback)((e=>{var t;const n=a.current;if(!n)return;const i=null===(t=n.children)||void 0===t?void 0:t[e];if(!i)return;const r=i.offsetLeft-n.offsetLeft;n.scrollTo({left:r,behavior:"smooth"})}),[]),c=e=>{const i=(t+e+s)%s;n(i),l(i)};return(0,o.useEffect)((()=>
2{l(t)}),[l,t]),(0,Le.jsxs)("div",{className:"relative ".concat(r),children:[(0,Le.jsx)("div",{ref:a,onWheel:e=>{Math.abs(e.deltaX)>Math.abs(e.deltaY)&&e.preventDefault()},className:"flex gap-0 snap-x snap-mandatory pb-2",style:{overflowX:"hidden",overflowY:"hidden",touchAction:"pan-y",scrollBehavior:"smooth"},children:o.Children.map(i,((e,t)=>(0,Le.jsx)("div",{className:"snap-start shrink-0 p-2 w-full ".concat(0==t||1==t||2==t||3==t?"sm:w-1/3":4==t||5==t?"sm:w-1/5":6==t||7==t||8==t?"sm:w-1/2":"sm:w-full"),children:e},t)))}),(0,Le.jsx)("button",{type:"button",onClick:()=>c(-1),className:"md:flex items-center justify-center absolute left-0  top-1/2 -translate-y-1/2 h-9 w-9 rounded-full text-white shadow","aria-label":"Previous",children:(0,Le.jsx)(QC,{"aria-hidden":"true",className:"size-10 sm:size-20 text-white"})}),(0,Le.jsx)("button",{type:"button",onClick:()=>c(1),className:"md:flex items-center justify-center absolute right-0  top-1/2 -translate-y-1/2 h-9 w-9 rounded-full text-white shadow","aria-label":"Next",children:(0,Le.jsx)(eA,{"aria-hidden":"true",className:"size-10 sm:size-20 text-white"})})]})}tA.Item=function(e){let{children:t}=e;return t};function nA(e,t){return function(){return e.apply(t,arguments)}}const{toString:iA}=Object.prototype,{getPrototypeOf:rA}=Object,{iterator:aA,toStringTag:oA}=Symbol,sA=(lA=Object.create(null),e=>{const t=iA.call(e);return lA[t]||(lA[t]=t.slice(8,-1).toLowerCase())});var lA;const cA=e=>(e=e.toLowerCase(),t=>sA(t)===e),uA=e=>t=>typeof t===e,{isArray:dA}=Array,hA=uA("undefined");function fA(e){return null!==e&&!hA(e)&&null!==e.constructor&&!hA(e.constructor)&&mA(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pA=cA("ArrayBuffer");const gA=uA("string"),mA=uA("function"),vA=uA("number"),bA=e=>null!==e&&"object"===typeof e,yA=e=>{if("object"!==sA(e))return!1;const t=rA(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(oA in e)&&!(aA in e)},xA=cA("Date"),wA=cA("File"),_A=cA("Blob"),DA=cA("FileList"),SA=cA("URLSearchParams"),[kA,CA,AA,TA]=["ReadableStream","Request","Response","Headers"].map(cA);function EA(e,t){let n,i,{allOwnKeys:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),dA(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(fA(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}function NA(e,t){if(fA(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const MA="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,PA=e=>!hA(e)&&e!==MA;const UA=(jA="undefined"!==typeof Uint8Array&&rA(Uint8Array),e=>jA&&e instanceof jA);var jA;const FA=cA("HTMLFormElement"),RA=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),OA=cA("RegExp"),IA=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};EA(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(i[r]=a||n)})),Object.defineProperties(e,i)};const LA=cA("AsyncFunction"),BA=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),i=[],MA.addEventListener("message",(e=>{let{source:t,data:r}=e;t===MA&&r===n&&i.length&&i.shift()()}),!1),e=>{i.push(e),MA.postMessage(n,"*")}):e=>setTimeout(e);var n,i})("function"===typeof setImmediate,mA(MA.postMessage)),WA="undefined"!==typeof queueMicrotask?queueMicrotask.bind(MA):"undefined"!==typeof process&&process.nextTick||BA,zA={isArray:dA,isArrayBuffer:pA,isBuffer:fA,isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||mA(e.append)&&("formdata"===(t=sA(e))||"object"===t&&mA(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pA(e.buffer),t},isString:gA,isNumber:vA,isBoolean:e=>!0===e||!1===e,isObject:bA,isPlainObject:yA,isEmptyObject:e=>{if(!bA(e)||fA(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(eQ){return!1}},isReadableStream:kA,isRequest:CA,isResponse:AA,isHeaders:TA,isUndefined:hA,isDate:xA,isFile:wA,isBlob:_A,isRegExp:OA,isFunction:mA,isStream:e=>bA(e)&&mA(e.pipe),isURLSearchParams:SA,isTypedArray:UA,isFileList:DA,forEach:EA,merge:function e(){const{caseless:t,skipUndefined:n}=PA(this)&&this||{},i={},r=(r,a)=>{const o=t&&NA(i,a)||a;yA(i[o])&&yA(r)?i[o]=e(i[o],r):yA(r)?i[o]=e({},r):dA(r)?i[o]=r.slice():n&&hA(r)||(i[o]=r)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&EA(arguments[a],r);return i},extend:function(e,t,n){let{allOwnKeys:i}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return EA(t,((t,i)=>{n&&mA(t)?e[i]=nA(t,n):e[i]=t}),{allOwnKeys:i}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>
vendor: 4,225 bytes, line 2
2{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,a,o;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)o=r[a],i&&!i(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&rA(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sA,kindOfTest:cA,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(dA(e))return e;let t=e.length;if(!vA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[aA]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:FA,hasOwnProperty:RA,hasOwnProp:RA,reduceDescriptors:IA,freezeMethods:e=>{IA(e,((t,n)=>{if(mA(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];mA(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return dA(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:NA,global:MA,isContextDefined:PA,isSpecCompliantForm:function(e){return!!(e&&mA(e.append)&&"FormData"===e[oA]&&e[aA])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(bA(e)){if(t.indexOf(e)>=0)return;if(fA(e))return e;if(!("toJSON"in e)){t[i]=e;const r=dA(e)?[]:{};return EA(e,((e,t)=>{const a=n(e,i+1);!hA(a)&&(r[t]=a)})),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:LA,isThenable:e=>e&&(bA(e)||mA(e))&&mA(e.then)&&mA(e.catch),setImmediate:BA,asap:WA,isIterable:e=>null!=e&&mA(e[aA])};function VA(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}zA.inherits(VA,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:zA.toJSONObject(this.config),code:this.code,status:this.status}}});const HA=VA.prototype,qA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{qA[e]={value:e}})),Object.defineProperties(VA,qA),Object.defineProperty(HA,"isAxiosError",{value:!0}),VA.from=(e,t,n,i,r,a)=>{const o=Object.create(HA);zA.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return VA.call(o,s,l,n,i,r),e&&null==o.cause&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const GA=VA;function YA(e){return zA.isPlainObject(e)||zA.isArray(e)}function XA(e){return zA.endsWith(e,"[]")?e.slice(0,-2):e}function KA(e,t,n){return e?e.concat(t).map((function(e,t){return e=XA(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const $A=zA.toFlatObject(zA,{},null,(function(e){return/^is[A-Z]/.test(e)}));const QA=function(e,t,n){if(!zA.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=zA.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!zA.isUndefined(t[e])}))).metaTokens,r=n.visitor||c,a=n.dots,o=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&zA.isSpecCompliantForm(t);if(!zA.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(zA.isDate(e))return e.toISOString();if(zA.isBoolean(e))return e.toString();if(!s&&zA.isBlob(e))throw new GA("Blob is not supported. Use a Buffer instead.");
vendor: 4,328 bytes, line 2
2return zA.isArrayBuffer(e)||zA.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"===typeof e)if(zA.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(zA.isArray(e)&&function(e){return zA.isArray(e)&&!e.some(YA)}(e)||(zA.isFileList(e)||zA.endsWith(n,"[]"))&&(s=zA.toArray(e)))return n=XA(n),s.forEach((function(e,i){!zA.isUndefined(e)&&null!==e&&t.append(!0===o?KA([n],i,a):null===o?n:n+"[]",l(e))})),!1;return!!YA(e)||(t.append(KA(r,n,a),l(e)),!1)}const u=[],d=Object.assign($A,{defaultVisitor:c,convertValue:l,isVisitable:YA});if(!zA.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!zA.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),zA.forEach(n,(function(n,a){!0===(!(zA.isUndefined(n)||null===n)&&r.call(t,n,zA.isString(a)?a.trim():a,i,d))&&e(n,i?i.concat(a):[a])})),u.pop()}}(e),t};function ZA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function JA(e,t){this._pairs=[],e&&QA(e,this,t)}const eT=JA.prototype;eT.append=function(e,t){this._pairs.push([e,t])},eT.toString=function(e){const t=e?function(t){return e.call(this,t,ZA)}:ZA;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const tT=JA;function nT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iT(e,t,n){if(!t)return e;const i=n&&n.encode||nT;zA.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let a;if(a=r?r(t,n):zA.isURLSearchParams(t)?t.toString():new tT(t,n).toString(i),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const rT=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){zA.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},aT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oT={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:tT,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},sT="undefined"!==typeof window&&"undefined"!==typeof document,lT="object"===typeof navigator&&navigator||void 0,cT=sT&&(!lT||["ReactNative","NativeScript","NS"].indexOf(lT.product)<0),uT="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,dT=sT&&window.location.href||"http://localhost",hT=Je(Je({},e),oT);const fT=function(e){function t(e,n,i,r){let a=e[r++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=r>=e.length;if(a=!a&&zA.isArray(i)?i.length:a,s)return zA.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o;i[a]&&zA.isObject(i[a])||(i[a]=[]);return t(e,n,i[a],r)&&zA.isArray(i[a])&&(i[a]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}(i[a])),!o}if(zA.isFormData(e)&&zA.isFunction(e.entries)){const n={};return zA.forEachEntry(e,((e,i)=>{t(function(e){return zA.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null};const pT={transitional:aT,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=zA.isObject(e);r&&zA.isHTMLForm(e)&&(e=new FormData(e));if(zA.isFormData(e))return i?JSON.stringify(fT(e)):e;if(zA.isArrayBuffer(e)||zA.isBuffer(e)||zA.isStream(e)||zA.isFile(e)||zA.isBlob(e)||zA.isReadableStream(e))return e;if(zA.isArrayBufferView(e))return e.buffer;if(zA.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return QA(e,new hT.classes.URLSearchParams,Je({visitor:function(e,t,n,i){return hT.isNode&&zA.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}
vendor: 4,536 bytes, line 2
2(e,this.formSerializer).toString();if((a=zA.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return QA(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(zA.isString(e))try{return(t||JSON.parse)(e),zA.trim(e)}catch(eQ){if("SyntaxError"!==eQ.name)throw eQ}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pT.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(zA.isResponse(e)||zA.isReadableStream(e))return e;if(e&&zA.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(eQ){if(n){if("SyntaxError"===eQ.name)throw GA.from(eQ,GA.ERR_BAD_RESPONSE,this,null,this.response);throw eQ}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hT.classes.FormData,Blob:hT.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zA.forEach(["delete","get","head","post","put","patch"],(e=>{pT.headers[e]={}}));const gT=pT,mT=zA.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vT=Symbol("internals");function bT(e){return e&&String(e).trim().toLowerCase()}function yT(e){return!1===e||null==e?e:zA.isArray(e)?e.map(yT):String(e)}function xT(e,t,n,i,r){return zA.isFunction(i)?i.call(this,t,n):(r&&(t=n),zA.isString(t)?zA.isString(i)?-1!==t.indexOf(i):zA.isRegExp(i)?i.test(t):void 0:void 0)}class wT{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=bT(t);if(!r)throw new Error("header name must be a non-empty string");const a=zA.findKey(i,r);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||t]=yT(e))}const a=(e,t)=>zA.forEach(e,((e,n)=>r(e,n,t)));if(zA.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(zA.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&mT[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(zA.isObject(e)&&zA.isIterable(e)){let n,i,r={};for(const t of e){if(!zA.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?zA.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=bT(e)){const n=zA.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(zA.isFunction(t))return t.call(this,e,n);if(zA.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=bT(e)){const n=zA.findKey(this,e);return!(!n||void 0===this[n]||t&&!xT(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=bT(e)){const r=zA.findKey(n,e);!r||t&&!xT(0,n[r],r,t)||(delete n[r],i=!0)}}return zA.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!xT(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return zA.forEach(this,((i,r)=>{const a=zA.findKey(n,r);if(a)return t[a]=yT(i),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();o!==r&&delete t[r],t[o]=yT(i),n[o]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return zA.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&zA.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];
vendor: 4,196 bytes, line 2
2return i.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[vT]=this[vT]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=bT(e);t[i]||(!function(e,t){const n=zA.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return zA.isArray(e)?e.forEach(i):i(e),this}}wT.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),zA.reduceDescriptors(wT.prototype,((e,t)=>{let{value:n}=e,i=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[i]=e}}})),zA.freezeMethods(wT);const _T=wT;function DT(e,t){const n=this||gT,i=t||n,r=_T.from(i.headers);let a=i.data;return zA.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function ST(e){return!(!e||!e.__CANCEL__)}function kT(e,t,n){GA.call(this,null==e?"canceled":e,GA.ERR_CANCELED,t,n),this.name="CanceledError"}zA.inherits(kT,GA,{__CANCEL__:!0});const CT=kT;function AT(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new GA("Request failed with status code "+n.status,[GA.ERR_BAD_REQUEST,GA.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const TT=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=i[o];r||(r=l),n[a]=s,i[a]=l;let u=o,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-r<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}};const ET=function(e,t){let n,i,r=0,a=1e3/t;const o=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=a,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[function(){const e=Date.now(),t=e-r;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=a?o(l,e):(n=l,i||(i=setTimeout((()=>{i=null,o(n)}),a-t)))},()=>n&&o(n)]},NT=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=0;const r=TT(50,250);return ET((n=>{const a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-i,l=r(s);i=a;e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&a<=o?(o-a)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),n)},MT=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},PT=e=>function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return zA.asap((()=>e(...n)))},UT=hT.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,hT.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(hT.origin),hT.navigator&&/(msie|trident)/i.test(hT.navigator.userAgent)):()=>!0,jT=hT.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const o=[e+"="+encodeURIComponent(t)];zA.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),zA.isString(i)&&o.push("path="+i),zA.isString(r)&&o.push("domain="+r),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function FT(e,t,n){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const RT=e=>e instanceof _T?Je({},e):e;function OT(e,t){t=t||{};const n={};function i(e,t,n,i){return zA.isPlainObject(e)&&zA.isPlainObject(t)?zA.merge.call({caseless:i},e,t):zA.isPlainObject(t)?zA.merge({},t):zA.isArray(t)?t.slice():t}function r(e,t,n,r){return zA.isUndefined(t)?zA.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function a(e,t){if(!zA.isUndefined(t))return i(void 0,t)}function o(e,t){return zA.isUndefined(t)?zA.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,a){return a in t?i(n,r):a in e?i(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
vendor: 2,996 bytes, line 2
2dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>r(RT(e),RT(t),0,!0)};return zA.forEach(Object.keys(Je(Je({},e),t)),(function(i){const a=l[i]||r,o=a(e[i],t[i],i);zA.isUndefined(o)&&a!==s||(n[i]=o)})),n}const IT=e=>{const t=OT({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=_T.from(o),t.url=iT(FT(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),zA.isFormData(n))if(hT.hasStandardBrowserEnv||hT.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(zA.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((e=>{let[n,i]=e;t.includes(n.toLowerCase())&&o.set(n,i)}))}if(hT.hasStandardBrowserEnv&&(i&&zA.isFunction(i)&&(i=i(t)),i||!1!==i&&UT(t.url))){const e=r&&a&&jT.read(a);e&&o.set(r,e)}return t},LT="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=IT(e);let r=i.data;const a=_T.from(i.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:f}=i;function p(){c&&c(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function m(){if(!g)return;const i=_T.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());AT((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new GA("Request aborted",GA.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const i=t&&t.message?t.message:"Network Error",r=new GA(i,GA.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||aT;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new GA(t,r.clarifyTimeoutError?GA.ETIMEDOUT:GA.ECONNABORTED,e,g)),g=null},void 0===r&&a.setContentType(null),"setRequestHeader"in g&&zA.forEach(a.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),zA.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),d&&"json"!==d&&(g.responseType=i.responseType),f&&([l,u]=NT(f,!0),g.addEventListener("progress",l)),h&&g.upload&&([s,c]=NT(h),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(o=t=>{g&&(n(!t||t.type?new CT(null,e,g):t),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o))
2);const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);v&&-1===hT.protocols.indexOf(v)?n(new GA("Unsupported protocol "+v+":",GA.ERR_BAD_REQUEST,e)):g.send(r||null)}))},BT=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;i.abort(t instanceof GA?t:new CT(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,r(new GA("timeout ".concat(t," of ms exceeded"),GA.ETIMEDOUT))}),t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:s}=i;return s.unsubscribe=()=>zA.asap(o),s}};function WT(e,t){this.v=e,this.k=t}function zT(e){return function(){return new VT(e.apply(this,arguments))}}function VT(e){var t,n;function i(t,n){try{var a=e[t](n),o=a.value,s=o instanceof WT;Promise.resolve(s?o.v:o).then((function(n){if(s){var l="return"===t?"return":"next";if(!o.k||n.done)return i(l,n);n=e[l](n).value}r(a.done?"return":"normal",n)}),(function(e){i("throw",e)}))}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(a,o){var s={key:e,arg:r,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}function HT(e){return new WT(e,0)}function qT(e){var t={},n=!1;function i(t,i){return n=!0,i=new Promise((function(n){n(e[t](i))})),{done:!1,value:new WT(i,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return i("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):i("return",e)}),t}VT.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},VT.prototype.next=function(e){return this._invoke("next",e)},VT.prototype.throw=function(e){return this._invoke("throw",e)},VT.prototype.return=function(e){return this._invoke("return",e)};const GT=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},YT=function(){var e=zT((function*(e,t){var n,i=!1,r=!1;try{for(var a,o=pl(XT(e));i=!(a=yield HT(o.next())).done;i=!1){const e=a.value;yield*qT(pl(GT(e,t)))}}catch(s){r=!0,n=s}finally{try{i&&null!=o.return&&(yield HT(o.return()))}finally{if(r)throw n}}}));return function(t,n){return e.apply(this,arguments)}}(),XT=function(){var e=zT((function*(e){if(e[Symbol.asyncIterator])return void(yield*qT(pl(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield HT(t.read());if(e)break;yield n}}finally{yield HT(t.cancel())}}));return function(t){return e.apply(this,arguments)}}(),KT=(e,t,n,i)=>{const r=YT(e,t);let a,o=0,s=e=>{a||(a=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return s(),void e.close();let a=i.byteLength;if(n){let e=o+=a;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw s(t),t}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},{isFunction:$T}=zA,QT=(e=>{let{Request:t,Response:n}=e;return{Request:t,Response:n}})(zA.global),{ReadableStream:ZT,TextEncoder:JT}=zA.global,eE=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return!!e(...n)}catch(eQ){return!1}},tE=e=>{e=zA.merge.call({skipUndefined:!0},QT,e);const{fetch:t,Request:n,Response:i}=e,r=t?$T(t):"function"===typeof fetch,a=$T(n),o=$T(i);if(!r)return!1;const s=r&&$T(ZT),l=r&&("function"===typeof JT?(c=new JT,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=a&&s&&eE((()=>{let e=!1;const t=new n(hT.origin,{body:new ZT,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),d=o&&s&&eE((()=>zA.isReadableStream(new i("").body))),h={stream:d&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!h[e]&&(h[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new GA("Response type '".concat(e,"' is not supported"),GA.ERR_NOT_SUPPORT,n)})}));const f=async(e,t)=>{const i=zA.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(zA.isBlob(e))return e.size;if(zA.isSpecCompliantForm(e)){const t=new n(hT.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return zA.isArrayBufferView(e)||zA.isArrayBuffer(e)?e.byteLength:(zA.isURLSearchParams(e)&&(e+=""),zA.isString(e)?(await l(e)).byteLength:void 0)})(t):i};return async e=>{let{url:r,method:o,data:s,signal:l,cancelToken:c,timeout:p,onDownloadProgress:g,onUploadProgress:m,responseType:v,headers:b,withCredentials:y="same-origin",fetchOptions:x}=IT(e),w=t||fetch;v=v?(v+"").toLowerCase():"text";let _=BT([l,c&&c.toAbortSignal()],p),D=null;const S=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let k;try{if(m&&u&&"get"!==o&&"head"!==o&&0!==(k=await f(b,s))){let e,t=new n(r,{method:"POST",body:s,duplex:"half"});if(zA.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=MT(k,NT(PT(m)));s=KT(t.body,65536,e,n)}}zA.isString(y)||(y=y?"include":"omit");const t=a&&"credentials"in n.prototype,l=Je(Je({},x),{},{signal:_,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?y:void 0});D=a&&new n(r,l);let c=await(a?w(D,x):w(r,l));const p=d&&("stream"===v||"response"===v);if(d&&(g||p&&S)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=c[t]}));const t=zA.toFiniteNumber(c.headers.get("content-length")),[n,r]=g&&MT(t,NT(PT(g),!0))||[];c=new i(KT(c.body,65536,n,(()=>{r&&r(),S&&S()})),e)}v=v||"text";let C=await h[zA.findKey(h,v)||"text"](c,e);return!p&&S&&S(),await new Promise(((t,n)=>{AT(t,n,{data:C,headers:_T.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:D})}))}catch(C){if(S&&S(),C&&"TypeError"===C.name&&/Load failed|fetch/i.test(C.message))throw Object.assign(new GA("Network Error",GA.ERR_NETWORK,e,D),{cause:C.cause||C});throw GA.from(C,C&&C.code,e,D)}}},nE=new Map,iE=e=>{let t=e?e.env:{};const{fetch:n,Request:i,Response:r}=t,a=[i,r,n];let o,s,l=a.length,c=nE;for(;l--;)o=a[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:tE(t)),c=s;return s},rE=(iE(),{http:null,xhr:LT,fetch:{get:iE}});zA.forEach(rE,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(eQ){}Object.defineProperty(e,"adapterName",{value:t})}}));const aE=e=>"- ".concat(e),oE=e=>zA.isFunction(e)||null===e||!1===e,sE=(e,t)=>{e=zA.isArray(e)?e:[e];const{length:n}=e;let i,r;const a={};for(let o=0;o<n;o++){let n;if(i=e[o],r=i,!oE(i)&&(r=rE[(n=String(i)).toLowerCase()],void 0===r))throw new GA("Unknown adapter '".concat(n,"'"));if(r&&(zA.isFunction(r)||(r=r.get(t))))break;a[n||"#"+o]=r}if(!r){const e=Object.entries(a).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let t=n?e.length>
vendor: 4,887 bytes, line 2
21?"since :\n"+e.map(aE).join("\n"):" "+aE(e[0]):"as no adapter specified";throw new GA("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r};function lE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CT(null,e)}function cE(e){lE(e),e.headers=_T.from(e.headers),e.data=DT.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return sE(e.adapter||gT.adapter,e)(e).then((function(t){return lE(e),t.data=DT.call(e,e.transformResponse,t),t.headers=_T.from(t.headers),t}),(function(t){return ST(t)||(lE(e),t&&t.response&&(t.response.data=DT.call(e,e.transformResponse,t.response),t.response.headers=_T.from(t.response.headers))),Promise.reject(t)}))}const uE="1.12.2",dE={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{dE[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const hE={};dE.transitional=function(e,t,n){function i(e,t){return"[Axios v"+uE+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new GA(i(r," has been removed"+(t?" in "+t:"")),GA.ERR_DEPRECATED);return t&&!hE[r]&&(hE[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},dE.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const fE={assertOptions:function(e,t,n){if("object"!==typeof e)throw new GA("options must be an object",GA.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],o=t[a];if(o){const t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new GA("option "+a+" must be "+n,GA.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new GA("Unknown option "+a,GA.ERR_BAD_OPTION)}},validators:dE},pE=fE.validators;class gE{constructor(e){this.defaults=e||{},this.interceptors={request:new rT,response:new rT}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(eQ){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=OT(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&fE.assertOptions(n,{silentJSONParsing:pE.transitional(pE.boolean),forcedJSONParsing:pE.transitional(pE.boolean),clarifyTimeoutError:pE.transitional(pE.boolean)},!1),null!=i&&(zA.isFunction(i)?t.paramsSerializer={serialize:i}:fE.assertOptions(i,{encode:pE.function,serialize:pE.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fE.assertOptions(t,{baseUrl:pE.spelling("baseURL"),withXsrfToken:pE.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&zA.merge(r.common,r[t.method]);r&&zA.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=_T.concat(a,r);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[cE.bind(this),void 0];for(e.unshift(...o),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let h=t;for(;d<u;){const e=o[d++],t=o[d++];try{h=e(h)}catch(f){t.call(this,f);break}}try{c=cE.call(this,h)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return iT(FT((e=OT(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}zA.forEach(["delete","get","head","options"],(function(e){gE.prototype[e]=function(t,n){return this.request(OT(n||{},{method:e,url:t,data:(n||{}).data}))}})),zA.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(OT(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}gE.prototype[e]=t(),gE.prototype[e+"Form"]=t(!0)}));const mE=gE;class vE{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new CT(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}
2subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new vE((function(t){e=t})),cancel:e}}}const bE=vE;const yE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yE).forEach((e=>{let[t,n]=e;yE[n]=t}));const xE=yE;const wE=function e(t){const n=new mE(t),i=nA(mE.prototype.request,n);return zA.extend(i,mE.prototype,n,{allOwnKeys:!0}),zA.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(OT(t,n))},i}(gT);wE.Axios=mE,wE.CanceledError=CT,wE.CancelToken=bE,wE.isCancel=ST,wE.VERSION=uE,wE.toFormData=QA,wE.AxiosError=GA,wE.Cancel=wE.CanceledError,wE.all=function(e){return Promise.all(e)},wE.spread=function(e){return function(t){return e.apply(null,t)}},wE.isAxiosError=function(e){return zA.isObject(e)&&!0===e.isAxiosError},wE.mergeConfig=OT,wE.AxiosHeaders=_T,wE.formToJSON=e=>fT(zA.isHTMLForm(e)?new FormData(e):e),wE.getAdapter=sE,wE.HttpStatusCode=xE,wE.default=wE;const _E=wE,DE=n.p+"static/media/BizVantage.1f803716b2535d9ee1b0.png",SE=n.p+"static/media/background-2.36f7775b1c3ee824a6ae.png";function kE(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function CE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const i=t.map((t=>{const i=kE(t,e);return n||"function"!=typeof i||(n=!0),i}));if(n)return()=>{for(let e=0;e<i.length;e++){const n=i[e];"function"==typeof n?n():kE(t[e],null)}}}}function AE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useCallback(CE(...t),t)}const TE=["children"],EE=["children"];var NE=Symbol.for("react.lazy"),ME=s[" use ".trim().toString()];function PE(e){return null!=e&&"object"===typeof e&&"$$typeof"in e&&e.$$typeof===NE&&"_payload"in e&&("object"===typeof(t=e._payload)&&null!==t&&"then"in t);var t}function UE(e){const t=FE(e),n=o.forwardRef(((e,n)=>{let{children:i}=e,r=Xe(e,TE);PE(i)&&"function"===typeof ME&&(i=ME(i._payload));const a=o.Children.toArray(i),s=a.find(OE);if(s){const e=s.props.children,i=a.map((t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t));return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null}))}return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:i}))}));return n.displayName="".concat(e,".Slot"),n}var jE=UE("Slot");function FE(e){const t=o.forwardRef(((e,t)=>{let{children:n}=e,i=Xe(e,EE);if(PE(n)&&"function"===typeof ME&&(n=ME(n._payload)),o.isValidElement(n)){const e=function(e){var t,n;let i=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=i&&"isReactWarning"in i&&i.isReactWarning;if(r)return e.ref;if(i=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=Je({},t);for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=function(){const e=a(...arguments);return r(...arguments),e}:r&&(n[i]=r):"style"===i?n[i]=Je(Je({}
2,r),a):"className"===i&&(n[i]=[r,a].filter(Boolean).join(" "))}return Je(Je({},e),n)}(i,n.props);return n.type!==o.Fragment&&(r.ref=t?CE(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null}));return t.displayName="".concat(e,".SlotClone"),t}var RE=Symbol("radix.slottable");function OE(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===RE}function IE(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=IE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function LE(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=IE(e))&&(i&&(i+=" "),i+=t);return i}const BE=["class","className"],WE=e=>"boolean"===typeof e?"".concat(e):0===e?"0":e,zE=LE,VE=(e,t)=>n=>{var i;if(null==(null===t||void 0===t?void 0:t.variants))return zE(e,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className);const{variants:r,defaultVariants:a}=t,o=Object.keys(r).map((e=>{const t=null===n||void 0===n?void 0:n[e],i=null===a||void 0===a?void 0:a[e];if(null===t)return null;const o=WE(t)||WE(i);return r[e][o]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,i]=t;return void 0===i||(e[n]=i),e}),{}),l=null===t||void 0===t||null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce(((e,t)=>{let{class:n,className:i}=t,r=Xe(t,BE);return Object.entries(r).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes(Je(Je({},a),s)[t]):Je(Je({},a),s)[t]===n}))?[...e,n,i]:e}),[]);return zE(e,o,l,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className)},HE=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const i=e[0],r=t.nextPart.get(i),a=r?HE(e.slice(1),r):void 0;if(a)return a;if(0===t.validators.length)return;const o=e.join("-");return null===(n=t.validators.find((e=>{let{validator:t}=e;return t(o)})))||void 0===n?void 0:n.classGroupId},qE=/^\[(.+)\]$/,GE=e=>{if(qE.test(e)){const t=qE.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},YE=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return QE(Object.entries(e.classGroups),n).forEach((e=>{let[n,r]=e;XE(r,i,n,t)})),i},XE=(e,t,n,i)=>{e.forEach((e=>{if("string"!==typeof e){if("function"===typeof e)return $E(e)?void XE(e(i),t,n,i):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((e=>{let[r,a]=e;XE(a,KE(t,r),n,i)}))}else{(""===e?t:KE(t,e)).classGroupId=n}}))},KE=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},$E=e=>e.isThemeGetter,QE=(e,t)=>t?e.map((e=>{let[n,i]=e;return[n,i.map((e=>"string"===typeof e?t+e:"object"===typeof e?Object.fromEntries(Object.entries(e).map((e=>{let[n,i]=e;return[t+n,i]}))):e))]})):e,ZE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(r,a)=>{n.set(r,a),t++,t>e&&(t=0,i=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},JE=e=>{const{separator:t,experimentalParseClassName:n}=e,i=1===t.length,r=t[0],a=t.length,o=e=>{const n=[];let o,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===r&&(i||e.slice(d,d+a)===t)){n.push(e.slice(l,d)),l=d+a;continue}if("/"===c){o=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:o&&o>l?o-l:void 0}};return n?e=>n({className:e,parseClassName:o}):o},eN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},tN=e=>Je({cache:ZE(e.cacheSize),parseClassName:JE(e)},(e=>{const t=YE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),HE(n,t)||GE(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&i[e]?[...r,...i[e]]:r}}})(e)),nN=/\s+/;function iN(){let e,t,n=0,i="";for(;n<arguments.length;)(e=arguments[n++])&&(t=rN(e))&&(i&&(i+=" "),i+=t);return i}const rN=e=>{if("string"===typeof e)return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=rN(e[i]))&&(n&&(n+=" "),n+=t);return n};function aN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let r,a,o,s=function(t){const i=n.reduce(((e,t)=>t(e)),e());return r=tN(i),a=r.cache.get,o=r.cache.set,s=l,l(t)};function l(e){const t=a(e);if(t)return t;const n=((e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,a=[],o=e.trim().split(nN);let s="";for(let l=o.length-1;l>=0;l-=1){const e=o[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let h=Boolean(d),f=i(h?u.substring(0,d):u);if(!f){if(!h){s=e+(s.length>0?" "+s:s);continue}if(f=i(u),!f){s=e+(s.length>0?" "+s:s);continue}h=!1}const p=eN(t).join(":"),g=c?p+"!":p,m=g+f;if(a.includes(m))continue;a.push(m);const v=r(f,h);for(let n=0;n<v.length;++n){const e=v[n];a.push(g+e)}s=e+(s.length>0?" "+s:s)}return s})(e,r);return o(e,n),n}return function(){return s(iN.apply(null,arguments))}}const oN=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},sN=/^\[(?:([a-z-]+):)?(.+)\]$/i,lN=/^\d+\/\d+$/,cN=new Set(["px","full","screen"]),uN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gN=e=>vN(e)||cN.has(e)||lN.test(e),mN=e=>NN(e,"length",MN),vN=e=>Boolean(e)&&!Number.isNaN(Number(e)),bN=e=>NN(e,"number",vN),yN=e=>Boolean(e)&&Number.isInteger(Number(e)),xN=e=>e.endsWith("%")&&vN(e.slice(0,-1)),wN=e=>sN.test(e),_N=e=>uN.test(e),DN=new Set(["length","size","percentage"]),SN=e=>NN(e,DN,PN),kN=e=>NN(e,"position",PN),CN=new Set(["image","url"]),AN=e=>NN(e,CN,jN),TN=e=>NN(e,"",UN),EN=()=>!0,NN=(e,t,n)=>{const i=sN.exec(e);return!!i&&(i[1]?"string"===typeof t?i[1]===t:t.has(i[1]):n(i[2]))},MN=e=>dN.test(e)&&!hN.test(e),PN=()=>!1,UN=e=>fN.test(e),jN=e=>pN.test(e),FN=(Symbol.toStringTag,()=>{const e=oN("colors"),t=oN("spacing"),n=oN("blur"),i=oN("brightness"),r=oN("borderColor"),a=oN("borderRadius"),o=oN("borderSpacing"),s=oN("borderWidth"),l=oN("contrast"),c=oN("grayscale"),u=oN("hueRotate"),d=oN("invert"),h=oN("gap"),f=oN("gradientColorStops"),p=oN("gradientColorStopPositions"),g=oN("inset"),m=oN("margin"),v=oN("opacity"),b=oN("padding"),y=oN("saturate"),x=oN("scale"),w=oN("sepia"),_=oN("skew"),D=oN("space"),S=oN("translate"),k=()=>["auto",wN,t],C=()=>[wN,t],A=()=>["",gN,mN],T=()=>["auto",vN,wN],E=()=>["","0",wN],N=()=>[vN,wN];return{cacheSize:500,separator:":",theme:{colors:[EN],spacing:[gN,mN],blur:["none","",_N,wN],brightness:N(),borderColor:[e],borderRadius:["n
2one","","full",_N,wN],borderSpacing:C(),borderWidth:A(),contrast:N(),grayscale:E(),hueRotate:N(),invert:E(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[xN,mN],inset:k(),margin:k(),opacity:N(),padding:C(),saturate:N(),scale:N(),sepia:E(),skew:N(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",wN]}],container:["container"],columns:[{columns:[_N]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",wN]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yN,wN]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",wN]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",yN,wN]}],"grid-cols":[{"grid-cols":[EN]}],"col-start-end":[{col:["auto",{span:["full",yN,wN]},wN]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[EN]}],"row-start-end":[{row:["auto",{span:[yN,wN]},wN]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",wN]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",wN]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",wN,t]}],"min-w":[{"min-w":[wN,t,"min","max","fit"]}],"max-w":[{"max-w":[wN,t,"none","full","min","max","fit","prose",{screen:[_N]},_N]}],h:[{h:[wN,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[wN,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[wN,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[wN,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_N,mN]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bN]}],"font-family":[{font:[EN]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",wN]}],"line-clamp":[{"line-clamp":["none",vN,bN]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gN,wN]}],"list-image":[{"list-image":["none",wN]}],"list-style-type":[{list:["none","disc","decimal",wN]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gN,mN]}],"underline-offset":[{"underline-offset":["auto",gN,wN]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",wN]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",wN]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",kN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},AN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}
vendor: 4,377 bytes, line 2
2],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[gN,wN]}],"outline-w":[{outline:[gN,mN]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[gN,mN]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_N,TN]}],"shadow-color":[{shadow:[EN]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",_N,wN]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",wN]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",wN]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",wN]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[yN,wN]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",wN]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","
2none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",wN]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",wN]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gN,mN,bN]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),RN=aN(FN);function ON(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return RN(LE(t))}const IN=["className","variant","size","asChild"],LN=VE("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),BN=o.forwardRef(((e,t)=>{let{className:n,variant:i,size:r,asChild:a=!1}=e,o=Xe(e,IN);const s=a?jE:"button";return(0,Le.jsx)(s,Je({className:ON(LN({variant:i,size:r,className:n})),ref:t},o))}));BN.displayName="Button";const WN=["className","type"],zN=o.forwardRef(((e,t)=>{let{className:n,type:i}=e,r=Xe(e,WN);return(0,Le.jsx)("input",Je({type:i,className:ON("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:t},r))}));zN.displayName="Input";const VN=["asChild"];var HN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=UE("Primitive.".concat(t)),i=o.forwardRef(((e,i)=>{const{asChild:r}=e,a=Xe(e,VN),o=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Le.jsx)(o,Je(Je({},a),{},{ref:i}
2))}));return i.displayName="Primitive.".concat(t),Je(Je({},e),{},{[t]:i})}),{});var qN=o.forwardRef(((e,t)=>(0,Le.jsx)(HN.label,Je(Je({},e),{},{ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}))));qN.displayName="Label";var GN=qN;const YN=["className"],XN=VE("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),KN=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,YN);return(0,Le.jsx)(GN,Je({ref:t,className:ON(XN(),n)},i))}));KN.displayName=GN.displayName;const $N=["className"],QN=["className"],ZN=["className"],JN=["className"],eM=["className"],tM=["className"],nM=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,$N);return(0,Le.jsx)("div",Je({ref:t,className:ON("rounded-lg border bg-card text-card-foreground shadow-sm",n)},i))}));nM.displayName="Card";const iM=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,QN);return(0,Le.jsx)("div",Je({ref:t,className:ON("flex flex-col space-y-1.5 p-6",n)},i))}));iM.displayName="CardHeader";const rM=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,ZN);return(0,Le.jsx)("h3",Je({ref:t,className:ON("text-2xl font-semibold leading-none tracking-tight",n)},i))}));rM.displayName="CardTitle";const aM=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,JN);return(0,Le.jsx)("p",Je({ref:t,className:ON("text-sm text-muted-foreground",n)},i))}));aM.displayName="CardDescription";const oM=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,eM);return(0,Le.jsx)("div",Je({ref:t,className:ON("p-6 pt-0",n)},i))}));oM.displayName="CardContent";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,tM);return(0,Le.jsx)("div",Je({ref:t,className:ON("flex items-center p-6 pt-0",n)},i))})).displayName="CardFooter";const sM=["className","variant"],lM=VE("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function cM(e){let{className:t,variant:n}=e,i=Xe(e,sM);return(0,Le.jsx)("div",Je({className:ON(lM({variant:n}),t)},i))}const uM=(0,o.createContext)(void 0),dM="https://printlogs-17738dc65798.herokuapp.com/bizVantage/discounts",hM=e=>{let{children:t}=e;const[n,i]=(0,o.useState)([]),[r,a]=(0,o.useState)(!1),s=(0,o.useMemo)((()=>{try{var e;const t=localStorage.getItem("bv.registerResponse"),n=t?JSON.parse(t):null;return(null===n||void 0===n?void 0:n.authToken)||(null===n||void 0===n?void 0:n.token)||(null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.authToken)||""}catch(t){return""}}),[]),l=async()=>{a(!0);try{const e=await fetch(dM,{method:"POST",headers:{"Content-Type":"application/json",authorization:s},body:JSON.stringify({})}),t=await e.json(),n=(null===t||void 0===t?void 0:t.discounts)||t||[];if(Array.isArray(n)){const e=n.map((e=>Je(Je({},e),{},{id:e.id||e._id||e.discountId,discountId:e.discountId||e.id||e._id})));i(e)}}catch(e){console.error("Failed to fetch discounts",e)}finally{a(!1)}};(0,o.useEffect)((()=>
2{l()}),[s]);const c=async(e,t)=>{a(!0);try{const i=n.find((t=>t.id===e||t.discountId===e)),r=(null===t||void 0===t?void 0:t.discountId)||(null===i||void 0===i?void 0:i.discountId)||e;await fetch(dM,{method:"PATCH",headers:{"Content-Type":"application/json",authorization:s},body:JSON.stringify(Je({discountId:r},t))}),l()}catch(i){console.error("Failed to update discount",i)}finally{a(!1)}};return(0,Le.jsx)(uM.Provider,{value:{discountCodes:n,loading:r,addDiscountCode:async e=>{a(!0);try{await fetch(dM,{method:"PUT",headers:{"Content-Type":"application/json",authorization:s},body:JSON.stringify(e)}),l()}catch(t){console.error("Failed to add discount",t)}finally{a(!1)}},removeDiscountCode:async e=>{a(!0);try{const t=n.find((t=>t.id===e||t.discountId===e)),i=(null===t||void 0===t?void 0:t.discountId)||e;await fetch(dM,{method:"DELETE",headers:{"Content-Type":"application/json",authorization:s},body:JSON.stringify({discountId:i,id:i})}),l()}catch(t){console.error("Failed to delete discount",t)}finally{a(!1)}},toggleDiscountCode:e=>{const t=n.find((t=>t.id===e||t.discountId===e)),i=!t||!t.active;c((null===t||void 0===t?void 0:t.discountId)||e,{active:i})},updateDiscountCode:c,validateCode:(e,t)=>n.find((n=>n.code.toUpperCase()===e.toUpperCase()&&n.active&&n.plans.includes(t)))||null},children:t})},fM=()=>{const e=(0,o.useContext)(uM);if(!e)throw new Error("useDiscount must be used within a DiscountProvider");return e},pM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim()},gM=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,((e,t,n)=>n?n.toUpperCase():t.toLowerCase())))(e);return t.charAt(0).toUpperCase()+t.slice(1)};var mM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const vM=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],bM=(0,o.forwardRef)(((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:c}=e,u=Xe(e,vM);return(0,o.createElement)("svg",Je(Je(Je({ref:t},mM),{},{width:i,height:i,stroke:n,strokeWidth:a?24*Number(r)/Number(i):r,className:pM("lucide",s)},!l&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"}),u),[...c.map((e=>{let[t,n]=e;return(0,o.createElement)(t,n)})),...Array.isArray(l)?l:[l]])})),yM=["className"],xM=(e,t)=>{const n=(0,o.forwardRef)(((n,i)=>{let{className:r}=n,a=Xe(n,yM);return(0,o.createElement)(bM,Je({ref:i,iconNode:t,className:pM("lucide-".concat((s=gM(e),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(e),r)},a));var s}));return n.displayName=gM(e),n},wM=xM("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),_M=xM("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),DM=xM("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),SM=e=>{let{plan:t,onApply:n}=e;const{validateCode:i}=fM(),[r,a]=(0,o.useState)(""),[s,l]=(0,o.useState)(null),[c,u]=(0,o.useState)(""),d=()=>{if(!r.trim())return;const e=i(r,t);e?(l(e),u(""),n(e)):(u("Invalid or expired discount code"),l(null),n(null))},h=()=>{l(null),a(""),u(""),n(null)};return s?(0,Le.jsxs)("div",{className:"rounded-lg border border-green-500/30 bg-green-500/10 p-3 flex items-center justify-between",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(wM,{className:"h-4 w-4 text-green-400"}),(0,Le.jsx)("span",{className:"text-sm text-white font-medium",children:s.code}),(0,Le.jsxs)(cM,{className:"text-[10px] bg-green-500/20 text-green-300 border-green-500/30",children:[s.percentage,"% off"]})]}),(0,Le.jsx)("button",{onClick:h,className:"text-white/50 hover:text-white transition-colors",children:(0,Le.jsx)(_M,{className:"h-4 w-4"})})]}):(0,Le.jsxs)("div",{className:"space-y-1.5",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsxs)("div",{className:"relative flex-1",children:[(0,Le.jsx)(DM,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-white/30"}),(0,Le.jsx)(zN,{placeholder:"Enter discount code",value:r,onChange:e=>{a(e.target.value.toUpperCase()),u("")},onKeyDown:e=>"Enter"===e.key&&d(),className:"pl-9 bg-white/5 border-white/10 text-white placeholder:text-white/30 text-sm h-9"})]}),(0,Le.jsx)(BN,{type:"button",variant:"outline",size:"sm",onClick:d,disabled:!r.trim(),className:"border-white/10 text-white hover:bg-white/10 text-xs h-9",children:"Apply"})]}),c&&(0,Le.jsx)("p",{className:"text-xs text-red-400",children:c})]})}
2,kM=xM("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),CM=xM("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),AM=xM("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),TM=xM("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),EM=[{name:"Core",price:"$750",icon:(0,Le.jsx)(kM,{className:"h-4 w-4"}),features:["1 assessment per month","12-month commitment","Billed quarterly ($2,250/quarter)","Overage at $750/assessment"]},{name:"Pro",price:"$500",icon:(0,Le.jsx)(CM,{className:"h-4 w-4"}),features:["3 assessments per month","12-month commitment","Billed quarterly ($4,500/quarter)","Overage at $500/assessment"]}],NM=e=>{let{selectedPlan:t,onSelectPlan:n,onBack:i,onComplete:r}=e;const[a,s]=(0,o.useState)(null),l=e=>a?e*(1-a.percentage/100):e,c=l(750),u=l(500),d=l(2250),h=l(4500);return(0,Le.jsxs)("div",{className:"space-y-4",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Le.jsx)("button",{type:"button",onClick:i,className:"text-white/70 hover:text-white transition-colors",children:(0,Le.jsx)(AM,{className:"h-4 w-4"})}),(0,Le.jsx)("p",{className:"text-sm font-medium text-white",children:"Choose your plan"})]}),(0,Le.jsx)("div",{className:"space-y-3",children:EM.map((e=>{const i=t===e.name,r=(e.name,"Core"===e.name?c:u),o="Core"===e.name?d:h,s=a&&a.plans.includes(e.name),l=e.features.map((e=>{if(s){if(e.includes("$2,250"))return e.replace("$2,250","$".concat(o.toLocaleString()));if(e.includes("$4,500"))return e.replace("$4,500","$".concat(o.toLocaleString()));if(e.includes("$750/assessment"))return e.replace("$750/assessment","$".concat(r,"/assessment"));if(e.includes("$500/assessment"))return e.replace("$500/assessment","$".concat(r,"/assessment"))}return e}));return(0,Le.jsxs)("button",{type:"button",onClick:()=>n(e.name),className:"w-full text-left rounded-lg border p-4 transition-colors ".concat(i?"border-primary bg-primary/15":"border-white/10 bg-white/5 hover:border-white/25"),children:[i&&(0,Le.jsx)(cM,{className:"mb-2 text-[10px] bg-primary text-primary-foreground",children:"Selected"}),(0,Le.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Le.jsx)("span",{className:"text-primary",children:e.icon}),(0,Le.jsx)("span",{className:"font-semibold text-white",children:e.name})]}),(0,Le.jsxs)("p",{className:"text-xl font-bold text-white mb-2",children:[s?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("span",{className:"line-through text-white/40 text-base mr-2",children:e.price}),"$",Math.round(r)]}):e.price,(0,Le.jsx)("span",{className:"text-sm font-normal text-white/50",children:"/assessment"})]}),(0,Le.jsx)("div",{className:"space-y-1.5",children:l.map(((e,t)=>(0,Le.jsxs)("div",{className:"flex items-center gap-2 text-sm text-white/70",children:[(0,Le.jsx)(wM,{className:"h-3.5 w-3.5 text-primary shrink-0"}),e]},t)))})]},e.name)}))}),(0,Le.jsx)(SM,{plan:t,onApply:s}),(0,Le.jsx)("div",{className:"rounded-lg border border-white/10 bg-white/5 p-3",children:(0,Le.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Le.jsx)(TM,{className:"h-3.5 w-3.5 text-accent shrink-0 mt-0.5"}),(0,Le.jsx)("p",{className:"text-[11px] text-white/50 leading-relaxed",children:"If you exceed your quarterly limit, you may continue at the same per-assessment rate. You'll be prompted before each overage charge."})]})}),(0,Le.jsxs)(BN,{onClick:r,className:"w-full text-white",children:["Create Account \u2014 ",t," Plan"]})]})};"undefined"===typeof window||!window.document||window.document.createElement;function MM(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(i){if(null===e||void 0===e||e(i),!1===n||!i.defaultPrevented)return null===t||void 0===t?void 0:t(i)}}const PM=["children"],UM=["scope","children"];function jM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const i=()=>{const t=n.map((e=>o.createContext(e)));return function(n){const i=(null===n||void 0===n?void 0:n[e])||t;return o.useMemo((()=>
2({["__scope".concat(e)]:Je(Je({},n),{},{[e]:i})})),[n,i])}};return i.scopeName=e,[function(t,i){const r=o.createContext(i),a=n.length;n=[...n,i];const s=t=>{var n;const{scope:i,children:s}=t,l=Xe(t,UM),c=(null===i||void 0===i||null===(n=i[e])||void 0===n?void 0:n[a])||r,u=o.useMemo((()=>l),Object.values(l));return(0,Le.jsx)(c.Provider,{value:u,children:s})};return s.displayName=t+"Provider",[s,function(n,s){var l;const c=(null===s||void 0===s||null===(l=s[e])||void 0===l?void 0:l[a])||r,u=o.useContext(c);if(u)return u;if(void 0!==i)return i;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},FM(i,...t)]}function FM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t[0];if(1===t.length)return i;const r=()=>{const e=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const n=e.reduce(((e,n)=>{let{useScope:i,scopeName:r}=n;const a=i(t)["__scope".concat(r)];return Je(Je({},e),a)}),{});return o.useMemo((()=>({["__scope".concat(i.scopeName)]:n})),[n])}};return r.scopeName=i.scopeName,r}var RM=null!==globalThis&&void 0!==globalThis&&globalThis.document?o.useLayoutEffect:()=>{},OM=s[" useId ".trim().toString()]||(()=>{}),IM=0;function LM(e){const[t,n]=o.useState(OM());return RM((()=>{e||n((e=>null!==e&&void 0!==e?e:String(IM++)))}),[e]),e||(t?"radix-".concat(t):"")}var BM=s[" useInsertionEffect ".trim().toString()]||RM;function WM(e){let{prop:t,defaultProp:n,onChange:i=()=>{},caller:r}=e;const[a,s,l]=function(e){let{defaultProp:t,onChange:n}=e;const[i,r]=o.useState(t),a=o.useRef(i),s=o.useRef(n);return BM((()=>{s.current=n}),[n]),o.useEffect((()=>{var e;a.current!==i&&(null===(e=s.current)||void 0===e||e.call(s,i),a.current=i)}),[i,a]),[i,r,s]}({defaultProp:n,onChange:i}),c=void 0!==t,u=c?t:a;{const e=o.useRef(void 0!==t);o.useEffect((()=>{const t=e.current;if(t!==c){const e=t?"controlled":"uncontrolled",n=c?"controlled":"uncontrolled";console.warn("".concat(r," is changing from ").concat(e," to ").concat(n,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."))}e.current=c}),[c,r])}const d=o.useCallback((e=>{if(c){const i=function(e){return"function"===typeof e}(e)?e(t):e;var n;if(i!==t)null===(n=l.current)||void 0===n||n.call(l,i)}else s(e)}),[c,t,s,l]);return[u,d]}Symbol("RADIX:SYNC_STATE");const zM=["children"],VM=["children"];function HM(e){const t=qM(e),n=o.forwardRef(((e,n)=>{const{children:i}=e,r=Xe(e,zM),a=o.Children.toArray(i),s=a.find(YM);if(s){const e=s.props.children,i=a.map((t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t));return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null}))}return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:i}))}));return n.displayName="".concat(e,".Slot"),n}function qM(e){const t=o.forwardRef(((e,t)=>{const{children:n}=e,i=Xe(e,VM);if(o.isValidElement(n)){const e=function(e){var t,n;let i=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=i&&"isReactWarning"in i&&i.isReactWarning;if(r)return e.ref;if(i=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=Je({},t);for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=function(){const e=a(...arguments);return r(...arguments),e}:r&&(n[i]=r):"style"===i?n[i]=Je(Je({},r),a):"className"===i&&(n[i]=[r,a].filter(Boolean).join(" "))}return Je(Je({},e),n)}(i,n.props);return n.type!==o.Fragment&&(r.ref=t?CE(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null}));return t.displayName="".concat(e,".SlotClone"),t}var GM=Symbol("radix.slottable");function YM(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===GM}const XM=["asChild"];var KM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=HM("Primitive.".concat(t)),i=o.forwardRef(((e,i)=>{const{asChild:r}=e,a=Xe(e,XM),o=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Le.jsx)(o,Je(Je({},a),{},{ref:i}
2))}));return i.displayName="Primitive.".concat(t),Je(Je({},e),{},{[t]:i})}),{});function $M(e,t){e&&c.flushSync((()=>e.dispatchEvent(t)))}function QM(e){const t=o.useRef(e);return o.useEffect((()=>{t.current=e})),o.useMemo((()=>function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call(t,...i)}),[])}const ZM=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];var JM,eP="dismissableLayer.update",tP="dismissableLayer.pointerDownOutside",nP="dismissableLayer.focusOutside",iP=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rP=o.forwardRef(((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c}=e,u=Xe(e,ZM),d=o.useContext(iP),[h,f]=o.useState(null),p=null!==(n=null===h||void 0===h?void 0:h.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=o.useState({}),m=AE(t,(e=>f(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(b),x=h?v.indexOf(h):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,_=x>=y,D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=QM(e),i=o.useRef(!1),r=o.useRef((()=>{}));return o.useEffect((()=>{const e=e=>{if(e.target&&!i.current){let i=function(){sP(tP,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=i,t.addEventListener("click",r.current,{once:!0})):i()}else t.removeEventListener("click",r.current);i.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}}),[t,n]),{onPointerDownCapture:()=>i.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));_&&!n&&(null===a||void 0===a||a(e),null===l||void 0===l||l(e),e.defaultPrevented||null===c||void 0===c||c())}),p),S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=QM(e),i=o.useRef(!1);return o.useEffect((()=>{const e=e=>{if(e.target&&!i.current){sP(nP,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null===s||void 0===s||s(e),null===l||void 0===l||l(e),e.defaultPrevented||null===c||void 0===c||c())}),p);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=QM(e);o.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{x===d.layers.size-1&&(null===r||void 0===r||r(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),o.useEffect((()=>{if(h)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(JM=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),oP(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=JM)}}),[h,p,i,d]),o.useEffect((()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),oP())}),[h,d]),o.useEffect((()=>{const e=()=>g({});return document.addEventListener(eP,e),()=>document.removeEventListener(eP,e)}),[]),(0,Le.jsx)(KM.div,Je(Je({},u),{},{ref:m,style:Je({pointerEvents:w?_?"auto":"none":void 0},e.style),onFocusCapture:MM(e.onFocusCapture,S.onFocusCapture),onBlurCapture:MM(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:MM(e.onPointerDownCapture,D.onPointerDownCapture)}))}));rP.displayName="DismissableLayer";var aP=o.forwardRef(((e,t)=>{const n=o.useContext(iP),i=o.useRef(null),r=AE(t,i);return o.useEffect((()=>{const e=i.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,Le.jsx)(KM.div,Je(Je({},e),{},{ref:r}))}));function oP(){const e=new CustomEvent(eP);document.dispatchEvent(e)}function sP(e,t,n,i){let{discrete:r}=i;const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?$M(a,o):a.dispatchEvent(o)}aP.displayName="DismissableLayerBranch";var lP=rP,cP=aP;const uP=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];var dP="focusScope.autoFocusOnMount",hP="focusScope.autoFocusOnUnmount",fP={bubbles:!1,cancelable:!0},pP=o.forwardRef(((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a}=e,s=Xe(e,uP),[l,c]=o.useState(null),u=QM(r),d=QM(a),h=o.useRef(null),f=AE(t,(e=>c(e))),p=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect((()=>
2{if(i){let e=function(e){if(p.paused||!l)return;const t=e.target;l.contains(t)?h.current=t:bP(h.current,{select:!0})},t=function(e){if(p.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||bP(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&bP(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const i=new MutationObserver(n);return l&&i.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),i.disconnect()}}}),[i,l,p.paused]),o.useEffect((()=>{if(l){yP.add(p);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(dP,fP);l.addEventListener(dP,u),l.dispatchEvent(n),n.defaultPrevented||(!function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.activeElement;for(const i of e)if(bP(i,{select:t}),document.activeElement!==n)return}((e=gP(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&bP(l))}return()=>{l.removeEventListener(dP,u),setTimeout((()=>{const e=new CustomEvent(hP,fP);l.addEventListener(hP,d),l.dispatchEvent(e),e.defaultPrevented||bP(null!==t&&void 0!==t?t:document.body,{select:!0}),l.removeEventListener(hP,d),yP.remove(p)}),0)}}var e}),[l,u,d,p]);const g=o.useCallback((e=>{if(!n&&!i)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[i,a]=function(e){const t=gP(e),n=mP(t,e),i=mP(t.reverse(),e);return[n,i]}(t);i&&a?e.shiftKey||r!==a?e.shiftKey&&r===i&&(e.preventDefault(),n&&bP(a,{select:!0})):(e.preventDefault(),n&&bP(i,{select:!0})):r===t&&e.preventDefault()}}),[n,i,p.paused]);return(0,Le.jsx)(KM.div,Je(Je({tabIndex:-1},s),{},{ref:f,onKeyDown:g}))}));function gP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mP(e,t){for(const n of e)if(!vP(n,{upTo:t}))return n}function vP(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function bP(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}pP.displayName="FocusScope";var yP=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=xP(e,t),e.unshift(t)},remove(t){var n;e=xP(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function xP(e,t){const n=[...e],i=n.indexOf(t);return-1!==i&&n.splice(i,1),n}const wP=["container"];var _P=o.forwardRef(((e,t)=>{var n;const{container:i}=e,r=Xe(e,wP),[a,s]=o.useState(!1);RM((()=>s(!0)),[]);const l=i||a&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return l?c.createPortal((0,Le.jsx)(KM.div,Je(Je({},r),{},{ref:t})),l):null}));_P.displayName="Portal";var DP=e=>{const{present:t,children:n}=e,i=function(e){const[t,n]=o.useState(),i=o.useRef(null),r=o.useRef(e),a=o.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return o.useReducer(((e,n)=>{const i=t[e][n];return null!==i&&void 0!==i?i:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect((()=>{const e=SP(i.current);a.current="mounted"===l?e:"none"}),[l]),RM((()=>{const t=i.current,n=r.current;if(n!==e){const i=a.current,o=SP(t);if(e)c("MOUNT");else if("none"===o||"none"===(null===t||void 0===t?void 0:t.display))c("UNMOUNT");else{c(n&&i!==o?"ANIMATION_OUT":"UNMOUNT")}r.current=e}}),[e,c]),RM((()=>{if(t){var e;let n;const o=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,s=e=>{const a=SP(i.current).includes(CSS.escape(e.animationName));if(e.target===t&&a&&(c("ANIMATION_END"),!r.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=o.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)}))}},l=e=>{e.target===t&&(a.current=SP(i.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{o.clearTimeout(n),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:o.useCallback((e=>{i.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),r="function"===typeof n?n({present:i.isPresent}):o.Children.only(n),a=AE(i.ref,function(e){var t,n;let i=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=i&&"isReactWarning"in i&&i.isReactWarning;if(r)return e.ref;if(i=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r));return"function"===typeof n||i.isPresent?o.cloneElement(r,{ref:a}):null};function SP(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}DP.displayName="Presence";var kP=0;function CP(){o.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:AP()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:AP()),kP++,()=>{1===kP&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),kP--}}),[])}function AP(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
2style.position="fixed",e.style.pointerEvents="none",e}var TP=function(){return TP=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TP.apply(this,arguments)};function EP(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}Object.create;function NP(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var MP="right-scroll-bar-position",PP="width-before-scroll-bar";function UP(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var jP="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,FP=new WeakMap;function RP(e,t){var n=function(e,t){var n=(0,o.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return UP(e,t)}))}));return jP((function(){var t=FP.get(n);if(t){var i=new Set(t),r=new Set(e),a=n.current;
2i.forEach((function(e){r.has(e)||UP(e,null)})),r.forEach((function(e){i.has(e)||UP(e,a)}))}FP.set(n,e)}),[e]),n}function OP(e){return e}function IP(e,t){void 0===t&&(t=OP);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,i);return n.push(r),function(){n=n.filter((function(e){return e!==r}))}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}};return r}var LP=function(e){void 0===e&&(e={});var t=IP(null);return t.options=TP({async:!0,ssr:!1},e),t}(),BP=function(){},WP=o.forwardRef((function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:BP,onWheelCapture:BP,onTouchMoveCapture:BP}),r=i[0],a=i[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,m=e.inert,v=e.allowPinchZoom,b=e.as,y=void 0===b?"div":b,x=e.gapMode,w=EP(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,D=RP([n,t]),S=TP(TP({},w),r);return o.createElement(o.Fragment,null,d&&o.createElement(_,{sideCar:LP,removeScrollBar:u,shards:h,noRelative:p,noIsolation:g,inert:m,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:x}),s?o.cloneElement(o.Children.only(l),TP(TP({},S),{ref:D})):o.createElement(y,TP({},S,{className:c,ref:D}),l))}));WP.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},WP.classNames={fullWidth:PP,zeroRight:MP};var zP,VP=function(e){var t=e.sideCar,n=EP(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return o.createElement(i,TP({},n))};VP.isSideCarExport=!0;function HP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zP||n.nc;return t&&e.setAttribute("nonce",t),e}var qP=function(){var e=0,t=null;return{add:function(n){var i,r;0==e&&(t=HP())&&(r=n,(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GP=function(){var e=function(){var e=qP();return function(t,n){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,i=t.dynamic;return e(n,i),null}},YP={left:0,top:0,right:0,gap:0},XP=function(e){return parseInt(e||"",10)||0},KP=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return YP;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],i=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[XP(n),XP(i),XP(r)]}(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},$P=GP(),QP="data-scroll-locked",ZP=function(e,t,n,i){var r=e.left,a=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(i,";\n   padding-right: ").concat(s,"px ").concat(i,";\n  }\n  body[").concat(QP,"] {\n    overflow: hidden ").concat(i,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(i,";"),"margin"===n&&"\n    padding-left: ".concat(r,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(i,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(i,";
2")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(MP," {\n    right: ").concat(s,"px ").concat(i,";\n  }\n  \n  .").concat(PP," {\n    margin-right: ").concat(s,"px ").concat(i,";\n  }\n  \n  .").concat(MP," .").concat(MP," {\n    right: 0 ").concat(i,";\n  }\n  \n  .").concat(PP," .").concat(PP," {\n    margin-right: 0 ").concat(i,";\n  }\n  \n  body[").concat(QP,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},JP=function(){var e=parseInt(document.body.getAttribute(QP)||"0",10);return isFinite(e)?e:0},eU=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=void 0===i?"margin":i;o.useEffect((function(){return document.body.setAttribute(QP,(JP()+1).toString()),function(){var e=JP()-1;e<=0?document.body.removeAttribute(QP):document.body.setAttribute(QP,e.toString())}}),[]);var a=o.useMemo((function(){return KP(r)}),[r]);return o.createElement($P,{styles:ZP(a,!t,r,n?"":"!important")})},tU=!1;if("undefined"!==typeof window)try{var nU=Object.defineProperty({},"passive",{get:function(){return tU=!0,!0}});window.addEventListener("test",nU,nU),window.removeEventListener("test",nU,nU)}catch(tQ){tU=!1}var iU=!!tU&&{passive:!1},rU=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},aU=function(e,t){var n=t.ownerDocument,i=t;do{if("undefined"!==typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),oU(e,i)){var r=sU(e,i);if(r[1]>r[2])return!0}i=i.parentNode}while(i&&i!==n.body);return!1},oU=function(e,t){return"v"===e?function(e){return rU(e,"overflowY")}(t):function(e){return rU(e,"overflowX")}(t)},sU=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},lU=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cU=function(e){return[e.deltaX,e.deltaY]},uU=function(e){return e&&"current"in e?e.current:e},dU=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},hU=0,fU=[];function pU(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gU=(mU=function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),r=o.useState(hU++)[0],a=o.useState(GP)[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=NP([e.lockRef.current],(e.shards||[]).map(uU),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(r))})),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(r))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,a=lU(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-a[0],c="deltaY"in e?e.deltaY:o[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var p=aU(d,u);if(!p)return!0;if(p?r=d:(r="v"===d?"h":"v",p=aU(d,u)),!p)return!1;if(!i.current&&"changedTouches"in e&&(l||c)&&(i.current=r),!r)return!0;var g=i.current||r;return function(e,t,n,i,r){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=a*i,s=n.target,l=t.contains(s),c=!1,u=o>0,d=0,h=0;do{if(!s)break;var f=sU(e,s),p=f[0],g=f[1]-f[2]-a*p;(p||g)&&oU(e,s)&&(d+=g,h+=p);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(r&&Math.abs(d)<1||!r&&o>d)||!u&&(r&&Math.abs(h)<1||!r&&-o>h))&&(c=!0),c}(g,t,e,"h"===g?l:c,!0)}),[]),c=o.useCallback((function(e){var n=e;if(fU.length&&fU[fU.length-1]===a){var i="deltaY"in n?cU(n):lU(n),r=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,r=i,t[0]===r[0]&&t[1]===r[1]);var t,r}))[0];if(r&&r.should)n.cancelable&&n.preventDefault();
2else if(!r){var o=(s.current.shards||[]).map(uU).filter(Boolean).filter((function(e){return e.contains(n.target)}));(o.length>0?l(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=o.useCallback((function(e,n,i,r){var a={name:e,delta:n,target:i,should:r,shadowParent:pU(i)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=o.useCallback((function(e){n.current=lU(e),i.current=void 0}),[]),h=o.useCallback((function(t){u(t.type,cU(t),t.target,l(t,e.lockRef.current))}),[]),f=o.useCallback((function(t){u(t.type,lU(t),t.target,l(t,e.lockRef.current))}),[]);o.useEffect((function(){return fU.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,iU),document.addEventListener("touchmove",c,iU),document.addEventListener("touchstart",d,iU),function(){fU=fU.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,iU),document.removeEventListener("touchmove",c,iU),document.removeEventListener("touchstart",d,iU)}}),[]);var p=e.removeScrollBar,g=e.inert;return o.createElement(o.Fragment,null,g?o.createElement(a,{styles:dU(r)}):null,p?o.createElement(eU,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},LP.useMedium(mU),VP);var mU,vU=o.forwardRef((function(e,t){return o.createElement(WP,TP({},e,{ref:t,sideCar:gU}))}));vU.classNames=WP.classNames;const bU=vU;var yU=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},xU=new WeakMap,wU=new WeakMap,_U={},DU=0,SU=function(e){return e&&(e.host||SU(e.parentNode))},kU=function(e,t,n,i){var r=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=SU(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);_U[n]||(_U[n]=new WeakMap);var a=_U[n],o=[],s=new Set,l=new Set(r),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};r.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(i),r=null!==t&&"false"!==t,l=(xU.get(e)||0)+1,c=(a.get(e)||0)+1;xU.set(e,l),a.set(e,c),o.push(e),1===l&&r&&wU.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(i,"true")}catch(eQ){console.error("aria-hidden: cannot operate on ",e,eQ)}}))};return u(t),s.clear(),DU++,function(){o.forEach((function(e){var t=xU.get(e)-1,r=a.get(e)-1;xU.set(e,t),a.set(e,r),t||(wU.has(e)||e.removeAttribute(i),wU.delete(e)),r||e.removeAttribute(n)})),--DU||(xU=new WeakMap,xU=new WeakMap,wU=new WeakMap,_U={})}},CU=function(e,t,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=t||yU(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),kU(i,r,n,"aria-hidden")):function(){return null}};const AU=["children"],TU=["children"];function EU(e){const t=NU(e),n=o.forwardRef(((e,n)=>{const{children:i}=e,r=Xe(e,AU),a=o.Children.toArray(i),s=a.find(PU);if(s){const e=s.props.children,i=a.map((t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t));return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null}))}return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:i}))}));return n.displayName="".concat(e,".Slot"),n}function NU(e){const t=o.forwardRef(((e,t)=>{const{children:n}=e,i=Xe(e,TU);if(o.isValidElement(n)){const e=function(e){var t,n;let i=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=i&&"isReactWarning"in i&&i.isReactWarning;if(r)return e.ref;if(i=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=Je({},t);for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=function(){const e=a(...arguments);return r(...arguments),e}:r&&(n[i]=r):"style"===i?n[i]=Je(Je({}
2,r),a):"className"===i&&(n[i]=[r,a].filter(Boolean).join(" "))}return Je(Je({},e),n)}(i,n.props);return n.type!==o.Fragment&&(r.ref=t?CE(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null}));return t.displayName="".concat(e,".SlotClone"),t}var MU=Symbol("radix.slottable");function PU(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===MU}const UU=["__scopeDialog"],jU=["forceMount"],FU=["__scopeDialog"],RU=["forceMount"],OU=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],IU=["__scopeDialog"],LU=["__scopeDialog"],BU=["__scopeDialog"];var WU="Dialog",[zU,VU]=jM(WU),[HU,qU]=zU(WU),GU=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:a,modal:s=!0}=e,l=o.useRef(null),c=o.useRef(null),[u,d]=WM({prop:i,defaultProp:null!==r&&void 0!==r&&r,onChange:a,caller:WU});return(0,Le.jsx)(HU,{scope:t,triggerRef:l,contentRef:c,contentId:LM(),titleId:LM(),descriptionId:LM(),open:u,onOpenChange:d,onOpenToggle:o.useCallback((()=>d((e=>!e))),[d]),modal:s,children:n})};GU.displayName=WU;var YU="DialogTrigger",XU=o.forwardRef(((e,t)=>{const{__scopeDialog:n}=e,i=Xe(e,UU),r=qU(YU,n),a=AE(t,r.triggerRef);return(0,Le.jsx)(KM.button,Je(Je({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":pj(r.open)},i),{},{ref:a,onClick:MM(e.onClick,r.onOpenToggle)}))}));XU.displayName=YU;var KU="DialogPortal",[$U,QU]=zU(KU,{forceMount:void 0}),ZU=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,a=qU(KU,t);return(0,Le.jsx)($U,{scope:t,forceMount:n,children:o.Children.map(i,(e=>(0,Le.jsx)(DP,{present:n||a.open,children:(0,Le.jsx)(_P,{asChild:!0,container:r,children:e})})))})};ZU.displayName=KU;var JU="DialogOverlay",ej=o.forwardRef(((e,t)=>{const n=QU(JU,e.__scopeDialog),{forceMount:i=n.forceMount}=e,r=Xe(e,jU),a=qU(JU,e.__scopeDialog);return a.modal?(0,Le.jsx)(DP,{present:i||a.open,children:(0,Le.jsx)(nj,Je(Je({},r),{},{ref:t}))}):null}));ej.displayName=JU;var tj=EU("DialogOverlay.RemoveScroll"),nj=o.forwardRef(((e,t)=>{const{__scopeDialog:n}=e,i=Xe(e,FU),r=qU(JU,n);return(0,Le.jsx)(bU,{as:tj,allowPinchZoom:!0,shards:[r.contentRef],children:(0,Le.jsx)(KM.div,Je(Je({"data-state":pj(r.open)},i),{},{ref:t,style:Je({pointerEvents:"auto"},i.style)}))})})),ij="DialogContent",rj=o.forwardRef(((e,t)=>{const n=QU(ij,e.__scopeDialog),{forceMount:i=n.forceMount}=e,r=Xe(e,RU),a=qU(ij,e.__scopeDialog);return(0,Le.jsx)(DP,{present:i||a.open,children:a.modal?(0,Le.jsx)(aj,Je(Je({},r),{},{ref:t})):(0,Le.jsx)(oj,Je(Je({},r),{},{ref:t}))})}));rj.displayName=ij;var aj=o.forwardRef(((e,t)=>{const n=qU(ij,e.__scopeDialog),i=o.useRef(null),r=AE(t,n.contentRef,i);return o.useEffect((()=>{const e=i.current;if(e)return CU(e)}),[]),(0,Le.jsx)(sj,Je(Je({},e),{},{ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:MM(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:MM(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:MM(e.onFocusOutside,(e=>e.preventDefault()))}))})),oj=o.forwardRef(((e,t)=>{const n=qU(ij,e.__scopeDialog),i=o.useRef(!1),r=o.useRef(!1);return(0,Le.jsx)(sj,Je(Je({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,o;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(i.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault());i.current=!1,r.current=!1},onInteractOutside:t=>{var a,o;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));const s=t.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}}))})),sj=o.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a}=e,s=Xe(e,OU),l=qU(ij,n),c=o.useRef(null),u=AE(t,c);return CP(),(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(pP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a,children:(0,Le.jsx)(rP,Je(Je({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":pj(l.open)},s),{},{ref:u,onDismiss:()=>l.onOpenChange(!1)}))}),(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(bj,{titleId:l.titleId}),(0,Le.jsx)(yj,{contentRef:c,descriptionId:l.descriptionId})]})]})})),lj="DialogTitle",cj=o.forwardRef(((e,t)=>{const{__scopeDialog:n}=e,i=Xe(e,IU),r=qU(lj,n);return(0,Le.jsx)(KM.h2,Je(Je({id:r.titleId},i),{},{ref:t}))}));cj.displayName=lj;var uj="DialogDescription",dj=o.forwardRef(((e,t)=>{const{__scopeDialog:n}=e,i=Xe(e,LU),r=qU(uj,n);return(0,Le.jsx)(KM.p,Je(Je({id:r.descriptionId},i),{},{ref:t}))}));dj.displayName=uj;var hj="DialogClose",fj=o.forwardRef(((e,t)=>{const{__scopeDialog:n}=e,i=Xe(e,BU),r=qU(hj,n);return(0,Le.jsx)(KM.button,Je(Je({type:"button"},i),{},{ref:t,onClick:MM(e.onClick,(()=>r.onOpenChange(!1)))}))}));function pj(e){return e?"open":"closed"}fj.displayName=hj;var gj="DialogTitleWarning",[mj,vj]=function(e,t){const n=o.createContext(t),i=e=>{const{children:t}=e,i=Xe(e,PM),r=o.useMemo((()=>i),Object.values(i));return(0,Le.jsx)(n.Provider,{value:r,children:t})};return i.displayName=e+"Provider",[i,function(i){const r=o.useContext(n);if(r)return r;if(void 0!==t)return t;throw new Error("`".concat(i,"` must be used within `").concat(e,"`"))}]}(gj,{contentName:ij,titleName:lj,docsSlug:"dialog"}),bj=e=>{let{titleId:t}=e;const n=vj(gj),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return o.useEffect((()=>
2{if(t){document.getElementById(t)||console.error(i)}}),[i,t]),null},yj=e=>{let{contentRef:t,descriptionId:n}=e;const i=vj("DialogDescriptionWarning"),r="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return o.useEffect((()=>{var e;const i=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");if(n&&i){document.getElementById(n)||console.warn(r)}}),[r,t,n]),null},xj=GU,wj=ZU,_j=ej,Dj=rj,Sj=cj,kj=dj,Cj=fj;const Aj=["className"],Tj=["className","children"],Ej=["className"],Nj=["className"],Mj=["className"],Pj=["className"],Uj=xj,jj=wj,Fj=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,Aj);return(0,Le.jsx)(_j,Je({ref:t,className:ON("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},i))}));Fj.displayName=_j.displayName;const Rj=o.forwardRef(((e,t)=>{let{className:n,children:i}=e,r=Xe(e,Tj);return(0,Le.jsxs)(jj,{children:[(0,Le.jsx)(Fj,{}),(0,Le.jsxs)(Dj,Je(Je({ref:t,className:ON("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},r),{},{children:[i,(0,Le.jsxs)(Cj,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,Le.jsx)(_M,{className:"h-4 w-4"}),(0,Le.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})}));Rj.displayName=Dj.displayName;const Oj=e=>{let{className:t}=e,n=Xe(e,Ej);return(0,Le.jsx)("div",Je({className:ON("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};Oj.displayName="DialogHeader";const Ij=e=>{let{className:t}=e,n=Xe(e,Nj);return(0,Le.jsx)("div",Je({className:ON("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};Ij.displayName="DialogFooter";const Lj=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,Mj);return(0,Le.jsx)(Sj,Je({ref:t,className:ON("text-lg font-semibold leading-none tracking-tight",n)},i))}));Lj.displayName=Sj.displayName;const Bj=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,Pj);return(0,Le.jsx)(kj,Je({ref:t,className:ON("text-sm text-muted-foreground",n)},i))}));Bj.displayName=kj.displayName;const Wj=()=>{const e=re(),t=ne(),[n,i]=(0,o.useState)(""),[r,a]=(0,o.useState)(""),[s,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(""),[f,p]=(0,o.useState)(!1),[g,m]=(0,o.useState)("signin"),[v,b]=(0,o.useState)(1),[y,x]=(0,o.useState)("Core"),[w,_]=(0,o.useState)("USD"),[D,S]=(0,o.useState)(!1),[k,C]=(0,o.useState)(""),[A,T]=(0,o.useState)(!1),[E,N]=(0,o.useState)(!1),[M,P]=(0,o.useState)(!1),[U,j]=(0,o.useState)(!1),[F,R]=(0,o.useState)(!1),[O,I]=(0,o.useState)(!1),[L,B]=(0,o.useState)(""),[W,z]=(0,o.useState)(!1),[V,H]=(0,o.useState)(!1),[q,G]=(0,o.useState)(!1),[Y,X]=(0,o.useState)(!1),K=(0,o.useMemo)((()=>void 0||"122Codeman!"),[]);(0,o.useEffect)((()=>{const e=new URLSearchParams(t.search),n=e.get("subscriptionCancelled"),i=e.get("subscriptionSuccess");"true"!==n&&"1"!==n||P(!0),"true"!==i&&"1"!==i||j(!0)}),[t.search]);const $=async e=>{if(e.preventDefault(),C(""),!n.trim())return C("Email is required to reset password."),void alert("Email is required to reset password.");try{S(!0),await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/forgotPass",{email:n.trim()},{headers:{"Content-Type":"application/json"}}),T(!0),p(!1)}catch(r){var t,i;const e=(null===r||void 0===r||null===(t=r.response)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.message)||(null===r||void 0===r?void 0:r.message)||"Failed to send password reset link.";C(e),alert(e)}finally{S(!1)}},Q=e=>{m(e),b(1)};return(0,Le.jsxs)("div",{className:"min-h-screen flex flex-col items-center justify-center p-4 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url(".concat(SE,")")},children:[D&&(0,Le.jsx)(tl,{}),(0,Le.jsx)(nM,{className:"w-full shadow-xl border border-white/10 bg-white/[0.02] backdrop-blur-md transition-all ".concat(2===v&&"signup"===g?"max-w-2xl":"max-w-md"),children:(0,Le.jsxs)(oM,{className:"pt-8 pb-8 px-8 text-white",children:[(0,Le.jsxs)("div",{className:"flex flex-col items-center mb-8",children:[(0,Le.jsx)("img",{src:DE,alt:"BizVantage",className:"h-[83px] w-auto object-contain mb-2 brightness-0 invert"}),(0,Le.jsx)("p",{className:"text-sm italic text-white/70",children:"Aim higher with the help of AI"})]}),f?(0,Le.jsxs)("form",{onSubmit:$,className:"space-y-4",children:[(0,Le.jsx)("p",{className:"text-sm text-white/70 text-center",children:"Enter your email and we'll send you a reset link."}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"reset-email",className:"text-white",children:"Email"}),(0,Le.jsx)(zN,{id:"reset-email",type:"email",value:n,onChange:e=>i(e.target.value),placeholder:"[email protected]",maxLength:255,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsx)(BN,{type:"submit",onClick:$,className:"w-full text-white",disabled:!n.trim(),children:"Submit"}),(0,Le.jsx)("button",{type:"button",onClick:()=>p(!1),className:"w-full text-sm text-white/80 hover:underline",children:"Back to Sign In"})]}):(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)("div",{className:"flex mb-6 border-b border-white/20",children:[(0,Le.jsx)("button",{type:"button",onClick:()=>Q("signin"),className:"flex-1 pb-2 text-sm font-medium transition-colors ".concat("signin"===g?"text-white border-b-2 border-white":"text-white/50 hover:text-white/70"),children:"Sign In"}),(0,Le.jsx)("button",{type:"button",onClick:()=>Q("signup"),className:"flex-1 pb-2 text-sm font-medium transition-colors ".concat("signup"===g?"text-white border-b-2 border-white":"text-white/50 hover:text-white/70"),children:"Sign Up"})]}),"signin"===g?(0,Le.jsxs)("form",{onSubmit:async t=>{if(t.preventDefault(),C(""),!n.trim()||!r.trim())return C("Email and password are required."),void alert("Email and password are required.");
2if(!K){const e="Missing AES secret. Configure VITE_JWT_SECRET or REACT_APP_JWT_SECRET.";return C(e),void alert(e)}try{S(!0);const t=Ye().AES.encrypt(r,K).toString(),{data:i}=await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/signIn",{email:n.trim(),password:t},{headers:{"Content-Type":"application/json"}});if(null!==i&&void 0!==i&&i.authToken)localStorage.setItem("bv.registerResponse",JSON.stringify(i)),e("/dashboard");else{const e=(null===i||void 0===i?void 0:i.message)||"Login failed. Please check your credentials and try again.";C(e),alert(e)}}catch(t){var i,a;const e=(null===t||void 0===t||null===(i=t.response)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.message)||(null===t||void 0===t?void 0:t.message)||"Login failed. Please check your credentials.";C(e),alert(e)}finally{S(!1)}},className:"space-y-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"email",className:"text-white",children:"Email"}),(0,Le.jsx)(zN,{id:"email",type:"email",value:n,onChange:e=>i(e.target.value),placeholder:"[email protected]",maxLength:255,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Le.jsx)(KN,{htmlFor:"password",className:"text-white",children:"Password"}),(0,Le.jsx)("button",{type:"button",onClick:()=>p(!0),className:"text-xs text-white hover:underline",children:"Forgot password?"})]}),(0,Le.jsx)(zN,{id:"password",type:"password",value:r,onChange:e=>a(e.target.value),placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",maxLength:128,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsx)(BN,{type:"submit",className:"w-full text-white",disabled:!n.trim()||!r.trim()||D,children:D?"Logging in...":"Sign In"})]}):1===v?(0,Le.jsxs)("form",{onSubmit:e=>{e.preventDefault(),r===s?b(2):alert("Passwords do not match.")},className:"space-y-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"signup-name",className:"text-white",children:"Full Name"}),(0,Le.jsx)(zN,{id:"signup-name",type:"text",value:c,onChange:e=>u(e.target.value),placeholder:"John Doe",maxLength:100,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"signup-title",className:"text-white",children:"Title / Role"}),(0,Le.jsx)(zN,{id:"signup-title",type:"text",value:d,onChange:e=>h(e.target.value),placeholder:"e.g. CEO, VP Engineering",maxLength:100,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"signup-email",className:"text-white",children:"Email"}),(0,Le.jsx)(zN,{id:"signup-email",type:"email",value:n,onChange:e=>i(e.target.value),placeholder:"[email protected]",maxLength:255,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"signup-password",className:"text-white",children:"Password"}),(0,Le.jsx)(zN,{id:"signup-password",type:"password",value:r,onChange:e=>a(e.target.value),placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",maxLength:128,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"signup-confirm",className:"text-white",children:"Confirm Password"}),(0,Le.jsx)(zN,{id:"signup-confirm",type:"password",value:s,onChange:e=>l(e.target.value),placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",maxLength:128,className:"bg-white/10 border-white/20 text-white placeholder:text-white/50"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"signup-currency",className:"text-white",children:"Country"}),(0,Le.jsxs)("select",{id:"signup-currency",value:w,onChange:e=>_(e.target.value),className:"w-full rounded-md border border-white/20 bg-white/10 px-3 py-2 text-white placeholder:text-white/50",children:[(0,Le.jsx)("option",{value:"USD",children:"United States"}),(0,Le.jsx)("option",{value:"CAD",children:"Canada"})]})]}),(0,Le.jsx)(BN,{type:"submit",className:"w-full text-white",disabled:!c.trim()||!n.trim()||!r.trim()||!s.trim(),children:"Continue \u2014 Select Plan"})]}):(0,Le.jsx)(hM,{children:(0,Le.jsx)(NM,{selectedPlan:y,onSelectPlan:x,onBack:()=>b(1),onComplete:async()=>{C("");try{S(!0);const a={fullName:c.trim(),phone:d.trim(),planOption:y,email:n.trim(),password:Ye().AES.encrypt
2(r.trim(),K).toString()};if("Core"===y||"Pro"===y)try{localStorage.setItem("bv.pendingSignup",JSON.stringify(a));const e={fullName:c.trim(),phone:d.trim(),planOption:y,email:n.trim(),currency:w,password:Ye().AES.encrypt(r.trim(),K).toString()},t=await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/create-subscription-session",e,{headers:{"Content-Type":"application/json"}}),i=(null===t||void 0===t?void 0:t.data)||{};return null!==i&&void 0!==i&&i.url?(N(!0),void(window.location.href=i.url)):(alert("Unable to start checkout. Please try again later."),void localStorage.removeItem("bv.pendingSignup"))}catch(k){var t,i;return console.error("create session error",(null===k||void 0===k?void 0:k.response)||k),alert((null===k||void 0===k||null===(t=k.response)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.message)||"Failed to create checkout session."),localStorage.removeItem("bv.pendingSignup"),void e("/dashboard")}const o=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),s=await o.json().catch((()=>({})));if(null===s||void 0===s||!s.success){const e=(null===s||void 0===s?void 0:s.message)||"Email already in use.";return C(e),void alert(e)}localStorage.setItem("bv.registerResponse",JSON.stringify(s)),alert("Account created. Welcome to BizVantage! You selected the ".concat(y," plan.")),e("/dashboard")}catch(eQ){alert(eQ.message||"Failed to register.")}finally{S(!1)}}})})]})]})}),(0,Le.jsxs)("div",{className:"mt-8 flex flex-col items-center gap-3",children:[(0,Le.jsx)("p",{className:"text-sm font-bold text-white",children:"Curious to learn what BizVantage does?"}),(0,Le.jsx)(BN,{variant:"outline",className:"border-white/30 text-white bg-white/10 hover:bg-white/20",onClick:()=>window.open("https://gowest.ai/services/bizvantage/","_blank"),children:"Learn More"})]}),(0,Le.jsx)(Uj,{open:A,onOpenChange:T,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Password Reset"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground",children:"Password has been sent to your registered email."}),(0,Le.jsx)(Ij,{className:"gap-2 sm:gap-0",children:(0,Le.jsx)(BN,{onClick:()=>T(!1),children:"Close"})})]})}),(0,Le.jsx)(Uj,{open:M,onOpenChange:P,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Subscription Cancelled"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground",children:"Your subscription process was cancelled. If you want to try again, please select a plan and continue."}),(0,Le.jsx)(Ij,{className:"gap-2 sm:gap-0",children:(0,Le.jsx)(BN,{onClick:()=>P(!1),children:"Close"})})]})}),(0,Le.jsx)(Uj,{open:U,onOpenChange:j,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Subscription Success"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground",children:"Your subscription process was successful. You can now continue using BizVantage with the registred email and password. Welcome aboard!"}),(0,Le.jsx)(Ij,{className:"gap-2 sm:gap-0",children:(0,Le.jsx)(BN,{onClick:()=>j(!1),children:"Close"})})]})}),(0,Le.jsx)(Uj,{open:F,onOpenChange:R,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-3xl",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Terms & Conditions"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground max-h-[60vh] overflow-auto",children:O?(0,Le.jsx)("p",{children:"Loading..."}):(0,Le.jsx)("div",{dangerouslySetInnerHTML:{__html:L}})}),(0,Le.jsx)(Ij,{className:"gap-2 sm:gap-0",children:(0,Le.jsx)(BN,{onClick:()=>R(!1),children:"Close"})})]})}),(0,Le.jsx)(Uj,{open:W,onOpenChange:z,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-3xl",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Privacy Policy"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground max-h-[60vh] overflow-auto",children:(0,Le.jsx)("div",{dangerouslySetInnerHTML:{__html:'\n    <div>\n      <p>GoWest.ai & BizVantage.ai is operated by West McDonald Co. operating as GoWest.ai & BizVantage.ai ("GoWest.ai & BizVantage.ai," "we," "our," or "us"). This Privacy Policy explains how we 
2collect, use, disclose, store, and protect information when you visit our website, contact us, create an account, purchase services, subscribe to BizVantage, participate in assessments, engage us for consulting or advisory services, or otherwise interact with GoWest.ai & BizVantage.ai.</p>\n\n      <p>By using our website, services, BizVantage offerings, forms, subscriptions, assessments, or related deliverables, you agree to the practices described in this Privacy Policy.</p>\n\n      <br/><br/><h4>1. Who We Serve</h4>\n      <p>GoWest.ai & BizVantage.ai provides business-to-business AI advisory, assessment, policy, governance, workflow, and enablement services. Our customers may include businesses, MSPs, IT service providers, office equipment dealers, office products dealers, consultants, advisors, and channel partners.</p>\n\n      <br/><br/><h4>2. Information We May Collect</h4>\n      <p>Depending on how you interact with GoWest.ai & BizVantage.ai, we may collect name, company name, job title or role, business email address, business phone number, billing information, account registration information, subscription information, contact form submissions, consultation requests, assessment responses, workflow descriptions, business process information, meeting notes or transcripts, project documents, policy or procedure documents, technology stack information, customer-facing assessment information, website usage information, communication preferences, and any other information you choose to provide.</p>\n\n      <br/><br/><h4>3. Payment Information</h4>\n      <p>Payments may be processed by Stripe or another third-party payment processor. GoWest.ai & BizVantage.ai does not store full credit card numbers on its own servers. Payment information is handled by the applicable payment processor. For billing questions, contact [email protected].</p>\n\n\n      {/* Payment & Billing Dialog */}\n      <Dialog open={billingOpen} onOpenChange={setBillingOpen}>\n        <DialogContent className="sm:max-w-3xl">\n          <DialogHeader>\n            <DialogTitle className="font-display">Payment & Billing Terms</DialogTitle>\n          </DialogHeader>\n          <div className="text-sm text-muted-foreground max-h-[60vh] overflow-auto">\n            <div dangerouslySetInnerHTML={{ __html: PAYMENT_CONTENT }} />\n          </div>\n          <DialogFooter className="gap-2 sm:gap-0">\n            <Button onClick={() => setBillingOpen(false)}>Close</Button>\n          </DialogFooter>\n        </DialogContent>\n      </Dialog>\n      <br/><br/><h4>4. BizVantage and Assessment Information</h4>\n      <p>If you use BizVantage or related assessment services, we may collect and process information needed to provide assessment, policy, workflow, reporting, or partner services.</p>\n\n      <br/><br/><h4>5. Sensitive Data Restrictions</h4>\n      <p>Clients, partners, and users should not upload, submit, email, or otherwise provide unnecessary sensitive information to GoWest.ai & BizVantage.ai unless specifically requested and appropriate safeguards have been agreed.</p>\n\n      <br/><br/><h4>6. How We Use Information</h4>\n      <p>GoWest.ai & BizVantage.ai may use information to respond to inquiries, provide services, manage subscriptions, process payments, prepare deliverables, provide support, improve our website and services, maintain security, manage partnerships, comply with legal obligations, and send marketing communications where permitted.</p>\n\n      <br/><br/><h4>7. Marketing Communications</h4>\n      <p>GoWest.ai & BizVantage.ai may send marketing communications where permitted. You may unsubscribe using the instructions in the message or contact [email protected].</p>\n\n      <br/><br/><h4>8. Cookies and Website Analytics</h4>\n      <p>Our website may use cookies and analytics tools to understand website usage and improve user experience. You may adjust your browser settings to block or delete cookies.</p>\n\n      <br/><br/><h4>9. Third-Party Tools and Service Providers</h4>\n      <p>We may use third-party tools and service providers to help operate the business and deliver services. These providers may process or store information on our behalf.</p>\n\n      <br/><br/><h4>10. AI-Assisted Workflows</h4>\n      <p>GoWest.ai & BizVantage.ai may use AI-assisted tools to support analysis and drafting. AI-assisted outputs may contain errors and should be reviewed by qualified humans.</p>\n\n      <br/><br/><h4>11. How We Share Information</h4>\n      <p>GoWest.ai & BizVantage.ai does not sell personal information. We may share information with trusted service providers, partners, payment processors, professional advisors, or as required by law.</p>\n\n      <br/><br/><h4>12. Client and Partner Responsibilities</h4>\n      <p>Clients and partners are responsible for ensuring they have the necessary rights and consents to provide information to GoWest.ai & BizVantage.ai.</p>\n\n      <br/><br/><h4>13. Data Retention</h4>\n      <p>We retain information as long as reasonably necessary to provide services, manage accounts, comply with legal obligations, and operate the business.</p>\n\n      <br/><br/><h4>14. Data Security</h4>\n      <p>GoWest.ai & BizVantage.ai uses reasonable safeguards to protect information but cannot guarantee absolute security.</p>\n\n      <br/><br/><h4>15. International Processing</h4>\n      <p>Information may be processed or stored outside your province, state, or country.</p>\n\n      <br/><br/><h4>16. Your Rights and Choices</h4>\n      <p>You may have rights to access, correct, update, delete, or request information about personal information we maintain. Contact [email protected] to make a request.</p>\n\n      <br/><br/><h4>17. Children\'s Privacy</h4>\n      <p>We do not knowingly collect personal information from children.</p>\n\n      <br/><br/><h4>18. Links to Third-Party Websites</h4>\n      <p>We are not responsible for the privacy practices of third-party websites or services.</p>\n\n      <br/><br/><h4>19. Changes to This Privacy Policy</h4>\n      <p>We may update this Privacy Policy from time to time. Continued use after updates constitutes acceptance.</p>\n\n      <br/><br/><h4>20. Contact</h4>\n      <p>Questions: West McDonald Co. operating as GoWest.ai & BizVantage.ai<br/>Email: [email protected]<br/>Phone: +1 647-992-6775</p>\n    </div>\n  '}})}),(0,Le.jsx)(Ij,{className:"gap-2 sm:gap-0",children:(0,Le.jsx)(BN,{onClick:()=>z(!1),children:"Close"})})]})}),(0,Le.jsx)(Uj,{open:V,onOpenChange:H,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-3xl",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Refund Policy"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground max-h-[60vh] overflow-auto",children:(0,Le.jsx)("div",{dangerouslySetInnerHTML:{__html:"\n    <div>\n      <p>GoWest.ai & BizVantage.ai is operated by West McDonald Co. and provides business-to-business AI advisory, assessment, policy, governance, workflow, and enablement services.</p>\n\n      <p>This Refund Policy applies to payments made for GoWest.ai & BizVantage.ai and BizVantage services unless a separate written agreement states otherwise.</p>\n\n      <br/><br/><h4>General Refund Policy</h4>\n      <p>All payments are non-refundable once payment has been made, except in cases of confirmed billing error, duplicate charge, or incorrect charge.</p>\n      <p>
2Because GoWest.ai & BizVantage.ai provides professional services, advisory work, assessment access, reserved capacity, digital deliverables, business analysis, and subscription-based services, payments are not refundable after purchase.</p>\n\n      <br/><br/><h4>BizVantage Subscriptions</h4>\n      <p>BizVantage services are billed quarterly, upfront. Once a quarterly BizVantage subscription payment has been processed, the payment is non-refundable except in cases of confirmed billing error, duplicate charge, or incorrect charge. Cancellation of a BizVantage subscription stops future billing but does not create a refund for the current paid billing period.</p>\n\n      <br/><br/><h4>Overage Payments</h4>\n      <p>If a customer or partner uses more than the included amount during the subscription period, GoWest.ai & BizVantage.ai may charge one-time overage fees. Overage fees are non-refundable once payment has been made, except in cases of confirmed billing error, duplicate charge, or incorrect charge.</p>\n\n      <br/><br/><h4>Consulting, Advisory, and Project Services</h4>\n      <p>Unless a separate written agreement states otherwise, payments for consulting, advisory, workshops, training, or project services are non-refundable once payment has been made, except in cases of confirmed billing error, duplicate charge, or incorrect charge.</p>\n\n      <br/><br/><h4>Billing Errors</h4>\n      <p>If you believe you were charged incorrectly, charged twice, or billed the wrong amount, contact us at [email protected]. Include your name, company name, billing email, invoice number if available, description of the billing issue, and date and amount of the charge.</p>\n\n      <br/><br/><h4>Payment Disputes</h4>\n      <p>Please contact GoWest.ai & BizVantage.ai before initiating a chargeback or payment dispute. Billing, refund, and payment dispute contact: [email protected] Phone: +1 647-992-6775. We aim to respond within 2 business days.</p>\n    </div>\n  "}})}),(0,Le.jsx)(Ij,{className:"gap-2 sm:gap-0",children:(0,Le.jsx)(BN,{onClick:()=>H(!1),children:"Close"})})]})}),(0,Le.jsx)(Uj,{open:q,onOpenChange:G,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-3xl",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Cancellation Policy"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground max-h-[60vh] overflow-auto",children:(0,Le.jsx)("div",{dangerouslySetInnerHTML:{__html:"\n    <div>\n      <p>GoWest.ai & BizVantage.ai is operated by West McDonald Co. and provides business-to-business AI advisory, assessment, policy, governance, workflow, and enablement services.</p>\n\n      <p>This Cancellation Policy applies to GoWest.ai & BizVantage.ai and BizVantage services unless a separate written agreement states otherwise.</p>\n\n      <br/><br/><h4>How to Cancel</h4>\n      <p>Cancellation requests must be submitted directly to GoWest.ai & BizVantage.ai by email. Send cancellation requests to [email protected].</p>\n      <p>Please include your name, company name, billing email, service or subscription name, requested cancellation date, and any relevant invoice or account information. GoWest.ai & BizVantage.ai aims to respond to cancellation requests within 2 business days or sooner.</p>\n\n      <br/><br/><h4>BizVantage Quarterly Subscriptions</h4>\n      <p>
2BizVantage services are billed quarterly, upfront. When a BizVantage subscription is cancelled, cancellation takes effect at the end of the current paid billing period. Access remains until the end of the paid period unless otherwise stated. Cancellation prevents future billing but does not create a refund for the current paid billing period.</p>\n\n      <br/><br/><h4>Timing of Cancellation Requests</h4>\n      <p>To avoid renewal charges, cancellation requests should be submitted before the next scheduled billing date. If a cancellation request is submitted after a quarterly payment has already been processed, that payment is non-refundable except in cases of confirmed billing error, duplicate charge, or incorrect charge.</p>\n\n      <br/><br/><h4>Larger Consulting Agreements</h4>\n      <p>Larger consulting engagements, custom projects, or retainers may be governed by a separate written agreement; cancellation terms in those agreements apply.</p>\n\n      <br/><br/><h4>Access After Cancellation</h4>\n      <p>Access generally remains available until the end of the current paid billing period. GoWest.ai & BizVantage.ai may remove access earlier if required by law, contract, security concern, misuse, non-payment, or violation of applicable terms.</p>\n\n      <br/><br/><h4>Contact</h4>\n      <p>For cancellation requests, billing questions, refund questions, or payment disputes, email [email protected] or call +1 647-992-6775. We aim to respond within 2 business days or sooner.</p>\n    </div>\n  "}})}),(0,Le.jsx)(Ij,{className:"gap-2 sm:gap-0",children:(0,Le.jsx)(BN,{onClick:()=>G(!1),children:"Close"})})]})}),(0,Le.jsx)("footer",{className:"mt-8 w-full text-center text-white/80",children:(0,Le.jsxs)("div",{className:"max-w-5xl mx-auto py-4 flex items-center justify-center gap-4",children:[(0,Le.jsx)("button",{type:"button",onClick:()=>(B('\n    <div>\n      <p><strong>Last updated: June 18, 2026</strong></p>\n      <p>These Terms &amp; Conditions govern your use of the GoWest.ai & BizVantage.ai website, services, BizVantage offerings, assessments, reports, policy documents, advisory services, workshops, subscriptions, digital deliverables, and related offerings provided by West McDonald Co. operating as GoWest.ai & BizVantage.ai ("GoWest.ai & BizVantage.ai," "we," "our," or "us").</p>\n      <p>By using our website, purchasing services, subscribing to BizVantage, creating an account, engaging GoWest.ai & BizVantage.ai for advisory work, or using any GoWest.ai & BizVantage.ai or BizVantage deliverables, you agree to these Terms &amp; Conditions.</p>\n\n      <br/><br/><h4>1. Who We Are</h4>\n      <p>GoWest.ai & BizVantage.ai is operated by West McDonald Co. and provides business-to-business AI advisory, assessment, policy, governance, workflow, and enablement services.</p>\n      <p>Our customers include businesses, MSPs, IT service providers, office equipment dealers, office products dealers, consultants, advisors, and channel partners.</p>\n\n      <br/><br/><h4>2. Our Services</h4>\n      <p>GoWest.ai & BizVantage.ai services may include, but are not limited to:</p>\n      <ul>\n        <li>AI readiness assessments</li>\n        <li>BizVantage assessment and partner services</li>\n        <li>AI workflow assessments</li>\n        <li>AI policy and governance support</li>\n        <li>Workflow opportunity analysis</li>\n        <li>Executive summaries and strategic recommendations</li>\n        <li>AI transformation planning</li>\n        <li>Fractional CAIO advisory</li>\n        <li>Workshops, training sessions, and enablement support</li>\n        <li>Custom AI assistant and workflow recommendations</li>\n        <li>Policies, procedures, reports, templates, and related digital deliverables</li>\n      </ul>\n\n      <br/><br/><h4>3. BizVantage Services</h4>\n      <p>
2BizVantage is a business-to-business AI assessment, workflow, policy, and enablement offering designed for businesses, MSPs, dealers, consultants, advisors, and channel partners. BizVantage services may include AI workflow assessments, policies, procedures, reports, customer-facing recommendations, and related digital outputs. BizVantage services are typically billed quarterly, upfront, unless otherwise stated in a written agreement.</p>\n\n      <br/><br/><h4>4. BizVantage Partner Use and White-Label Rights</h4>\n      <p>Approved BizVantage partners may use BizVantage assessment outputs, AI workflow assessments, policies, procedures, and related deliverables with their own customers, subject to these Terms and any applicable partner agreement. White-label rights apply only to approved BizVantage outputs and do not transfer ownership of GoWest.ai & BizVantage.ai\'s underlying methods, systems, templates, software, processes, platform, know-how, trademarks, branding, or intellectual property unless explicitly stated in a separate written agreement.</p>\n\n      <br/><br/><h4>5. Business Advisory Only</h4>\n      <p>GoWest.ai & BizVantage.ai provides business advisory, workflow, AI readiness, governance, policy, and implementation guidance. GoWest.ai & BizVantage.ai does not provide legal, medical, financial, tax, insurance, employment, credit, investment, accounting, audit, or regulated professional advice unless explicitly stated in a separate written agreement and performed by appropriately qualified professionals.</p>\n\n      <br/><br/><h4>6. No Guaranteed Results</h4>\n      <p>GoWest.ai & BizVantage.ai works to identify practical, high-value AI opportunities and support responsible AI adoption. However, GoWest.ai & BizVantage.ai does not guarantee specific revenue, profit, savings, productivity gains, efficiency improvements, customer acquisition, customer retention, implementation outcomes, regulatory outcomes, or business results.</p>\n\n      <br/><br/><h4>7. Client and Partner Responsibilities</h4>\n      <p>Clients and partners are responsible for providing accurate, complete, and timely information required to perform the services and for reviewing all deliverables before use.</p>\n\n      <br/><br/><h4>8. Sensitive Data Restrictions</h4>\n      <p>Clients, partners, and users should not upload or submit unnecessary sensitive information unless specifically requested and appropriate safeguards agreed.</p>\n\n      <br/><br/><h4>9. Payments and Billing</h4>\n      <p>Fees are due according to the payment terms shown on the applicable invoice, checkout page, proposal, subscription plan, order form, statement of work, or written agreement. BizVantage subscriptions are generally billed quarterly, upfront, unless otherwise stated in writing.</p>\n\n      <br/><br/><h4>10. Refunds</h4>\n      <p>All payments are non-refundable once payment has been made, except in cases of confirmed billing error, duplicate charge, or incorrect charge. Contact [email protected] before initiating a dispute.</p>\n\n      <br/><br/><h4>11. Cancellations</h4>\n      <p>Cancellation requests must be submitted to [email protected]. Cancellation takes effect at the end of the current paid billing period unless otherwise stated.</p>\n\n      <br/><br/><h4>12. Scope Changes</h4>\n      <p>Any work outside the agreed scope may require a separate proposal, change order, or additional fees.</p>\n\n      <br/><br/><h4>13. Third-Party Tools and Platforms</h4>\n      <p>Some services may involve third-party AI tools, payment processors, hosting providers, or integrations. GoWest.ai & BizVantage.ai is not responsible for third-party availability or practices.</p>\n\n      <br/><br/><h4>14. AI Outputs and Human Review</h4>\n      <p>AI-assisted outputs may contain errors. Review all AI outputs with qualified humans before relying on them.</p>\n\n      <br/><br/><h4>15. Confidentiality</h4>\n      <p>
2Both parties agree to use reasonable care to protect confidential information and not disclose it except as required to provide services or comply with law.</p>\n\n      <br/><br/><h4>16. Intellectual Property</h4>\n      <p>GoWest.ai & BizVantage.ai retains ownership of pre-existing materials. Upon full payment, clients receive a limited right to use final deliverables for internal business purposes.</p>\n\n      <br/><br/><h4>17. Website and Service Use</h4>\n      <p>You agree not to misuse the website or services or attempt unauthorized access, scraping, or other harmful activities.</p>\n\n      <br/><br/><h4>18. Suspension or Termination</h4>\n      <p>GoWest.ai & BizVantage.ai may suspend or terminate access for violations, non-payment, misuse, or other risks as described in these Terms.</p>\n\n      <br/><br/><h4>19. Limitation of Liability</h4>\n      <p>To the maximum extent permitted by law, GoWest.ai & BizVantage.ai will not be liable for indirect or consequential damages. GoWest.ai & BizVantage.ai\'s total liability will not exceed amounts paid for the service during the three months before the claim.</p>\n\n      <br/><br/><h4>20. Indemnification</h4>\n      <p>You agree to indemnify GoWest.ai & BizVantage.ai for claims arising from your misuse of services or violation of these Terms.</p>\n\n      <br/><br/><h4>21. Governing Law</h4>\n      <p>These Terms are governed by the laws of the Province of Ontario and the applicable laws of Canada.</p>\n\n      <br/><br/><h4>22. Changes to These Terms</h4>\n      <p>GoWest.ai & BizVantage.ai may update these Terms. Continued use after updates constitutes acceptance.</p>\n\n      <br/><br/><h4>23. Contact</h4>\n      <p>Questions: West McDonald Co. operating as GoWest.ai & BizVantage.ai<br/>Email: [email protected]<br/>Phone: +1 647-992-6775</p>\n    </div>\n  '),void R(!0)),className:"text-sm underline",children:"Terms & Conditions"}),(0,Le.jsx)("button",{type:"button",onClick:()=>z(!0),className:"text-sm underline",children:"Privacy Policy"}),(0,Le.jsx)("button",{type:"button",onClick:()=>H(!0),className:"text-sm underline",children:"Refund Policy"}),(0,Le.jsx)("button",{type:"button",onClick:()=>X(!0),className:"text-sm underline",children:"Payment & Billing Terms"}),(0,Le.jsx)("button",{type:"button",onClick:()=>G(!0),className:"text-sm underline",children:"Cancellation Policy"})]})})]})};function zj(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const Vj=xM("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);const Hj=["asChild"];var qj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=UE("Primitive.".concat(t)),i=o.forwardRef(((e,i)=>{const{asChild:r}=e,a=Xe(e,Hj),o=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Le.jsx)(o,Je(Je({},a),{},{ref:i}))}));return i.displayName="Primitive.".concat(t),Je(Je({},e),{},{[t]:i})}),{});const Gj=["decorative","orientation"];var Yj="horizontal",Xj=["horizontal","vertical"],Kj=o.forwardRef(((e,t)=>{const{decorative:n,orientation:i=Yj}=e,r=Xe(e,Gj),a=function(e){return Xj.includes(e)}(i)?i:Yj,o=n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"};return(0,Le.jsx)(qj.div,Je(Je(Je({"data-orientation":a},o),r),{},{ref:t}))}));Kj.displayName="Separator";var $j=Kj;const Qj=["className","orientation","decorative"],Zj=o.forwardRef(((e,t)=>{let{className:n,orientation:i="horizontal",decorative:r=!0}=e,a=Xe(e,Qj);return(0,Le.jsx)($j,Je({ref:t,decorative:r,orientation:i,className:ON("shrink-0 bg-border","horizontal"===i?"h-[1px] w-full":"h-full w-[1px]",n)},a))}));Zj.displayName=$j.displayName;const Jj=["className"],eF=["side","className","children"],tF=["className"],nF=["className"],iF=xj,rF=wj,aF=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,Jj);return(0,Le.jsx)(_j,Je(Je({className:ON("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},i),{},{ref:t}))}));aF.displayName=_j.displayName;const oF=VE("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),sF=o.forwardRef(((e,t)=>{let{side:n="right",className:i,children:r}=e,a=Xe(e,eF);return(0,Le.jsxs)(rF,{children:[(0,Le.jsx)(aF,{}),(0,Le.jsxs)(Dj,Je(Je({ref:t,className:ON(oF({side:n}),i)},a),{},{children:[r,(0,Le.jsxs)(Cj,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,Le.jsx)(_M,{className:"h-4 w-4"}),(0,Le.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})}));sF.displayName=Dj.displayName;o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,tF);return(0,Le.jsx)(Sj,Je({ref:t,className:ON("text-lg font-semibold text-foreground",n)},i))})).displayName=Sj.displayName;o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,nF);return(0,Le.jsx)(kj,Je({ref:t,className:ON("text-sm text-muted-foreground",n)},i))})).displayName=kj.displayName;const lF=["className"],cF=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,lF);return(0,Le.jsx)("div",Je({ref:t,className:ON("animate-pulse rounded-md bg-muted",n)},i))}));cF.displayName="Skeleton";const uF=["top","right","bottom","left"],dF=Math.min,hF=Math.max,fF=Math.round,pF=Math.floor,gF=e=>({x:e,y:e}),mF={left:"right",right:"left",bottom:"top",top:"bottom"},vF={start:"end",end:"start"};function bF(e,t,n){return hF(e,dF(t,n))}function yF(e,t){return"function"===typeof e?e(t):e}function xF(e){return e.split("-")[0]}function wF(e){return e.split("-")[1]}function _F(e){return"x"===e?"y":"x"}function DF(e){return"y"===e?"height":"width"}function SF(e){return["top","bottom"].includes(xF(e))?"y":"x"}function kF(e){return _F(SF(e))}function CF(e){return e.replace(/start|end/g,(e=>vF[e]))}function AF(e){return e.replace(/left|right|bottom|top/g,(e=>mF[e]))}function TF(e){return"number"!==typeof e?function(e){return Je({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function EF(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}const NF=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],MF=["strategy"],PF=["mainAxis","crossAxis","limiter"],UF=["apply"];function jF(e,t,n){let{reference:i,floating:r}=e;const a=SF(t),o=kF(t),s=DF(o),l=xF(t),c="y"===a,u=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let f;switch(l){case"top":f={x:u,y:i.y-r.height};break;case"bottom":f={x:u,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:d};break;case"left":f={x:i.x-r.width,y:d};break;default:f={x:i.x,y:i.y}}switch(wF(t)){case"start":f[o]-=h*(n&&c?-1:1);break;case"end":f[o]+=h*(n&&c?-1:1)}return f}async function FF(e,t){var n;void 0===t&&(t={});const{x:i,y:r,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=yF(t,e),p=TF(f),g=s[h?"floating"===d?"reference":"floating":d],m=EF(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,b=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(b))&&await(null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},x=EF(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(m.top-x.top+p.top)/y.y,bottom:(x.bottom-m.bottom+p.bottom)/y.y,left:(m.left-x.left+p.left)/y.x,right:(x.right-m.right+p.right)/y.x}}function RF(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function OF(e){return uF.some((t=>e[t]>=0))}function IF(){return"undefined"!==typeof window}function LF(e){return zF(e)?(e.nodeName||"").toLowerCase():"#document"}function BF(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function WF(e){var t;return null==(t=(zF(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zF(e){return!!IF()&&(e instanceof Node||e instanceof BF(e).Node)}function VF(e){return!!IF()&&(e instanceof Element||e instanceof BF(e).Element)}function HF(e){return!!IF()&&(e instanceof HTMLElement||e instanceof BF(e).HTMLElement)}function qF(e){return!(!IF()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof BF(e).ShadowRoot)}function GF(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=ZF(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function YF(e){return["table","td","th"].includes(LF(e))}function XF(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(eQ){return!1}}
vendor: 4,967 bytes, line 2
2))}function KF(e){const t=$F(),n=VF(e)?ZF(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function $F(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function QF(e){return["html","body","#document"].includes(LF(e))}function ZF(e){return BF(e).getComputedStyle(e)}function JF(e){return VF(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eR(e){if("html"===LF(e))return e;const t=e.assignedSlot||e.parentNode||qF(e)&&e.host||WF(e);return qF(t)?t.host:t}function tR(e){const t=eR(e);return QF(t)?e.ownerDocument?e.ownerDocument.body:e.body:HF(t)&&GF(t)?t:tR(t)}function nR(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=tR(e),a=r===(null==(i=e.ownerDocument)?void 0:i.body),o=BF(r);if(a){const e=iR(o);return t.concat(o,o.visualViewport||[],GF(r)?r:[],e&&n?nR(e):[])}return t.concat(r,nR(r,[],n))}function iR(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rR(e){const t=ZF(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=HF(e),a=r?e.offsetWidth:n,o=r?e.offsetHeight:i,s=fF(n)!==a||fF(i)!==o;return s&&(n=a,i=o),{width:n,height:i,$:s}}function aR(e){return VF(e)?e:e.contextElement}function oR(e){const t=aR(e);if(!HF(t))return gF(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:a}=rR(t);let o=(a?fF(n.width):n.width)/i,s=(a?fF(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const sR=gF(0);function lR(e){const t=BF(e);return $F()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:sR}function cR(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),a=aR(e);let o=gF(1);t&&(i?VF(i)&&(o=oR(i)):o=oR(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==BF(e))&&t}(a,n,i)?lR(a):gF(0);let l=(r.left+s.x)/o.x,c=(r.top+s.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(a){const e=BF(a),t=i&&VF(i)?BF(i):i;let n=e,r=iR(n);for(;r&&i&&t!==n;){const e=oR(r),t=r.getBoundingClientRect(),i=ZF(r),a=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=o,n=BF(r),r=iR(n)}}return EF({width:u,height:d,x:l,y:c})}function uR(e,t){const n=JF(e).scrollLeft;return t?t.left+n:cR(WF(e)).left+n}function dR(e,t,n){void 0===n&&(n=!1);const i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-(n?0:uR(e,i)),y:i.top+t.scrollTop}}function hR(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=BF(e),i=WF(e),r=n.visualViewport;let a=i.clientWidth,o=i.clientHeight,s=0,l=0;if(r){a=r.width,o=r.height;const e=$F();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)i=function(e){const t=WF(e),n=JF(e),i=e.ownerDocument.body,r=hF(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=hF(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+uR(e);const s=-n.scrollTop;return"rtl"===ZF(i).direction&&(o+=hF(t.clientWidth,i.clientWidth)-r),{width:r,height:a,x:o,y:s}}(WF(e));else if(VF(t))i=function(e,t){const n=cR(e,!0,"fixed"===t),i=n.top+e.clientTop,r=n.left+e.clientLeft,a=HF(e)?oR(e):gF(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:r*a.x,y:i*a.y}}(t,n);else{const n=lR(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return EF(i)}function fR(e,t){const n=eR(e);return!(n===t||!VF(n)||QF(n))&&("fixed"===ZF(n).position||fR(n,t))}function pR(e,t,n){const i=HF(t),r=WF(t),a="fixed"===n,o=cR(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=gF(0);if(i||!i&&!a)if(("body"!==LF(t)||GF(r))&&(s=JF(t)),i){const e=cR(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=uR(r));const c=!r||i||a?gF(0):dR(r,s);return{x:o.left+s.scrollLeft-l.x-c.x,y:o.top+s.scrollTop-l.y-c.y,width:o.width,height:o.height}}function gR(e){return"static"===ZF(e).position}function mR(e,t){if(!HF(e)||"fixed"===ZF(e).position)return null;if(t)return t(e);let n=e.offsetParent;return WF(e)===n&&(n=n.ownerDocument.body),n}function vR(e,t){const n=BF(e);if(XF(e))return n;if(!HF(e)){let t=eR(e);for(;t&&!QF(t);){if(VF(t)&&!gR(t))return t;t=eR(t)}return n}let i=mR(e,t);for(;i&&YF(i)&&gR(i);)i=mR(i,t);return i&&QF(i)&&gR(i)&&!KF(i)?n:i||function(e){let t=eR(e);for(;HF(t)&&!QF(t);){if(KF(t))return t;if(XF(t))return null;t=eR(t)}return null}(e)||n}const bR={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const a="fixed"===r,o=WF(i),s=!!t&&XF(t.floating);if(i===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=gF(1);const u=gF(0),d=HF(i);
vendor: 4,330 bytes, line 2
2if((d||!d&&!a)&&(("body"!==LF(i)||GF(o))&&(l=JF(i)),HF(i))){const e=cR(i);c=oR(i),u.x=e.x+i.clientLeft,u.y=e.y+i.clientTop}const h=!o||d||a?gF(0):dR(o,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:WF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const a="clippingAncestors"===n?XF(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let i=nR(e,[],!1).filter((e=>VF(e)&&"body"!==LF(e))),r=null;const a="fixed"===ZF(e).position;let o=a?eR(e):e;for(;VF(o)&&!QF(o);){const t=ZF(o),n=KF(o);n||"fixed"!==t.position||(r=null),(a?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||GF(o)&&!n&&fR(e,o))?i=i.filter((e=>e!==o)):r=t,o=eR(o)}return t.set(e,i),i}(t,this._c):[].concat(n),o=[...a,i],s=o[0],l=o.reduce(((e,n)=>{const i=hR(t,n,r);return e.top=hF(i.top,e.top),e.right=dF(i.right,e.right),e.bottom=dF(i.bottom,e.bottom),e.left=hF(i.left,e.left),e}),hR(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:vR,getElementRects:async function(e){const t=this.getOffsetParent||vR,n=this.getDimensions,i=await n(e.floating);return{reference:pR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=rR(e);return{width:t,height:n}},getScale:oR,isElement:VF,isRTL:function(e){return"rtl"===ZF(e).direction}};function yR(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:o="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=i,c=aR(e),u=r||a?[...c?nR(c):[],...nR(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,i=null;const r=WF(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f={rootMargin:-pF(u)+"px "+-pF(r.clientWidth-(c+d))+"px "+-pF(r.clientHeight-(u+h))+"px "+-pF(c)+"px",threshold:hF(0,dF(1,l))||1};let p=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return o();t?o(!1,t):n=setTimeout((()=>{o(!1,1e-7)}),1e3)}p=!1}try{i=new IntersectionObserver(g,Je(Je({},f),{},{root:r.ownerDocument}))}catch(eQ){i=new IntersectionObserver(g,f)}i.observe(e)}(!0),a}(c,n):null;let h,f=-1,p=null;o&&(p=new ResizeObserver((e=>{let[i]=e;i&&i.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let g=l?cR(e):null;return l&&function t(){const i=cR(e);!g||i.x===g.x&&i.y===g.y&&i.width===g.width&&i.height===g.height||n();g=i,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const xR=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:a,placement:o,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:i,elements:r}=e,a=await(null==i.isRTL?void 0:i.isRTL(r.floating)),o=xF(n),s=wF(n),l="y"===SF(n),c=["left","top"].includes(o)?-1:1,u=a&&l?-1:1,d=yF(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"===typeof p&&(f="end"===s?-1*p:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:Je(Je({},l),{},{placement:o})}}}},wR=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,a=yF(e,t),{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=a,c=Xe(a,PF),u={x:n,y:i},d=await FF(t,c),h=SF(xF(r)),f=_F(h);let p=u[f],g=u[h];if(o){const e="y"===f?"bottom":"right";p=bF(p+d["y"===f?"top":"left"],p,p-d[e])}if(s){const e="y"===h?"bottom":"right";
2g=bF(g+d["y"===h?"top":"left"],g,g-d[e])}const m=l.fn(Je(Je({},t),{},{[f]:p,[h]:g}));return Je(Je({},m),{},{data:{x:m.x-n,y:m.y-i,enabled:{[f]:o,[h]:s}}})}}},_R=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=t,u=yF(e,t),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0}=u,v=Xe(u,NF);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=xF(r),y=SF(s),x=xF(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=f||(x||!m?[AF(s)]:function(e){const t=AF(e);return[CF(e),t,CF(t)]}(s)),D="none"!==g;!f&&D&&_.push(...function(e,t,n,i){const r=wF(e);let a=function(e,t,n){const i=["left","right"],r=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?a:o;default:return[]}}(xF(e),"start"===n,i);return r&&(a=a.map((e=>e+"-"+r)),t&&(a=a.concat(a.map(CF)))),a}(s,m,g,w));const S=[s,..._],k=await FF(t,v),C=[];let A=(null==(i=a.flip)?void 0:i.overflows)||[];if(d&&C.push(k[b]),h){const e=function(e,t,n){void 0===n&&(n=!1);const i=wF(e),r=kF(e),a=DF(r);let o="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=AF(o)),[o,AF(o)]}(r,o,w);C.push(k[e[0]],k[e[1]])}if(A=[...A,{placement:r,overflows:C}],!C.every((e=>e<=0))){var T,E;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(E=A.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var N;const e=null==(N=A.filter((e=>{if(D){const t=SF(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},DR=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:a,platform:o,elements:s}=t,l=yF(e,t),{apply:c=()=>{}}=l,u=Xe(l,UF),d=await FF(t,u),h=xF(r),f=wF(r),p="y"===SF(r),{width:g,height:m}=a.floating;let v,b;"top"===h||"bottom"===h?(v=h,b=f===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(b=h,v="end"===f?"top":"bottom");const y=m-d.top-d.bottom,x=g-d.left-d.right,w=dF(m-d[v],y),_=dF(g-d[b],x),D=!t.middlewareData.shift;let S=w,k=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=x),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(S=y),D&&!f){const e=hF(d.left,0),t=hF(d.right,0),n=hF(d.top,0),i=hF(d.bottom,0);p?k=g-2*(0!==e||0!==t?e+t:hF(d.left,d.right)):S=m-2*(0!==n||0!==i?n+i:hF(d.top,d.bottom))}await c(Je(Je({},t),{},{availableWidth:k,availableHeight:S}));const C=await o.getDimensions(s.floating);return g!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}},SR=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,i=yF(e,t),{strategy:r="referenceHidden"}=i,a=Xe(i,MF);switch(r){case"referenceHidden":{const e=RF(await FF(t,Je(Je({},a),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:OF(e)}}}case"escaped":{const e=RF(await FF(t,Je(Je({},a),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:OF(e)}}}default:return{}}}}},kR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=yF(e,t)||{};if(null==c)return{};const d=TF(u),h={x:n,y:i},f=kF(r),p=DF(f),g=await o.getDimensions(c),m="y"===f,v=m?"top":"left",b=m?"bottom":"right",y=m?"clientHeight":"clientWidth",x=a.reference[p]+a.reference[f]-h[f]-a.floating[p],w=h[f]-a.reference[f],_=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let D=_?_[y]:0;D&&await(null==o.isElement?void 0:o.isElement(_))||(D=s.floating[y]||a.floating[p]);const S=x/2-w/2,k=D/2-g[p]/2-1,C=dF(d[v],k),A=dF(d[b],k),T=C,E=D-g[p]-A,N=D/2-g[p]/2+S,M=bF(T,N,E),P=!l.arrow&&null!=wF(r)&&N!==M&&a.reference[p]/2-(N<T?C:A)-g[p]/2<0,U=P?N<T?N-T:N-E:0;return{[f]:h[f]+U,data:Je({[f]:M,centerOffset:N-M-U},P&&{alignmentOffset:U}),reset:P}}}),CR=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=yF(e,t),u={x:n,y:i},d=SF(r),h=_F(d);let f=u[h],p=u[d];const g=yF(s,t),m="number"===typeof g?{mainAxis:g,crossAxis:0}:Je({mainAxis:0,crossAxis:0},g);if(l){const e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+m.mainAxis,n=a.reference[h]+a.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var v,b;const e="y"===h?"width":"height",t=["top","left"].includes(xF(r)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=o.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),i=a.reference[d]+a.reference[e]+(t?0:(null==(b=o.offset)?void 0:b[d])||0)-(t?m.crossAxis:0);p<n?p=n:p>i&&(p=i)}return{[h]:f,[d]:p}}}},AR=(e,t,n)=>{const i=new Map,r=Je({platform:bR},n),a=Je(Je({},r.platform),{},{_c:i});return(async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:o}
2=n,s=a.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=jF(c,i,l),h=i,f={},p=0;for(let g=0;g<s.length;g++){const{name:n,fn:a}=s[g],{x:m,y:v,data:b,reset:y}=await a({x:u,y:d,initialPlacement:i,placement:h,strategy:r,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,f=Je(Je({},f),{},{[n]:Je(Je({},f[n]),b)}),y&&p<=50&&(p++,"object"===typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await o.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:u,y:d}=jF(c,h,l))),g=-1)}return{x:u,y:d,placement:h,strategy:r,middlewareData:f}})(e,t,Je(Je({},r),{},{platform:a}))};var TR="undefined"!==typeof document?o.useLayoutEffect:o.useEffect;function ER(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;0!==i--;)if(!ER(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;0!==i--;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!==i--;){const n=r[i];if(("_owner"!==n||!e.$$typeof)&&!ER(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function NR(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function MR(e,t){const n=NR(e);return Math.round(t*n)/n}function PR(e){const t=o.useRef(e);return TR((()=>{t.current=e})),t}const UR=(e,t)=>Je(Je({},xR(e)),{},{options:[e,t]}),jR=(e,t)=>Je(Je({},wR(e)),{},{options:[e,t]}),FR=(e,t)=>Je(Je({},CR(e)),{},{options:[e,t]}),RR=(e,t)=>Je(Je({},_R(e)),{},{options:[e,t]}),OR=(e,t)=>Je(Je({},DR(e)),{},{options:[e,t]}),IR=(e,t)=>Je(Je({},SR(e)),{},{options:[e,t]}),LR=(e,t)=>Je(Je({},(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:i}="function"===typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?kR({element:n.current,padding:i}).fn(t):{}:n?kR({element:n,padding:i}).fn(t):{};var r}}))(e)),{},{options:[e,t]}),BR=["children","width","height"];var WR=o.forwardRef(((e,t)=>{const{children:n,width:i=10,height:r=5}=e,a=Xe(e,BR);return(0,Le.jsx)(KM.svg,Je(Je({},a),{},{ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,Le.jsx)("polygon",{points:"0,0 30,0 15,10"})}))}));WR.displayName="Arrow";var zR=WR;function VR(e){const[t,n]=o.useState(void 0);return RM((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const i=t[0];let r,a;if("borderBoxSize"in i){const e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;n({width:r,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const HR=["__scopePopper","virtualRef"],qR=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],GR=["__scopePopper"];var YR="Popper",[XR,KR]=jM(YR),[$R,QR]=XR(YR),ZR=e=>{const{__scopePopper:t,children:n}=e,[i,r]=o.useState(null);return(0,Le.jsx)($R,{scope:t,anchor:i,onAnchorChange:r,children:n})};ZR.displayName=YR;var JR="PopperAnchor",eO=o.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:i}=e,r=Xe(e,HR),a=QR(JR,n),s=o.useRef(null),l=AE(t,s),c=o.useRef(null);return o.useEffect((()=>{const e=c.current;c.current=(null===i||void 0===i?void 0:i.current)||s.current,e!==c.current&&a.onAnchorChange(c.current)})),i?null:(0,Le.jsx)(KM.div,Je(Je({},r),{},{ref:l}))}));eO.displayName=JR;var tO="PopperContent",[nO,iO]=XR(tO),rO=o.forwardRef(((e,t)=>{var n,i,r,a,s,l,u,d;const{__scopePopper:h,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:v=0,avoidCollisions:b=!0,collisionBoundary:y=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:_=!1,updatePositionStrategy:D="optimized",onPlaced:S}=e,k=Xe(e,qR),C=QR(tO,h),[A,T]=o.useState(null),E=AE(t,(e=>
2T(e))),[N,M]=o.useState(null),P=VR(N),U=null!==(n=null===P||void 0===P?void 0:P.width)&&void 0!==n?n:0,j=null!==(i=null===P||void 0===P?void 0:P.height)&&void 0!==i?i:0,F=f+("center"!==g?"-"+g:""),R="number"===typeof x?x:Je({top:0,right:0,bottom:0,left:0},x),O=Array.isArray(y)?y:[y],I=O.length>0,L={padding:R,boundary:O.filter(lO),altBoundary:I},{refs:B,floatingStyles:W,placement:z,isPositioned:V,middlewareData:H}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[h,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=o.useState(i);ER(p,i)||g(i);const[m,v]=o.useState(null),[b,y]=o.useState(null),x=o.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),w=o.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),_=a||m,D=s||b,S=o.useRef(null),k=o.useRef(null),C=o.useRef(h),A=null!=u,T=PR(u),E=PR(r),N=PR(d),M=o.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};E.current&&(e.platform=E.current),AR(S.current,k.current,e).then((e=>{const t=Je(Je({},e),{},{isPositioned:!1!==N.current});P.current&&!ER(C.current,t)&&(C.current=t,c.flushSync((()=>{f(t)})))}))}),[p,t,n,E,N]);TR((()=>{!1===d&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>Je(Je({},e),{},{isPositioned:!1}))))}),[d]);const P=o.useRef(!1);TR((()=>(P.current=!0,()=>{P.current=!1})),[]),TR((()=>{if(_&&(S.current=_),D&&(k.current=D),_&&D){if(T.current)return T.current(_,D,M);M()}}),[_,D,M,T,A]);const U=o.useMemo((()=>({reference:S,floating:k,setReference:x,setFloating:w})),[x,w]),j=o.useMemo((()=>({reference:_,floating:D})),[_,D]),F=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=MR(j.floating,h.x),i=MR(j.floating,h.y);return l?Je(Je({},e),{},{transform:"translate("+t+"px, "+i+"px)"},NR(j.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:i}}),[n,l,j.floating,h.x,h.y]);return o.useMemo((()=>Je(Je({},h),{},{update:M,refs:U,elements:j,floatingStyles:F})),[h,M,U,j,F])}({strategy:"fixed",placement:F,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yR(...t,{animationFrame:"always"===D})},elements:{reference:C.anchor},middleware:[UR({mainAxis:p+j,alignmentAxis:m}),b&&jR(Je({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?FR():void 0},L)),b&&RR(Je({},L)),OR(Je(Je({},L),{},{apply:e=>{let{elements:t,rects:n,availableWidth:i,availableHeight:r}=e;const{width:a,height:o}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(i,"px")),s.setProperty("--radix-popper-available-height","".concat(r,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}})),N&&LR({element:N,padding:v}),cO({arrowWidth:U,arrowHeight:j}),_&&IR(Je({strategy:"referenceHidden"},L))]}),[q,G]=uO(z),Y=QM(S);RM((()=>{V&&(null===Y||void 0===Y||Y())}),[V,Y]);const X=null===(r=H.arrow)||void 0===r?void 0:r.x,K=null===(a=H.arrow)||void 0===a?void 0:a.y,$=0!==(null===(s=H.arrow)||void 0===s?void 0:s.centerOffset),[Q,Z]=o.useState();return RM((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]),(0,Le.jsx)("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:Je(Je({},W),{},{transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=H.transformOrigin)||void 0===l?void 0:l.x,null===(u=H.transformOrigin)||void 0===u?void 0:u.y].join(" ")},(null===(d=H.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,Le.jsx)(nO,{scope:h,placedSide:q,onArrowChange:M,arrowX:X,arrowY:K,shouldHideArrow:$,children:(0,Le.jsx)(KM.div,Je(Je({"data-side":q,"data-align":G},k),{},{ref:E,style:Je(Je({},k.style),{},{animation:V?void 0:"none"})}))})})}));rO.displayName=tO;var aO="PopperArrow",oO={top:"bottom",right:"left",bottom:"top",left:"right"},sO=o.forwardRef((function(e,t){const{__scopePopper:n}=e,i=Xe(e,GR),r=iO(aO,n),a=oO[r.placedSide];return(0,Le.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,Le.jsx)(zR,Je(Je({},i),{},{ref:t,style:Je(Je({},i.style),{},{display:"block"})}))})}));function lO(e){return null!==e}sO.displayName=aO;var cO=e=>({name:"transformOrigin",options:e,fn(t){var n,i,r,a,o;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[f,p]=uO(s),g={start:"0%",center:"50%",end:"100%"}[p],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,v=(null!==(a=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+h/2;let b="",y="";return"bottom"===f?(b=u?g:"".concat(m,"px"),y="".concat(-h,"px")):"top"===f?(b=u?g:"".concat(m,"px"),y="".concat(l.floating.height+h,"px")):"right"===f?(b="".concat(-h,"px"),y=u?g:"".concat(v,"px")):"left"===f&&(b="".concat(l.floating.width+h,"px"),y=u?g:"".concat(v,"px")),{data:{x:b,y:y}}}});function uO(e){const[t,n="center"]=e.split("-");return[t,n]}var dO=ZR,hO=eO,fO=rO,pO=sO;var gO=Symbol("radix.slottable");function mO(e){const t=e=>{let{children:t}=e;return(0,Le.jsx)(Le.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=gO,t}var vO=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),bO=o.forwardRef(((e,t)=>(0,Le.jsx)(KM.span,Je(Je({},e),{},{ref:t,style:Je(Je({},vO),e.style)}))));
2bO.displayName="VisuallyHidden";var yO=bO;const xO=["__scopeTooltip"],wO=["forceMount","side"],_O=["__scopeTooltip","children","aria-label","onEscapeKeyDown","onPointerDownOutside"],DO=["__scopeTooltip"];var[SO,kO]=jM("Tooltip",[KR]),CO=KR(),AO="TooltipProvider",TO=700,EO="tooltip.open",[NO,MO]=SO(AO),PO=e=>{const{__scopeTooltip:t,delayDuration:n=TO,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:a}=e,s=o.useRef(!0),l=o.useRef(!1),c=o.useRef(0);return o.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),(0,Le.jsx)(NO,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:o.useCallback((()=>{window.clearTimeout(c.current),s.current=!1}),[]),onClose:o.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s.current=!0),i)}),[i]),isPointerInTransitRef:l,onPointerInTransitChange:o.useCallback((e=>{l.current=e}),[]),disableHoverableContent:r,children:a})};PO.displayName=AO;var UO="Tooltip",[jO,FO]=SO(UO),RO=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,c=MO(UO,e.__scopeTooltip),u=CO(t),[d,h]=o.useState(null),f=LM(),p=o.useRef(0),g=null!==s&&void 0!==s?s:c.disableHoverableContent,m=null!==l&&void 0!==l?l:c.delayDuration,v=o.useRef(!1),[b,y]=WM({prop:i,defaultProp:null!==r&&void 0!==r&&r,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(EO))):c.onClose(),null===a||void 0===a||a(e)},caller:UO}),x=o.useMemo((()=>b?v.current?"delayed-open":"instant-open":"closed"),[b]),w=o.useCallback((()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,y(!0)}),[y]),_=o.useCallback((()=>{window.clearTimeout(p.current),p.current=0,y(!1)}),[y]),D=o.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{v.current=!0,y(!0),p.current=0}),m)}),[m,y]);return o.useEffect((()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)}),[]),(0,Le.jsx)(dO,Je(Je({},u),{},{children:(0,Le.jsx)(jO,{scope:t,contentId:f,open:b,stateAttribute:x,trigger:d,onTriggerChange:h,onTriggerEnter:o.useCallback((()=>{c.isOpenDelayedRef.current?D():w()}),[c.isOpenDelayedRef,D,w]),onTriggerLeave:o.useCallback((()=>{g?_():(window.clearTimeout(p.current),p.current=0)}),[_,g]),onOpen:w,onClose:_,disableHoverableContent:g,children:n})}))};RO.displayName=UO;var OO="TooltipTrigger",IO=o.forwardRef(((e,t)=>{const{__scopeTooltip:n}=e,i=Xe(e,xO),r=FO(OO,n),a=MO(OO,n),s=CO(n),l=AE(t,o.useRef(null),r.onTriggerChange),c=o.useRef(!1),u=o.useRef(!1),d=o.useCallback((()=>c.current=!1),[]);return o.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),(0,Le.jsx)(hO,Je(Je({asChild:!0},s),{},{children:(0,Le.jsx)(KM.button,Je(Je({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i),{},{ref:l,onPointerMove:MM(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(r.onTriggerEnter(),u.current=!0))})),onPointerLeave:MM(e.onPointerLeave,(()=>{r.onTriggerLeave(),u.current=!1})),onPointerDown:MM(e.onPointerDown,(()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:MM(e.onFocus,(()=>{c.current||r.onOpen()})),onBlur:MM(e.onBlur,r.onClose),onClick:MM(e.onClick,r.onClose)}))}))}));IO.displayName=OO;var LO="TooltipPortal",[BO,WO]=SO(LO,{forceMount:void 0}),zO=e=>{const{__scopeTooltip:t,forceMount:n,children:i,container:r}=e,a=FO(LO,t);return(0,Le.jsx)(BO,{scope:t,forceMount:n,children:(0,Le.jsx)(DP,{present:n||a.open,children:(0,Le.jsx)(_P,{asChild:!0,container:r,children:i})})})};zO.displayName=LO;var VO="TooltipContent",HO=o.forwardRef(((e,t)=>{const n=WO(VO,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top"}=e,a=Xe(e,wO),o=FO(VO,e.__scopeTooltip);return(0,Le.jsx)(DP,{present:i||o.open,children:o.disableHoverableContent?(0,Le.jsx)(KO,Je(Je({side:r},a),{},{ref:t})):(0,Le.jsx)(qO,Je(Je({side:r},a),{},{ref:t}))})})),qO=o.forwardRef(((e,t)=>{const n=FO(VO,e.__scopeTooltip),i=MO(VO,e.__scopeTooltip),r=o.useRef(null),a=AE(t,r),[s,l]=o.useState(null),{trigger:c,onClose:u}=n,d=r.current,{onPointerInTransitChange:h}=i,f=o.useCallback((()=>
2{l(null),h(!1)}),[h]),p=o.useCallback(((e,t)=>{const n=e.currentTarget,i={x:e.clientX,y:e.clientY},r=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return i}(i,function(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,i,r,a)){case a:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}(i,n.getBoundingClientRect())),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const n=e[i];for(;t.length>=2;){const e=t[t.length-1],i=t[t.length-2];if(!((e.x-i.x)*(n.y-i.y)>=(e.y-i.y)*(n.x-i.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const t=e[i];for(;n.length>=2;){const e=n[n.length-1],i=n[n.length-2];if(!((e.x-i.x)*(t.y-i.y)>=(e.y-i.y)*(t.x-i.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...r,...function(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}(t.getBoundingClientRect())]);l(a),h(!0)}),[h]);return o.useEffect((()=>()=>f()),[f]),o.useEffect((()=>{if(c&&d){const e=e=>p(e,d),t=e=>p(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[c,d,p,f]),o.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},i=(null===c||void 0===c?void 0:c.contains(t))||(null===d||void 0===d?void 0:d.contains(t)),r=!function(e,t){const{x:n,y:i}=e;let r=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const e=t[a],s=t[o],l=e.x,c=e.y,u=s.x,d=s.y;c>i!==d>i&&n<(u-l)*(i-c)/(d-c)+l&&(r=!r)}return r}(n,s);i?f():r&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,d,s,u,f]),(0,Le.jsx)(KO,Je(Je({},e),{},{ref:a}))})),[GO,YO]=SO(UO,{isInside:!1}),XO=mO("TooltipContent"),KO=o.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:s}=e,l=Xe(e,_O),c=FO(VO,n),u=CO(n),{onClose:d}=c;return o.useEffect((()=>(document.addEventListener(EO,d),()=>document.removeEventListener(EO,d))),[d]),o.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;null!==t&&void 0!==t&&t.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),(0,Le.jsx)(rP,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,Le.jsxs)(fO,Je(Je(Je({"data-state":c.stateAttribute},u),l),{},{ref:t,style:Je(Je({},l.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}),children:[(0,Le.jsx)(XO,{children:i}),(0,Le.jsx)(GO,{scope:n,isInside:!0,children:(0,Le.jsx)(yO,{id:c.contentId,role:"tooltip",children:r||i})})]}))})}));HO.displayName=VO;var $O="TooltipArrow",QO=o.forwardRef(((e,t)=>{const{__scopeTooltip:n}=e,i=Xe(e,DO),r=CO(n);return YO($O,n).isInside?null:(0,Le.jsx)(pO,Je(Je(Je({},r),i),{},{ref:t}))}));QO.displayName=$O;var ZO=HO;const JO=["className","sideOffset"],eI=PO,tI=RO,nI=IO,iI=o.forwardRef(((e,t)=>{let{className:n,sideOffset:i=4}=e,r=Xe(e,JO);return(0,Le.jsx)(ZO,Je({ref:t,sideOffset:i,className:ON("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},r))}));iI.displayName=ZO.displayName;const rI=["defaultOpen","open","onOpenChange","className","style","children"],aI=["side","variant","collapsible","className","children"],oI=["className","onClick"],sI=["className"],lI=["className"],cI=["className"],uI=["className"],dI=["className"],hI=["className"],fI=["className"],pI=["className"],gI=["className","asChild"],mI=["className","asChild"],vI=["className"],bI=["className"],yI=["className"],xI=["asChild","isActive","variant","size","tooltip","className"],wI=["className","asChild","showOnHover"],_I=["className"],DI=["className","showIcon"],SI=["className"],kI=["asChild","size","isActive","className"],CI=o.createContext(null);function AI(){const e=o.useContext(CI);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const TI=o.forwardRef(((e,t)=>{let{defaultOpen:n=!0,open:i,onOpenChange:r,className:a,style:s,children:l}=e,c=Xe(e,rI);const u=function(){const[e,t]=o.useState(void 0);return o.useEffect((()=>{const e=window.matchMedia("(max-width: ".concat(767,"px)")),n=()=>{t(window.innerWidth<768)};return e.addEventListener("change",n),t(window.innerWidth<768),()=>e.removeEventListener("change",n)}),[]),!!e}
2(),[d,h]=o.useState(!1),[f,p]=o.useState(n),g=null!==i&&void 0!==i?i:f,m=o.useCallback((e=>{const t="function"===typeof e?e(g):e;r?r(t):p(t),document.cookie="".concat("sidebar:state","=").concat(t,"; path=/; max-age=").concat(604800)}),[r,g]),v=o.useCallback((()=>u?h((e=>!e)):m((e=>!e))),[u,m,h]);o.useEffect((()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[v]);const b=g?"expanded":"collapsed",y=o.useMemo((()=>({state:b,open:g,setOpen:m,isMobile:u,openMobile:d,setOpenMobile:h,toggleSidebar:v})),[b,g,m,u,d,h,v]);return(0,Le.jsx)(CI.Provider,{value:y,children:(0,Le.jsx)(eI,{delayDuration:0,children:(0,Le.jsx)("div",Je(Je({style:Je({"--sidebar-width":"16rem","--sidebar-width-icon":"3rem"},s),className:ON("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",a),ref:t},c),{},{children:l}))})})}));TI.displayName="SidebarProvider";const EI=o.forwardRef(((e,t)=>{let{side:n="left",variant:i="sidebar",collapsible:r="offcanvas",className:a,children:o}=e,s=Xe(e,aI);const{isMobile:l,state:c,openMobile:u,setOpenMobile:d}=AI();return"none"===r?(0,Le.jsx)("div",Je(Je({className:ON("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",a),ref:t},s),{},{children:o})):l?(0,Le.jsx)(iF,Je(Je({open:u,onOpenChange:d},s),{},{children:(0,Le.jsx)(sF,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:n,children:(0,Le.jsx)("div",{className:"flex h-full w-full flex-col",children:o})})})):(0,Le.jsxs)("div",{ref:t,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":"collapsed"===c?r:"","data-variant":i,"data-side":n,children:[(0,Le.jsx)("div",{className:ON("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===i||"inset"===i?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Le.jsx)("div",Je(Je({className:ON("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex","left"===n?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===i||"inset"===i?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",a)},s),{},{children:(0,Le.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})}))]})}));EI.displayName="Sidebar";const NI=o.forwardRef(((e,t)=>{let{className:n,onClick:i}=e,r=Xe(e,oI);const{toggleSidebar:a}=AI();return(0,Le.jsxs)(BN,Je(Je({ref:t,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ON("h-7 w-7",n),onClick:e=>{null===i||void 0===i||i(e),a()}},r),{},{children:[(0,Le.jsx)(Vj,{}),(0,Le.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]}))}));NI.displayName="SidebarTrigger";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,sI);const{toggleSidebar:r}=AI();return(0,Le.jsx)("button",Je({ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:ON("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",n)},i))})).displayName="SidebarRail";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,lI);return(0,Le.jsx)("main",Je({ref:t,className:ON("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
2h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",n)},i))})).displayName="SidebarInset";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,cI);return(0,Le.jsx)(zN,Je({ref:t,"data-sidebar":"input",className:ON("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",n)},i))})).displayName="SidebarInput";const MI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,uI);return(0,Le.jsx)("div",Je({ref:t,"data-sidebar":"header",className:ON("flex flex-col gap-2 p-2",n)},i))}));MI.displayName="SidebarHeader";const PI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,dI);return(0,Le.jsx)("div",Je({ref:t,"data-sidebar":"footer",className:ON("flex flex-col gap-2 p-2",n)},i))}));PI.displayName="SidebarFooter";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,hI);return(0,Le.jsx)(Zj,Je({ref:t,"data-sidebar":"separator",className:ON("mx-2 w-auto bg-sidebar-border",n)},i))})).displayName="SidebarSeparator";const UI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,fI);return(0,Le.jsx)("div",Je({ref:t,"data-sidebar":"content",className:ON("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n)},i))}));UI.displayName="SidebarContent";const jI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,pI);return(0,Le.jsx)("div",Je({ref:t,"data-sidebar":"group",className:ON("relative flex w-full min-w-0 flex-col p-2",n)},i))}));jI.displayName="SidebarGroup";o.forwardRef(((e,t)=>{let{className:n,asChild:i=!1}=e,r=Xe(e,gI);const a=i?jE:"div";return(0,Le.jsx)(a,Je({ref:t,"data-sidebar":"group-label",className:ON("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",n)},r))})).displayName="SidebarGroupLabel";o.forwardRef(((e,t)=>{let{className:n,asChild:i=!1}=e,r=Xe(e,mI);const a=i?jE:"button";return(0,Le.jsx)(a,Je({ref:t,"data-sidebar":"group-action",className:ON("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",n)},r))})).displayName="SidebarGroupAction";const FI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,vI);return(0,Le.jsx)("div",Je({ref:t,"data-sidebar":"group-content",className:ON("w-full text-sm",n)},i))}));FI.displayName="SidebarGroupContent";const RI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,bI);return(0,Le.jsx)("ul",Je({ref:t,"data-sidebar":"menu",className:ON("flex w-full min-w-0 flex-col gap-1",n)},i))}));RI.displayName="SidebarMenu";const OI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,yI);return(0,Le.jsx)("li",Je({ref:t,"data-sidebar":"menu-item",className:ON("group/menu-item relative",n)},i))}));OI.displayName="SidebarMenuItem";const II=VE("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),LI=o.forwardRef(((e,t)=>{let{asChild:n=!1,isActive:i=!1,variant:r="default",size:a="default",tooltip:o,className:s}=e,l=Xe(e,xI);const c=n?jE:"button",{isMobile:u,state:d}=AI(),h=(0,Le.jsx)(c,Je({ref:t,"data-sidebar":"menu-button","data-size":a,"data-active":i,className:ON(II({variant:r,size:a}),s)},l));return o?("string"===typeof o&&(o={children:o}),(0,Le.jsxs)(tI,{children:[(0,Le.jsx)(nI,{asChild:!0,children:h}),(0,Le.jsx)(iI,Je({side:"right",align:"center",hidden:"collapsed"!==d||u},o))]})):h}));LI.displayName="SidebarMenuButton";o.forwardRef(((e,t)=>{let{className:n,asChild:i=!1,showOnHover:r=!1}=e,a=Xe(e,wI);const o=i?jE:"button";return(0,Le.jsx)(o,Je({ref:t,"data-sidebar":"menu-action",className:ON("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",n)},a))})).displayName="SidebarMenuAction";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,_I);return(0,Le.jsx)("div",Je({ref:t,"data-sidebar":"menu-badge",className:ON("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n)},i))})).displayName="SidebarMenuBadge";o.forwardRef(((e,t)=>{let{className:n,showIcon:i=!1}=e,r=Xe(e,DI);const a=o.useMemo((()=>"".concat(Math.floor(40*Math.random())+50,"%")),[]);return(0,Le.jsxs)("div",Je(Je({ref:t,"data-sidebar":"menu-skeleton",className:ON("flex h-8 items-center gap-2 rounded-md px-2",n)},r),{},{children:[i&&(0,Le.jsx)(cF,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Le.jsx)(cF,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]}))})).displayName="SidebarMenuSkeleton";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,SI);return(0,Le.jsx)("ul",Je({ref:t,"data-sidebar":"menu-sub",className:ON("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",n)},i))})).displayName="SidebarMenuSub";o.forwardRef(((e,t)=>{let n=Object.assign({},(zj(e),e));return(0,Le.jsx)("li",Je({ref:t},n))})).displayName="SidebarMenuSubItem";const BI=o.forwardRef(((e,t)=>{let{asChild:n=!1,size:i="md",isActive:r,className:a}=e,o=Xe(e,kI);const s=n?jE:"a";return(0,Le.jsx)(s,Je({ref:t,"data-sidebar":"menu-sub-button","data-size":i,"data-active":r,className:ON("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===i&&"text-xs","md"===i&&"text-sm","group-data-[collapsible=icon]:hidden",a)},o))}));BI.displayName="SidebarMenuSubButton";
2const WI=xM("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),zI=xM("clipboard-check",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]),VI=xM("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),HI=xM("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]),qI=xM("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]),GI=xM("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),YI=xM("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),XI=["className","activeClassName","pendingClassName","to"],KI=(0,o.forwardRef)((function(e,t){let{className:n,activeClassName:i,pendingClassName:r,to:a}=e,o=Xe(e,XI);return(0,Le.jsx)(Fe,Je({ref:t,to:a,className:e=>{let{isActive:t,isPending:a}=e;return ON(n,t&&i,a&&r)}},o))}));KI.displayName="NavLink";const $I=["className"],QI=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,$I);return(0,Le.jsx)("textarea",Je({className:ON("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
2ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:t},i))}));function ZI(e,t){let[n,i]=t;return Math.min(i,Math.max(n,e))}QI.displayName="Textarea";const JI=["children"],eL=["children"];function tL(e){const t=nL(e),n=o.forwardRef(((e,n)=>{const{children:i}=e,r=Xe(e,JI),a=o.Children.toArray(i),s=a.find(aL);if(s){const e=s.props.children,i=a.map((t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t));return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null}))}return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:i}))}));return n.displayName="".concat(e,".Slot"),n}function nL(e){const t=o.forwardRef(((e,t)=>{const{children:n}=e,i=Xe(e,eL);if(o.isValidElement(n)){const e=function(e){var t,n;let i=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=i&&"isReactWarning"in i&&i.isReactWarning;if(r)return e.ref;if(i=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=Je({},t);for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=function(){const e=a(...arguments);return r(...arguments),e}:r&&(n[i]=r):"style"===i?n[i]=Je(Je({},r),a):"className"===i&&(n[i]=[r,a].filter(Boolean).join(" "))}return Je(Je({},e),n)}(i,n.props);return n.type!==o.Fragment&&(r.ref=t?CE(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null}));return t.displayName="".concat(e,".SlotClone"),t}var iL=Symbol("radix.slottable");var rL;function aL(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===iL}const oL=["scope","children"];function sL(e){const t=e+"CollectionProvider",[n,i]=jM(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,i=o.useRef(null),a=o.useRef(new Map).current;return(0,Le.jsx)(r,{scope:t,itemMap:a,collectionRef:i,children:n})};s.displayName=t;const l=e+"CollectionSlot",c=tL(l),u=o.forwardRef(((e,t)=>{const{scope:n,children:i}=e,r=AE(t,a(l,n).collectionRef);return(0,Le.jsx)(c,{ref:r,children:i})}));u.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=tL(d),p=o.forwardRef(((e,t)=>{const{scope:n,children:i}=e,r=Xe(e,oL),s=o.useRef(null),l=AE(t,s),c=a(d,n);return o.useEffect((()=>(c.itemMap.set(s,Je({ref:s},r)),()=>{c.itemMap.delete(s)}))),(0,Le.jsx)(f,Je(Je({},{[h]:""}),{},{ref:l,children:i}))}));return p.displayName=d,[{Provider:s,Slot:u,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}var lL=new WeakMap;rL=new WeakMap,Map;function cL(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,i=uL(t),r=i>=0?i:n+i;return r<0||r>=n?-1:r}(e,t);return-1===n?void 0:e[n]}function uL(e){return e!==e||0===e?0:Math.trunc(e)}var dL=o.createContext(void 0);function hL(e){const t=o.useContext(dL);return e||t||"ltr"}const fL=["children"],pL=["children"];function gL(e){const t=mL(e),n=o.forwardRef(((e,n)=>{const{children:i}=e,r=Xe(e,fL),a=o.Children.toArray(i),s=a.find(bL);if(s){const e=s.props.children,i=a.map((t=>t===s?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:t));return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,i):null}))}return(0,Le.jsx)(t,Je(Je({},r),{},{ref:n,children:i}))}));return n.displayName="".concat(e,".Slot"),n}function mL(e){const t=o.forwardRef(((e,t)=>{const{children:n}=e,i=Xe(e,pL);if(o.isValidElement(n)){const e=function(e){var t,n;let i=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=i&&"isReactWarning"in i&&i.isReactWarning;if(r)return e.ref;if(i=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),r=function(e,t){const n=Je({},t);for(const i in t){const r=e[i],a=t[i];/^on[A-Z]/.test(i)?r&&a?n[i]=function(){const e=a(...arguments);return r(...arguments),e}:r&&(n[i]=r):"style"===i?n[i]=Je(Je({}
2,r),a):"className"===i&&(n[i]=[r,a].filter(Boolean).join(" "))}return Je(Je({},e),n)}(i,n.props);return n.type!==o.Fragment&&(r.ref=t?CE(t,e):e),o.cloneElement(n,r)}return o.Children.count(n)>1?o.Children.only(null):null}));return t.displayName="".concat(e,".SlotClone"),t}var vL=Symbol("radix.slottable");function bL(e){return o.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===vL}function yL(e){const t=o.useRef({value:e,previous:e});return o.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const xL=["__scopeSelect","disabled"],wL=["__scopeSelect","className","style","children","placeholder"],_L=["__scopeSelect","children"],DL=["__scopeSelect","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],SL=["__scopeSelect","onPlaced"],kL=["__scopeSelect","align","collisionPadding"],CL=["__scopeSelect","nonce"],AL=["__scopeSelect"],TL=["__scopeSelect"],EL=["__scopeSelect","value","disabled","textValue"],NL=["__scopeSelect","className","style"],ML=["__scopeSelect"],PL=["__scopeSelect","onAutoScroll"],UL=["__scopeSelect"],jL=["__scopeSelect"],FL=["__scopeSelect","value"];var RL=[" ","Enter","ArrowUp","ArrowDown"],OL=[" ","Enter"],IL="Select",[LL,BL,WL]=sL(IL),[zL,VL]=jM(IL,[WL,KR]),HL=KR(),[qL,GL]=zL(IL),[YL,XL]=zL(IL),KL=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:r,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:p,form:g}=e,m=HL(t),[v,b]=o.useState(null),[y,x]=o.useState(null),[w,_]=o.useState(!1),D=hL(u),[S,k]=WM({prop:i,defaultProp:null!==r&&void 0!==r&&r,onChange:a,caller:IL}),[C,A]=WM({prop:s,defaultProp:l,onChange:c,caller:IL}),T=o.useRef(null),E=!v||(g||!!v.closest("form")),[N,M]=o.useState(new Set),P=Array.from(N).map((e=>e.props.value)).join(";");return(0,Le.jsx)(dO,Je(Je({},m),{},{children:(0,Le.jsxs)(qL,{required:p,scope:t,trigger:v,onTriggerChange:b,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:_,contentId:LM(),value:C,onValueChange:A,open:S,onOpenChange:k,dir:D,triggerPointerDownPosRef:T,disabled:f,children:[(0,Le.jsx)(LL.Provider,{scope:t,children:(0,Le.jsx)(YL,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback((e=>{M((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:o.useCallback((e=>{M((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),children:n})}),E?(0,Le.jsxs)(OB,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:h,value:C,onChange:e=>A(e.target.value),disabled:f,form:g,children:[void 0===C?(0,Le.jsx)("option",{value:""}):null,Array.from(N)]},P):null]})}))};KL.displayName=IL;var $L="SelectTrigger",QL=o.forwardRef(((e,t)=>{const{__scopeSelect:n,disabled:i=!1}=e,r=Xe(e,xL),a=HL(n),s=GL($L,n),l=s.disabled||i,c=AE(t,s.onTriggerChange),u=BL(n),d=o.useRef("touch"),[h,f,p]=LB((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===s.value)),i=BB(t,e,n);void 0!==i&&s.onValueChange(i.value)})),g=e=>{l||(s.onOpenChange(!0),p()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,Le.jsx)(hO,Je(Je({asChild:!0},a),{},{children:(0,Le.jsx)(KM.button,Je(Je({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":IB(s.value)?"":void 0},r),{},{ref:c,onClick:MM(r.onClick,(e=>{e.currentTarget.focus(),"mouse"!==d.current&&g(e)})),onPointerDown:MM(r.onPointerDown,(e=>{d.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())})),onKeyDown:MM(r.onKeyDown,(e=>{const t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),t&&" "===e.key||RL.includes(e.key)&&(g(),e.preventDefault())}))}))}))}));QL.displayName=$L;var ZL="SelectValue",JL=o.forwardRef(((e,t)=>{const{__scopeSelect:n,className:i,style:r,children:a,placeholder:o=""}=e,s=Xe(e,wL),l=GL(ZL,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==a,d=AE(t,l.onValueNodeChange);return RM((()=>{c(u)}),[c,u]),(0,Le.jsx)(KM.span,Je(Je({},s),{},{ref:d,style:{pointerEvents:"none"},children:IB(l.value)?(0,Le.jsx)(Le.Fragment,{children:o}):a}))}));JL.displayName=ZL;var eB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,children:i}=e,r=Xe(e,_L);return(0,Le.jsx)(KM.span,Je(Je({"aria-hidden":!0},r),{},{ref:t,children:i||"\u25bc"}))}));eB.displayName="SelectIcon";var tB=e=>(0,Le.jsx)(_P,Je({asChild:!0},e));tB.displayName="SelectPortal";var nB="SelectContent",iB=o.forwardRef(((e,t)=>{const n=GL(nB,e.__scopeSelect),[i,r]=o.useState();if(RM((()=>{r(new DocumentFragment)}),[]),!n.open){const t=i;return t?c.createPortal((0,Le.jsx)(aB,{scope:e.__scopeSelect,children:(0,Le.jsx)(LL.Slot,{scope:e.__scopeSelect,children:(0,Le.jsx)("div",{children:e.children})})}),t):null}return(0,Le.jsx)(lB,Je(Je({},e),{},{ref:t}))}));iB.displayName=nB;var rB=10,[aB,oB]=zL(nB),sB=gL("SelectContent.RemoveScroll"),lB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:v}
2=e,b=Xe(e,DL),y=GL(nB,n),[x,w]=o.useState(null),[_,D]=o.useState(null),S=AE(t,(e=>w(e))),[k,C]=o.useState(null),[A,T]=o.useState(null),E=BL(n),[N,M]=o.useState(!1),P=o.useRef(!1);o.useEffect((()=>{if(x)return CU(x)}),[x]),CP();const U=o.useCallback((e=>{const[t,...n]=E().map((e=>e.ref.current)),[i]=n.slice(-1),r=document.activeElement;for(const a of e){if(a===r)return;if(null===a||void 0===a||a.scrollIntoView({block:"nearest"}),a===t&&_&&(_.scrollTop=0),a===i&&_&&(_.scrollTop=_.scrollHeight),null===a||void 0===a||a.focus(),document.activeElement!==r)return}}),[E,_]),j=o.useCallback((()=>U([k,x])),[U,k,x]);o.useEffect((()=>{N&&j()}),[N,j]);const{onOpenChange:F,triggerPointerDownPosRef:R}=y;o.useEffect((()=>{if(x){let e={x:0,y:0};const t=t=>{var n,i,r,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(i=R.current)||void 0===i?void 0:i.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(r=null===(a=R.current)||void 0===a?void 0:a.y)&&void 0!==r?r:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),R.current=null};return null!==R.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[x,F,R]),o.useEffect((()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[F]);const[O,I]=LB((e=>{const t=E().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),i=BB(t,e,n);i&&setTimeout((()=>i.ref.current.focus()))})),L=o.useCallback(((e,t,n)=>{const i=!P.current&&!n;(void 0!==y.value&&y.value===t||i)&&(C(e),i&&(P.current=!0))}),[y.value]),B=o.useCallback((()=>null===x||void 0===x?void 0:x.focus()),[x]),W=o.useCallback(((e,t,n)=>{const i=!P.current&&!n;(void 0!==y.value&&y.value===t||i)&&T(e)}),[y.value]),z="popper"===i?uB:cB,V=z===uB?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:v}:{};return(0,Le.jsx)(aB,{scope:n,content:x,viewport:_,onViewportChange:D,itemRefCallback:L,selectedItem:k,onItemLeave:B,itemTextRefCallback:W,focusSelectedItem:j,selectedItemText:A,position:i,isPositioned:N,searchRef:O,children:(0,Le.jsx)(bU,{as:sB,allowPinchZoom:!0,children:(0,Le.jsx)(pP,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:MM(r,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()})),children:(0,Le.jsx)(rP,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,Le.jsx)(z,Je(Je(Je({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},b),V),{},{onPlaced:()=>M(!0),ref:S,style:Je({display:"flex",flexDirection:"column",outline:"none"},b.style),onKeyDown:MM(b.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||I(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=E().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,i=t.indexOf(n);t=t.slice(i+1)}setTimeout((()=>U(t))),e.preventDefault()}}))}))})})})})}));lB.displayName="SelectContentImpl";var cB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,onPlaced:i}=e,r=Xe(e,SL),a=GL(nB,n),s=oB(nB,n),[l,c]=o.useState(null),[u,d]=o.useState(null),h=AE(t,(e=>d(e))),f=BL(n),p=o.useRef(!1),g=o.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:b,focusSelectedItem:y}=s,x=o.useCallback((()=>{if(a.trigger&&a.valueNode&&l&&u&&m&&v&&b){const e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if("rtl"!==a.dir){const i=r.left-t.left,a=n.left-i,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-rB,d=ZI(a,[rB,Math.max(rB,u-c)]);l.style.minWidth=s+"px",l.style.left=d+"px"}else{const i=t.right-r.right,a=window.innerWidth-n.right-i,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-rB,d=ZI(a,[rB,Math.max(rB,u-c)]);l.style.minWidth=s+"px",l.style.right=d+"px"}const o=f(),s=window.innerHeight-2*rB,c=m.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),g=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),x=h+g+c+parseInt(d.paddingBottom,10)+y,w=Math.min(5*v.offsetHeight,x),_=window.getComputedStyle(m),D=parseInt(_.paddingTop,10),S=parseInt(_.paddingBottom,10),k=e.top+e.height/2-rB,C=s-k,A=v.offsetHeight/2,T=h+g+(v.offsetTop+A),E=x-T;if(T<=k){const e=o.length>0&&v===o[o.length-1].ref.current;l.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,n=T+Math.max(C,A+(e?S:0)+t+y);l.style.height=n+"px"}else{const e=o.length>0&&v===o[0].ref.current;l.style.top="0px";const t=Math.max(k,h+m.offsetTop+(e?D:0)+A)+E;l.style.height=t+"px",m.scrollTop=T-k+m.offsetTop}l.style.margin="".concat(rB,"px 0"),l.style.minHeight=w+"px",l.style.maxHeight=s+"px",null===i||void 0===i||i(),requestAnimationFrame((()=>p.current=!0))}}),[f,a.trigger,a.valueNode,l,u,m,v,b,a.dir,i]);RM((()=>x()),[x]);const[w,_]=o.useState();RM((()=>{u&&_(window.getComputedStyle(u).zIndex)}),[u]);const D=o.useCallback((e=>{e&&!0===g.current&&(x(),null===y||void 0===y||y(),g.current=!1)}),[x,y]);return(0,Le.jsx)(dB,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:p,onScrollButtonChange:D,children:(0,Le.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:(0,Le.jsx)(KM.div,Je(Je({},r),{},{ref:h,style:Je({boxSizing:"border-box",maxHeight:"100%"},r.style)}
2))})})}));cB.displayName="SelectItemAlignedPosition";var uB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:r=rB}=e,a=Xe(e,kL),o=HL(n);return(0,Le.jsx)(fO,Je(Je(Je({},o),a),{},{ref:t,align:i,collisionPadding:r,style:Je(Je({boxSizing:"border-box"},a.style),{"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"})}))}));uB.displayName="SelectPopperPosition";var[dB,hB]=zL(nB,{}),fB="SelectViewport",pB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,nonce:i}=e,r=Xe(e,CL),a=oB(fB,n),s=hB(fB,n),l=AE(t,a.onViewportChange),c=o.useRef(0);return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,Le.jsx)(LL.Slot,{scope:n,children:(0,Le.jsx)(KM.div,Je(Je({"data-radix-select-viewport":"",role:"presentation"},r),{},{ref:l,style:Je({position:"relative",flex:1,overflow:"hidden auto"},r.style),onScroll:MM(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:i}=s;if(null!==i&&void 0!==i&&i.current&&n){const e=Math.abs(c.current-t.scrollTop);if(e>0){const i=window.innerHeight-2*rB,r=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(r,a);if(o<i){const r=o+e,a=Math.min(i,r),s=r-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop}))}))})]})}));pB.displayName=fB;var gB="SelectGroup",[mB,vB]=zL(gB),bB=o.forwardRef(((e,t)=>{const{__scopeSelect:n}=e,i=Xe(e,AL),r=LM();return(0,Le.jsx)(mB,{scope:n,id:r,children:(0,Le.jsx)(KM.div,Je(Je({role:"group","aria-labelledby":r},i),{},{ref:t}))})}));bB.displayName=gB;var yB="SelectLabel",xB=o.forwardRef(((e,t)=>{const{__scopeSelect:n}=e,i=Xe(e,TL),r=vB(yB,n);return(0,Le.jsx)(KM.div,Je(Je({id:r.id},i),{},{ref:t}))}));xB.displayName=yB;var wB="SelectItem",[_B,DB]=zL(wB),SB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,value:i,disabled:r=!1,textValue:a}=e,s=Xe(e,EL),l=GL(wB,n),c=oB(wB,n),u=l.value===i,[d,h]=o.useState(null!==a&&void 0!==a?a:""),[f,p]=o.use
2State(!1),g=AE(t,(e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,i,r)})),m=LM(),v=o.useRef("touch"),b=()=>{r||(l.onValueChange(i),l.onOpenChange(!1))};if(""===i)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,Le.jsx)(_B,{scope:n,value:i,disabled:r,textId:m,isSelected:u,onItemTextChange:o.useCallback((e=>{h((t=>{var n;return t||(null!==(n=null===e||void 0===e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[]),children:(0,Le.jsx)(LL.ItemSlot,{scope:n,value:i,disabled:r,textValue:d,children:(0,Le.jsx)(KM.div,Je(Je({role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},s),{},{ref:g,onFocus:MM(s.onFocus,(()=>p(!0))),onBlur:MM(s.onBlur,(()=>p(!1))),onClick:MM(s.onClick,(()=>{"mouse"!==v.current&&b()})),onPointerUp:MM(s.onPointerUp,(()=>{"mouse"===v.current&&b()})),onPointerDown:MM(s.onPointerDown,(e=>{v.current=e.pointerType})),onPointerMove:MM(s.onPointerMove,(e=>{var t;(v.current=e.pointerType,r)?null===(t=c.onItemLeave)||void 0===t||t.call(c):"mouse"===v.current&&e.currentTarget.focus({preventScroll:!0})}
2)),onPointerLeave:MM(s.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=c.onItemLeave)||void 0===t||t.call(c))})),onKeyDown:MM(s.onKeyDown,(e=>{var t;""!==(null===(t=c.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(OL.includes(e.key)&&b()," "===e.key&&e.preventDefault())}))}))})})}));SB.displayName=wB;var kB="SelectItemText",CB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,className:i,style:r}=e,a=Xe(e,NL),s=GL(kB,n),l=oB(kB,n),u=DB(kB,n),d=XL(kB,n),[h,f]=o.useState(null),p=AE(t,(e=>f(e)),u.onItemTextChange,(e=>{var t;return null===(t=l.itemTextRefCallback)||void 0===t?void 0:t.call(l,e,u.value,u.disabled)})),g=null===h||void 0===h?void 0:h.textContent,m=o.useMemo((()=>(0,Le.jsx)("option",{value:u.value,disabled:u.disabled,children:g},u.value)),[u.disabled,u.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:b}=d;return RM((()=>(v(m),()=>b(m))),[v,b,m]),(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(KM.span,Je(Je({id:u.textId},a),{},{ref:p})),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?c.createPortal(a.children,s.valueNode):null]})}));CB.displayName=kB;var AB="SelectItemIndicator",TB=o.forwardRef(((e,t)=>{const{__scopeSelect:n}=e,i=Xe(e,ML);return DB(AB,n).isSelected?(0,Le.jsx)(KM.span,Je(Je({"aria-hidden":!0},i),{},{ref:t})):null}));TB.displayName=AB;var EB="SelectScrollUpButton",NB=o.forwardRef(((e,t)=>{const n=oB(EB,e.__scopeSelect),i=hB(EB,e.__scopeSelect),[r,a]=o.useState(!1),s=AE(t,i.onScrollButtonChange);return RM((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),r?(0,Le.jsx)(UB,Je(Je({},e),{},{ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null}));NB.displayName=EB;var MB="SelectScrollDownButton",PB=o.forwardRef(((e,t)=>{const n=oB(MB,e.__scopeSelect),i=hB(MB,e.__scopeSelect),[r,a]=o.useState(!1),s=AE(t,i.onScrollButtonChange);return RM((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),r?(0,Le.jsx)(UB,Je(Je({},e),{},{ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null}));PB.displayName=MB;var UB=o.forwardRef(((e,t)=>{const{__scopeSelect:n,onAutoScroll:i}=e,r=Xe(e,PL),a=oB("SelectScrollButton",n),s=o.useRef(null),l=BL(n),c=o.useCallback((()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)}),[]);return o.useEffect((()=>()=>c()),[c]),RM((()=>{var e;const t=l().find((e=>e.ref.current===document.activeElement));null===t||void 0===t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[l]),(0,Le.jsx)(KM.div,Je(Je({"aria-hidden":!0},r),{},{ref:t,style:Je({flexShrink:0},r.style),onPointerDown:MM(r.onPointerDown,(()=>{null===s.current&&(s.current=window.setInterval(i,50))})),onPointerMove:MM(r.onPointerMove,(()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===s.current&&(s.current=window.setInterval(i,50))})),onPointerLeave:MM(r.onPointerLeave,(()=>{c()}))}))})),jB=o.forwardRef(((e,t)=>{const{__scopeSelect:n}=e,i=Xe(e,UL);return(0,Le.jsx)(KM.div,Je(Je({"aria-hidden":!0},i),{},{ref:t}))}));jB.displayName="SelectSeparator";var FB="SelectArrow",RB=o.forwardRef(((e,t)=>{const{__scopeSelect:n}=e,i=Xe(e,jL),r=HL(n),a=GL(FB,n),o=oB(FB,n);return a.open&&"popper"===o.position?(0,Le.jsx)(pO,Je(Je(Je({},r),i),{},{ref:t})):null}));RB.displayName=FB;var OB=o.forwardRef(((e,t)=>{let{__scopeSelect:n,value:i}=e,r=Xe(e,FL);const a=o.useRef(null),s=AE(t,a),l=yL(i);return o.useEffect((()=>{const e=a.current;if(!e)return;const t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==i&&n){const t=new Event("change",{bubbles:!0});n.call(e,i),e.dispatchEvent(t)}}),[l,i]),(0,Le.jsx)(KM.select,Je(Je({},r),{},{style:Je(Je({},vO),r.style),ref:s,defaultValue:i}))}));function IB(e){return""===e||void 0===e}function LB(e){const t=QM(e),n=o.useRef(""),i=o.useRef(0),r=o.useCallback((e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout((()=>e("")),1e3))}(r)}),[t]),a=o.useCallback((()=>{n.current="",window.clearTimeout(i.current)}),[]);return o.useEffect((()=>()=>window.clearTimeout(i.current)),[]),[n,r,a]}
2function BB(e,t,n){const i=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,r=n?e.indexOf(n):-1;let a=(o=e,s=Math.max(r,0),o.map(((e,t)=>o[(s+t)%o.length])));var o,s;1===i.length&&(a=a.filter((e=>e!==n)));const l=a.find((e=>e.textValue.toLowerCase().startsWith(i.toLowerCase())));return l!==n?l:void 0}OB.displayName="SelectBubbleInput";var WB=KL,zB=QL,VB=JL,HB=eB,qB=tB,GB=iB,YB=pB,XB=xB,KB=SB,$B=CB,QB=TB,ZB=NB,JB=PB,eW=jB;const tW=xM("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),nW=xM("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),iW=["className","children"],rW=["className","children","position"],aW=["className"],oW=["className","children"],sW=["className"],lW=WB,cW=VB,uW=o.forwardRef(((e,t)=>{let{className:n,children:i}=e,r=Xe(e,iW);return(0,Le.jsxs)(zB,Je(Je({ref:t,className:ON("flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n)},r),{},{children:[i,(0,Le.jsx)(HB,{asChild:!0,children:(0,Le.jsx)(tW,{className:"h-4 w-4 opacity-50"})})]}))}));uW.displayName=zB.displayName;const dW=o.forwardRef(((e,t)=>{let{className:n,children:i,position:r="popper"}=e,a=Xe(e,rW);return(0,Le.jsx)(qB,{children:(0,Le.jsxs)(GB,Je(Je({ref:t,className:ON("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:r},a),{},{children:[(0,Le.jsx)(hW,{}),(0,Le.jsx)(YB,{className:ON("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),(0,Le.jsx)(fW,{})]}))})}));dW.displayName=GB.displayName;const hW=o.forwardRef(((e,t)=>(0,Le.jsx)(ZB,Je(Je({ref:t,className:"flex cursor-default items-center justify-center py-1"},e),{},{children:(0,Le.jsx)(nW,{className:"h-4 w-4"})}))));hW.displayName=ZB.displayName;const fW=o.forwardRef(((e,t)=>(0,Le.jsx)(JB,Je(Je({ref:t,className:"flex cursor-default items-center justify-center py-1"},e),{},{children:(0,Le.jsx)(tW,{className:"h-4 w-4"})}))));fW.displayName=JB.displayName;o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,aW);return(0,Le.jsx)(XB,Je({ref:t,className:ON("py-1.5 pl-8 pr-2 text-sm font-semibold",n)},i))})).displayName=XB.displayName;const pW=o.forwardRef(((e,t)=>{let{className:n,children:i}=e,r=Xe(e,oW);return(0,Le.jsxs)(KB,Je(Je({ref:t,className:ON("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},r),{},{children:[(0,Le.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Le.jsx)(QB,{children:(0,Le.jsx)(wM,{className:"h-4 w-4"})})}),(0,Le.jsx)($B,{children:i})]}))}));pW.displayName=KB.displayName;o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,sW);return(0,Le.jsx)(eW,Je({ref:t,className:ON("my-1 h-px bg-muted",n)},i))})).displayName=eW.displayName;const gW=["__scopeToast","hotkey","label"],mW=["__scopeToast","onFocusFromOutsideViewport"],vW=["forceMount","open","defaultOpen","onOpenChange"],bW=["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"],yW=["__scopeToast","children"],xW=["__scopeToast"],wW=["__scopeToast"],_W=["altText"],DW=["__scopeToast"],SW=["__scopeToast","altText"];var kW="ToastProvider",[CW,AW,TW]=sL("Toast"),[EW,NW]=jM("Toast",[TW]),[MW,PW]=EW(kW),UW=e=>{const{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:r="right",swipeThreshold:a=50,children:s}
2=e,[l,c]=o.useState(null),[u,d]=o.useState(0),h=o.useRef(!1),f=o.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(kW,"`. Expected non-empty `string`.")),(0,Le.jsx)(CW.Provider,{scope:t,children:(0,Le.jsx)(MW,{scope:t,label:n,duration:i,swipeDirection:r,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:o.useCallback((()=>d((e=>e+1))),[]),onToastRemove:o.useCallback((()=>d((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:s})})};UW.displayName=kW;var jW="ToastViewport",FW=["F8"],RW="toast.viewportPause",OW="toast.viewportResume",IW=o.forwardRef(((e,t)=>{const{__scopeToast:n,hotkey:i=FW,label:r="Notifications ({hotkey})"}=e,a=Xe(e,gW),s=PW(jW,n),l=AW(n),c=o.useRef(null),u=o.useRef(null),d=o.useRef(null),h=o.useRef(null),f=AE(t,h,s.onViewportChange),p=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=s.toastCount>0;o.useEffect((()=>{const e=e=>{var t;0!==i.length&&i.every((t=>e[t]||e.code===t))&&(null===(t=h.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[i]),o.useEffect((()=>{const e=c.current,t=h.current;if(g&&e&&t){const n=()=>
2{if(!s.isClosePausedRef.current){const e=new CustomEvent(RW);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},i=()=>{if(s.isClosePausedRef.current){const e=new CustomEvent(OW);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},r=t=>{!e.contains(t.relatedTarget)&&i()},a=()=>{e.contains(document.activeElement)||i()};return e.addEventListener("focusin",n),e.addEventListener("focusout",r),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",i),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",r),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",i)}}}),[g,s.isClosePausedRef]);const m=o.useCallback((e=>{let{tabbingDirection:t}=e;const n=l().map((e=>{const n=e.ref.current,i=[n,...iz(n)];return"forwards"===t?i:i.reverse()}));return("forwards"===t?n.reverse():n).flat()}),[l]);return o.useEffect((()=>{const e=h.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,o=t.shiftKey;var i;if(t.target===e&&o)return void(null===(i=u.current)||void 0===i||i.focus());const s=m({tabbingDirection:o?"backwards":"forwards"}),l=s.findIndex((e=>e===n));var r,a;if(rz(s.slice(l+1)))t.preventDefault();else o?null===(r=u.current)||void 0===r||r.focus():null===(a=d.current)||void 0===a||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[l,m]),(0,Le.jsxs)(cP,{ref:c,role:"region","aria-label":r.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,Le.jsx)(BW,{ref:u,onFocusFromOutsideViewport:()=>{rz(m({tabbingDirection:"forwards"}))}}),(0,Le.jsx)(CW.Slot,{scope:n,children:(0,Le.jsx)(KM.ol,Je(Je({tabIndex:-1},a),{},{ref:f}))}),g&&(0,Le.jsx)(BW,{ref:d,onFocusFromOutsideViewport:()=>{rz(m({tabbingDirection:"backwards"}))}})]})}));IW.displayName=jW;var LW="ToastFocusProxy",BW=o.forwardRef(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i}=e,r=Xe(e,mW),a=PW(LW,n);return(0,Le.jsx)(bO,Je(Je({tabIndex:0},r),{},{ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null!==(t=a.viewport)&&void 0!==t&&t.contains(n))&&i()}}))}));BW.displayName=LW;var WW="Toast",zW=o.forwardRef(((e,t)=>{const{forceMount:n,open:i,defaultOpen:r,onOpenChange:a}=e,o=Xe(e,vW),[s,l]=WM({prop:i,defaultProp:null===r||void 0===r||r,onChange:a,caller:WW});return(0,Le.jsx)(DP,{present:n||s,children:(0,Le.jsx)(qW,Je(Je({open:s},o),{},{ref:t,onClose:()=>l(!1),onPause:QM(e.onPause),onResume:QM(e.onResume),onSwipeStart:MM(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:MM(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))})),onSwipeCancel:MM(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:MM(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),l(!1)}))}))})}));zW.displayName=WW;var[VW,HW]=EW(WW,{onClose(){}}),qW=o.forwardRef(((e,t)=>{const{__scopeToast:n,type:i="foreground",duration:r,open:a,onClose:s,onEscapeKeyDown:l,onPause:u,onResume:d,onSwipeStart:h,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:g}=e,m=Xe(e,bW),v=PW(WW,n),[b,y]=o.useState(null),x=AE(t,(e=>y(e))),w=o.useRef(null),_=o.useRef(null),D=r||v.duration,S=o.useRef(0),k=o.useRef(D),C=o.useRef(0),{onToastAdd:A,onToastRemove:T}=v,E=QM((()=>{var e;(null===b||void 0===b?void 0:b.contains(document.activeElement))&&(null===(e=v.viewport)||void 0===e||e.focus()),s()})),N=o.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(C.current),S.current=(new Date).getTime(),C.current=window.setTimeout(E,e))}),[E]);o.useEffect((()=>{const e=v.viewport;if(e){const t=()=>{N(k.current),null===d||void 0===d||d()},n=()=>{const e=(new Date).getTime()-S.current;k.current=k.current-e,window.clearTimeout(C.current),null===u||void 0===u||u()};return e.addEventListener(RW,n),e.addEventListener(OW,t),()=>{e.removeEventListener(RW,n),e.removeEventListener(OW,t)}}}),[v.viewport,D,u,d,N]),o.useEffect((()=>{a&&!v.isClosePausedRef.current&&N(D)}),[a,D,v.isClosePausedRef,N]),o.useEffect((()=>(A(),()=>T())),[A,T]);const M=o.useMemo((()=>b?ez(b):null),[b]);return v.viewport?(0,Le.jsxs)(Le.Fragment,{children:[M&&(0,Le.jsx)(GW,{__scopeToast:n,role:"status","aria-live":"foreground"===i?"assertive":"polite",children:M}),(0,Le.jsx)(VW,{scope:n,onClose:E,children:c.createPortal((0,Le.jsx)(CW.ItemSlot,{scope:n,children:(0,Le.jsx)(lP,{asChild:!0,onEscapeKeyDown:MM(l,(()=>
2{v.isFocusedToastEscapeKeyDownRef.current||E(),v.isFocusedToastEscapeKeyDownRef.current=!1})),children:(0,Le.jsx)(KM.li,Je(Je({tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":v.swipeDirection},m),{},{ref:x,style:Je({userSelect:"none",touchAction:"none"},e.style),onKeyDown:MM(e.onKeyDown,(e=>{"Escape"===e.key&&(null===l||void 0===l||l(e.nativeEvent),e.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,E()))})),onPointerDown:MM(e.onPointerDown,(e=>{0===e.button&&(w.current={x:e.clientX,y:e.clientY})})),onPointerMove:MM(e.onPointerMove,(e=>{if(!w.current)return;const t=e.clientX-w.current.x,n=e.clientY-w.current.y,i=Boolean(_.current),r=["left","right"].includes(v.swipeDirection),a=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,o=r?a(0,t):0,s=r?0:a(0,n),l="touch"===e.pointerType?10:2,c={x:o,y:s},u={originalEvent:e,delta:c};i?(_.current=c,tz("toast.swipeMove",f,u,{discrete:!1})):nz(c,v.swipeDirection,l)?(_.current=c,tz("toast.swipeStart",h,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(w.current=null)})),onPointerUp:MM(e.onPointerUp,(e=>{const t=_.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),_.current=null,w.current=null,t){const n=e.currentTarget,i={originalEvent:e,delta:t};nz(t,v.swipeDirection,v.swipeThreshold)?tz("toast.swipeEnd",g,i,{discrete:!0}):tz("toast.swipeCancel",p,i,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))}))})}),v.viewport)})]}):null})),GW=e=>{const{__scopeToast:t,children:n}=e,i=Xe(e,yW),r=PW(WW,t),[a,s]=o.useState(!1),[l,c]=o.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};const t=QM(e);RM((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>s(!0))),o.useEffect((()=>{const e=window.setTimeout((()=>c(!0)),1e3);return()=>window.clearTimeout(e)}),[]),l?null:(0,Le.jsx)(_P,{asChild:!0,children:(0,Le.jsx)(bO,Je(Je({},i),{},{children:a&&(0,Le.jsxs)(Le.Fragment,{children:[r.label," ",n]})}))})},YW=o.forwardRef(((e,t)=>{const{__scopeToast:n}=e,i=Xe(e,xW);return(0,Le.jsx)(KM.div,Je(Je({},i),{},{ref:t}))}));YW.displayName="ToastTitle";var XW=o.forwardRef(((e,t)=>{const{__scopeToast:n}=e,i=Xe(e,wW);return(0,Le.jsx)(KM.div,Je(Je({},i),{},{ref:t}))}));XW.displayName="ToastDescription";var KW="ToastAction",$W=o.forwardRef(((e,t)=>{const{altText:n}=e,i=Xe(e,_W);return n.trim()?(0,Le.jsx)(JW,{altText:n,asChild:!0,children:(0,Le.jsx)(ZW,Je(Je({},i),{},{ref:t}))}):(console.error("Invalid prop `altText` supplied to `".concat(KW,"`. Expected non-empty `string`.")),null)}));$W.displayName=KW;var QW="ToastClose",ZW=o.forwardRef(((e,t)=>{const{__scopeToast:n}=e,i=Xe(e,DW),r=HW(QW,n);return(0,Le.jsx)(JW,{asChild:!0,children:(0,Le.jsx)(KM.button,Je(Je({type:"button"},i),{},{ref:t,onClick:MM(e.onClick,r.onClose)}))})}));ZW.displayName=QW;var JW=o.forwardRef(((e,t)=>{const{__scopeToast:n,altText:i}=e,r=Xe(e,SW);return(0,Le.jsx)(KM.div,Je(Je({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0},r),{},{ref:t}))}));function ez(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,i=""===e.dataset.radixToastAnnounceExclude;if(!n)if(i){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...ez(e))}})),t}function tz(e,t,n,i){let{discrete:r}=i;const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?$M(a,o):a.dispatchEvent(o)}var nz=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=Math.abs(e.x),r=Math.abs(e.y),a=i>r;return"left"===t||"right"===t?a&&i>n:!a&&r>n};function iz(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rz(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var az=IW,oz=zW,sz=YW,lz=XW,cz=$W,uz=ZW;const dz=["className"],hz=["className","variant"],fz=["className"],pz=["className"],gz=["className"],mz=["className"],vz=UW,bz=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,dz);return(0,Le.jsx)(az,Je({ref:t,className:ON("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n)},i))}));bz.displayName=az.displayName;const yz=VE("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),xz=o.forwardRef(((e,t)=>{let{className:n,variant:i}=e,r=Xe(e,hz);return(0,Le.jsx)(oz,Je({ref:t,className:ON(yz({variant:i}),n)},r))}));xz.displayName=oz.displayName;o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,fz);return(0,Le.jsx)(cz,Je({ref:t,className:ON("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",n)},i))})).displayName=cz.displayName;const wz=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,pz);return(0,Le.jsx)(uz,Je(Je({ref:t,className:ON("absolute right-2 top-2 rounded-md p-1 text-foreground
2/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":""},i),{},{children:(0,Le.jsx)(_M,{className:"h-4 w-4"})}))}));wz.displayName=uz.displayName;const _z=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,gz);return(0,Le.jsx)(sz,Je({ref:t,className:ON("text-sm font-semibold",n)},i))}));_z.displayName=sz.displayName;const Dz=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,mz);return(0,Le.jsx)(lz,Je({ref:t,className:ON("text-sm opacity-90",n)},i))}));Dz.displayName=lz.displayName;let Sz=0;const kz=new Map,Cz=e=>{if(kz.has(e))return;const t=setTimeout((()=>{kz.delete(e),Nz({type:"REMOVE_TOAST",toastId:e})}),1e6);kz.set(e,t)},Az=(e,t)=>{switch(t.type){case"ADD_TOAST":return Je(Je({},e),{},{toasts:[t.toast,...e.toasts].slice(0,1)});case"UPDATE_TOAST":return Je(Je({},e),{},{toasts:e.toasts.map((e=>e.id===t.toast.id?Je(Je({},e),t.toast):e))});case"DISMISS_TOAST":{const{toastId:n}=t;return n?Cz(n):e.toasts.forEach((e=>{Cz(e.id)})),Je(Je({},e),{},{toasts:e.toasts.map((e=>e.id===n||void 0===n?Je(Je({},e),{},{open:!1}):e))})}case"REMOVE_TOAST":return void 0===t.toastId?Je(Je({},e),{},{toasts:[]}
2):Je(Je({},e),{},{toasts:e.toasts.filter((e=>e.id!==t.toastId))})}},Tz=[];let Ez={toasts:[]};function Nz(e){Ez=Az(Ez,e),Tz.forEach((e=>{e(Ez)}))}function Mz(e){let t=Object.assign({},(zj(e),e));const n=(Sz=(Sz+1)%Number.MAX_SAFE_INTEGER,Sz.toString()),i=()=>Nz({type:"DISMISS_TOAST",toastId:n});return Nz({type:"ADD_TOAST",toast:Je(Je({},t),{},{id:n,open:!0,onOpenChange:e=>{e||i()}})}),{id:n,dismiss:i,update:e=>Nz({type:"UPDATE_TOAST",toast:Je(Je({},e),{},{id:n})})}}function Pz(e){var t,n,i,r,a;let{open:s,onOpenChange:l,onSubmitted:c}=e;const{t:u}=qe(),d=(0,o.useMemo)((()=>{try{const e=localStorage.getItem("bv.registerResponse");return e?JSON.parse(e):null}catch(e){return null}}),[]),h=null===d||void 0===d?void 0:d.authToken,[f,p]=(0,o.useState)({company:(null===d||void 0===d?void 0:d.companyName)||(null===d||void 0===d||null===(t=d.company)||void 0===t?void 0:t.companyName)||u("Company"),contactName:(null===d||void 0===d?void 0:d.fullName)||(null===d||void 0===d||null===(n=d.user)||void 0===n?void 0:n.fullName)||u("Contact Name"),email:(null===d||void 0===d?void 0:d.email)||(null===d||void 0===d||null===(i=d.user)||void 0===i?void 0:i.email)||"",phone:(null===d||void 0===d?void 0:d.phone)||(null===d||void 0===d||null===(r=d.user)||void 0===r?void 0:r.phone)||"",plan:(null===d||void 0===d?void 0:d.planOption)||(null===d||void 0===d||null===(a=d.user)||void 0===a?void 0:a.planOption)||"Core",category:"",priority:"",subject:"",description:""}),[g,m]=(0,o.useState)(!1);return(0,Le.jsx)(Uj,{open:s,onOpenChange:l,children:(0,Le.jsxs)(Rj,{className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[g&&(0,Le.jsx)(tl,{}),(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:u("Submit Support Ticket")})}),(0,Le.jsxs)("div",{className:"space-y-4 py-2",children:[(0,Le.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Company")}),(0,Le.jsx)(zN,{value:f.company,disabled:!0,className:"bg-muted"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Plan")}),(0,Le.jsx)(zN,{value:f.plan,disabled:!0,className:"bg-muted"})]})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Contact Name")}),(0,Le.jsx)(zN,{value:f.contactName,disabled:!0,className:"bg-muted"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Email")}),(0,Le.jsx)(zN,{value:f.email,disabled:!0,className:"bg-muted"})]})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Phone")}),(0,Le.jsx)(zN,{value:f.phone,disabled:!0,className:"bg-muted"})]}),(0,Le.jsx)("hr",{className:"border-border"}),(0,Le.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Category *")}),(0,Le.jsxs)(lW,{value:f.category,onValueChange:e=>p((t=>Je(Je({},t),{},{category:e}))),children:[(0,Le.jsx)(uW,{children:(0,Le.jsx)(cW,{placeholder:u("Select category")})}),(0,Le.jsxs)(dW,{children:[(0,Le.jsx)(pW,{value:"technical",children:u("Technical Issue")}),(0,Le.jsx)(pW,{value:"billing",children:u("Billing / Account")}),(0,Le.jsx)(pW,{value:"feature",children:u("Feature Request")}),(0,Le.jsx)(pW,{value:"assessment",children:u("Assessment Help")}),(0,Le.jsx)(pW,{value:"other",children:u("Other")})]})]})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Priority *")}),(0,Le.jsxs)(lW,{value:f.priority,onValueChange:e=>p((t=>Je(Je({},t),{},{priority:e}))),children:[(0,Le.jsx)(uW,{children:(0,Le.jsx)(cW,{placeholder:u("Select priority")})}),(0,Le.jsxs)(dW,{children:[(0,Le.jsx)(pW,{value:"low",children:u("Low")}),(0,Le.jsx)(pW,{value:"medium",children:u("Medium")}),(0,Le.jsx)(pW,{value:"high",children:u("High")}),(0,Le.jsx)(pW,{value:"urgent",children:u("Urgent")})]})]})]})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Subject *")}),(0,Le.jsx)(zN,{value:f.subject,onChange:e=>p((t=>Je(Je({},t),{},{subject:e.target.value}))),placeholder:u("Brief summary of your issue"),maxLength:150})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:u("Description")}),(0,Le.jsx)(QI,{value:f.description,onChange:e=>p((t=>Je(Je({},t),{},{description:e.target.value}))),placeholder:u("Provide details about your issue, including steps to reproduce if applicable..."),rows:4,maxLength:2e3})]})]}),(0,Le.jsx)(BN,{onClick:async()=>
2{if(f.subject.trim()&&f.category&&f.priority)try{m(!0);const e=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/supportTicket",{method:"POST",headers:Je({"Content-Type":"application/json"},h?{authorization:h}:{}),body:JSON.stringify(f)}),t=await e.json().catch((()=>({})));if(!e.ok||!1===(null===t||void 0===t?void 0:t.success))throw new Error((null===t||void 0===t?void 0:t.message)||u("Failed to submit ticket."));Mz({title:u("Support ticket submitted"),description:"".concat(u("support.ticketSubmittedPrefix"),' "').concat(f.subject,'" ').concat(u("support.ticketSubmittedSuffix"))}),p((e=>Je(Je({},e),{},{category:"",priority:"",subject:"",description:""}))),null===c||void 0===c||c(),l(!1)}catch(eQ){Mz({title:u("Submit failed"),description:eQ.message||u("Could not submit support ticket."),variant:"destructive"})}finally{m(!1)}else Mz({title:u("Please fill in all required fields"),variant:"destructive"})},className:"w-full",children:u("Submit Ticket")})]})})}const Uz=[{title:"Dashboard",url:"/dashboard",icon:WI},{title:"Assessments",url:"/assessments",icon:zI},{title:"Documents",url:"/documents",icon:VI}];function jz(){const{state:e}=AI(),{t:t}=qe(),n="collapsed"===e,[i,r]=(0,o.useState)(!1),[a,s]=(0,o.useState)(1),l=a>0,c=(0,o.useMemo)((()=>{try{var e,t;const n=localStorage.getItem("bv.registerResponse");if(!n)return!1;const i=JSON.parse(n);return!0===(null===i||void 0===i?void 0:i.superAdmin)||!0===(null===i||void 0===i||null===(e=i.user)||void 0===e?void 0:e.superAdmin)||!0===(null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.superAdmin)}catch(n){return!1}}),[]),u=(0,o.useMemo)((()=>c?[{title:t("Admin"),url:"/admin",icon:HI},...Uz.map((e=>Je(Je({},e),{},{title:t(e.title)})))]:Uz.map((e=>Je(Je({},e),{},{title:t(e.title)})))),[c,t]);return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)(EI,{collapsible:"icon",children:[(0,Le.jsxs)(MI,{className:"p-4 pb-6",children:[(0,Le.jsx)("div",{className:"flex items-center gap-3",children:(0,Le.jsx)("img",{src:DE,alt:"BizVantage",className:n?"h-10 w-10 object-contain":"h-[45px] object-contain"})}),!n&&(0,Le.jsx)("p",{className:"mt-1 text-[10px] italic text-sidebar-foreground/60 text-center -ml-14",children:t("Aim higher with the help of AI")})]}),(0,Le.jsx)(UI,{children:(0,Le.jsx)(jI,{children:(0,Le.jsx)(FI,{children:(0,Le.jsx)(RI,{children:u.map((e=>(0,Le.jsx)(OI,{children:(0,Le.jsx)(LI,{asChild:!0,children:(0,Le.jsxs)(KI,{to:e.url,end:"/"===e.url,className:"hover:bg-sidebar-accent/60 transition-colors",activeClassName:"bg-sidebar-accent text-sidebar-accent-foreground font-medium",children:[(0,Le.jsx)(e.icon,{className:"mr-3 h-[18px] w-[18px] shrink-0"}),!n&&(0,Le.jsx)("span",{children:e.title})]})})},e.title)))})})})}),(0,Le.jsx)(PI,{children:(0,Le.jsxs)(RI,{children:[(0,Le.jsx)(OI,{children:(0,Le.jsxs)(LI,{onClick:()=>r(!0),className:"hover:bg-sidebar-accent/60 transition-colors cursor-pointer",children:[(0,Le.jsx)(qI,{className:"mr-3 h-[18px] w-[18px] shrink-0"}),!n&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("span",{children:t("Support Ticket")}),l&&(0,Le.jsx)(GI,{className:"ml-auto h-3.5 w-3.5 text-green-500 fill-green-500 shrink-0"})]}),n&&l&&(0,Le.jsx)(GI,{className:"absolute -top-1 -right-1 h-3 w-3 text-green-500 fill-green-500"})]})}),(0,Le.jsx)(OI,{children:(0,Le.jsx)(LI,{asChild:!0,children:(0,Le.jsxs)(KI,{to:"/settings",className:"hover:bg-sidebar-accent/60 transition-colors",activeClassName:"bg-sidebar-accent text-sidebar-accent-foreground font-medium",children:[(0,Le.jsx)(YI,{className:"mr-3 h-[18px] w-[18px] shrink-0"}),!n&&(0,Le.jsx)("span",{children:t("Settings")})]})})})]})})]}),(0,Le.jsx)(Pz,{open:i,onOpenChange:r,onSubmitted:()=>{s((e=>e+1))}})]})}const Fz=xM("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),Rz=xM("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);n.p;function Oz(e){let{children:t,backgroundImage:n}=e;const i=re(),{t:r,language:a,setLanguage:s}=qe(),[l,c]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{(()=>{try{return!!localStorage.getItem("bv.registerResponse")}catch(e){return!1}})()||i("/")}),[i]),(0,Le.jsxs)(TI,{children:[(0,Le.jsxs)("div",{className:"min-h-screen flex w-full",children:[(0,Le.jsx)(jz,{}),(0,Le.jsxs)("div",{className:"flex-1 flex flex-col min-w-0 relative bg-background",style:{backgroundImage:"linear-gradient(hsl(var(--border) / 0.3) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--border) / 0.3) 1px, transparent 1px)",backgroundSize:"24px 24px"},children:[(0,Le.jsxs)("header",{className:"h-14 flex items-center justify-between border-b bg-sidebar text-sidebar-foreground px-4 relative z-10",children:[(0,Le.jsxs)("div",{className:"flex items-center",children:[(0,Le.jsx)(NI,{className:"mr-4"}),(0,Le.jsx)("h2",{className:"text-sm font-medium text-sidebar-primary",children:r("Welcome back")})]}),(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsxs)(BN,{variant:"outline",size:"sm",onClick:()=>c(!0),className:"border-sidebar-border/50 bg-sidebar text-sidebar-foreground hover:bg-sidebar-accent",children:[(0,Le.jsx)(Fz,{className:"h-4 w-4 mr-2"}),"fr"===a?"FR":"EN"]}),(0,Le.jsxs)(BN,{variant:"ghost",size:"sm",onClick:()=>{localStorage.removeItem("bv.registerResponse"),i("/")}
2,className:"text-sidebar-foreground/70 hover:text-sidebar-foreground",children:[(0,Le.jsx)(Rz,{className:"h-4 w-4 mr-2"}),r("Logout")]})]})]}),(0,Le.jsx)("main",{className:"flex-1 p-6 overflow-auto relative z-10",children:t})]})]}),(0,Le.jsx)(Uj,{open:l,onOpenChange:c,children:(0,Le.jsxs)(Rj,{className:"max-w-sm",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:r("Select language")})}),(0,Le.jsxs)("div",{className:"space-y-3 py-2",children:[(0,Le.jsx)(BN,{variant:"en"===a?"default":"outline",className:"w-full justify-start",onClick:()=>{s("en"),c(!1)},children:r("English")}),(0,Le.jsx)(BN,{variant:"fr"===a?"default":"outline",className:"w-full justify-start",onClick:()=>{s("fr"),c(!1)},children:r("French")})]}),(0,Le.jsx)(Ij,{children:(0,Le.jsx)(BN,{variant:"outline",onClick:()=>c(!1),children:r("Cancel")})})]})})]})}const Iz=xM("file-check",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),Lz=xM("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),Bz=xM("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),Wz=xM("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),zz=xM("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),Vz=xM("receipt",[["path",{d:"M12 17V7",key:"pyj7ub"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8",key:"1elt7d"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]]),Hz=xM("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),qz=xM("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
2],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),Gz=xM("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Yz={tier:"Core",startDate:"2025-09-09",monthsRemaining:6,assessmentsThisMonth:2,monthsActive:6,billing:{monthly:"$750",quarterly:"$2,250"},invoices:[{id:"INV-2026-Q1",date:"Mar 1, 2026",amount:"$2,250",status:"upcoming"},{id:"INV-2025-Q4",date:"Dec 1, 2025",amount:"$2,250",status:"paid"},{id:"INV-2025-Q3",date:"Sep 1, 2025",amount:"$2,250",status:"paid"}]},Xz={Core:{price:"$750/mo",quarterly:"$2,250/qtr",assessments:"1 assessment/month (3/quarter)"},Pro:{price:"$500/mo",quarterly:"$4,500/qtr",assessments:"3 assessments/month"},Enterprise:{price:"Custom",quarterly:"Custom",assessments:"Unlimited assessments"}},Kz=()=>{const{t:e}=qe(),{tier:t,monthsRemaining:n,assessmentsThisMonth:i,monthsActive:r,invoices:a}=Yz,o=((e,t,n)=>"Core"===e&&n>=6&&t>1?{show:!0,nextTier:"Pro",messageKey:"settings.upgradeCopy"}:"Pro"===e&&t>3?{show:!0,nextTier:"Enterprise",messageKey:"subscription.enterpriseUpgradeCopy"}:{show:!1,nextTier:e,messageKey:""})(t,i,r),s=Xz[t];return(0,Le.jsxs)(nM,{className:"lg:col-span-2 shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{className:"flex flex-row items-center justify-between",children:[(0,Le.jsx)(rM,{className:"text-lg font-display",children:e("Subscription")}),(0,Le.jsx)(cM,{variant:"secondary",className:"text-xs font-semibold",children:t})]}),(0,Le.jsxs)(oM,{className:"space-y-5",children:[(0,Le.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Le.jsx)("div",{className:"h-9 w-9 rounded-md bg-primary/10 flex items-center justify-center shrink-0",children:(0,Le.jsx)(zz,{className:"h-4 w-4 text-primary"})}),(0,Le.jsxs)("div",{children:[(0,Le.jsxs)("p",{className:"text-sm font-medium",children:[n," ",e("months remaining")]}),(0,Le.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e(s.assessments)," \xb7 ",e("Billed quarterly at")," ","Custom"===s.quarterly?e("Custom"):s.quarterly]})]})]}),(0,Le.jsx)(Zj,{}),(0,Le.jsxs)("div",{children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Le.jsx)(Vz,{className:"h-4 w-4 text-muted-foreground"}),(0,Le.jsx)("span",{className:"text-sm font-medium",children:e("Quarterly Invoices")})]}),(0,Le.jsx)("div",{className:"space-y-2",children:a.map((t=>(0,Le.jsxs)("div",{className:"flex items-center justify-between rounded-md border px-3 py-2",children:[(0,Le.jsx)("div",{className:"flex items-center gap-3",children:(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-sm font-medium",children:t.id}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:t.date})]})}),(0,Le.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Le.jsx)("span",{className:"text-sm font-medium",children:t.amount}),(0,Le.jsx)(cM,{variant:"paid"===t.status?"secondary":"default",className:"text-[10px]",children:"paid"===t.status?e("Paid"):e("Upcoming")}),"paid"===t.status&&(0,Le.jsx)(BN,{variant:"ghost",size:"icon",className:"h-7 w-7",children:(0,Le.jsx)(Hz,{className:"h-3.5 w-3.5"})})]})]},t.id)))})]}),o.show&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Zj,{}),(0,Le.jsx)("div",{className:"rounded-lg border border-primary/20 bg-primary/5 p-4",children:(0,Le.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Le.jsx)("div",{className:"h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center shrink-0 mt-0.5",children:(0,Le.jsx)(qz,{className:"h-4 w-4 text-primary"})}),(0,Le.jsxs)("div",{className:"flex-1",children:[(0,Le.jsxs)("p",{className:"text-sm font-semibold",children:[e("Upgrade to")," ",o.nextTier]}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e(o.messageKey)}),(0,Le.jsxs)("div",{className:"flex items-center gap-2 mt-3",children:[(0,Le.jsxs)(BN,{size:"sm",className:"text-xs h-8",children:[e("Upgrade to")," ",o.nextTier,(0,Le.jsx)(Gz,{className:"h-3.5 w-3.5 ml-1"})]}),(0,Le.jsx)("span",{className:"text-xs text-muted-foreground",children:"Custom"===Xz[o.nextTier].quarterly?e("Custom"):Xz[o.nextTier].quarterly})]})]})]})})]})]})]})},$z=["__scopeCheckbox","onKeyDown","onClick"],Qz=["__scopeCheckbox","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],Zz=["__scopeCheckbox","forceMount"],Jz=["__scopeCheckbox"];var eV="Checkbox",[tV,nV]=jM(eV),[iV,rV]=tV(eV);function aV(e){const{__scopeCheckbox:t,checked:n,children:i,defaultChecked:r,disabled:a,form:s,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:h}=e,[f,p]=WM({prop:n,defaultProp:null!==r&&void 0!==r&&r,onChange:c,caller:eV}),[g,m]=o.useState(null),[v,b]=o.useState(null),y=o.useRef(!1),x=!g||(!!s||!!g.closest("form")),w={checked:f,disabled:a,setChecked:p,control:g,setControl:m,name:l,form:s,value:d,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:!pV(r)&&r,isFormControl:x,bubbleInput:v,setBubbleInput:b};return(0,Le.jsx)(iV,Je(Je({scope:t},w),{},{children:fV(h)?h(w):i}))}var oV="CheckboxTrigger",sV=o.forwardRef(((e,t)=>{let{__scopeCheckbox:n,onKeyDown:i,onClick:r}=e,a=Xe(e,$z);
2const{control:s,value:l,disabled:c,checked:u,required:d,setControl:h,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:g,bubbleInput:m}=rV(oV,n),v=AE(t,h),b=o.useRef(u);return o.useEffect((()=>{const e=null===s||void 0===s?void 0:s.form;if(e){const t=()=>f(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[s,f]),(0,Le.jsx)(KM.button,Je(Je({type:"button",role:"checkbox","aria-checked":pV(u)?"mixed":u,"aria-required":d,"data-state":gV(u),"data-disabled":c?"":void 0,disabled:c,value:l},a),{},{ref:v,onKeyDown:MM(i,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:MM(r,(e=>{f((e=>!!pV(e)||!e)),m&&g&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))}))}));sV.displayName=oV;var lV=o.forwardRef(((e,t)=>{const{__scopeCheckbox:n,name:i,checked:r,defaultChecked:a,required:o,disabled:s,value:l,onCheckedChange:c,form:u}=e,d=Xe(e,Qz);return(0,Le.jsx)(aV,{__scopeCheckbox:n,checked:r,defaultChecked:a,disabled:s,required:o,onCheckedChange:c,name:i,form:u,value:l,internal_do_not_use_render:e=>{let{isFormControl:i}=e;return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(sV,Je(Je({},d),{},{ref:t,__scopeCheckbox:n})),i&&(0,Le.jsx)(hV,{__scopeCheckbox:n})]})}})}));lV.displayName=eV;var cV="CheckboxIndicator",uV=o.forwardRef(((e,t)=>{const{__scopeCheckbox:n,forceMount:i}=e,r=Xe(e,Zz),a=rV(cV,n);return(0,Le.jsx)(DP,{present:i||pV(a.checked)||!0===a.checked,children:(0,Le.jsx)(KM.span,Je(Je({"data-state":gV(a.checked),"data-disabled":a.disabled?"":void 0},r),{},{ref:t,style:Je({pointerEvents:"none"},e.style)}))})}));uV.displayName=cV;var dV="CheckboxBubbleInput",hV=o.forwardRef(((e,t)=>{let{__scopeCheckbox:n}=e,i=Xe(e,Jz);const{control:r,hasConsumerStoppedPropagationRef:a,checked:s,defaultChecked:l,required:c,disabled:u,name:d,value:h,form:f,bubbleInput:p,setBubbleInput:g}=rV(dV,n),m=AE(t,g),v=yL(s),b=VR(r);o.useEffect((()=>{const e=p;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,i=!a.current;if(v!==s&&n){const t=new Event("click",{bubbles:i});e.indeterminate=pV(s),n.call(e,!pV(s)&&s),e.dispatchEvent(t)}}),[p,v,s,a]);const y=o.useRef(!pV(s)&&s);return(0,Le.jsx)(KM.input,Je(Je({type:"checkbox","aria-hidden":!0,defaultChecked:null!==l&&void 0!==l?l:y.current,required:c,disabled:u,name:d,value:h,form:f},i),{},{tabIndex:-1,ref:m,style:Je(Je(Je({},i.style),b),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"})}))}));function fV(e){return"function"===typeof e}function pV(e){return"indeterminate"===e}function gV(e){return pV(e)?"indeterminate":e?"checked":"unchecked"}hV.displayName=dV;const mV=["className"],vV=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,mV);return(0,Le.jsx)(lV,Je(Je({ref:t,className:ON("peer h-4 w-4 shrink-0 rounded-sm border border-input bg-transparent shadow focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n)},i),{},{children:(0,Le.jsx)(uV,{className:"flex items-center justify-center text-current",children:(0,Le.jsx)(wM,{className:"h-4 w-4"})})}))}));vV.displayName=lV.displayName;const bV=["message"];var yV=Array(12).fill(0),xV=e=>{let{visible:t,className:n}=e;return o.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},o.createElement("div",{className:"sonner-spinner"},yV.map(((e,t)=>o.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)})))))},wV=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_V=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),DV=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),SV=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),kV=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),CV=1,AV=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
2{this.subscribers.forEach((t=>t(e)))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n}=e,i=Xe(e,bV),r="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:CV++,a=this.toasts.find((e=>e.id===r)),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),a?this.toasts=this.toasts.map((t=>t.id===r?(this.publish(Je(Je(Je({},t),e),{},{id:r,title:n})),Je(Je(Je({},t),e),{},{id:r,dismissible:o,title:n})):t)):this.addToast(Je(Je({title:n},i),{},{dismissible:o,id:r})),r},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),this.subscribers.forEach((t=>t({id:e,dismiss:!0}))),e),this.message=(e,t)=>this.create(Je(Je({},t),{},{message:e})),this.error=(e,t)=>this.create(Je(Je({},t),{},{message:e,type:"error"})),this.success=(e,t)=>this.create(Je(Je({},t),{},{type:"success",message:e})),this.info=(e,t)=>this.create(Je(Je({},t),{},{type:"info",message:e})),this.warning=(e,t)=>this.create(Je(Je({},t),{},{type:"warning",message:e})),this.loading=(e,t)=>
2this.create(Je(Je({},t),{},{type:"loading",message:e})),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create(Je(Je({},t),{},{promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0})));let i,r=e instanceof Promise?e:e(),a=void 0!==n,s=r.then((async e=>{if(i=["resolve",e],o.isValidElement(e))a=!1,this.create({id:n,type:"default",message:e});else if(TV(e)&&!e.ok){a=!1;let i="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,r="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:n,type:"error",message:i,description:r})}else if(void 0!==t.success){a=!1;let i="function"==typeof t.success?await t.success(e):t.success,r="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:i,description:r})}})).catch((async e=>{if(i=["reject",e],void 0!==t.error){a=!1;let i="function"==typeof t.error?await t.error(e):t.error,r="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:i,description:r})}})).finally((()=>{var e;a&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)})),l=()=>new Promise(((e,t)=>s.then((()=>"reject"===i[0]?t(i[1]):e(i[1]))).catch(t)));return"string"!=typeof n&&"number"!=typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||CV++;return this.create(Je({jsx:e(n),id:n},t)),n},this.getActiveToasts=()=>this.toasts.filter((e=>!this.dismissedToasts.has(e.id))),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},TV=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,EV=(e,t)=>{let n=(null==t?void 0:t.id)||CV++;return AV.addToast(Je(Je({title:e},t),{},{id:n})),n},NV=Object.assign(EV,{success:AV.success,info:AV.info,warning:AV.warning,error:AV.error,custom:AV.custom,message:AV.message,promise:AV.promise,dismiss:AV.dismiss,loading:AV.loading},{getHistory:()=>AV.toasts,getToasts:()=>AV.getActiveToasts()});function MV(e){return void 0!==e.label}!function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
2left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
2:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
2--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var PV=3,UV=14;function jV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var FV=e=>{var t,n,i,r,a,s,l,c,u,d,h;let{invert:f,toast:p,unstyled:g,interacting:m,setHeights:v,visibleToasts:b,heights:y,index:x,toasts:w,expanded:_,removeToast:D,defaultRichColors:S,closeButton:k,style:C,cancelButtonStyle:A,actionButtonStyle:T,className:E="",descriptionClassName:N="",duration:M,position:P,gap:U,loadingIcon:j,expandByDefault:F,classNames:R,icons:O,closeButtonAriaLabel:I="Close toast",pauseWhenPageIsHidden:L}=e,[B,W]=o.useState(null),[z,V]=o.useState(null),[H,q]=o.useState(!1),[G,Y]=o.useState(!1),[X,K]=o.useState(!1),[$,Q]=o.use
2State(!1),[Z,J]=o.useState(!1),[ee,te]=o.useState(0),[ne,ie]=o.useState(0),re=o.useRef(p.duration||M||4e3),ae=o.useRef(null),oe=o.useRef(null),se=0===x,le=x+1<=b,ce=p.type,ue=!1!==p.dismissible,de=p.className||"",he=p.descriptionClassName||"",fe=o.useMemo((()=>y.findIndex((e=>e.toastId===p.id))||0),[y,p.id]),pe=o.useMemo((()=>{var e;return null!=(e=p.closeButton)?e:k}),[p.closeButton,k]),ge=o.useMemo((()=>p.duration||M||4e3),[p.duration,M]),me=o.useRef(0),ve=o.useRef(0),be=o.useRef(0),ye=o.useRef(null),[xe,we]=P.split("-"),_e=o.useMemo((()=>y.reduce(((e,t,n)=>n>=fe?e:e+t.height),0)),[y,fe]),De=(()=>{let[e,t]=o.useState(document.hidden);return o.useEffect((()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),[]),e})(),Se=p.invert||f,ke="loading"===ce;ve.current=o.useMemo((()=>fe*U+_e),[fe,_e]),o.useEffect((()=>{re.current=ge}),[ge]),o.useEffect((()=>{q(!0)}),[]),o.useEffect((()=>{let e=oe.current;if(e){let t=e.getBoundingClientRect().height;return ie(t),v((e=>[{toastId:p.id,height:t,position:p.position},...e])),()=>v((e=>e.filter((e=>e.toastId!==p.id))))}}),[v,p.id]),o.useLayoutEffect((()=>{if(!H)return;let e=oe.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,ie(n),v((e=>e.find((e=>e.toastId===p.id))?e.map((e=>e.toastId===p.id?Je(Je({},e),{},{height:n}):e)):[{toastId:p.id,height:n,position:p.position},...e]))}),[H,p.title,p.description,v,p.id]);let Ce=o.useCallback((()=>{Y(!0),te(ve.current),v((e=>e.filter((e=>e.toastId!==p.id)))),setTimeout((()=>{D(p)}),200)}),[p,D,v,ve]);return o.useEffect((()=>{if(p.promise&&"loading"===ce||p.duration===1/0||"loading"===p.type)return;let e;return _||m||L&&De?(()=>{if(be.current<me.current){let e=(new Date).getTime()-me.current;re.current=re.current-e}be.current=(new Date).getTime()})():re.current!==1/0&&(me.current=(new Date).getTime(),e=setTimeout((()=>{var e;null==(e=p.onAutoClose)||e.call(p,p),Ce()}),re.current)),()=>clearTimeout(e)}),[_,m,p,ce,L,De,Ce]),o.useEffect((()=>{p.delete&&Ce()}),[Ce,p.delete]),o.createElement("li",{tabIndex:0,ref:oe,className:jV(E,de,null==R?void 0:R.toast,null==(t=null==p?void 0:p.classNames)?void 0:t.toast,null==R?void 0:R.default,null==R?void 0:R[ce],null==(n=null==p?void 0:p.classNames)?void 0:n[ce]),"data-sonner-toast":"","data-rich-colors":null!=(i=p.richColors)?i:S,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":H,"data-promise":!!p.promise,"data-swiped":Z,"data-removed":G,"data-visible":le,"data-y-position":xe,"data-x-position":we,"data-index":x,"data-front":se,"data-swiping":X,"data-dismissible":ue,"data-type":ce,"data-invert":Se,"data-swipe-out":$,"data-swipe-direction":z,"data-expanded":!!(_||F&&H),style:Je(Je({"--index":x,"--toasts-before":x,"--z-index":w.length-x,"--offset":"".concat(G?ee:ve.current,"px"),"--initial-height":F?"auto":"".concat(ne,"px")},C),p.style),onDragEnd:()=>{K(!1),W(null),ye.current=null},onPointerDown:e=>{ke||!ue||(ae.current=new Date,te(ve.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(K(!0),ye.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,i;if($||!ue)return;ye.current=null;let r=Number((null==(e=oe.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=oe.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=(new Date).getTime()-(null==(n=ae.current)?void 0:n.getTime()),s="x"===B?r:a,l=Math.abs(s)/o;if(Math.abs(s)>=20||l>.11)return te(ve.current),null==(i=p.onDismiss)||i.call(p,p),V("x"===B?r>0?"right":"left":a>0?"down":"up"),Ce(),Q(!0),void J(!1);K(!1),W(null)},onPointerMove:t=>{var n,i,r,a;if(!ye.current||!ue||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;let o=t.clientY-ye.current.y,s=t.clientX-ye.current.x,l=null!=(i=e.swipeDirections)?i:function(e){let[t,n]=e.split("-"),i=[];return t&&i.push(t),n&&i.push(n),i}(P);!B&&(Math.abs(s)>1||Math.abs(o)>1)&&W(Math.abs(s)>Math.abs(o)?"x":"y");let c={x:0,y:0};"y"===B?(l.includes("top")||l.includes("bottom"))&&(l.includes("top")&&o<0||l.includes("bottom")&&o>0)&&(c.y=o):"x"===B&&(l.includes("left")||l.includes("right"))&&(l.includes("left")&&s<0||l.includes("right")&&s>0)&&(c.x=s),(Math.abs(c.x)>0||Math.abs(c.y)>0)&&J(!0),null==(r=oe.current)||r.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(a=oe.current)||a.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}}
2,pe&&!p.jsx?o.createElement("button",{"aria-label":I,"data-disabled":ke,"data-close-button":!0,onClick:ke||!ue?()=>{}:()=>{var e;Ce(),null==(e=p.onDismiss)||e.call(p,p)},className:jV(null==R?void 0:R.closeButton,null==(r=null==p?void 0:p.classNames)?void 0:r.closeButton)},null!=(a=null==O?void 0:O.close)?a:kV):null,p.jsx||(0,o.isValidElement)(p.title)?p.jsx?p.jsx:"function"==typeof p.title?p.title():p.title:o.createElement(o.Fragment,null,ce||p.icon||p.promise?o.createElement("div",{"data-icon":"",className:jV(null==R?void 0:R.icon,null==(s=null==p?void 0:p.classNames)?void 0:s.icon)},p.promise||"loading"===p.type&&!p.icon?p.icon||function(){var e,t,n;return null!=O&&O.loading?o.createElement("div",{className:jV(null==R?void 0:R.loader,null==(e=null==p?void 0:p.classNames)?void 0:e.loader,"sonner-loader"),"data-visible":"loading"===ce},O.loading):j?o.createElement("div",{className:jV(null==R?void 0:R.loader,null==(t=null==p?void 0:p.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ce},j):o.createElement(xV,{className:jV(null==R?void 0:R.loader,null==(n=null==p?void 0:p.classNames)?void 0:n.loader),visible:"loading"===ce})}():null,"loading"!==p.type?p.icon||(null==O?void 0:O[ce])||(e=>{switch(e){case"success":return wV;case"info":return DV;case"warning":return _V;case"error":return SV;default:return null}})(ce):null):null,o.createElement("div",{"data-content":"",className:jV(null==R?void 0:R.content,null==(l=null==p?void 0:p.classNames)?void 0:l.content)},o.createElement("div",{"data-title":"",className:jV(null==R?void 0:R.title,null==(c=null==p?void 0:p.classNames)?void 0:c.title)},"function"==typeof p.title?p.title():p.title),p.description?o.createElement("div",{"data-description":"",className:jV(N,he,null==R?void 0:R.description,null==(u=null==p?void 0:p.classNames)?void 0:u.description)},"function"==typeof p.description?p.description():p.description):null),(0,o.isValidElement)(p.cancel)?p.cancel:p.cancel&&MV(p.cancel)?o.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||A,onClick:e=>{var t,n;MV(p.cancel)&&ue&&(null==(n=(t=p.cancel).onClick)||n.call(t,e),Ce())},className:jV(null==R?void 0:R.cancelButton,null==(d=null==p?void 0:p.classNames)?void 0:d.cancelButton)},p.cancel.label):null,(0,o.isValidElement)(p.action)?p.action:p.action&&MV(p.action)?o.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||T,onClick:e=>{var t,n;MV(p.action)&&(null==(n=(t=p.action).onClick)||n.call(t,e),!e.defaultPrevented&&Ce())},className:jV(null==R?void 0:R.actionButton,null==(h=null==p?void 0:p.classNames)?void 0:h.actionButton)},p.action.label):null))};function RV(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function OV(e,t){let n={};return[e,t].forEach(((e,t)=>{let i=1===t,r=i?"--mobile-offset":"--offset",a=i?"16px":"32px";function o(e){["top","right","bottom","left"].forEach((t=>{n["".concat(r,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e}))}"number"==typeof e||"string"==typeof e?o(e):"object"==typeof e?["top","right","bottom","left"].forEach((t=>{void 0===e[t]?n["".concat(r,"-").concat(t)]=a:n["".concat(r,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]})):o(a)})),n}(0,o.forwardRef)((function(e,t){let{invert:n,position:i="bottom-right",hotkey:r=["altKey","KeyT"],expand:a,closeButton:s,className:l,offset:u,mobileOffset:d,theme:h="light",richColors:f,duration:p,style:g,visibleToasts:m=PV,toastOptions:v,dir:b=RV(),gap:y=UV,loadingIcon:x,icons:w,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:D}=e,[S,k]=o.useState([]),C=o.useMemo((()=>Array.from(new Set([i].concat(S.filter((e=>e.position)).map((e=>e.position)))))),[S,i]),[A,T]=o.useState([]),[E,N]=o.useState(!1),[M,P]=o.useState(!1),[U,j]=o.useState("system"!==h?h:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=o.useRef(null),R=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=o.useRef(null),I=o.useRef(!1),L=o.useCallback((e=>{k((t=>{var n;return null!=(n=t.find((t=>t.id===e.id)))&&n.delete||AV.dismiss(e.id),t.filter((t=>{let{id:n}=t;return n!==e.id}))}))}),[]);return o.useEffect((()=>AV.subscribe((e=>{e.dismiss?k((t=>t.map((t=>t.id===e.id?Je(Je({},t),{},{delete:!0}):t)))):setTimeout((()=>{c.flushSync((()=>{k((t=>{let n=t.findIndex((t=>t.id===e.id));return-1!==n?[...t.slice(0,n),Je(Je({},t[n]),e),...t.slice(n+1)]:[e,...t]}))}
2))}))}))),[]),o.useEffect((()=>{if("system"!==h)return void j(h);if("system"===h&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",(e=>{let{matches:t}=e;j(t?"dark":"light")}))}catch(t){e.addListener((e=>{let{matches:t}=e;try{j(t?"dark":"light")}catch(n){console.error(n)}}))}}),[h]),o.useEffect((()=>{S.length<=1&&N(!1)}),[S]),o.useEffect((()=>{let e=e=>{var t,n;r.every((t=>e[t]||e.code===t))&&(N(!0),null==(t=F.current)||t.focus()),"Escape"===e.code&&(document.activeElement===F.current||null!=(n=F.current)&&n.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r]),o.useEffect((()=>{if(F.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,I.current=!1)}}),[F.current]),o.createElement("section",{ref:t,"aria-label":"".concat(_," ").concat(R),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map(((t,i)=>{var r;let[c,h]=t.split("-");return S.length?o.createElement("ol",{key:t,dir:"auto"===b?RV():b,tabIndex:-1,ref:F,className:l,"data-sonner-toaster":!0,"data-theme":U,"data-y-position":c,"data-lifted":E&&S.length>1&&!a,"data-x-position":h,style:Je(Je({"--front-toast-height":"".concat((null==(r=A[0])?void 0:r.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(y,"px")},g),OV(u,d)),onBlur:e=>{I.current&&!e.currentTarget.contains(e.relatedTarget)&&(I.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||I.current||(I.current=!0,O.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{M||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||P(!0)},onPointerUp:()=>P(!1)},S.filter((e=>!e.position&&0===i||e.position===t)).map(((i,r)=>{var l,c;return o.createElement(FV,{key:i.id,icons:w,index:r,toast:i,defaultRichColors:f,duration:null!=(l=null==v?void 0:v.duration)?l:p,className:null==v?void 0:v.className,descriptionClassName:null==v?void 0:v.descriptionClassName,invert:n,visibleToasts:m,closeButton:null!=(c=null==v?void 0:v.closeButton)?c:s,interacting:M,position:t,style:null==v?void 0:v.style,unstyled:null==v?void 0:v.unstyled,classNames:null==v?void 0:v.classNames,cancelButtonStyle:null==v?void 0:v.cancelButtonStyle,actionButtonStyle:null==v?void 0:v.actionButtonStyle,removeToast:L,toasts:S.filter((e=>e.position==i.position)),heights:A.filter((e=>e.position==i.position)),setHeights:T,expandByDefault:a,gap:y,loadingIcon:x,expanded:E,pauseWhenPageIsHidden:D,swipeDirections:e.swipeDirections})}))):null})))}));const IV=()=>{const{fullName:e,email:t,phone:n,planOption:i}=(0,o.useMemo)((()=>{try{var e,t,n,i;const r=localStorage.getItem("bv.registerResponse");if(!r)return{};const a=JSON.parse(r);return{fullName:(null===a||void 0===a?void 0:a.fullName)||(null===a||void 0===a||null===(e=a.user)||void 0===e?void 0:e.fullName),email:(null===a||void 0===a?void 0:a.email)||(null===a||void 0===a||null===(t=a.user)||void 0===t?void 0:t.email),phone:(null===a||void 0===a?void 0:a.phone)||(null===a||void 0===a||null===(n=a.user)||void 0===n?void 0:n.phone),planOption:(null===a||void 0===a?void 0:a.planOption)||(null===a||void 0===a||null===(i=a.user)||void 0===i?void 0:i.planOption)}}catch(r){return{}}}),[]),[r,a]=("bizvantage.com/ref/".concat(t||"user"),(0,o.useState)([{id:"1",name:e||"Your Name",company:i?"".concat(i," Plan"):"BizVantage",email:t||"[email protected]",phone:n||"(000) 000-0000",contacted:!1}])),[s,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)({name:"",company:"",email:"",phone:""});return(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsx)(iM,{children:(0,Le.jsx)(rM,{className:"text-lg font-display",children:"Referral"})}),(0,Le.jsx)(oM,{children:(0,Le.jsx)("div",{className:"space-y-4",children:(0,Le.jsx)("h3",{className:"text-center",children:"Coming Soon"})})})]})},LV=["scope","children"];function BV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t[0];if(1===t.length)return i;const r=()=>{const e=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const n=e.reduce(((e,n)=>
2{let{useScope:i,scopeName:r}=n;const a=i(t)["__scope".concat(r)];return Je(Je({},e),a)}),{});return o.useMemo((()=>({["__scope".concat(i.scopeName)]:n})),[n])}};return r.scopeName=i.scopeName,r}const WV=["asChild"];var zV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=UE("Primitive.".concat(t)),i=o.forwardRef(((e,i)=>{const{asChild:r}=e,a=Xe(e,WV),o=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Le.jsx)(o,Je(Je({},a),{},{ref:i}))}));return i.displayName="Primitive.".concat(t),Je(Je({},e),{},{[t]:i})}),{});const VV=["__scopeProgress","value","max","getValueLabel"],HV=["__scopeProgress"];var qV="Progress",GV=100,[YV,XV]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const i=()=>{const t=n.map((e=>o.createContext(e)));return function(n){const i=(null===n||void 0===n?void 0:n[e])||t;return o.useMemo((()=>({["__scope".concat(e)]:Je(Je({},n),{},{[e]:i})})),[n,i])}};return i.scopeName=e,[function(t,i){const r=o.createContext(i);r.displayName=t+"Context";const a=n.length;n=[...n,i];const s=t=>{var n;const{scope:i,children:s}=t,l=Xe(t,LV),c=(null===i||void 0===i||null===(n=i[e])||void 0===n?void 0:n[a])||r,u=o.useMemo((()=>l),Object.values(l));return(0,Le.jsx)(c.Provider,{value:u,children:s})};return s.displayName=t+"Provider",[s,function(n,s){var l;const c=(null===s||void 0===s||null===(l=s[e])||void 0===l?void 0:l[a])||r,u=o.useContext(c);if(u)return u;if(void 0!==i)return i;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},BV(i,...t)]}(qV),[KV,$V]=YV(qV),QV=o.forwardRef(((e,t)=>{const{__scopeProgress:n,value:i=null,max:r,getValueLabel:a=eH}=e,o=Xe(e,VV);var s,l;!r&&0!==r||iH(r)||console.error((s="".concat(r),l="Progress","Invalid prop `max` of value `".concat(s,"` supplied to `").concat(l,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(GV,"`.")));const c=iH(r)?r:GV;null===i||rH(i,c)||console.error(function(e,t){return"Invalid prop `value` of value `".concat(e,"` supplied to `").concat(t,"`. The `value` prop must be:\n  - a positive number\n  - less than the value passed to `max` (or ").concat(GV," if no `max` prop is set)\n  - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")}("".concat(i),"Progress"));const u=rH(i,c)?i:null,d=nH(u)?a(u,c):void 0;return(0,Le.jsx)(KV,{scope:n,value:u,max:c,children:(0,Le.jsx)(zV.div,Je(Je({"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":nH(u)?u:void 0,"aria-valuetext":d,role:"progressbar","data-state":tH(u,c),"data-value":null!==u&&void 0!==u?u:void 0,"data-max":c},o),{},{ref:t}))})}));QV.displayName=qV;var ZV="ProgressIndicator",JV=o.forwardRef(((e,t)=>{var n;const{__scopeProgress:i}=e,r=Xe(e,HV),a=$V(ZV,i);return(0,Le.jsx)(zV.div,Je(Je({"data-state":tH(a.value,a.max),"data-value":null!==(n=a.value)&&void 0!==n?n:void 0,"data-max":a.max},r),{},{ref:t}))}));function eH(e,t){return"".concat(Math.round(e/t*100),"%")}function tH(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function nH(e){return"number"===typeof e}function iH(e){return nH(e)&&!isNaN(e)&&e>0}function rH(e,t){return nH(e)&&!isNaN(e)&&e<=t&&e>=0}JV.displayName=ZV;var aH=QV,oH=JV;const sH=["className","value"],lH=o.forwardRef(((e,t)=>{let{className:n,value:i=0}=e,r=Xe(e,sH);return(0,Le.jsx)(aH,Je(Je({ref:t,className:ON("relative h-4 w-full overflow-hidden rounded-full bg-secondary",n)},r),{},{children:(0,Le.jsx)(oH,{className:"h-full w-full flex-1 bg-primary transition-transform duration-300",style:{transform:"translateX(-".concat(100-(i||0),"%)")}})}))}));lH.displayName=aH.displayName;const cH="https://printlogs-17738dc65798.herokuapp.com/bizVantage/assessments",uH=()=>{const e=re(),{t:t}=qe(),[n,i]=(0,o.useState)(!1),[r,a]=(0,o.useState)(!1),[s,l]=(0,o.useState)("Core"),[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(!1),[f,p]=(0,o.useState)(""),[g,m]=(0,o.useState)({companyName:"",address1:"",address2:"",city:"",stateProv:"",country:"CA",vertical:"Vertical 1",keyContact:"",phone:"",email:"",position:"Owner"}),[v,b]=(0,o.useState)([]),[y,x]=(0,o.useState)([]),[w,_]=(0,o.useState)(!0),[D,S]=(0,o.useState)(""),k=(0,o.useMemo)((()=>{try{const e=localStorage.getItem("bv.registerResponse");if(!e)return null;const t=JSON.parse(e);return(null===t||void 0===t?void 0:t.authToken)||null}catch(e){return null}}),[]),C=(0,o.useMemo)((()=>{try{const e=localStorage.getItem("bv.registerResponse");return e?JSON.parse(e):null}catch(e){return null}}),[]),A=(0,o.useMemo)((()=>{var e;return C&&((null===C||void 0===C?void 0:C.userId)||(null===C||void 0===C?void 0:C._id)||(null===C||void 0===C||null===(e=C.user)||void 0===e?void 0:e._id))||null}),[C]),T=(0,o.useMemo)((()=>{var e,t;return(null===C||void 0===C?void 0:C.email)||(null===C||void 0===C||null===(e=C.user)||void 0===e?void 0:e.email)||(null===C||void 0===C||null===(t=C.data)||void 0===t?void 0:t.email)||""}),[C]),E=(0,o.useMemo)((()=>{var e,t;return(null===C||void 0===C?void 0:C.fullName)||(null===C||void 0===C||null===(e=C.user)||void 0===e?void 0:e.fullName)||(null===C||void 0===C||null===(t=C.data)||void 0===t?void 0:t.fullName)||""}),[C]),N=(0,o.useMemo)((()=>{var e,t;return(null===C||void 0===C?void 0:C.phone)||(null===C||void 0===C||null===(e=C.user)||void 0===e?void 0:e.phone)||(null===C||void 0===C||null===(t=C.data)||void 0===t?void 0:t.phone)||""}),[C]),M=(0,o.useMemo)((()=>void 0||"122Codeman!"),[]),P=(0,o.useMemo)((()=>{try{var e;const t=localStorage.getItem("bv.registerResponse");if(!t)return"User";const n=JSON.parse(t);return(null===n||void 0===n?void 0:n.fullName)||(null===n||void 0===n||null===(e=n.user)||void 0===e?void 0:e.fullName)||"User"}catch(t){return"User"}}),[]),U=(0,o.useMemo)((()=>{try{var e;const t=localStorage.getItem("bv.registerResponse");if(!t)return"CORE";const n=JSON.parse(t);return(null===n||void 0===n?void 0:n.planOption)||(null===n||void 0===n||null===(e=n.user)||void 0===e?void 0:e.planOption)||"CORE"}catch(t){return"CORE"}}),[]),j=(0,o.useCallback)((async()=>{S(""),_(!0);try{if(!k)return S(t("Not authorized. Please log in.")),b([]),void x([]);const n=await fetch(cH,{method:"POST",headers:{"Content-Type":"application/json",authorization:k},body:JSON.stringify({})}),i=await n.json().catch((()=>({})));if(!1===(null===i||void 0===i?void 0:i.success))return void e("/");if(!n.ok)throw new Error((null===i||void 0===i?void 0:i.message)||"Request failed (".concat(n.status,")"));const{activeList:r,completedList:a}=function(e){if(e&&Array.isArray(e.active)&&Array.isArray(e.completed))return{activeList:e.active,completedList:e.completed};if(Array.isArray(e)){return{activeList:e.filter((e=>{var t,n;return"active"===(null!==(t=null!==(n=null===e||void 0===e?void 0:e.status)&&void 0!==n?n:null===e||void 0===e?void 0:e.state)&&void 0!==t?t:"").toString().toLowerCase()||!0===(null===e||void 0===e?void 0:e.isActive)||!1===(null===e||void 0===e?void 0:e.isCompleted)})),completedList:e.filter((e=>{var t,n;return"completed"===(null!==(t=null!==(n=null===e||void 0===e?void 0:e.status)&&void 0!==n?n:null===e||void 0===e?void 0:e.state)&&void 0!==t?t:"").toString().toLowerCase()||!0===(null===e||void 0===e?void 0:e.isCompleted)||!0===(null===e||void 0===e?void 0:e.completed)}))}}return{activeList:[],completedList:[]}}(i);b(r.map((e=>{var t;return{id:e._id||e.id||e.companyName||Math.random().toString(),company:e.companyName||e.title||"Untitled",progress:null!==(t=e.progress)&&void 0!==t?t:0,assessmentId:e.assessmentId,interviewees:Array.isArray(e.interviewees)?e.interviewees:[]}}))),x(a.map((e=>({id:e._id||e.id||e.companyName||Math.random().toString(),company:e.companyName||e.title||"Untitled"}))))}catch(eQ){S(eQ.message||t("Failed to fetch assessments."))}finally{_(!1)}}),[k]);(0,o.useEffect)((()=>{j()}),[j]);const F=v.filter((e=>e.interviewees.filter((e=>0===(Array.isArray(e.files)?e.files:[]).length)).length>0)),R=[{label:t("dashboard.activeAssessments"),value:String(v.length),icon:Iz,change:t("dashboard.currentlyInProgress")},{label:t("dashboard.completed"),value:String(y.length),icon:Lz,change:t("dashboard.allTime")},{label:t("dashboard.total"),value:String(v.length+y.length),icon:Bz,change:t("dashboard.allAssessments")}
2],O=(0,o.useCallback)((async()=>{var t;if(!k)return void S("Not authorized. Please log in.");if(!g.companyName.trim())return void S("Company Name is required.");const n=g.companyName.replace(/[^a-zA-Z0-9]/g," ").replace(/\s+/g," ").trim(),r={companyName:null===n||void 0===n||null===(t=n.toUpperCase())||void 0===t?void 0:t.trim(),address1:g.address1.trim(),address2:g.address2.trim(),city:g.city.trim(),state:g.stateProv,country:g.country,vertical:g.vertical,keyContact:g.keyContact.trim(),phone:g.phone.trim(),email:g.email.trim(),position:g.position};try{_(!0);const t=await fetch(cH,{method:"PUT",headers:{"Content-Type":"application/json",authorization:k},body:JSON.stringify(r)}),n=await t.json().catch((()=>({})));null!==n&&void 0!==n&&n.success?(j(),i(!1),m({companyName:"",address1:"",address2:"",city:"",stateProv:"",country:"CA",vertical:"Vertical 1",keyContact:"",phone:"",email:"",position:"Owner"}),e("/assessments")):S((null===n||void 0===n?void 0:n.message)||"Failed to save assessment.")}catch(eQ){S(eQ.message||"Failed to save assessment.")}finally{_(!1)}}),[k,j,e,g]);return(0,Le.jsxs)(Oz,{children:[w&&(0,Le.jsx)(tl,{}),(0,Le.jsxs)("div",{className:"max-w-6xl mx-auto space-y-8",children:[(0,Le.jsxs)("div",{className:"rounded-xl bg-sidebar p-8 text-sidebar-foreground flex items-center gap-6",children:[(0,Le.jsx)("img",{src:DE,alt:"BizVantage",className:"h-20 w-auto object-contain brightness-0 invert"}),(0,Le.jsx)("p",{className:"text-xl italic text-sidebar-foreground/80 font-display",children:t("dashboard.aimHigher")})]}),(0,Le.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Le.jsxs)("h1",{className:"text-3xl font-bold font-display tracking-tight text-foreground",children:[t("dashboard.title")," \u2014 ",P]}),(0,Le.jsx)(cM,{className:"bg-black text-white border-black text-base font-bold px-2.5 py-0.5",children:U})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-4",children:[R.map((e=>(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)] hover:shadow-[var(--card-shadow-hover)] transition-shadow",children:[(0,Le.jsxs)(iM,{className:"flex flex-row items-center justify-between pb-2",children:[(0,Le.jsx)(rM,{className:"text-sm font-medium text-muted-foreground",children:e.label}),(0,Le.jsx)(e.icon,{className:"h-4 w-4 text-accent"})]}),(0,Le.jsxs)(oM,{children:[(0,Le.jsx)("div",{className:"text-2xl font-bold font-display",children:e.value}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.change})]})]},e.label))),(0,Le.jsxs)(Uj,{open:n,onOpenChange:i,children:[(0,Le.jsx)("div",{onClick:async()=>{if(p(""),k)try{h(!0);const e=A?{userId:A}:{},t=await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/user/subscriptionCheck",e,{headers:{"Content-Type":"application/json",authorization:k}}),n=(null===t||void 0===t?void 0:t.data)||{};if(null!==n&&void 0!==n&&n.subscribed)return void i(!0);a(!0)}catch(tQ){var t,n,r;console.error("subscription check error",(null===tQ||void 0===tQ?void 0:tQ.response)||tQ);const o=(null===tQ||void 0===tQ||null===(t=tQ.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message)||(null===tQ||void 0===tQ?void 0:tQ.message)||"Unable to validate subscription.";if(401===(null===tQ||void 0===tQ||null===(r=tQ.response)||void 0===r?void 0:r.status)||String(o).toLowerCase().includes("unauthorized"))return void e("/");p(o),a(!0)}finally{h(!1)}else S("Not authorized. Please log in.")},className:"cursor-pointer",children:(0,Le.jsx)(nM,{className:"shadow-[var(--card-shadow)] hover:shadow-[var(--card-shadow-hover)] transition-shadow h-full flex flex-col items-center justify-center border-dashed",children:(0,Le.jsxs)(oM,{className:"flex flex-col items-center justify-center py-6 gap-2",children:[(0,Le.jsx)("div",{className:"h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Le.jsx)(Wz,{className:"h-5 w-5 text-primary"})}),(0,Le.jsx)("span",{className:"text-sm font-medium",children:t(d?"dashboard.checking":"dashboard.newAssessment")})]})})}),(0,Le.jsxs)(Rj,{children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:t("dashboard.createNewAssessment")})}),(0,Le.jsxs)("div",{className:"space-y-4 py-2",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"companyName",children:t("form.companyName")}),(0,Le.jsx)(zN,{id:"companyName",value:g.companyName,onChange:e=>m((t=>Je(Je({},t),{},{companyName:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"address1",children:t("form.address1")}),(0,Le.jsx)(zN,{id:"address1",value:g.address1,onChange:e=>m((t=>Je(Je({},t),{},{address1:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"address2",children:t("form.address2")}),(0,Le.jsx)(zN,{id:"address2",value:g.address2,onChange:e=>m((t=>Je(Je({},t),{},{address2:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"city",children:t("form.city")}),(0,Le.jsx)(zN,{id:"city",value:g.city,onChange:e=>m((t=>Je(Je({},t),{},{city:e.target.value}))),maxLength:60})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"stateProv",children:t("form.stateProv")}),(0,Le.jsx)(zN,{id:"stateProv",value:g.stateProv,onChange:e=>m((t=>Je(Je({},t),{},{stateProv:e.target.value}))),maxLength:60})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"country",children:t("form.country")}),(0,Le.jsx)(zN,{id:"country",value:g.country,onChange:e=>m((t=>Je(Je({},t),{},{country:e.target.value}))),maxLength:60})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"vertical",children:t("form.vertical")}
2),(0,Le.jsx)(zN,{id:"vertical",value:g.vertical,onChange:e=>m((t=>Je(Je({},t),{},{vertical:e.target.value}))),maxLength:60})]})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"keyContact",children:t("form.keyContact")}),(0,Le.jsx)(zN,{id:"keyContact",value:g.keyContact,onChange:e=>m((t=>Je(Je({},t),{},{keyContact:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"position",children:t("form.position")}),(0,Le.jsx)(zN,{id:"position",value:g.position,onChange:e=>m((t=>Je(Je({},t),{},{position:e.target.value}))),maxLength:60})]})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"email",children:t("form.contactEmail")}),(0,Le.jsx)(zN,{id:"email",type:"email",value:g.email,onChange:e=>m((t=>Je(Je({},t),{},{email:e.target.value}))),maxLength:255})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"phone",children:t("form.contactPhone")}),(0,Le.jsx)(zN,{id:"phone",type:"tel",value:g.phone,onChange:e=>m((t=>Je(Je({},t),{},{phone:e.target.value}))),maxLength:20})]})]})]}),(0,Le.jsx)(BN,{onClick:O,disabled:!g.companyName.trim()||!g.email.trim(),className:"w-full",children:t("Create Assessment")})]})]}),(0,Le.jsx)(Uj,{open:r,onOpenChange:a,children:(0,Le.jsxs)(Rj,{className:"max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:t("dashboard.subscriptionRequired")})}),(0,Le.jsxs)("div",{className:"space-y-4 text-sm text-muted-foreground",children:[(0,Le.jsx)("p",{children:t("dashboard.subscriptionInfo")}),(0,Le.jsx)("p",{children:t("dashboard.selectPlan")}),(0,Le.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:[{label:"Core",description:"$2,250/qtr"},{label:"Pro",description:"$4,500/qtr"}].map((e=>(0,Le.jsxs)("button",{type:"button",onClick:()=>l(e.label),className:"rounded-lg border p-4 text-left transition-colors ".concat(s===e.label?"border-primary bg-primary/5":"border-border bg-background/80 hover:border-primary"),children:[(0,Le.jsx)("p",{className:"font-semibold",children:e.label}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description})]},e.label)))}),f?(0,Le.jsx)("p",{className:"text-sm text-destructive",children:f}):null]}),(0,Le.jsxs)(Ij,{className:"pt-4",children:[(0,Le.jsx)(BN,{variant:"outline",onClick:()=>a(!1),children:t("common.cancel")}),(0,Le.jsx)(BN,{onClick:async()=>{if(p(""),T&&E)try{u(!0);const e=null!==C&&void 0!==C&&C.password&&M?Ye().AES.encrypt(C.password,M).toString():void 0,t=Je({fullName:E.trim(),phone:N.trim(),planOption:s,email:T.trim(),currency:"USD"},e?{password:e}:{});localStorage.setItem("bv.pendingSignup",JSON.stringify(t));const n=await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/create-subscription-session",t,{headers:{"Content-Type":"application/json"}}),i=(null===n||void 0===n?void 0:n.data)||{};if(null!==i&&void 0!==i&&i.url)return a(!1),u(!1),void(window.location.href=i.url);p("Unable to start checkout. Please try again later."),localStorage.removeItem("bv.pendingSignup")}catch(tQ){var e,t;console.error("create session error",(null===tQ||void 0===tQ?void 0:tQ.response)||tQ);const i=(null===tQ||void 0===tQ||null===(e=tQ.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.message)||(null===tQ||void 0===tQ?void 0:tQ.message)||"Failed to create checkout session.";p(i),localStorage.removeItem("bv.pendingSignup")}finally{u(!1)}else p("Missing account information.")},disabled:c,children:c?t("dashboard.startingCheckout"):"".concat(t("dashboard.select")," ").concat(s)})]})]})})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 items-start",children:[(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)] h-full",children:[(0,Le.jsx)(iM,{children:(0,Le.jsx)(rM,{className:"text-lg font-display",children:t("Active Assessments")})}),(0,Le.jsx)(oM,{children:(0,Le.jsx)("div",{className:"space-y-3",children:0===v.length?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:t("No assessments found.")}):v.map((e=>(0,Le.jsxs)(je,{to:"/assessment/".concat(e.assessmentId),className:"flex items-center justify-between rounded-lg border p-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[(0,Le.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Le.jsx)("p",{className:"font-medium text-sm",children:e.company}),(()=>{const n=e.interviewees.length||0,i=e.interviewees.filter((e=>(Array.isArray(e.files)?e.files:[]).length>0)).length,r=0===n?0:Math.round(i/n*100);return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(lH,{value:r,className:"h-1.5 mt-2 w-3/4"}),(0,Le.jsxs)("p",{className:"text-[11px] text-muted-foreground mt-1",children:[r,"% ",t("dashboard.complete")]})]})})()]}),(0,Le.jsxs)(cM,{variant:"secondary",className:"text-[11px] font-normal shrink-0 ml-3",children:[e.interviewees.length," ",t("dashboard.interviewee"),1!==e.interviewees.length?"s":""]})]},e.id)))})})]}),(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)] h-full",children:[(0,Le.jsx)(iM,{children:(0,Le.jsx)(rM,{className:"text-lg font-display text-red-400",children:t("Needs Attention")})}),(0,Le.jsx)(oM,{children:(0,Le.jsx)("div",{className:"space-y-3",children:0===F.length?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground py-4 text-center",children:t("Nothing needs attention right now.")}):F.map((e=>{const n=e.interviewees.filter((e=>0===(Array.isArray(e.files)?e.files:[]).length)).length;return(0,Le.jsx)(je,{to:"/assessment/".concat(e.assessmentId),className:"block rounded-lg border p-4 items-center transition-colors cursor-pointer hover:bg-muted/50",children:(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"font-medium text-sm",children:e.company}),(0,Le.jsx)("div",{className:"mt-1 space-y-0.5",children:n>0&&(0,Le.jsxs)("p",{className:"text-[11px] text-amber-500",children:[n," ",t("dashboard.missingFiles")]})})]})},e.id)}))})})]})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Le.jsx)(Kz,{}),(0,Le.jsx)(IV,{})]})]})]})};const dH=n.p+"static/media/assessments-bg.296eaf0c0d09e1d01a7b.png",hH=xM("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),fH="https://printlogs-17738dc65798.herokuapp.com/bizVantage/assessments",pH=()=>{const e=re(),{t:t}=qe(),[n,i]=(0,o.useState)("active"),[r,a]=(0,o.useState)([]),[s,l]=(0,o.useState)([]),[c,u]=(0,o.useState)([]),[d,h]=(0,o.useState)([]),[f,p]=(0,o.useState)(!0),[g,m]=(0,o.useState)(""),[v,b]=(0,o.useState)(!1),[y,x]=(0,o.useState)(!1),[w,_]=(0,o.useState)("Core"),[D,S]=(0,o.useState)(!1),[k,C]=(0,o.useState)(!1),[A,T]=(0,o.useState)(""),[E,N]=(0,o.useState)({open:!1,id:null,company:""}),[M,P]=(0,o.useState)({companyName:"",address1:"",address2:"",city:"",stateProv:"",country:"CA",vertical:"Vertical 1",keyContact:"",contactTitle:"",phone:"",email:"",position:"Owner"}),U=(0,o.useCallback)((e=>{switch(e){case"completed":return t("status.completed");
2case"ai-workflow-completed":return t("status.aiWorkflowCompleted");case"ai-policies-completed":return t("status.aiPoliciesCompleted");default:return t("status.active")}}),[t]),j=(0,o.useMemo)((()=>{try{const e=localStorage.getItem("bv.registerResponse");if(!e)return null;const t=JSON.parse(e);return(null===t||void 0===t?void 0:t.authToken)||null}catch(e){return null}}),[]),F=(0,o.useMemo)((()=>{try{const e=localStorage.getItem("bv.registerResponse");return e?JSON.parse(e):null}catch(e){return null}}),[]),R=(0,o.useMemo)((()=>{var e;return F&&((null===F||void 0===F?void 0:F.userId)||(null===F||void 0===F?void 0:F._id)||(null===F||void 0===F||null===(e=F.user)||void 0===e?void 0:e._id))||null}),[F]),O=(0,o.useMemo)((()=>{var e,t;return(null===F||void 0===F?void 0:F.email)||(null===F||void 0===F||null===(e=F.user)||void 0===e?void 0:e.email)||(null===F||void 0===F||null===(t=F.data)||void 0===t?void 0:t.email)||""}),[F]),I=(0,o.useMemo)((()=>{var e,t;return(null===F||void 0===F?void 0:F.fullName)||(null===F||void 0===F||null===(e=F.user)||void 0===e?void 0:e.fullName)||(null===F||void 0===F||null===(t=F.data)||void 0===t?void 0:t.fullName)||""}),[F]),L=(0,o.useMemo)((()=>{var e,t;return(null===F||void 0===F?void 0:F.phone)||(null===F||void 0===F||null===(e=F.user)||void 0===e?void 0:e.phone)||(null===F||void 0===F||null===(t=F.data)||void 0===t?void 0:t.phone)||""}),[F]),B=(0,o.useMemo)((()=>void 0||"122Codeman!"),[]),W=(0,o.useCallback)((async()=>{m(""),p(!0);try{if(!j)return m(t("Not authorized. Please log in.")),a([]),void h([]);const n=await fetch(fH,{method:"POST",headers:{"Content-Type":"application/json",authorization:j},body:JSON.stringify({})}),i=await n.json().catch((()=>({})));if(!1===(null===i||void 0===i?void 0:i.success))return void e("/");if(!n.ok)throw new Error((null===i||void 0===i?void 0:i.message)||"Request failed (".concat(n.status,")"));const r=i&&Array.isArray(i.active)&&Array.isArray(i.completed)?[...i.active,...i.completed]:Array.isArray(i)?i:[],o=e=>{const n=Array.isArray(e.interviewees)?e.interviewees:[],i=!0===e.aiAssessmentCompleted,r=!0===e.aiPolicyAssessmentCompleted;let a="active";return i&&r?a="completed":i?a="ai-workflow-completed":r&&(a="ai-policies-completed"),{id:e._id||e.id||e.assessmentId||e.companyName||Math.random().toString(),assessmentId:e.assessmentId||e._id||e.id,company:e.companyName||e.title||t("Untitled"),contact:e.keyContact||e.contact||"",interviewees:n,progress:gH(n),status:a}},s=[],c=[],d=[],f=[];r.forEach((e=>{const t=o(e);switch(t.status){case"ai-workflow-completed":c.push(t);break;case"ai-policies-completed":d.push(t);break;case"completed":f.push(t);break;default:s.push(t)}})),a(s),l(c),u(d),h(f)}catch(eQ){m(eQ.message||t("Failed to fetch assessments."))}finally{p(!1)}}),[j,e,t]);(0,o.useEffect)((()=>{W()}),[W]);const z=(0,o.useCallback)((async()=>{var n;if(!j)return void m(t("Not authorized. Please log in."));if(!M.companyName.trim())return void m(t("assessments.companyNameRequired"));const i=M.companyName.replace(/[^a-zA-Z0-9]/g," ").replace(/\s+/g," ").trim(),r={companyName:null===i||void 0===i||null===(n=i.toUpperCase())||void 0===n?void 0:n.trim(),address1:M.address1.trim(),address2:M.address2.trim(),city:M.city.trim(),state:M.stateProv,country:M.country,vertical:M.vertical,keyContact:M.keyContact.trim(),phone:M.phone.trim(),email:M.email.trim(),position:M.position};try{b(!1),p(!0);const n=await fetch(fH,{method:"PUT",headers:{"Content-Type":"application/json",authorization:j},body:JSON.stringify(r)}),i=await n.json().catch((()=>({})));if(!1===(null===i||void 0===i?void 0:i.success))return void e("/");if(!n.ok)throw new Error((null===i||void 0===i?void 0:i.message)||t("assessments.failedToSaveAssessment"));await W(),P({companyName:"",address1:"",address2:"",city:"",stateProv:"",country:"CA",vertical:"Vertical 1",keyContact:"",contactTitle:"",phone:"",email:"",position:"Owner"}),b(!1)}catch(eQ){m(eQ.message||t("assessments.failedToSaveAssessment"))}finally{p(!1)}}),[j,W,e,M,t]),V=(0,o.useCallback)((async e=>{if(j)if(e)try{p(!0);const t=await fetch(fH,{method:"DELETE",headers:{"Content-Type":"application/json",authorization:j},body:JSON.stringify({assessmentId:e})});await t.json().catch((()=>({}))),await W()}catch(eQ){m(eQ.message||t("assessments.failedToDeleteAssessment"))}finally{p(!1)}else m(t("assessments.missingAssessmentId"));else m(t("assessments.notAuthorized"))}),[j,W,t]),H=(0,o.useMemo)((()=>
2{switch(n){case"ai-workflow":return s;case"ai-policies":return c;case"completed":return d;default:return r}}),[n,r,s,c,d]);return(0,Le.jsxs)(Oz,{backgroundImage:dH,children:[(0,Le.jsxs)("div",{className:"max-w-6xl mx-auto space-y-6",children:[(0,Le.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h1",{className:"text-3xl font-bold font-display tracking-tight text-foreground",children:t("Assessments")}),(0,Le.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:t("assessments.manageAllCompanyAssessments")})]}),(0,Le.jsxs)(Uj,{open:v,onOpenChange:b,children:[(0,Le.jsx)(BN,{className:"gap-1",onClick:async()=>{if(T(""),j)try{C(!0);const e=R?{userId:R}:{},t=await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/user/subscriptionCheck",e,{headers:{"Content-Type":"application/json",authorization:j}}),n=(null===t||void 0===t?void 0:t.data)||{};if(null!==n&&void 0!==n&&n.subscribed)return void b(!0);x(!0)}catch(tQ){var n,i,r;console.error("subscription check error",(null===tQ||void 0===tQ?void 0:tQ.response)||tQ);const o=(null===tQ||void 0===tQ||null===(n=tQ.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.message)||(null===tQ||void 0===tQ?void 0:tQ.message)||t("assessments.unableToValidateSubscription");if(401===(null===tQ||void 0===tQ||null===(r=tQ.response)||void 0===r?void 0:r.status)||String(o).toLowerCase().includes("unauthorized"))return void e("/");T(o),x(!0)}finally{C(!1)}else m(t("Not authorized. Please log in."))},disabled:k,children:t(k?"dashboard.checking":"Create Assessment")}),(0,Le.jsxs)(Rj,{children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:t("dashboard.createNewAssessment")})}),(0,Le.jsxs)("div",{className:"space-y-4 py-2",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"companyName",children:t("form.companyName")}),(0,Le.jsx)(zN,{id:"companyName",value:M.companyName,onChange:e=>P((t=>Je(Je({},t),{},{companyName:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"address1",children:t("form.address1")}),(0,Le.jsx)(zN,{id:"address1",value:M.address1,onChange:e=>P((t=>Je(Je({},t),{},{address1:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"address2",children:t("form.address2")}),(0,Le.jsx)(zN,{id:"address2",value:M.address2,onChange:e=>P((t=>Je(Je({},t),{},{address2:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"city",children:t("form.city")}),(0,Le.jsx)(zN,{id:"city",value:M.city,onChange:e=>P((t=>Je(Je({},t),{},{city:e.target.value}))),maxLength:60})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"stateProv",children:t("form.stateProv")}),(0,Le.jsx)(zN,{id:"stateProv",value:M.stateProv,onChange:e=>P((t=>Je(Je({},t),{},{stateProv:e.target.value}))),maxLength:60})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"country",children:t("form.country")}),(0,Le.jsx)(zN,{id:"country",value:M.country,onChange:e=>P((t=>Je(Je({},t),{},{country:e.target.value}))),maxLength:60})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"vertical",children:t("form.vertical")}),(0,Le.jsx)(zN,{id:"vertical",value:M.vertical,onChange:e=>P((t=>Je(Je({},t),{},{vertical:e.target.value}))),maxLength:60})]})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"keyContact",children:t("form.keyContact")}),(0,Le.jsx)(zN,{id:"keyContact",value:M.keyContact,onChange:e=>P((t=>Je(Je({},t),{},{keyContact:e.target.value}))),maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"position",children:t("form.position")}),(0,Le.jsx)(zN,{id:"position",value:M.position,onChange:e=>P((t=>Je(Je({},t),{},{position:e.target.value}))),maxLength:60})]})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"email",children:t("form.contactEmail")}),(0,Le.jsx)(zN,{id:"email",type:"email",value:M.email,onChange:e=>P((t=>Je(Je({},t),{},{email:e.target.value}))),maxLength:255})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"phone",children:t("form.contactPhone")}),(0,Le.jsx)(zN,{id:"phone",type:"tel",value:M.phone,onChange:e=>P((t=>Je(Je({},t),{},{phone:e.target.value}))),maxLength:20})]})]})]}),(0,Le.jsx)(BN,{onClick:z,disabled:!M.companyName.trim()||!M.email.trim(),className:"w-full",children:t("Create Assessment")})]})]})]}),(0,Le.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Le.jsxs)(BN,{variant:"active"===n?"default":"outline",onClick:()=>i("active"),className:"flex-1",children:[t("Active Assessments")," (",r.length,")"]}),(0,Le.jsxs)(BN,{variant:"ai-workflow"===n?"default":"outline",onClick:()=>i("ai-workflow"),className:"flex-1",children:[t("AI Workflow Completed")," (",s.length,")"]}),(0,Le.jsxs)(BN,{variant:"ai-policies"===n?"default":"outline",onClick:()=>i("ai-policies"),className:"flex-1",children:[t("AI Policies Completed")," (",c.length,")"]}),(0,Le.jsxs)(BN,{variant:"completed"===n?"default":"outline",onClick:()=>i("completed"),className:"flex-1",children:[t("Completed Assessments")," (",d.length,")"]})]}),f?(0,Le.jsx)("div",{className:"flex justify-center py-10",children:(0,Le.jsx)(tl,{})}):0===H.length?(0,Le.jsx)("div",{className:"text-center py-10 text-sm text-muted-foreground",children:t("No assessments yet")}):(0,Le.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:H.map((e=>(0,Le.jsx)(nM,{className:"shadow-[var(--card-shadow)] hover:shadow-[var(--card-shadow-hover)] transition-shadow h-full",children:(0,Le.jsx)(je,{to:"/assessment/".concat(e.assessmentId),className:"block",children:(0,Le.jsxs)(oM,{className:"pt-5 pb-4 space-y-3",children:[(0,Le.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Le.jsxs)("div",{className:"min-w-0",children:[(0,Le.jsx)("p",{className:"font-semibold font-display truncate",children:e.company}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:e.contact})]}),(0,Le.jsx)(cM,{className:"active"===e.status?"bg-green-600 text-white border-green-600 shrink-0 text-[11px]":"bg-blue-600 text-white border-blue-600 shrink-0 text-[11px]",children:U(e.status)})]}),(0,Le.jsx)(lH,{value:e.progress,className:"h-2 mt-3"}),(0,Le.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,Le.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.progress,"% ",t("dashboard.complete")]}),(0,Le.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.interviewees.length," ",t("Interviewees")]})]}),(0,Le.jsx)("div",{className:"flex justify-end pt-1",children:(0,Le.jsxs)(BN,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive hover:bg-destructive/10 gap-1 h-7 text-xs",onClick:t=>{t.preventDefault(),N({open:!0,id:e.assessmentId||e.id,company:e.company})},children:[(0,Le.jsx)(hH,{className:"h-3.5 w-3.5"}),t("Delete")]})})]})})},e.id)))}),(0,Le.jsxs)("footer",{className:"text-center text-xs text-muted-foreground py-4 border-t",children:["\xa9 ",(new Date).getFullYear()," GoWest.ai \u2014"," ",t("assessments.allRightsReserved")," \xb7"," ",(0,Le.jsx)("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"})]})]}),(0,Le.jsx)(Uj,{open:E.open,onOpenChange:e=>N((t=>Je(Je({},t),{},{open:e}))),children:(0,Le.jsxs)(Rj,{className:"max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:t("assessments.deleteAssessment")})}),(0,Le.jsxs)("p",{className:"text-sm text-muted-foreground",children:[t("assessments.deleteConfirmPrefix")," ",(0,Le.jsx)("span",{className:"font-semibold",children:E.company||t("assessments.thisCompany")}),t("assessments.deleteConfirmSuffix")]}),(0,Le.jsxs)(Ij,{className:"pt-4",children:[(0,Le.jsx)(BN,{variant:"outline",onClick:()=>N((e=>Je(Je({},e),{},{open:!1}))),children:t("Cancel")}),(0,Le.jsx)(BN,{variant:"destructive",onClick:()=>{E.id&&V(E.id),N({open:!1,id:null,company:""})},children:t("Delete")})]})]})}),(0,Le.jsx)(Uj,{open:y,onOpenChange:x,children:(0,Le.jsxs)(Rj,{className:"max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:t("dashboard.subscriptionRequired")})}),(0,Le.jsxs)("div",{className:"space-y-4 text-sm text-muted-foreground",children:[(0,Le.jsx)("p",{children:t("dashboard.subscriptionInfo")}),(0,Le.jsx)("p",{children:t("assessments.selectNewPlanToContinue")}),(0,Le.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:[{label:"Core",description:"$2,250/qtr"},{label:"Pro",description:"$4,500/qtr"}].map((e=>(0,Le.jsxs)("button",{type:"button",onClick:()=>_(e.label),className:"rounded-lg border p-4 text-left transition-colors ".concat(w===e.label?"border-primary bg-primary/5":"border-border bg-background/80 hover:border-primary"),children:[(0,Le.jsx)("p",{className:"font-semibold",children:e.label}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description})]},e.label)))}),A?(0,Le.jsx)("p",{className:"text-sm text-destructive",children:A}):null]}),(0,Le.jsxs)(Ij,{className:"pt-4",children:[(0,Le.jsx)(BN,{variant:"outline",onClick:()=>x(!1),children:t("Cancel")}),(0,Le.jsx)(BN,{onClick:async()=>
2{if(T(""),O&&I)try{S(!0);const e=null!==F&&void 0!==F&&F.password&&B?Ye().AES.encrypt(F.password,B).toString():void 0,n=Je({fullName:I.trim(),phone:L.trim(),planOption:w,email:O.trim(),currency:"USD"},e?{password:e}:{});localStorage.setItem("bv.pendingSignup",JSON.stringify(n));const i=await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/create-subscription-session",n,{headers:{"Content-Type":"application/json"}}),r=(null===i||void 0===i?void 0:i.data)||{};if(null!==r&&void 0!==r&&r.url)return x(!1),S(!1),void(window.location.href=r.url);T(t("assessments.unableToStartCheckout")),localStorage.removeItem("bv.pendingSignup")}catch(tQ){var e,n;console.error("create session error",(null===tQ||void 0===tQ?void 0:tQ.response)||tQ);const r=(null===tQ||void 0===tQ||null===(e=tQ.response)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)||(null===tQ||void 0===tQ?void 0:tQ.message)||t("assessments.failedToCreateCheckoutSession");T(r),localStorage.removeItem("bv.pendingSignup")}finally{S(!1)}else T(t("assessments.missingAccountInformation"))},disabled:D,children:D?t("dashboard.startingCheckout"):"".concat(t("common.select")," ").concat(w)})]})]})})]})};function gH(e){const t=e.length||0;if(0===t)return 0;const n=e.filter((e=>(Array.isArray(e.files)?e.files:[]).length>0)).length;return Math.round(n/t*100)}const mH=e=>{let{open:t,onOpenChange:n,assessment:i,defaultInterviewee:r}=e;const[a,s]=(0,o.useState)(r||""),[l,c]=(0,o.useState)(""),[u,d]=(0,o.useState)(""),[h,f]=(0,o.useState)(""),p=i.interviewees.filter((e=>e.actions.includes("schedule")));return(0,Le.jsx)(Uj,{open:t,onOpenChange:n,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"text-lg font-display",children:"Schedule Interview"})}),(0,Le.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:"Assessment"}),(0,Le.jsxs)(lW,{value:i.id,disabled:!0,children:[(0,Le.jsx)(uW,{children:(0,Le.jsx)(cW,{children:i.company})}),(0,Le.jsx)(dW,{children:(0,Le.jsx)(pW,{value:i.id,children:i.company})})]})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:"Interviewee"}),(0,Le.jsxs)(lW,{value:a,onValueChange:s,children:[(0,Le.jsx)(uW,{children:(0,Le.jsx)(cW,{placeholder:"Select interviewee"})}),(0,Le.jsx)(dW,{children:p.map((e=>(0,Le.jsxs)(pW,{value:e.name,children:[e.name," (",e.role,")"]},e.name)))})]})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:"Date"}),(0,Le.jsx)(zN,{type:"date",value:l,onChange:e=>c(e.target.value)})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:"Time"}),(0,Le.jsx)(zN,{type:"time",value:u,onChange:e=>d(e.target.value)})]})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:"Notes"}),(0,Le.jsx)(QI,{placeholder:"Discussion topics, preparation notes...",value:h,onChange:e=>f(e.target.value),rows:3})]}),(0,Le.jsx)(BN,{className:"w-full",onClick:()=>{n(!1)},children:"Schedule Interview"})]})]})})},vH=["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"],bH=["__scopeRovingFocusGroup","focusable","active","tabStopId","children"];var yH="rovingFocusGroup.onEntryFocus",xH={bubbles:!1,cancelable:!0},wH="RovingFocusGroup",[_H,DH,SH]=sL(wH),[kH,CH]=jM(wH,[SH]),[AH,TH]=kH(wH),EH=o.forwardRef(((e,t)=>(0,Le.jsx)(_H.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Le.jsx)(_H.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Le.jsx)(NH,Je(Je({},e),{},{ref:t}))})})));EH.displayName=wH;var NH=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:r=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1}=e,h=Xe(e,vH),f=o.useRef(null),p=AE(t,f),g=hL(a),[m,v]=WM({prop:s,defaultProp:null!==l&&void 0!==l?l:null,onChange:c,caller:wH}),[b,y]=o.useState(!1),x=QM(u),w=DH(n),_=o.useRef(!1),[D,S]=o.useState(0);return o.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(yH,x),()=>e.removeEventListener(yH,x)}),[x]),(0,Le.jsx)(AH,{scope:n,orientation:i,dir:g,loop:r,currentTabStopId:m,onItemFocus:o.useCallback((e=>v(e)),[v]),onItemShiftTab:o.useCallback((()=>y(!0)),[]),onFocusableItemAdd:o.useCallback((()=>S((e=>e+1))),[]),onFocusableItemRemove:o.useCallback((()=>S((e=>e-1))),[]),children:(0,Le.jsx)(KM.div,Je(Je({tabIndex:b||0===D?-1:0,"data-orientation":i},h),{},{ref:p,style:Je({outline:"none"},e.style),onMouseDown:MM(e.onMouseDown,(()=>{_.current=!0})),onFocus:MM(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(yH,xH);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>
2e.focusable));jH([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}_.current=!1})),onBlur:MM(e.onBlur,(()=>y(!1)))}))})})),MH="RovingFocusGroupItem",PH=o.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:r=!1,tabStopId:a,children:s}=e,l=Xe(e,bH),c=LM(),u=a||c,d=TH(MH,n),h=d.currentTabStopId===u,f=DH(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:m}=d;return o.useEffect((()=>{if(i)return p(),()=>g()}),[i,p,g]),(0,Le.jsx)(_H.ItemSlot,{scope:n,id:u,focusable:i,active:r,children:(0,Le.jsx)(KM.span,Je(Je({tabIndex:h?0:-1,"data-orientation":d.orientation},l),{},{ref:t,onMouseDown:MM(e.onMouseDown,(e=>{i?d.onItemFocus(u):e.preventDefault()})),onFocus:MM(e.onFocus,(()=>d.onItemFocus(u))),onKeyDown:MM(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const i=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(i)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)?void 0:UH[i]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const a=r.indexOf(e.currentTarget);r=d.loop?(i=a+1,(n=r).map(((e,t)=>n[(i+t)%n.length]))):r.slice(a+1)}setTimeout((()=>jH(r)))}var n,i})),children:"function"===typeof s?s({isCurrentTabStop:h,hasTabStop:null!=m}):s}))})}));PH.displayName=MH;var UH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jH(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.activeElement;for(const i of e){if(i===n)return;if(i.focus({preventScroll:t}),document.activeElement!==n)return}}var FH=EH,RH=PH;const OH=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"],IH=["__scopeTabs","loop"],LH=["__scopeTabs","value","disabled"],BH=["__scopeTabs","value","forceMount","children"];var WH="Tabs",[zH,VH]=jM(WH,[CH]),HH=CH(),[qH,GH]=zH(WH),YH=o.forwardRef(((e,t)=>{const{__scopeTabs:n,value:i,onValueChange:r,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic"}=e,c=Xe(e,OH),u=hL(s),[d,h]=WM({prop:i,onChange:r,defaultProp:null!==a&&void 0!==a?a:"",caller:WH});return(0,Le.jsx)(qH,{scope:n,baseId:LM(),value:d,onValueChange:h,orientation:o,dir:u,activationMode:l,children:(0,Le.jsx)(KM.div,Je(Je({dir:u,"data-orientation":o},c),{},{ref:t}))})}));YH.displayName=WH;var XH="TabsList",KH=o.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:i=!0}=e,r=Xe(e,IH),a=GH(XH,n),o=HH(n);return(0,Le.jsx)(FH,Je(Je({asChild:!0},o),{},{orientation:a.orientation,dir:a.dir,loop:i,children:(0,Le.jsx)(KM.div,Je(Je({role:"tablist","aria-orientation":a.orientation},r),{},{ref:t}))}))}));KH.displayName=XH;var $H="TabsTrigger",QH=o.forwardRef(((e,t)=>{const{__scopeTabs:n,value:i,disabled:r=!1}=e,a=Xe(e,LH),o=GH($H,n),s=HH(n),l=eq(o.baseId,i),c=tq(o.baseId,i),u=i===o.value;return(0,Le.jsx)(RH,Je(Je({asChild:!0},s),{},{focusable:!r,active:u,children:(0,Le.jsx)(KM.button,Je(Je({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l},a),{},{ref:t,onMouseDown:MM(e.onMouseDown,(e=>{r||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(i)})),onKeyDown:MM(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(i)})),onFocus:MM(e.onFocus,(()=>{const e="manual"!==o.activationMode;u||r||!e||o.onValueChange(i)}))}))}))}));QH.displayName=$H;var ZH="TabsContent",JH=o.forwardRef(((e,t)=>{const{__scopeTabs:n,value:i,forceMount:r,children:a}=e,s=Xe(e,BH),l=GH(ZH,n),c=eq(l.baseId,i),u=tq(l.baseId,i),d=i===l.value,h=o.useRef(d);return o.useEffect((()=>{const e=requestAnimationFrame((()=>h.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,Le.jsx)(DP,{present:r||d,children:n=>{let{present:i}=n;return(0,Le.jsx)(KM.div,Je(Je({"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!i,id:u,tabIndex:0},s),{},{ref:t,style:Je(Je({},e.style),{},{animationDuration:h.current?"0s":void 0}),children:i&&a}))}})}));function eq(e,t){return"".concat(e,"-trigger-").concat(t)}function tq(e,t){return"".concat(e,"-content-").concat(t)}JH.displayName=ZH;var nq=KH,iq=QH,rq=JH;const aq=["className"],oq=["className"],sq=["className"],lq=YH,cq=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,aq);return(0,Le.jsx)(nq,Je({ref:t,className:ON("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",n)},i))}));
2cq.displayName=nq.displayName;const uq=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,oq);return(0,Le.jsx)(iq,Je({ref:t,className:ON("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",n)},i))}));uq.displayName=iq.displayName;const dq=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,sq);return(0,Le.jsx)(rq,Je({ref:t,className:ON("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n)},i))}));dq.displayName=rq.displayName;const hq=xM("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);function fq(e){let{open:t,onOpenChange:n,onAdd:i}=e;const{t:r}=qe(),[a,s]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[u,d]=(0,o.useState)("Leadership"),[h,f]=(0,o.useState)(""),[p,g]=(0,o.useState)(""),[m,v]=(0,o.useState)(""),[b,y]=(0,o.useState)(""),[x,w]=(0,o.useState)("No"),[_,D]=(0,o.useState)([]),[S,k]=(0,o.useState)(""),C=(0,o.useRef)(null);return(0,Le.jsx)(Uj,{open:t,onOpenChange:n,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-2xl",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:r("Add Interviewees")})}),(0,Le.jsxs)(lq,{defaultValue:"single",className:"w-full",children:[(0,Le.jsxs)(dq,{value:"single",className:"space-y-4 mt-4",children:[(0,Le.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"interviewee-name",children:r("Name")}),(0,Le.jsx)(zN,{id:"interviewee-name",value:a,onChange:e=>s(e.target.value),placeholder:"John Smith",maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"interviewee-position",children:r("form.position")}),(0,Le.jsx)(zN,{id:"interviewee-position",value:b,onChange:e=>y(e.target.value),placeholder:"Manager",maxLength:100})]}),(0,Le.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,Le.jsx)(KN,{children:r("AI Policies & Guidelines")}),(0,Le.jsxs)("div",{className:"flex gap-3",children:[(0,Le.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,Le.jsx)("input",{type:"radio",name:"aiPolocyGuidelines",value:"Yes",checked:"Yes"===x,onChange:()=>w("Yes")}),r("Yes")]}),(0,Le.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,Le.jsx)("input",{type:"radio",name:"aiPolocyGuidelines",value:"No",checked:"No"===x,onChange:()=>w("No")}),r("No")]})]})]})]}),(0,Le.jsx)(BN,{onClick:()=>{a.trim()&&b.trim()?(i([{name:a.trim(),position:b.trim(),aiPolocyGuidelines:x}]),s(""),c(""),d("Leadership"),f(""),g(""),v(""),y(""),w("No"),n(!1)):Mz({title:r("Missing fields"),description:r("Name and Position are required."),variant:"destructive"})},disabled:!a.trim()||!b.trim(),className:"w-full",children:r("Add Interviewee")})]}),(0,Le.jsxs)(dq,{value:"csv",className:"space-y-4 mt-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:r("Upload CSV")}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:r("CSV format: Name, Role, Type, Email, Phone (one per row). First row can be a header.")}),(0,Le.jsx)("input",{ref:C,type:"file",accept:".csv",onChange:e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return;if(!n.name.endsWith(".csv"))return void Mz({title:r("Invalid file"),description:r("Please upload a CSV file."),variant:"destructive"});k(n.name);const i=new FileReader;i.onload=e=>{var t,n;const i=(null===(t=e.target)||void 0===t?void 0:t.result).split("\n").filter((e=>e.trim())),r=null!==(n=i[0])&&void 0!==n&&n.toLowerCase().includes("name")?1:0,a=i.slice(r).map((e=>{const t=e.split(",").map((e=>e.trim().replace(/^["']|["']$/g,"")));return{name:t[0]||"",role:t[1]||"",type:t[2]||"Leadership",email:t[3]||void 0,phone:t[4]||void 0}})).filter((e=>e.name));D(a)},i.readAsText(n)},className:"hidden"}),(0,Le.jsxs)(BN,{variant:"outline",className:"w-full gap-2",onClick:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.click()},children:[(0,Le.jsx)(hq,{className:"h-4 w-4"}),S||r("Choose CSV file")]})]}),_.length>0&&(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsxs)("p",{className:"text-sm font-medium",children:[_.length," ",r("interviewee(s) found"),":"]}),(0,Le.jsx)("div",{className:"max-h-40 overflow-auto rounded-md border p-2 space-y-1",children:_.map(((e,t)=>(0,Le.jsxs)("div",{className:"text-xs text-muted-foreground",children:[e.name," \u2014 ",e.role," (",e.type,")",e.email?" \xb7 ".concat(e.email):"",e.phone?" \xb7 ".concat(e.phone):""]},t)))})]}),(0,Le.jsxs)(BN,{onClick:()=>{0!==_.length&&(i(_),D([]),k(""),n(!1))},disabled:0===_.length,className:"w-full",children:[r("Add")," ",_.length," ",r("Interviewees")]})]})]})]})})}const pq=xM("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),gq=xM("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),mq=xM("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),vq=["__scopeScrollArea","type","dir","scrollHideDelay"],bq=["__scopeScrollArea","children","nonce"],yq=["forceMount"],xq=["forceMount"],wq=["forceMount"],_q=["forceMount"],Dq=["orientation"],Sq=["sizes","onSizesChange"],kq=["sizes","onSizesChange"],Cq=["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"],Aq=["forceMount"],Tq=["__scopeScrollArea","style"],Eq=["__scopeScrollArea"];var Nq="ScrollArea",[Mq,Pq]=jM(Nq),[Uq,jq]=Mq(Nq),Fq=o.forwardRef(((e,t)=>{const{__scopeScrollArea:n,type:i="hover",dir:r,scrollHideDelay:a=600}
2=e,s=Xe(e,vq),[l,c]=o.useState(null),[u,d]=o.useState(null),[h,f]=o.useState(null),[p,g]=o.useState(null),[m,v]=o.useState(null),[b,y]=o.useState(0),[x,w]=o.useState(0),[_,D]=o.useState(!1),[S,k]=o.useState(!1),C=AE(t,(e=>c(e))),A=hL(r);return(0,Le.jsx)(Uq,{scope:n,type:i,dir:A,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:d,content:h,onContentChange:f,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:D,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:S,onScrollbarYEnabledChange:k,onCornerWidthChange:y,onCornerHeightChange:w,children:(0,Le.jsx)(KM.div,Je(Je({dir:A},s),{},{ref:C,style:Je({position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px"},e.style)}))})}));Fq.displayName=Nq;var Rq="ScrollAreaViewport",Oq=o.forwardRef(((e,t)=>{const{__scopeScrollArea:n,children:i,nonce:r}=e,a=Xe(e,bq),s=jq(Rq,n),l=AE(t,o.useRef(null),s.onViewportChange);return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,Le.jsx)(KM.div,Je(Je({"data-radix-scroll-area-viewport":""},a),{},{ref:l,style:Je({overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden"},e.style),children:(0,Le.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:i})}))]})}));Oq.displayName=Rq;var Iq="ScrollAreaScrollbar",Lq=o.forwardRef(((e,t)=>{const{forceMount:n}=e,i=Xe(e,yq),r=jq(Iq,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=r,l="horizontal"===e.orientation;return o.useEffect((()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)})),[l,a,s]),"hover"===r.type?(0,Le.jsx)(Bq,Je(Je({},i),{},{ref:t,forceMount:n})):"scroll"===r.type?(0,Le.jsx)(Wq,Je(Je({},i),{},{ref:t,forceMount:n})):"auto"===r.type?(0,Le.jsx)(zq,Je(Je({},i),{},{ref:t,forceMount:n})):"always"===r.type?(0,Le.jsx)(Vq,Je(Je({},i),{},{ref:t})):null}));Lq.displayName=Iq;var Bq=o.forwardRef(((e,t)=>{const{forceMount:n}=e,i=Xe(e,xq),r=jq(Iq,e.__scopeScrollArea),[a,s]=o.useState(!1);return o.useEffect((()=>{const e=r.scrollArea;let t=0;if(e){const n=()=>{window.clearTimeout(t),s(!0)},i=()=>{t=window.setTimeout((()=>s(!1)),r.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",i),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",i)}}}),[r.scrollArea,r.scrollHideDelay]),(0,Le.jsx)(DP,{present:n||a,children:(0,Le.jsx)(zq,Je(Je({"data-state":a?"visible":"hidden"},i),{},{ref:t}))})})),Wq=o.forwardRef(((e,t)=>{const{forceMount:n}=e,i=Xe(e,wq),r=jq(Iq,e.__scopeScrollArea),a="horizontal"===e.orientation,s=lG((()=>c("SCROLL_END")),100),[l,c]=(u="hidden",d={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},o.useReducer(((e,t)=>{const n=d[e][t];return null!==n&&void 0!==n?n:e}),u));var u,d;return o.useEffect((()=>{if("idle"===l){const e=window.setTimeout((()=>c("HIDE")),r.scrollHideDelay);return()=>window.clearTimeout(e)}}),[l,r.scrollHideDelay,c]),o.useEffect((()=>{const e=r.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t];const i=()=>{const i=e[t];n!==i&&(c("SCROLL"),s()),n=i};return e.addEventListener("scroll",i),()=>e.removeEventListener("scroll",i)}}),[r.viewport,a,c,s]),(0,Le.jsx)(DP,{present:n||"hidden"!==l,children:(0,Le.jsx)(Vq,Je(Je({"data-state":"hidden"===l?"hidden":"visible"},i),{},{ref:t,onPointerEnter:MM(e.onPointerEnter,(()=>c("POINTER_ENTER"))),onPointerLeave:MM(e.onPointerLeave,(()=>c("POINTER_LEAVE")))}))})})),zq=o.forwardRef(((e,t)=>{const n=jq(Iq,e.__scopeScrollArea),{forceMount:i}=e,r=Xe(e,_q),[a,s]=o.useState(!1),l="horizontal"===e.orientation,c=lG((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?e:t)}}),10);return cG(n.viewport,c),cG(n.content,c),(0,Le.jsx)(DP,{present:i||a,children:(0,Le.jsx)(Vq,Je(Je({"data-state":a?"visible":"hidden"},r),{},{ref:t}))})})),Vq=o.forwardRef(((e,t)=>{const{orientation:n="vertical"}=e,i=Xe(e,Dq),r=jq(Iq,e.__scopeScrollArea),a=o.useRef(null),s=o.useRef(0),[l,c]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=nG(l.viewport,l.content),d=Je(Je({},i),{},{sizes:l,onSizesChange:c,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e});function h(e,t){return function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr";const r=iG(n),a=r/2,o=t||a,s=r-o,l=n.scrollbar.paddingStart+o,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d="ltr"===i?[0,u]:[-1*u,0],h=aG([l,c],d);return h(e)}(e,s.current,l,t)}return"horizontal"===n?(0,Le.jsx)(Hq,Je(Je({},d),{},{ref:t,onThumbPositionChange:()=>{if(r.viewport&&a.current){const e=rG(r.viewport.scrollLeft,l,r.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{r.viewport&&(r.viewport.scrollLeft=e)},onDragScroll:e=>{r.viewport&&(r.viewport.scrollLeft=h(e,r.dir))}})):"vertical"===n?(0,Le.jsx)(qq,Je(Je({},d),{},{ref:t,onThumbPositionChange:()=>{if(r.viewport&&a.current){const e=rG(r.viewport.scrollTop,l);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{r.viewport&&(r.viewport.scrollTop=e)},onDragScroll:e=>{r.viewport&&(r.viewport.scrollTop=h(e))}})):null})),Hq=o.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:i}=e,r=Xe(e,Sq),a=jq(Iq,e.__scopeScrollArea),[s,l]=o.useState(),c=o.useRef(null),u=AE(t,c,a.onScrollbarXChange);return o.useEffect((()=>{c.current&&l(getComputedStyle(c.current))}),[c]),(0,Le.jsx)(Xq,Je(Je({"data-orientation":"horizontal"},r),{},{ref:u,sizes:n,style:Je({bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":iG(n)+"px"},e.style),onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){const i=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(i),oG(i,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&i({content:a.viewport.scrollWidth,viewport:
2a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:tG(s.paddingLeft),paddingEnd:tG(s.paddingRight)}})}}))})),qq=o.forwardRef(((e,t)=>{const{sizes:n,onSizesChange:i}=e,r=Xe(e,kq),a=jq(Iq,e.__scopeScrollArea),[s,l]=o.useState(),c=o.useRef(null),u=AE(t,c,a.onScrollbarYChange);return o.useEffect((()=>{c.current&&l(getComputedStyle(c.current))}),[c]),(0,Le.jsx)(Xq,Je(Je({"data-orientation":"vertical"},r),{},{ref:u,sizes:n,style:Je({top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":iG(n)+"px"},e.style),onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){const i=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(i),oG(i,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&i({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:tG(s.paddingTop),paddingEnd:tG(s.paddingBottom)}})}}))})),[Gq,Yq]=Mq(Iq),Xq=o.forwardRef(((e,t)=>{const{__scopeScrollArea:n,sizes:i,hasThumb:r,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:h}=e,f=Xe(e,Cq),p=jq(Iq,n),[g,m]=o.useState(null),v=AE(t,(e=>m(e))),b=o.useRef(null),y=o.useRef(""),x=p.viewport,w=i.content-i.viewport,_=QM(d),D=QM(c),S=lG(h,10);function k(e){if(b.current){const t=e.clientX-b.current.left,n=e.clientY-b.current.top;u({x:t,y:n})}}return o.useEffect((()=>{const e=e=>{const t=e.target;(null===g||void 0===g?void 0:g.contains(t))&&_(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[x,g,w,_]),o.useEffect(D,[i,D]),cG(g,S),cG(p.content,S),(0,Le.jsx)(Gq,{scope:n,scrollbar:g,hasThumb:r,onThumbChange:QM(a),onThumbPointerUp:QM(s),onThumbPositionChange:D,onThumbPointerDown:QM(l),children:(0,Le.jsx)(KM.div,Je(Je({},f),{},{ref:v,style:Je({position:"absolute"},f.style),onPointerDown:MM(e.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),b.current=g.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),k(e)}})),onPointerMove:MM(e.onPointerMove,k),onPointerUp:MM(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,p.viewport&&(p.viewport.style.scrollBehavior=""),b.current=null}))}))})})),Kq="ScrollAreaThumb",$q=o.forwardRef(((e,t)=>{const{forceMount:n}=e,i=Xe(e,Aq),r=Yq(Kq,e.__scopeScrollArea);return(0,Le.jsx)(DP,{present:n||r.hasThumb,children:(0,Le.jsx)(Qq,Je({ref:t},i))})})),Qq=o.forwardRef(((e,t)=>{const{__scopeScrollArea:n,style:i}=e,r=Xe(e,Tq),a=jq(Kq,n),s=Yq(Kq,n),{onThumbPositionChange:l}=s,c=AE(t,(e=>s.onThumbChange(e))),u=o.useRef(void 0),d=lG((()=>{u.current&&(u.current(),u.current=void 0)}),100);return o.useEffect((()=>{const e=a.viewport;if(e){const t=()=>{if(d(),!u.current){const t=sG(e,l);u.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}}),[a.viewport,d,l]),(0,Le.jsx)(KM.div,Je(Je({"data-state":s.hasThumb?"visible":"hidden"},r),{},{ref:c,style:Je({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},i),onPointerDownCapture:MM(e.onPointerDownCapture,(e=>{const t=e.target.getBoundingClientRect(),n=e.clientX-t.left,i=e.clientY-t.top;s.onThumbPointerDown({x:n,y:i})})),onPointerUp:MM(e.onPointerUp,s.onThumbPointerUp)}))}));$q.displayName=Kq;var Zq="ScrollAreaCorner",Jq=o.forwardRef(((e,t)=>{const n=jq(Zq,e.__scopeScrollArea),i=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&i?(0,Le.jsx)(eG,Je(Je({},e),{},{ref:t})):null}));Jq.displayName=Zq;var eG=o.forwardRef(((e,t)=>{const{__scopeScrollArea:n}=e,i=Xe(e,Eq),r=jq(Zq,n),[a,s]=o.useState(0),[l,c]=o.useState(0),u=Boolean(a&&l);return cG(r.scrollbarX,(()=>{var e;const t=(null===(e=r.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;
2r.onCornerHeightChange(t),c(t)})),cG(r.scrollbarY,(()=>{var e;const t=(null===(e=r.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;r.onCornerWidthChange(t),s(t)})),u?(0,Le.jsx)(KM.div,Je(Je({},i),{},{ref:t,style:Je({width:a,height:l,position:"absolute",right:"ltr"===r.dir?0:void 0,left:"rtl"===r.dir?0:void 0,bottom:0},e.style)})):null}));function tG(e){return e?parseInt(e,10):0}function nG(e,t){const n=e/t;return isNaN(n)?0:n}function iG(e){const t=nG(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-n)*t;return Math.max(i,18)}function rG(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr";const i=iG(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-r,o=t.content-t.viewport,s=a-i,l=ZI(e,"ltr"===n?[0,o]:[-1*o,0]);return aG([0,o],[0,s])(l)}function aG(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(n-e[0])}}function oG(e,t){return e>0&&e<t}var sG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},i=0;return function r(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,i=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(i)};function lG(e,t){const n=QM(e),i=o.useRef(0);return o.useEffect((()=>()=>window.clearTimeout(i.current)),[]),o.useCallback((()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)}),[n,t])}function cG(e,t){const n=QM(t);RM((()=>{let t=0;if(e){const i=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return i.observe(e),()=>{window.cancelAnimationFrame(t),i.unobserve(e)}}}),[e,n])}var uG=Fq,dG=Oq,hG=Jq;const fG=["className","children"],pG=["className","orientation"],gG=o.forwardRef(((e,t)=>{let{className:n,children:i}=e,r=Xe(e,fG);return(0,Le.jsxs)(uG,Je(Je({ref:t,className:ON("relative overflow-hidden",n)},r),{},{children:[(0,Le.jsx)(dG,{className:"h-full w-full rounded-[inherit]",children:i}),(0,Le.jsx)(mG,{}),(0,Le.jsx)(hG,{})]}))}));gG.displayName=uG.displayName;const mG=o.forwardRef(((e,t)=>{let{className:n,orientation:i="vertical"}=e,r=Xe(e,pG);return(0,Le.jsx)(Lq,Je(Je({ref:t,orientation:i,className:ON("flex touch-none select-none transition-colors","vertical"===i&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===i&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n)},r),{},{children:(0,Le.jsx)($q,{className:"relative flex-1 rounded-full bg-border"})}))}));mG.displayName=Lq.displayName;function vG(e){const t=Math.floor(e/60).toString().padStart(2,"0"),n=(e%60).toString().padStart(2,"0");return"".concat(t,":").concat(n)}function bG(e){let{open:t,onOpenChange:n,intervieweeName:i,intervieweeType:r,onStartRecording:a,onStopRecording:s,isRecording:l=!1,elapsedSeconds:c=0}=e;const[u,d]=(0,o.useState)(r);(0,o.useEffect)((()=>{t&&d(r)}),[t,r]);const h="Policies"===u?"https://res.cloudinary.com/dcfotquxt/image/upload/v1764874006/Ai-AssEss/AI_Policies_Guidelines_Builder_Packet.docx_v0sxxb.pdf":"https://res.cloudinary.com/dcfotquxt/image/upload/v1763613933/Ai-AssEss/GoWest_Employee_AI_Readiness_Interview_Questions_mgiqvv.pdf",f="Policies"===u?"AI Policies & Guidelines Questionnaire":"AI Readiness Assessment Questionnaire";return(0,Le.jsx)(Uj,{open:t,onOpenChange:e=>{!e&&l&&s&&s(),n(e)},children:(0,Le.jsxs)(Rj,{className:"max-w-5xl h-[80vh] flex flex-col p-0 gap-0",children:[(0,Le.jsx)(Oj,{className:"px-6 pt-6 pb-4 border-b",children:(0,Le.jsxs)(Lj,{className:"font-display flex items-center gap-3",children:["Record & Transcript \u2014 ",i,(0,Le.jsx)(cM,{variant:"secondary",className:"font-normal",children:r})]})}),(0,Le.jsxs)("div",{className:"flex flex-1 min-h-0",children:[(0,Le.jsxs)("div",{className:"w-72 shrink-0 border-r flex flex-col items-center justify-center gap-6 p-6",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(pq,{className:"h-3 w-3 fill-red-500 text-red-500 animate-pulse"}),(0,Le.jsx)("span",{className:"text-red-400 font-medium",children:"Recording"})]}),!l&&(0,Le.jsx)("span",{children:"Ready to record"})]}),(0,Le.jsx)("div",{className:"text-4xl font-mono font-bold tracking-wider",children:vG(c||0)}),(0,Le.jsx)("button",{onClick:l?s:a,className:"h-20 w-20 rounded-full flex items-center justify-center transition-all ".concat(l?"bg-red-500/20 border-2 border-red-500 text-red-400 animate-pulse":"bg-primary/20 border-2 border-primary text-primary hover:bg-primary/30"),children:l?(0,Le.jsx)(gq,{className:"h-8 w-8"}):(0,Le.jsx)(mq,{className:"h-8 w-8"})}),(0,Le.jsx)("div",{className:"flex gap-3",children:l?(0,Le.jsxs)(BN,{variant:"destructive",onClick:s,className:"gap-1.5",children:[(0,Le.jsx)(gq,{className:"h-4 w-4"}),"Stop & Save"]}):(0,Le.jsxs)(BN,{onClick:a,className:"gap-1.5",children:[(0,Le.jsx)(mq,{className:"h-4 w-4"}),"Start Recording"]})}),(0,Le.jsx)("p",{className:"text-[11px] text-muted-foreground text-center mt-2",children:"Audio will be transcribed automatically after recording is stopped."})]}),(0,Le.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col",children:[(0,Le.jsxs)("div",{className:"px-5 py-3 border-b bg-muted/30 flex items-center justify-between gap-3",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h3",{className:"font-semibold text-sm font-display",children:f}),(0,Le.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Use these questions as a guide during the interview"})]}),(0,Le.jsxs)("select",{value:u,onChange:e=>d(e.target.value),className:"text-xs rounded-md border bg-background px-2 py-1.5 text-foreground focus:outline-none focus:ring-1 focus:ring-ring",children:[(0,Le.jsx)("option",{value:"Readiness",children:"AI Readiness Assessment"}),(0,Le.jsx)("option",{value:"Policies",children:"AI Policies & Guidelines"})]})]}),(0,Le.jsx)(gG,{className:"flex-1",children:(0,Le.jsx)("div",{className:"p-5 h-full",children:(0,Le.jsx)("div",{className:"rounded-lg border overflow-hidden h-[60vh]",children:(0,Le.jsx)("iframe",{title:f,src:h,className:"w-full h-full"})})})})]})]})]})})}const yG=["className"],xG=["className"],wG=["className"],_G=["className"],DG=["className"],SG=["className"],kG=["className"],CG=["className"],AG=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,yG);return(0,Le.jsx)("div",{className:"relative w-full overflow-auto",children:(0,Le.jsx)("table",Je({ref:t,className:ON("w-full caption-bottom text-sm",n)},i))})}));AG.displayName="Table";const TG=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,xG);return(0,Le.jsx)("thead",Je({ref:t,className:ON("[&_tr]:border-b",n)},i))}));TG.displayName="TableHeader";const EG=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,wG);return(0,Le.jsx)("tbody",Je({ref:t,className:ON("[&_tr:last-child]:border-0",n)},i))}));EG.displayName="TableBody";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,_G);return(0,Le.jsx)("tfoot",Je({ref:t,className:ON("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n)},i))})).displayName="TableFooter";const NG=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,DG);return(0,Le.jsx)("tr",Je({ref:t,className:ON("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",n)},i))}));NG.displayName="TableRow";const MG=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,SG);return(0,Le.jsx)("th",Je({ref:t,className:ON("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",n)},i))}));MG.displayName="TableHead";const PG=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,kG);return(0,Le.jsx)("td",Je({ref:t,className:ON("p-4 align-middle [&:has([role=checkbox])]:pr-0",n)},i))}));PG.displayName="TableCell";o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,CG);return(0,Le.jsx)("caption",Je({ref:t,className:ON("mt-4 text-sm text-muted-foreground",n)},i))})).displayName="TableCaption";const UG=xM("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),jG=xM("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),FG=xM("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),RG=xM("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function OG(e){const t=e.every((e=>"completed"===e.interview&&e.transcript)),n=e.length,i=e.filter((e=>{var t;return"policies"===(null===(t=e.type)||void 0===t?void 0:t.toString().toLowerCase())})),r=i.length,a=i.filter((e=>"completed"===e.interview&&e.transcript)).length,o=a>=1;e.filter((e=>"completed"===e.interview&&e.transcript)).length;return[{title:"AI Workflow Assessment",subtitle:"".concat(n,t?" interviewee(s) \xb7 All interviews complete":" interviewee(s) \xb7 Complete all interviews & upload transcripts first"),canGenerate:t},{title:"AI Policies & Guidelines",subtitle:o?"".concat(a,"/").concat(r," completed \xb7 Ready to generate"):"".concat(r," interviewee(s) \xb7 At least 1 interview with transcript required"),
2canGenerate:o}]}const IG=[{id:"acme-corp",company:"Acme Corp",contact:"Sarah Johnson",contactTitle:"CEO",email:"[email protected]",phone:"+1 555-0101",progress:25,type:"AI Readiness",status:"active",interviews:{total:4,completed:1},attention:"3 transcripts missing",interviewees:[{name:"John Smith",role:"CTO",type:"Readiness",interview:"completed",transcript:"john_interview.pdf",actions:["record","upload","schedule"]},{name:"Lisa Chen",role:"VP Engineering",type:"Readiness",interview:"completed",transcript:null,actions:["record","upload","schedule"]},{name:"Mike Davis",role:"Head of Data",type:"Readiness",interview:"scheduled",transcript:null,actions:["record","upload","schedule"]},{name:"Sarah Johnson",role:"CEO",type:"Policies",interview:"pending",transcript:null,actions:["record","upload","schedule"]}]},{id:"techstart-inc",company:"TechStart Inc",contact:"James Lee",contactTitle:"CEO",email:"[email protected]",phone:"+1 555-0202",progress:60,type:"AI Readiness",status:"active",interviews:{total:3,completed:2},attention:"1 interview pending",interviewees:[{name:"James Lee",role:"CEO",type:"Readiness",interview:"completed",transcript:"james_interview.pdf",actions:["record","upload","schedule"]},{name:"Anna Park",role:"CTO",type:"Readiness",interview:"completed",transcript:"anna_interview.pdf",actions:["record","upload","schedule"]},{name:"Tom Brown",role:"VP Product",type:"Readiness",interview:"pending",transcript:null,actions:["record","upload","schedule"]}]},{id:"global-retail-co",company:"Global Retail Co",contact:"Maria Garcia",contactTitle:"COO",email:"[email protected]",phone:"+1 555-0303",progress:10,type:"Policies",status:"active",interviews:{total:2,completed:0},attention:"No interviews started",interviewees:[{name:"Maria Garcia",role:"COO",type:"Policies",interview:"pending",transcript:null,actions:["record","upload","schedule"]},{name:"Kevin Wu",role:"Head of IT",type:"Policies",interview:"pending",transcript:null,actions:["record","upload","schedule"]}]},{id:"finserv-partners",company:"FinServ Partners",contact:"David Kim",contactTitle:"Managing Partner",email:"[email protected]",phone:"+1 555-0404",progress:45,type:"AI Readiness",status:"active",interviews:{total:5,completed:3},attention:"2 transcripts missing",interviewees:[{name:"David Kim",role:"Managing Partner",type:"Readiness",interview:"completed",transcript:"david_interview.pdf",actions:["record","upload","schedule"]},{name:"Rachel Green",role:"CTO",type:"Readiness",interview:"completed",transcript:null,actions:["record","upload","schedule"]},{name:"Chris Martin",role:"VP Data",type:"Readiness",interview:"completed",transcript:null,actions:["record","upload","schedule"]},{name:"Emily Stone",role:"Head of Compliance",type:"Policies",interview:"scheduled",transcript:null,actions:["record","upload","schedule"]},{name:"Alex Rivera",role:"CEO",type:"Readiness",interview:"pending",transcript:null,actions:["record","upload","schedule"]}]},{id:"medihealth-labs",company:"MediHealth Labs",contact:"Priya Patel",contactTitle:"CEO",email:"[email protected]",phone:"+1 555-0505",progress:80,type:"AI Readiness",status:"active",interviews:{total:4,completed:4},attention:"Ready to generate report",interviewees:[{name:"Priya Patel",role:"CEO",type:"Readiness",interview:"completed",transcript:"priya_interview.pdf",actions:["record","upload","schedule"]},{name:"Sam Wilson",role:"CTO",type:"Readiness",interview:"completed",transcript:"sam_interview.pdf",actions:["record","upload","schedule"]},{name:"Nina Rao",role:"VP Research",type:"Readiness",interview:"completed",transcript:"nina_interview.pdf",actions:["record","upload","schedule"]},{name:"Leo Chang",role:"Head of AI",type:"Readiness",interview:"completed",transcript:"leo_interview.pdf",actions:["record","upload","schedule"]}]},{id:"summit-logistics",company:"Summit Logistics Group",contact:"Rebecca Torres",contactTitle:"CEO",email:"[email protected]",phone:"+1 555-0606",progress:100,type:"AI Readiness",status:"completed",interviews:{total:3,completed:3},attention:"Assessment complete",interviewees:[{name:"Rebecca Torres",role:"CEO",type:"Readiness",interview:"completed",transcript:"rebecca_interview.pdf",actions:["record","upload","schedule"]},{name:"Marcus Hall",role:"CTO",type:"Readiness",interview:"completed",transcript:"marcus_interview.pdf",actions:["record","upload","schedule"]},{name:"Diane Foster",role:"VP Operations",type:"Readiness",interview:"completed",transcript:"diane_interview.pdf",actions:["record","upload","schedule"]}]},{id:"brightwave-energy",company:"BrightWave Energy",contact:"Nathan Cole",contactTitle:"CEO",email:"[email protected]",phone:"+1 555-0707",progress:100,type:"Policies",status:"completed",interviews:{total:4,completed:4},attention:"Assessment complete",interviewees:[{name:"Nathan Cole",role:"CEO",type:"Policies",interview:"completed",transcript:"nathan_
2interview.pdf",actions:["record","upload","schedule"]},{name:"Olivia Grant",role:"General Counsel",type:"Policies",interview:"completed",transcript:"olivia_interview.pdf",actions:["record","upload","schedule"]},{name:"Derek Simmons",role:"CTO",type:"Policies",interview:"completed",transcript:"derek_interview.pdf",actions:["record","upload","schedule"]},{name:"Karen Mitchell",role:"Head of Compliance",type:"Policies",interview:"completed",transcript:"karen_interview.pdf",actions:["record","upload","schedule"]}]}],LG=(0,o.createContext)(null),BG=e=>{let{children:t}=e;const[n,i]=(0,o.useState)(IG),r=(0,o.useCallback)((e=>{const t={id:e.companyName.toLowerCase().replace(/\s+/g,"-")+"-"+Date.now(),company:e.companyName,contact:e.keyContact,contactTitle:e.contactTitle||"",email:e.email,phone:e.phone,progress:0,type:"AI Readiness",status:"active",interviews:{total:0,completed:0},attention:"No interviews started",interviewees:[]};i((e=>[t,...e])),Mz({title:"Assessment created",description:"".concat(e.companyName," has been added.")})}),[]),a=(0,o.useCallback)(((e,t)=>{i((n=>n.map((n=>{if(n.id!==e)return n;const i=t.map((e=>Je(Je({},e),{},{interview:"pending",transcript:null,actions:["record","upload","schedule"]})));return Je(Je({},n),{},{interviewees:[...n.interviewees,...i],interviews:{total:n.interviewees.length+i.length,completed:n.interviews.completed}})})))),Mz({title:"Interviewees added",description:"".concat(t.length," interviewee(s) added successfully.")})}),[]),s=(0,o.useCallback)((e=>{i((t=>t.filter((t=>t.id!==e)))),Mz({title:"Assessment deleted",description:"The assessment has been removed."})}),[]),l=(0,o.useCallback)(((e,t)=>{i((n=>n.map((n=>{if(n.id!==e)return n;const i=n.interviewees.filter((e=>e.name!==t));return Je(Je({},n),{},{interviewees:i,interviews:{total:i.length,completed:i.filter((e=>"completed"===e.interview)).length}})})))),Mz({title:"Interviewee removed",description:"".concat(t," has been removed.")})}),[]);return(0,Le.jsx)(LG.Provider,{value:{assessments:n,createAssessment:r,addInterviewees:a,deleteAssessment:s,deleteInterviewee:l},children:t})};$v.workerSrc="/pdf.worker.min.js";const WG="https://printlogs-17738dc65798.herokuapp.com/bizVantage/assessment",zG="8a0cd1b76cb54e31926c3756a0665ad7",VG="bv.aiPolicyPoll",HG="bv.assessmentPoll",qG=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){}};function GG(e){switch(e){case"completed":return"bg-green-500 hover:bg-green-500/80 text-white border-transparent";case"scheduled":return"bg-muted text-black";case"pending":return"bg-amber-100 text-black border-amber-200";default:return""}}const YG=()=>{const{assessmentId:e}=function(){let{matches:e}=o.useContext(J),t=e[e.length-1];return t?t.params:{}}(),t=re(),{assessments:n}=(()=>{const e=(0,o.useContext)(LG);if(!e)throw new Error("useAssessments must be used within AssessmentProvider");return e})(),{t:i}=qe(),r=(0,o.useCallback)((e=>{switch(String(e||"").toLowerCase()){case"completed":return i("status.completed");case"ai-workflow-completed":return i("status.aiWorkflowCompleted");case"ai-policies-completed":return i("status.aiPoliciesCompleted");case"active":return i("status.active");default:return e||""}}),[i]),[a,s]=(0,o.useState)(null),[l,c]=(0,o.useState)(!0),[u,d]=(0,o.useState)(""),[h,f]=(0,o.useState)(null),[p,g]=(0,o.useState)(null),[m,v]=(0,o.useState)(null),[b,y]=(0,o.useState)(0),[x,w]=(0,o.useState)({open:!1,seconds:0,title:"Processing"}),[_,D]=(0,o.useState)({open:!1,title:"",message:""}),[S,k]=(0,o.useState)((()=>{try{return JSON.parse(localStorage.getItem(VG))||null}catch(e){return null}})),[C,A]=(0,o.useState)((()=>{try{return JSON.parse(localStorage.getItem(HG))||null}catch(e){return null}})),[T,E]=(0,o.useState)({minutes:0,seconds:0}),[N,M]=(0,o.useState)({minutes:0,seconds:0}),P=(0,o.useMemo)((()=>{try{const e=localStorage.getItem("bv.registerResponse");if(!e)return null;const t=JSON.parse(e);return(null===t||void 0===t?void 0:t.authToken)||null}catch(e){return null}}),[]),U=(0,o.useMemo)((()=>{try{var e;const t=localStorage.getItem("bv.registerResponse");if(!t)return"";const n=JSON.parse(t);return(null===n||void 0===n?void 0:n.companyLogo)||(null===n||void 0===n?void 0:n.logo)||(null===n||void 0===n||null===(e=n.user)||void 0===e?void 0:e.companyLogo)||""}catch(t){return""}}),[]),j=(0,o.useCallback)((async()=>
2{if(d(""),e)if(P)try{c(!0);const n=await fetch(WG,{method:"POST",headers:{"Content-Type":"application/json",authorization:P},body:JSON.stringify({assessmentId:e})}),i=await n.json().catch((()=>({})));if(!1===(null===i||void 0===i?void 0:i.success))return void t("/");if(!n.ok)throw new Error((null===i||void 0===i?void 0:i.message)||"Request failed (".concat(n.status,")"));const r=(null===i||void 0===i?void 0:i.companyDetails)||(null===i||void 0===i?void 0:i.assessment)||i||{},a=(Array.isArray(null===i||void 0===i?void 0:i.intervieweeList)?i.intervieweeList:Array.isArray(null===r||void 0===r?void 0:r.interviewees)?r.interviewees:[]).map((e=>{var t,n,i,r,a;const o=Array.isArray(e.files)?e.files:[],s=(null===(t=o.find((e=>{var t;return null===e||void 0===e||null===(t=e.transcript)||void 0===t?void 0:t.text})))||void 0===t||null===(n=t.transcript)||void 0===n?void 0:n.text)||(null===(i=o.find((e=>null===e||void 0===e?void 0:e.transcript)))||void 0===i||null===(r=i.transcript)||void 0===r?void 0:r.text)||(null===(a=o.find((e=>null===e||void 0===e?void 0:e.url)))||void 0===a?void 0:a.url)||null;return{name:e.name||"Interviewee",role:e.position||e.department||e.role||"",intervieweeId:null===e||void 0===e?void 0:e.intervieweeId,type:"Yes"===e.aiPolocyGuidelines?"Policies":e.type||"Workflow",interview:e.interviewStatus||e.interview||"pending",transcript:s,files:o,actions:Array.isArray(e.actions)?e.actions:[]}})),o=a.length||0,l=a.filter((e=>Array.isArray(e.files)&&e.files.length>0)).length,u=0===o?0:Math.round(l/o*100);s(Je(Je({},r),{},{id:String(r.assessmentId||r._id||e),assessmentId:r.assessmentId||e,company:r.companyName||r.title||"Untitled",contact:r.keyContact||r.contact||"",contactTitle:r.position||r.contactTitle||"",email:r.email||"",phone:r.phone||"",status:(r.status||"active").toString(),progress:u,interviewees:a,assessmentFile:r.assessmentFile,assessmentAiPolicyPdf:r.assessmentAiPolicyPdf,aiAssessmentCompleted:!0===r.aiAssessmentCompleted,aiPolicyAssessmentCompleted:!0===r.aiPolicyAssessmentCompleted}))}catch(eQ){d(eQ.message||"Failed to fetch assessment.")}finally{c(!1)}else t("/")}),[e,P,t]);(0,o.useEffect)((()=>{j()}),[j]);const F=a||n.find((t=>t.assessmentId===e||String(t.assessmentId)===String(e)||t.id===e)),R=(0,o.useMemo)((()=>Array.isArray(null===F||void 0===F?void 0:F.interviewees)?F.interviewees:[]),[F]),O=(0,o.useCallback)((e=>{const t=R.length,n=R.filter((e=>{var t;return"policies"===(null===(t=e.type)||void 0===t?void 0:t.toString().toLowerCase())})),r=n.length,a=n.filter((e=>"completed"===e.interview&&e.transcript)).length,o=R.every((e=>"completed"===e.interview&&e.transcript)),s=a>=1;return"AI Policies & Guidelines"===e.title?s?"".concat(a,"/").concat(r," ").concat(i("dashboard.complete")," \xb7 ").concat(i("Ready to generate")):"".concat(r," ").concat(i("interviewee(s)")," \xb7 ").concat(i("At least 1 interview with transcript required")):o?"".concat(t," ").concat(i("interviewee(s)")," \xb7 ").concat(i("All interviews complete")):"".concat(t," ").concat(i("interviewee(s)")," \xb7 ").concat(i("Complete all interviews & upload transcripts first"))}),[R,i]),I=!0===(null===F||void 0===F?void 0:F.aiAssessmentCompleted),L=!0===(null===F||void 0===F?void 0:F.aiPolicyAssessmentCompleted),B=((0,o.useMemo)((()=>R.length>0&&R.every((e=>Array.isArray(e.files)&&e.files.length>0))),[R]),(0,o.useMemo)((()=>{const e=R.filter((e=>"Policies"!==e.type));return e.length>0&&e.every((e=>Array.isArray(e.files)&&e.files.length>0))}),[R])),W=(0,o.useMemo)((()=>{const e=R.filter((e=>"Policies"===e.type));return e.length>0&&e.every((e=>Array.isArray(e.files)&&e.files.length>0))}),[R]);(0,o.useEffect)((()=>{const e=()=>{const e=Date.now();if(null!==S&&void 0!==S&&S.startedAt){const t=Math.max(0,e-S.startedAt);E({minutes:Math.floor(t/6e4),seconds:Math.floor(t/1e3%60)})}if(null!==C&&void 0!==C&&C.startedAt){const t=Math.max(0,e-C.startedAt);M({minutes:Math.floor(t/6e4),seconds:Math.floor(t/1e3%60)})}},t=setInterval(e,1e3);return e(),()=>clearInterval(t)}),[S,C]);const z=(0,o.useCallback)(((e,t)=>{(e=>{try{localStorage.removeItem(e)}catch(t){}})(e),t(null)}),[]);(0,o.useEffect)((()=>
2{if((null===S||void 0===S||!S.startedAt)&&(null===C||void 0===C||!C.startedAt))return;let t=!1;const n=async()=>{if(P)try{const t=(null===F||void 0===F?void 0:F.assessmentId)||(null===a||void 0===a?void 0:a.assessmentId)||e;if(!t)return;const n=await fetch(WG,{method:"POST",headers:{"Content-Type":"application/json",authorization:P},body:JSON.stringify({assessmentId:t})}),i=await n.json().catch((()=>({})));if(!n.ok||!1===(null===i||void 0===i?void 0:i.success))return;const r=(null===i||void 0===i?void 0:i.companyDetails)||(null===i||void 0===i?void 0:i.assessment)||i||{},o=!!r.assessmentFile,l=!!r.assessmentAiPolicyPdf;o&&z(HG,A),l&&z(VG,k),(o||l)&&s((e=>e?Je(Je(Je({},e),r),{},{assessmentFile:r.assessmentFile||e.assessmentFile,assessmentAiPolicyPdf:r.assessmentAiPolicyPdf||e.assessmentAiPolicyPdf}):e))}catch(eQ){}};n();const i=setInterval((()=>{t||n()}),5e3);return()=>{t=!0,clearInterval(i)}}),[null===S||void 0===S?void 0:S.startedAt,null===C||void 0===C?void 0:C.startedAt,P,e,z,j]);(0,o.useCallback)((()=>{if(null===F||void 0===F||!F.company)return;const e={startedAt:Date.now(),companyName:F.company};k(e),qG(VG,e)}),[null===F||void 0===F?void 0:F.company]),(0,o.useCallback)((()=>{if(null===F||void 0===F||!F.company)return;const e={startedAt:Date.now(),companyName:F.company};A(e),qG(HG,e)}),[null===F||void 0===F?void 0:F.company]);const[V,H]=(0,o.useState)(!1),[q,G]=(0,o.useState)(""),[Y,X]=(0,o.useState)(null),[K,$]=(0,o.useState)(!1),[Q,Z]=(0,o.useState)(!1),[ee,te]=(0,o.useState)(null),[ne,ie]=(0,o.useState)(""),[ae,oe]=(0,o.useState)(""),[se,le]=(0,o.useState)("No"),[ce,ue]=(0,o.useState)(!1),[de,he]=(0,o.useState)(!1),[fe,pe]=(0,o.useState)({name:"",type:"",data:null}),[ge,me]=(0,o.useState)(!1),ve=(0,o.useCallback)((e=>e&&(e.intervieweeId||e._id||e.id||e.email||e.name)||null),[]),be=(0,o.useRef)(null),ye=(0,o.useRef)(null),xe=(0,o.useRef)(null),we=(0,o.useRef)(null),_e=(0,o.useRef)(null),De=ve(fe.data),Se=De&&m===De,ke=Se?b:0,[Ce,Ae]=(0,o.useState)({}),[Te,Ee]=(0,o.useState)({open:!1,text:""}),[Ne,Me]=(0,o.useState)({open:!1,title:"",message:"",onConfirm:null}),Pe=(0,o.useCallback)((()=>
2{Me({open:!1,title:"",message:"",onConfirm:null})}),[]),Ue=(0,o.useCallback)((async()=>{const e=Ne.onConfirm;try{"function"===typeof e&&await e()}catch(tQ){D({open:!0,title:i("Action failed"),message:(null===tQ||void 0===tQ?void 0:tQ.message)||i("Unable to complete the action.")})}finally{Pe()}}),[Pe,Ne.onConfirm,i]),je="dcfotquxt",Fe="flsdzoc2",Re=(0,o.useRef)(null),Oe=(0,o.useRef)([]),Ie=(0,o.useRef)(null),Be=(0,o.useRef)(null),[We,ze]=(0,o.useState)(!1),Ve=(0,o.useCallback)((()=>{var e;return"undefined"===typeof window?Promise.reject(new Error("No window")):null!==(e=window.cloudinary)&&void 0!==e&&e.createUploadWidget?Promise.resolve(window.cloudinary):new Promise(((e,t)=>{const n=document.createElement("script");n.src="https://widget.cloudinary.com/v2.0/global/all.js",n.async=!0,n.onload=()=>{var n;null!==(n=window.cloudinary)&&void 0!==n&&n.createUploadWidget?e(window.cloudinary):t(new Error("Cloudinary widget failed to load."))},n.onerror=()=>t(new Error("Cloudinary widget failed to load.")),document.body.appendChild(n)}))}),[]),He=async e=>{let{assessmentId:t,intervieweeId:n,files:i}=e;c(!0);try{await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/interviewees",{method:"PATCH",headers:{"Content-Type":"application/json",authorization:P},body:JSON.stringify({assessmentId:t,intervieweeId:n,files:i,interviewStatus:(null===i||void 0===i?void 0:i.length)>0?"completed":"pending"})}),await j()}catch(eQ){d(eQ.message||"Failed to update interviewee files.")}finally{c(!1)}},Ge=e=>{Me({open:!0,title:"Delete Interviewee",message:"Are you sure you want to delete ".concat((null===e||void 0===e?void 0:e.name)||"this interviewee","? This action cannot be undone."),onConfirm:()=>(async e=>{if(!P)return void d("Not authorized.");const t=null===F||void 0===F?void 0:F.assessmentId,n=(null===e||void 0===e?void 0:e.intervieweeId)||(null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id);if(t&&n)try{g(n),await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/interviewees",{method:"DELETE",headers:{"Content-Type":"application/json",authorization:P},body:JSON.stringify({assessmentId:t,intervieweeId:n,name:null===e||void 0===e?void 0:e.name,email:null===e||void 0===e?void 0:e.email})}),await j()}catch(eQ){d(eQ.message||"Failed to delete interviewee.")}finally{g(null)}else d("Missing identifiers to delete interviewee.")})(e)})},Ye=(0,o.useCallback)((async()=>{if(!P)return void d("Not authorized.");const e=null===F||void 0===F?void 0:F.assessmentId,t=(null===ee||void 0===ee?void 0:ee.intervieweeId)||(null===ee||void 0===ee?void 0:ee._id)||(null===ee||void 0===ee?void 0:ee.id);if(e&&t)if(ne.trim()&&ae.trim())try{ue(!0);const n=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/interviewees",{method:"PATCH",headers:{"Content-Type":"application/json",authorization:P},body:JSON.stringify({assessmentId:e,intervieweeId:t,name:ne.trim(),position:ae.trim(),department:ae.trim(),aiPolocyGuidelines:se})}),i=await n.json().catch((()=>({})));if(!n.ok||!1===(null===i||void 0===i?void 0:i.success))throw new Error((null===i||void 0===i?void 0:i.message)||"Failed to save interviewee.");await j(),Z(!1),te(null)}catch(eQ){d(eQ.message||"Failed to save interviewee.")}finally{ue(!1)}else d("Name and Position are required.");else d("Missing identifiers to save interviewee.")}),[P,null===F||void 0===F?void 0:F.assessmentId,ee,ne,ae,se,j]),Xe=async(e,t,n)=>{const i=e=>new Promise((t=>setTimeout(t,e))),r=(null===t||void 0===t?void 0:t.assessmentId)||(null===F||void 0===F?void 0:F.assessmentId)||(null===a||void 0===a?void 0:a.assessmentId),o=ve(t)||m||ve(fe.data);if(!r||!o)return void D({open:!0,title:"Upload failed",message:"Missing assessment or interviewee identifiers for upload."});const s=new FormData;s.append("file",e,"".concat(Date.now(),".webm")),s.append("upload_preset",Fe),s.append("folder","BizVantage/".concat(r||"unknown","/").concat(o||"unknown","/Recordings"));const l=await fetch("https://api.cloudinary.com/v1_1/".concat(je,"/video/upload"),{method:"POST",body:s}),u=await l.json();var d;if(!l.ok||!u.secure_url)throw new Error((null===u||void 0===u||null===(d=u.error)||void 0===d?void 0:d.message)||"Cloudinary upload failed");const h={url:u.secure_url,format:u.format,bytes:u.bytes,public_id:u.public_id,transcript:null};try{const e=await fetch("https://api.assemblyai.com/v2/transcript",{method:"POST",headers:{authorization:zG,"content-type":"application/json"},body:JSON.stringify({audio_url:u.secure_url})}),t=await e.json();if(!e.ok||!t.id)throw new Error(t.error||"Failed to create transcript");let n=null,r=t.status;const a=t.id,o=20;let s=0;for(;("queued"===r||"processing"===r)&&s<o;){s+=1,await i(5e3);const e=await fetch("https://api.assemblyai.com/v2/transcript/".concat(a),{method:"GET",headers:{authorization:zG}}),t=await e.json();if(r=t.status,"completed"===r){n=t;break}if("error"===r)throw new Error(t.error||"Transcription failed")}if(!n&&s>=o)throw new Error("Transcription polling timed out.");
2n&&(h.transcript=n)}catch(tQ){D({open:!0,title:"Transcript failed",message:tQ.message||"Transcription failed."})}const f=Array.isArray(t.files)?t.files:[];return await He({assessmentId:r,intervieweeId:o,files:[...f,h]}),D({open:!0,title:"Recording Uploaded",message:"Audio interview uploaded successfully."}),await j(),he(!1),c(!1),h},Ke=(0,o.useCallback)((()=>{if(Re.current){try{Re.current.stop()}catch(eQ){d(eQ.message||"Failed to stop recording.")}Re.current=null}Ie.current&&(clearInterval(Ie.current),Ie.current=null),v(null),y(0)}),[d]),$e=(0,o.useCallback)((async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null,i=null,r=null,a=null;try{const o=null===F||void 0===F?void 0:F.assessmentId,s=ve(e);if(!o||!s)throw new Error("Missing assessment or interviewee id.");if(i=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0}}),we.current=i,t)a=i;else{n=await navigator.mediaDevices.getDisplayMedia({audio:!0,video:!0}),n.getVideoTracks().forEach((e=>e.stop())),xe.current=n,r=new AudioContext,_e.current=r;const e=r.createMediaStreamDestination(),t=n.getAudioTracks();if(t.length){r.createMediaStreamSource(new MediaStream([t[0]])).connect(e)}const o=i.getAudioTracks();if(o.length){r.createMediaStreamSource(new MediaStream([o[0]])).connect(e)}a=e.stream}const l=new MediaRecorder(a);Re.current=l,ye.current=e,Oe.current=[],l.ondataavailable=e=>e.data.size&&Oe.current.push(e.data),l.onstop=async()=>{var t,o,l,u;he(!1);const d=new Blob(Oe.current,{type:"audio/webm"});Oe.current=[],null===(t=a)||void 0===t||t.getTracks().forEach((e=>e.stop())),null===(o=n)||void 0===o||o.getTracks().forEach((e=>e.stop())),null===(l=i)||void 0===l||l.getTracks().forEach((e=>e.stop())),null===(u=r)||void 0===u||u.close().catch((()=>{})),xe.current=null,we.current=null,_e.current=null,f(s),c(!0),await Xe(d,e),f(null),v(null),y(0),ye.current=null},l.start(),v(s),y(0),Ie.current&&clearInterval(Ie.current),Ie.current=setInterval((()=>y((e=>e+1))),1e3)}catch(eQ){var o,s,l,u;null===(o=a)||void 0===o||o.getTracks().forEach((e=>e.stop())),null===(s=n)||void 0===s||s.getTracks().forEach((e=>e.stop())),null===(l=i)||void 0===l||l.getTracks().forEach((e=>e.stop())),null===(u=r)||void 0===u||u.close().catch((()=>{})),d(eQ.message||"Could not start recording. Try sharing screen with system audio."),v(null),y(0)}}),[null===F||void 0===F?void 0:F.assessmentId,He,Xe]),Qe=(0,o.useCallback)((e=>{const t=be.current||fe.data;me(!1),be.current=null,t&&(pe((e=>({name:t.name||e.name||"Interviewee",type:t.type||e.type||"Readiness",data:t}))),he(!0),$e(t,e))}),[fe.data,$e]),Ze=(0,o.useCallback)((async(e,t)=>{const n=null===F||void 0===F?void 0:F.assessmentId,i=ve(e);if(P&&n&&i)try{const r=(Array.isArray(e.files)?e.files:[]).filter(((e,n)=>n!==t));f(i),await He({assessmentId:n,intervieweeId:i,files:r}),await j(),D({open:!0,title:"Removed",message:"File removed successfully."})}catch(eQ){D({open:!0,title:"Delete failed",message:eQ.message||"Could not remove the file."})}finally{f(null)}else D({open:!0,title:"Delete failed",message:"Missing authorization or identifiers."})}),[null===F||void 0===F?void 0:F.assessmentId,P,j,ve,He,f]),et=(0,o.useCallback)((e=>{w({open:!0,seconds:0,title:e}),Be.current&&clearInterval(Be.current),Be.current=setInterval((()=>{w((e=>Je(Je({},e),{},{seconds:e.seconds+1})))}),1e3)}),[]),tt=(0,o.useCallback)((()=>{Be.current&&(clearInterval(Be.current),Be.current=null),w((e=>Je(Je({},e),{},{open:!1,seconds:0})))}),[]),nt=(0,o.useCallback)((async e=>{if(!F||!P)return void d("Not authorized or assessment missing.");const t=e.toLowerCase().includes("policies"),n=t?"f355fc25-6458-47bd-bde1-ea2806720a9d":"07968cba-40fb-4cb9-96a5-ef2dd2b45bc4";try{var i,r,o,s;Ae((t=>Je(Je({},t),{},{[e]:"processing"})));const l=(null===F||void 0===F?void 0:F.company)||(null===a||void 0===a?void 0:a.company)||"Assessment";if(t){const e={startedAt:Date.now(),companyName:l};k(e),qG(VG,e)}else{const e={startedAt:Date.now(),companyName:l};A(e),qG(HG,e)}et(t?"Generating Ai Policy & Guidelines Assessment":"Generating Ai-Assessment");const c=new Headers;c.append("api-key","FLUX_API.74962c2d-51b8-49a2-9592-a0fdb21cb18c"),c.append("Content-Type","application/json");const u=[];u.push({inputId:t?"varInputNode_1771611159441_0.4392":"varInputNode_1775161856796_0.8227",inputText:null===(i=F.assessmentId)||void 0===i?void 0:i.toString()});const d=[];R.forEach((e=>{const n="Policies"===e.type;
2(t?n:!n)&&(e.files||[]).forEach((e=>{var t;null!==e&&void 0!==e&&null!==(t=e.transcript)&&void 0!==t&&t.text&&d.push(e.transcript.text)}))})),t?u.push({inputId:"varInputNode_1771611169663_0.4963",inputText:U}):u.push({inputId:"varInputNode_1775161866728_0.2418",inputText:U}),t?u.push({inputId:"varInputNode_1775163199771_0.5294",inputText:d.join("$$$$$")}):u.push({inputId:"varInputNode_1775161870538_0.8663",inputText:d.join("$$$$$")});const h=JSON.stringify({variableInputs:u}),f=await fetch("https://api.fluxprompt.ai/flux/api-v2?flowId=".concat(n,"&sessionId=").concat(null===(r=F.assessmentId)||void 0===r?void 0:r.toString()),{method:"POST",headers:c,body:h,redirect:"follow"});if(!f.ok)throw new Error("FluxPrompt API error");const p=await f.json(),g=null===p||void 0===p||null===(o=p.data)||void 0===o||null===(s=o.message)||void 0===s?void 0:s[0];null===g||void 0===g||g.text;D({open:!0,title:"Success",message:"AI assessment generation is in progress and will be added for download when ready."})}catch(eQ){d(eQ.message||"Failed to generate document."),Ae((t=>Je(Je({},t),{},{[e]:"idle"})))}finally{tt()}}),[F,P,R,et,tt]),it=(0,o.useCallback)((async e=>{const t=null===F||void 0===F?void 0:F.assessmentId;if(t&&P)try{c(!0);const n="policy"===e?{assessmentId:t,assessmentAiPolicyPdf:""}:{assessmentId:t,assessmentFile:""},i=await fetch(WG,{method:"PATCH",headers:{"Content-Type":"application/json",authorization:P},body:JSON.stringify(n)}),r=await i.json().catch((()=>({})));if(!i.ok||!1===(null===r||void 0===r?void 0:r.success))throw new Error((null===r||void 0===r?void 0:r.message)||"Delete failed");s((t=>t?Je(Je({},t),"policy"===e?{assessmentAiPolicyPdf:""}:{assessmentFile:""}):t)),c(!1),D({open:!0,title:"Removed",message:"File removed successfully."})}catch(eQ){D({open:!0,title:"Delete failed",message:eQ.message||"Could not remove the file."})}finally{c(!1)}else D({open:!0,title:"Unable to delete",message:"Missing assessment or authorization info."})}),[F,P]);if((0,o.useEffect)((()=>()=>{if(Re.current)try{Re.current.stop()}catch(e){}Ie.current&&clearInterval(Ie.current),Be.current&&clearInterval(Be.current)}),[]),l)return(0,Le.jsx)(Oz,{children:(0,Le.jsx)(tl,{})});if(!F)return(0,Le.jsx)(Oz,{children:(0,Le.jsxs)("div",{className:"max-w-6xl mx-auto py-12 text-center",children:[(0,Le.jsx)("p",{className:"text-muted-foreground",children:u||"Assessment not found."}),(0,Le.jsx)(BN,{variant:"outline",className:"mt-4",onClick:()=>t("/assessments"),children:i("Back to Assessments")})]})});const rt=R.filter((e=>"completed"===e.interview&&e.transcript)).length;return(0,Le.jsxs)(Oz,{children:[(0,Le.jsxs)("div",{className:"max-w-6xl mx-auto space-y-6",children:[(0,Le.jsxs)(BN,{variant:"ghost",size:"sm",className:"gap-1 -ml-2",onClick:()=>{m&&Ke(),t("/assessments")},children:[(0,Le.jsx)(AM,{className:"h-4 w-4"}),i("Back to Assessments")]}),(0,Le.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h1",{className:"text-3xl font-bold font-display tracking-tight text-foreground",children:F.company}),(0,Le.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:[F.contact,F.contactTitle?" ".concat(F.contactTitle):""]}),(0,Le.jsxs)("p",{className:"text-sm text-muted-foreground",children:[F.email," ",F.phone]})]}),(0,Le.jsx)(cM,{className:"bg-green-500 hover:bg-green-500/80 text-white border-transparent text-sm px-4 py-1",children:r(F.status)})]}),(0,Le.jsx)(nM,{className:"shadow-[var(--card-shadow)]",children:(0,Le.jsxs)(oM,{className:"pt-6",children:[(0,Le.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Le.jsx)("span",{className:"text-sm font-semibold font-display",children:i("Overall Progress")}),(0,Le.jsxs)("span",{className:"text-sm font-semibold text-muted-foreground",children:[F.progress,"%"]})]}),(0,Le.jsx)(lH,{value:F.progress,className:"h-3"}),(0,Le.jsxs)("p",{className:"text-xs text-muted-foreground mt-2",children:[rt,"/",R.length," ",i("completed with transcripts")]})]})}),(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{className:"flex flex-row items-center justify-between",children:[(0,Le.jsx)(rM,{className:"text-lg font-display",children:i("Interviewees")}),!I&&!L&&(0,Le.jsxs)(BN,{size:"sm",className:"gap-1",onClick:()=>$(!0),children:[(0,Le.jsx)(Wz,{className:"h-4 w-4"}),i("Add")]})]}),(0,Le.jsx)(oM,{children:(0,Le.jsxs)(AG,{children:[(0,Le.jsx)(TG,{children:(0,Le.jsxs)(NG,{children:[(0,Le.jsx)(MG,{children:i("Name")}
2),(0,Le.jsx)(MG,{children:i("Role")}),(0,Le.jsx)(MG,{children:i("Type")}),(0,Le.jsx)(MG,{children:i("Interview")}),(0,Le.jsx)(MG,{children:i("Files / Transcript")}),(0,Le.jsx)(MG,{children:i("Actions")})]})}),(0,Le.jsx)(EG,{children:R.map(((e,t)=>(0,Le.jsxs)(NG,{children:[(0,Le.jsx)(PG,{className:"font-medium",children:e.name}),(0,Le.jsx)(PG,{className:"text-muted-foreground",children:e.role}),(0,Le.jsx)(PG,{children:(0,Le.jsx)(cM,{variant:"secondary",className:"font-normal",children:e.type})}),(0,Le.jsx)(PG,{children:(0,Le.jsx)(cM,{className:GG(e.interview),children:e.interview})}),(0,Le.jsx)(PG,{children:Array.isArray(e.files)&&e.files.length>0?(0,Le.jsx)("div",{className:"flex flex-wrap gap-2",children:e.files.map(((t,n)=>(0,Le.jsx)("div",{className:"flex items-center gap-1",children:t?(0,Le.jsx)(cM,{variant:"secondary",className:"flex items-center gap-1 text-[11px] px-2 py-1",children:(0,Le.jsxs)("button",{type:"button",className:"flex items-center gap-1",children:["File ",n+1,(0,Le.jsx)(UG,{className:"h-3 w-3 cursor-pointer",onClick:()=>Ee({open:!0,text:t.transcript.text})}),(0,Le.jsx)(jG,{className:"h-3.5 w-3.5 cursor-pointer",onClick:()=>window.open(t.url,"_blank")}),("Policies"!==e.type&&!I||"Policies"===e.type&&!L)&&(0,Le.jsx)(FG,{className:"h-3 w-3 text-red-500 cursor-pointer",onClick:()=>{((e,t)=>
2{const n=null===F||void 0===F?void 0:F.assessmentId,i=ve(e);P&&n&&i?Me({open:!0,title:"Delete file",message:"This can't be undone. Remove this file?",onConfirm:()=>Ze(e,t)}):D({open:!0,title:"Delete failed",message:"Missing authorization or identifiers."})})(e,n)}})]})}):(0,Le.jsx)(cM,{variant:"secondary",className:"text-[10px]",children:"No transcript"})},"".concat(t.public_id||t.url||n))))}):(0,Le.jsx)("span",{className:"text-sm text-muted-foreground",children:"Not uploaded"})}),(0,Le.jsx)(PG,{children:(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[("Policies"!==e.type&&!I||"Policies"===e.type&&!L)&&(0,Le.jsxs)(BN,{variant:"outline",size:"sm",className:"gap-1",disabled:h===(e.intervieweeId||e._id||e.id),onClick:()=>(async e=>{const t=null===F||void 0===F?void 0:F.assessmentId,n=(null===e||void 0===e?void 0:e.intervieweeId)||(null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id);if(P&&t&&n)try{f(n);const i=(await Ve()).createUploadWidget({cloudName:je,uploadPreset:Fe,sources:["local","url"],multiple:!1,resourceType:"raw",clientAllowedFormats:["pdf","docx","doc"],maxFiles:1,folder:"BizVantage/".concat(t||"unknown","/").concat(n||"unknown","/Files")},(async(i,r)=>{if(i)return d(i.message||"Upload failed."),void f(null);if("success"===(null===r||void 0===r?void 0:r.event)&&null!==r&&void 0!==r&&r.info){const i=r.info;try{var a;c(!0);let r="";if((null===i||void 0===i||null===(a=i.secure_url)||void 0===a?void 0:a.toLowerCase().endsWith(".docx"))||"docx"===(null===i||void 0===i?void 0:i.format))try{const e=await fetch(i.secure_url),t=await e.arrayBuffer(),n=await XC.extractRawText({arrayBuffer:t});r=(null===n||void 0===n?void 0:n.value)||""}catch(o){console.warn("DOCX extraction failed:",o),r=""}else{const e=xy(null===i||void 0===i?void 0:i.secure_url),t=await e.promise;for(let n=1;n<=t.numPages;n++){const e=await t.getPage(n);r+=(await e.getTextContent()).items.map((e=>e.str)).join(" ")+"\n\n"}}const s=[...Array.isArray(e.files)?e.files:[],{url:i.secure_url,format:i.resource_type||i.format,bytes:i.bytes,public_id:i.public_id,transcript:{text:r.trim()}}];await He({assessmentId:t,intervieweeId:n,files:s}),await j()}catch(tQ){alert(tQ),d(tQ.message||"Unable to extract text from file.")}finally{c(!1),f(null)}}else f(null)}));i.open()}catch(eQ){d(eQ.message||"Upload failed."),f(null)}else d("Missing identifiers or authorization.")})(e),children:[(0,Le.jsx)(hq,{className:"h-3.5 w-3.5"}),h===(e.intervieweeId||e._id||e.id)?"Uploading...":"Upload"]}),("Policies"!==e.type&&!I||"Policies"===e.type&&!L)&&(0,Le.jsx)(BN,{variant:"outline",size:"sm",className:"gap-1",onClick:()=>{te(e),ie(e.name||""),oe(e.role||""),le("Policies"===e.type?"Yes":"No"),Z(!0)},children:"Edit"}),("Policies"!==e.type&&!I||"Policies"===e.type&&!L)&&(0,Le.jsx)(BN,{variant:"ghost",size:"sm",className:"gap-1 text-destructive hover:text-destructive hover:bg-destructive/10",disabled:p===(e.intervieweeId||e._id||e.id),onClick:()=>{Ge(e)},children:(0,Le.jsx)(hH,{className:"h-3.5 w-3.5"})})]})})]},t)))})]})})]}),(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsx)(iM,{children:(0,Le.jsx)(rM,{className:"text-lg font-display",children:i("Documents")})}),(0,Le.jsx)(oM,{className:"space-y-3",children:OG(R).map(((e,t)=>{const n=Ce[e.title]||"idle",r="AI Policies & Guidelines"===e.title?"policy":"assessment",a="policy"===r?null===F||void 0===F?void 0:F.assessmentAiPolicyPdf:null===F||void 0===F?void 0:F.assessmentFile;return(0,Le.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border p-4",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"font-medium text-sm",children:i(e.title)}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:a?i("Document ready for download"):"processing"===n?"policy"===r&&null!==S&&void 0!==S&&S.startedAt?"".concat(i("Processing\u2026")," ").concat(T.minutes,"m ").concat(T.seconds,"s"):"assessment"===r&&null!==C&&void 0!==C&&C.startedAt?"".concat(i("Processing\u2026")," ").concat(N.minutes,"m ").concat(N.seconds,"s"):i("Processing\u2026 This may take a few minutes"):O(e)})]}),(0,Le.jsxs)("div",{className:"flex items-center gap-2 relative",children:[a?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)(BN,{size:"sm",className:"gap-1 bg-primary hover:bg-primary/90 text-primary-foreground",onClick:()=>X((e=>e===t?null:t)),children:[(0,Le.jsx)(Hz,{className:"h-3.5 w-3.5"}),i("Download Assets")]}),Y===t&&(0,Le.jsx)("div",{className:"absolute right-0 top-full mt-2 w-48 bg-popover text-popover-foreground border rounded shadow-lg z-50",children:(0,Le.jsx)("div",{className:"flex flex-col py-1",children:(()=>{const e=[];return null!==F&&void 0!==F&&F.assessmentAiPolicyPdf&&"policy"===r&&e.push({label:i("AI Policies & Guidelines"),url:F.assessmentAiPolicyPdf}),null!==F&&void 0!==F&&F.assessmentFile&&e.push({label:i("PDF File"),url:F.assessmentFile}),null!==F&&void 0!==F&&F.assessmentDocxFile&&e.push({label:i("DOCX File"),url:null===F||void 0===F?void 0:F.assessmentDocxFile}),null!==F&&void 0!==F&&F.assessmentPptxFile&&e.push({label:i("PPTX File"),url:null===F||void 0===F?void 0:F.assessmentPptxFile}),0===e.length&&a&&e.push({label:i("Download"),url:a}),e.map(((e,t)=>(0,Le.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block px-3 py-2 text-sm hover:bg-accent/5",onClick:()=>X(null),children:e.label},t)))})()})})]}):(0,Le.jsxs)(BN,{size:"sm",disabled:"processing"===n||("AI Policies & Guidelines"===e.title?!W:!B),className:"gap-1 bg-primary hover:bg-primary/90 text-primary-foreground disabled:opacity-50",onClick:()=>nt(e.title),children:["processing"===n&&(0,Le.jsx)(RG,{className:"h-3.5 w-3.5 animate-spin"}),i("processing"===n?"Processing\u2026":"Submit")]}),"AI Workflow Assessment"===e.title&&I||"AI Policies & Guidelines"===e.title&&L?null:(0,Le.jsxs)(BN,{size:"sm",variant:"outline",className:"text-destructive border-destructive/40 hover:text-destructive",disabled:!a&&"ready"!==n,onClick:()=>Me({open:!0,title:i("Delete Document"),message:"".concat(i("assessment.deleteDocumentConfirmPrefix")," ").concat(i("policy"===r?"AI Policies & Guidelines":"AI Readiness Assessment")," ").concat(i("assessment.deleteDocumentConfirmSuffix")),onConfirm:()=>it(r)}),children:[(0,Le.jsx)(hH,{className:"h-3.5 w-3.5 mr-1"}),i("Delete")]})]})]},t)}))})]}),(0,Le.jsxs)("footer",{className:"text-center text-xs text-muted-foreground py-4 border-t",children:["\xa9 ",(new Date).getFullYear()," GoWest.ai \u2014 All Rights Reserved \xb7"," ",(0,Le.jsx)("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"})]})]}),(0,Le.jsx)(mH,{open:V,onOpenChange:H,assessment:F,defaultInterviewee:q}),F&&(0,Le.jsx)(fq,{open:K,onOpenChange:$,onAdd:async e=>{if(!P)return void d("Not authorized.");const t=null===F||void 0===F?void 0:F.assessmentId;if(!t)return void d("Missing assessment id.");const n=e.map((e=>{var n,i;return{assessmentId:t,name:null===(n=e.name)||void 0===n?void 0:n.trim(),email:null===(i=e.email)||void 0===i?void 0:i.trim(),department:e.department||e.role||"",position:e.position||"",aiPolocyGuidelines:e.aiPolocyGuidelines||"No"}}));for(const i of n)if(!i.name||!i.position)return void d("Name and Position are required.");try{ze(!0);for(const e of n)await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/interviewees",{method:"PUT",headers:{"Content-Type":"application/json",authorization:P},body:JSON.stringify(e)});await j()}catch(eQ){d(eQ.message||"Failed to add interviewee(s).")}finally{ze(!1)}}}
2),(0,Le.jsx)(Uj,{open:Q,onOpenChange:e=>{e||te(null),Z(e)},children:(0,Le.jsxs)(Rj,{className:"max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:i("Edit Interviewee")})}),(0,Le.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("label",{className:"block text-sm font-medium text-muted-foreground",children:i("Name")}),(0,Le.jsx)("input",{type:"text",value:ne,onChange:e=>ie(e.target.value),className:"mt-1 block w-full rounded-lg border border-slate-200 bg-background px-3 py-2 text-sm text-foreground shadow-sm focus:border-primary focus:ring-2 focus:ring-primary/20"})]}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)("label",{className:"block text-sm font-medium text-muted-foreground",children:i("form.position")}),(0,Le.jsx)("input",{type:"text",value:ae,onChange:e=>oe(e.target.value),className:"mt-1 block w-full rounded-lg border border-slate-200 bg-background px-3 py-2 text-sm text-foreground shadow-sm focus:border-primary focus:ring-2 focus:ring-primary/20"})]}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)("label",{className:"block text-sm font-medium text-muted-foreground",children:i("AI Policies & Guidelines")}),(0,Le.jsxs)("select",{value:se,onChange:e=>le(e.target.value),className:"mt-1 block w-full rounded-lg border border-slate-200 bg-background px-3 py-2 text-sm text-foreground shadow-sm focus:border-primary focus:ring-2 focus:ring-primary/20",children:[(0,Le.jsx)("option",{value:"Yes",children:i("Yes")}),(0,Le.jsx)("option",{value:"No",children:i("No")})]})]})]}),(0,Le.jsxs)(Ij,{className:"gap-2 sm:gap-0",children:[(0,Le.jsx)(BN,{variant:"outline",onClick:()=>Z(!1),children:i("Cancel")}),(0,Le.jsxs)(BN,{onClick:Ye,disabled:ce,children:[ce?(0,Le.jsx)(RG,{className:"h-4 w-4 animate-spin"}):null,i("Save")]})]})]})}),(0,Le.jsx)(bG,{open:de,onOpenChange:he,intervieweeName:fe.name,intervieweeType:fe.type,onStartRecording:()=>{fe.data&&(be.current=fe.data,me(!0))},onStopRecording:()=>Ke(),isRecording:!!Se,elapsedSeconds:ke}),(0,Le.jsx)(Uj,{open:ge,onOpenChange:e=>{e||(be.current=null),me(e)},children:(0,Le.jsxs)(Rj,{className:"max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:i("Choose recording mode")})}),(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:i("Record only your microphone, or include meeting/system audio by sharing a tab/window with system audio enabled.")}),(0,Le.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mt-4",children:[(0,Le.jsx)(BN,{variant:"outline",className:"flex-1",onClick:()=>Qe(!0),children:i("Mic only")}),(0,Le.jsx)(BN,{className:"flex-1",onClick:()=>Qe(!1),children:i("Meeting audio + Mic")})]}),(0,Le.jsx)("div",{className:"flex justify-end mt-3",children:(0,Le.jsx)(BN,{variant:"ghost",onClick:()=>{be.current=null,me(!1)},children:i("Cancel")})})]})}),(0,Le.jsx)(Uj,{open:Te.open,onOpenChange:e=>Ee((t=>Je(Je({},t),{},{open:e}))),children:(0,Le.jsxs)(Rj,{className:"max-w-2xl",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:i("Transcript")})}),(0,Le.jsx)("div",{className:"mt-4 max-h-[60vh] overflow-y-auto whitespace-pre-line text-sm text-muted-foreground",children:Te.text||i("No transcript available.")})]})}),(0,Le.jsx)(Uj,{open:_.open,onOpenChange:e=>D((t=>Je(Je({},t),{},{open:e}))),children:(0,Le.jsxs)(Rj,{className:"max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:_.title||i("Notice")})}),(0,Le.jsx)("div",{className:"mt-4 text-sm text-muted-foreground",children:_.message||i("Notification")}),(0,Le.jsx)("div",{className:"mt-6 flex justify-end",children:(0,Le.jsx)(BN,{onClick:()=>D((e=>Je(Je({},e),{},{open:!1}))),children:i("Close")})})]})}),(0,Le.jsx)(Uj,{open:Ne.open,onOpenChange:e=>{e||Pe()},children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:Ne.title||i("Confirm")})}),(0,Le.jsx)("div",{className:"mt-2 text-sm text-muted-foreground",children:Ne.message||i("Are you sure you want to proceed? This action cannot be undone.")}),(0,Le.jsxs)(Ij,{className:"gap-2 sm:gap-0",children:[(0,Le.jsx)(BN,{variant:"outline",onClick:Pe,children:i("Cancel")}),(0,Le.jsx)(BN,{variant:"destructive",onClick:Ue,children:i("Delete")})]})]})}),(0,Le.jsx)(Uj,{open:x.open,onOpenChange:()=>{},children:(0,Le.jsxs)(Rj,{className:"sm:max-w-sm",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:x.title})}),(0,Le.jsxs)("div",{className:"py-4 text-sm text-muted-foreground",children:[(0,Le.jsx)("p",{children:i("Generating document\u2026 please wait.")}),(0,Le.jsxs)("p",{className:"mt-2 font-mono",children:[i("Elapsed"),": ",Math.floor(x.seconds/60),"m"," ",x.seconds%60,"s"]})]})]})})]})},XG=[{title:"AI Policies Interview Sheet",description:"Structured interview template for AI policies assessment",link:"https://res.cloudinary.com/dcfotquxt/image/upload/v1772945998/Ai-AssEss/AI_Policies_Questionaire_V_1_02262026_m0wiia.pdf"}],KG=[{title:"AI Readiness Interview Sheet",description:"Comprehensive interview template for AI readiness evaluation",link:"https://res.cloudinary.com/dcfotquxt/raw/upload/v1758030172/Ai-AssEss/GoWest_Employee_AI_Readiness_Interview_Questions_x0oy8c.docx"}];function $G(e){let{doc:t}=e;return(0,Le.jsx)(nM,{className:"shadow-[var(--card-shadow)] flex flex-col justify-between",children:(0,Le.jsxs)(oM,{className:"pt-5 pb-4 flex flex-col h-full",children:[(0,Le.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[(0,Le.jsx)("div",{className:"rounded-lg bg-primary/20 p-2 shrink-0",children:(0,Le.jsx)(VI,{className:"h-5 w-5 text-accent"})}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"font-semibold text-sm font-display",children:t.title}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:t.description})]})]}),(0,Le.jsx)(BN,{variant:"outline",size:"sm",className:"gap-1.5 w-full mt-auto",asChild:!!t.link,disabled:!t.link,children:t.link?(0,Le.jsxs)("a",{download:!0,onClick:()=>{const e=t.link.replace("/upload/","/upload/fl_attachment/"),n=document.createElement("a");n.href=e,n.rel="noopener",n.download=t.title,n.target="_blank",document.body.appendChild(n),n.click(),n.remove()},className:"cursor-pointer",children:[(0,Le.jsx)(Hz,{className:"h-3.5 w-3.5"}),"Download"]}):(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Hz,{className:"h-3.5 w-3.5"}),"Download"]})})]})})}const QG=()=>{const{t:e}=qe();return(0,Le.jsx)(Oz,{children:(0,Le.jsxs)("div",{className:"max-w-6xl mx-auto 
2space-y-8",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h1",{className:"text-3xl font-bold font-display tracking-tight text-foreground",children:e("Documents")}),(0,Le.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:e("Download interview sheets and reference materials")})]}),(0,Le.jsxs)("section",{children:[(0,Le.jsx)("h2",{className:"text-lg font-semibold font-display mb-3",children:e("AI Policies & Guidelines")}),(0,Le.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:XG.map((e=>(0,Le.jsx)($G,{doc:e},e.title)))})]}),(0,Le.jsxs)("section",{children:[(0,Le.jsx)("h2",{className:"text-lg font-semibold font-display mb-3",children:e("AI Readiness Assessment")}),(0,Le.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:KG.map((e=>(0,Le.jsx)($G,{doc:e},e.title)))})]}),(0,Le.jsxs)("footer",{className:"text-center text-xs text-muted-foreground py-4 border-t",children:["\xa9 ",(new Date).getFullYear()," GoWest.ai \u2014 All Rights Reserved \xb7"," ",(0,Le.jsx)("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"})]})]})})};const ZG=xM("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),JG=xM("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]),eY=xM("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),tY=xM("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),nY=xM("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),iY=xM("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),rY=["id","title","description","action"];function aY(){const{toasts:e}=function(){const[e,t]=o.useState(Ez);return o.useEffect((()=>(Tz.push(t),()=>{const e=Tz.indexOf(t);e>-1&&Tz.splice(e,1)})),[]),Je(Je({},e),{},{toast:Mz,dismiss:e=>Nz({type:"DISMISS_TOAST",toastId:e})})}();return(0,Le.jsxs)(vz,{children:[e.map((function(e){let{id:t,title:n,description:i,action:r}=e,a=Xe(e,rY);return(0,Le.jsxs)(xz,Je(Je({},a),{},{children:[(0,Le.jsxs)("div",{className:"grid gap-1",children:[n&&(0,Le.jsx)(_z,{children:n}),i&&(0,Le.jsx)(Dz,{children:i})]}),r,(0,Le.jsx)(wz,{})]}),t)})),(0,Le.jsx)(bz,{})]})}const oY=["__scopeSwitch","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],sY=["__scopeSwitch"],lY=["__scopeSwitch","control","checked","bubbles"];var cY="Switch",[uY,dY]=jM(cY),[hY,fY]=uY(cY),pY=o.forwardRef(((e,t)=>{const{__scopeSwitch:n,name:i,checked:r,defaultChecked:a,required:s,disabled:l,value:c="on",onCheckedChange:u,form:d}
2=e,h=Xe(e,oY),[f,p]=o.useState(null),g=AE(t,(e=>p(e))),m=o.useRef(!1),v=!f||(d||!!f.closest("form")),[b,y]=WM({prop:r,defaultProp:null!==a&&void 0!==a&&a,onChange:u,caller:cY});return(0,Le.jsxs)(hY,{scope:n,checked:b,disabled:l,children:[(0,Le.jsx)(KM.button,Je(Je({type:"button",role:"switch","aria-checked":b,"aria-required":s,"data-state":bY(b),"data-disabled":l?"":void 0,disabled:l,value:c},h),{},{ref:g,onClick:MM(e.onClick,(e=>{y((e=>!e)),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),v&&(0,Le.jsx)(vY,{control:f,bubbles:!m.current,name:i,value:c,checked:b,required:s,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})}));pY.displayName=cY;var gY="SwitchThumb",mY=o.forwardRef(((e,t)=>{const{__scopeSwitch:n}=e,i=Xe(e,sY),r=fY(gY,n);return(0,Le.jsx)(KM.span,Je(Je({"data-state":bY(r.checked),"data-disabled":r.disabled?"":void 0},i),{},{ref:t}))}));mY.displayName=gY;var vY=o.forwardRef(((e,t)=>{let{__scopeSwitch:n,control:i,checked:r,bubbles:a=!0}=e,s=Xe(e,lY);const l=o.useRef(null),c=AE(l,t),u=yL(r),d=VR(i);return o.useEffect((()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==r&&n){const t=new Event("click",{bubbles:a});n.call(e,r),e.dispatchEvent(t)}}),[u,r,a]),(0,Le.jsx)("input",Je(Je({type:"checkbox","aria-hidden":!0,defaultChecked:r},s),{},{tabIndex:-1,ref:c,style:Je(Je(Je({},s.style),d),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))}));function bY(e){return e?"checked":"unchecked"}vY.displayName="SwitchBubbleInput";var yY=pY,xY=mY;const wY=["className"],_Y=o.forwardRef(((e,t)=>{let{className:n}=e,i=Xe(e,wY);return(0,Le.jsx)(yY,Je(Je({className:ON("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",n)},i),{},{ref:t,children:(0,Le.jsx)(xY,{className:ON("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}))}));_Y.displayName=yY.displayName;const DY=xM("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),SY=xM("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),kY=()=>{const{discountCodes:e,loading:t,addDiscountCode:n,removeDiscountCode:i,toggleDiscountCode:r,updateDiscountCode:a}=fM(),[s,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(""),[f,p]=(0,o.useState)(["Core","Pro"]),[g,m]=(0,o.useState)(!1),[v,b]=(0,o.useState)(null),[y,x]=(0,o.useState)(""),[w,_]=(0,o.useState)(!1),[D,S]=(0,o.useState)(null),k=e=>{const t=Number(y);t<=0||t>100?Mz({title:"Invalid percentage",description:"Must be between 1 and 100.",variant:"destructive"}):(a(e,{percentage:t}),b(null),Mz({title:"Discount updated",description:"Percentage updated to ".concat(t,"%.")}))},C=()=>{b(null),x("")},A=e=>{p((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))};return(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(DY,{className:"h-5 w-5 text-accent"}),(0,Le.jsx)(rM,{className:"text-lg font-display",children:"Discount Codes"})]}),(0,Le.jsx)(aM,{children:"Create and manage discount codes for organizations. Discounts apply to subscription pricing."}),t&&(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:"Loading discounts\u2026"})]}),(0,Le.jsxs)(oM,{className:"space-y-4",children:[e.length>0?(0,Le.jsx)("div",{className:"space-y-2",children:e.map((e=>(0,Le.jsxs)("div",{className:"flex items-center justify-between rounded-md border px-3 py-2.5",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,Le.jsx)(DM,{className:"h-4 w-4 text-muted-foreground shrink-0"}),(0,Le.jsxs)("div",{className:"min-w-0",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Le.jsx)("span",{className:"text-sm font-mono font-semibold",children:e.code}),v===e.discountId?(0,Le.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Le.jsx)(zN,{t
2ype:"number",min:1,max:100,value:y,onChange:e=>x(e.target.value),className:"h-6 w-16 text-xs px-1.5",autoFocus:!0,onKeyDown:t=>{"Enter"===t.key&&k(e.discountId),"Escape"===t.key&&C()}}),(0,Le.jsx)("span",{className:"text-xs text-muted-foreground",children:"%"}),(0,Le.jsx)(BN,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:()=>k(e.discountId),children:(0,Le.jsx)(wM,{className:"h-3 w-3 text-primary"})}),(0,Le.jsx)(BN,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:C,children:(0,Le.jsx)(_M,{className:"h-3 w-3 text-muted-foreground"})})]}):(0,Le.jsxs)(cM,{variant:"secondary",className:"text-[10px] cursor-pointer hover:bg-secondary/80",onClick:()=>{return t=e.discountId,n=e.percentage,b(t),void x(String(n));var t,n},children:[e.percentage,"% off"," ",(0,Le.jsx)(SY,{className:"h-2.5 w-2.5 ml-1"})]}),e.plans.map((e=>(0,Le.jsx)(cM,{variant:"outline",className:"text-[10px]",children:e},e)))]}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:e.organization})]})]}),(0,Le.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Le.jsx)(_Y,{checked:e.active,disabled:t,onCheckedChange:()=>r(e.discountId)}),(0,Le.jsx)(BN,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-destructive",onClick:()=>{return t=e.discountId,n=e.code,S({id:t,code:n}),void _(!0);var t,n},disabled:t,children:(0,Le.jsx)(hH,{className:"h-3.5 w-3.5"})})]})]},e.discountId)))}):(0,Le.jsx)("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No discount codes yet."}),(0,Le.jsx)(Zj,{}),g?(0,Le.jsxs)("div",{className:"space-y-3 rounded-lg border border-dashed p-4",children:[(0,Le.jsx)("p",{className:"text-sm font-medium",children:"New Discount Code"}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[(0,Le.jsxs)("div",{className:"space-y-1.5",children:[(0,Le.jsx)(KN,{className:"text-xs",children:"Code"}),(0,Le.jsx)(zN,{placeholder:"e.g. SAVE25",value:s,onChange:e=>l(e.target.value.toUpperCase()),className:"text-sm font-mono"})]}),(0,Le.jsxs)("div",{className:"space-y-1.5",children:[(0,Le.jsx)(KN,{className:"text-xs",children:"Discount %"}),(0,Le.jsx)(zN,{type:"number",min:1,max:100,placeholder:"e.g. 25",value:c,onChange:e=>u(e.target.value),className:"text-sm"})]}),(0,Le.jsxs)("div",{className:"space-y-1.5",children:[(0,Le.jsx)(KN,{className:"text-xs",children:"Organization"}),(0,Le.jsx)(zN,{placeholder:"e.g. Acme Corp",value:d,onChange:e=>h(e.target.value),className:"text-sm"})]})]}),(0,Le.jsxs)("div",{className:"space-y-1.5",children:[(0,Le.jsx)(KN,{className:"text-xs",children:"Applicable Plans"}),(0,Le.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(vV,{id:"plan-core",checked:f.includes("Core"),onCheckedChange:()=>A("Core")}),(0,Le.jsx)(KN,{htmlFor:"plan-core",className:"text-sm",children:"Core"})]}),(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(vV,{id:"plan-pro",checked:f.includes("Pro"),onCheckedChange:()=>A("Pro")}),(0,Le.jsx)(KN,{htmlFor:"plan-pro",className:"text-sm",children:"Pro"})]})]})]}),(0,Le.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,Le.jsxs)(BN,{size:"sm",onClick:()=>{if(!s.trim()||!c||!d.trim()||0===f.length)return void Mz({title:"Missing fields",description:"Please fill in all fields.",variant:"destructive"});const e=Number(c);e<=0||e>100?Mz({title:"Invalid percentage",description:"Percentage must be between 1 and 100.",variant:"destructive"}):(n({code:s.toUpperCase().trim(),percentage:e,organization:d.trim(),plans:f,active:!0}),l(""),u(""),h(""),p(["Core","Pro"]),m(!1),Mz({title:"Discount code created",description:'Code "'.concat(s.toUpperCase(),'" has been added.')}))},className:"text-xs gap-1.5",disabled:t,children:[(0,Le.jsx)(Wz,{className:"h-3.5 w-3.5"})," Create Code"]}),(0,Le.jsx)(BN,{variant:"ghost",size:"sm",onClick:()=>m(!1),className:"text-xs",children:"Cancel"})]})]}):(0,Le.jsxs)(BN,{variant:"outline",size:"sm",onClick:()=>m(!0),className:"w-full gap-1.5 text-xs",disabled:t,children:[(0,Le.jsx)(Wz,{className:"h-3.5 w-3.5"})," Add Discount Code"]}
2)]}),(0,Le.jsx)(Uj,{open:w,onOpenChange:_,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsx)(Oj,{children:(0,Le.jsx)(Lj,{className:"font-display",children:"Delete Discount"})}),(0,Le.jsx)("div",{className:"text-sm text-muted-foreground space-y-1",children:(0,Le.jsxs)("p",{children:["Are you sure you want to delete the discount code"," ",(0,Le.jsx)("span",{className:"font-semibold",children:null===D||void 0===D?void 0:D.code}),"? This action cannot be undone."]})}),(0,Le.jsxs)(Ij,{className:"gap-2 sm:gap-0",children:[(0,Le.jsx)(BN,{variant:"outline",onClick:()=>_(!1),disabled:t,children:"Cancel"}),(0,Le.jsx)(BN,{variant:"destructive",onClick:async()=>{D&&(await i(D.id||D.discountId),Mz({title:"Code removed",description:'"'.concat(D.code,'" has been deleted.')}),_(!1),S(null))},disabled:t,children:"Delete"})]})]})})]})},CY=[{value:"en",label:"English"},{value:"fr",label:"Fran\xe7ais"},{value:"es",label:"Espa\xf1ol"},{value:"de",label:"Deutsch"},{value:"pt",label:"Portugu\xeas"},{value:"it",label:"Italiano"},{value:"nl",label:"Nederlands"},{value:"ja",label:"\u65e5\u672c\u8a9e"},{value:"zh",label:"\u4e2d\u6587"},{value:"ko",label:"\ud55c\uad6d\uc5b4"},{value:"ar",label:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"}],AY="Core",TY="2025-09-09",EY=6,NY=2,MY=6,PY={Core:{price:"$750/mo",quarterly:"$2,250/qtr",assessments:"1 assessment/month (3/quarter)"},Pro:{price:"$500/mo",quarterly:"$4,500/qtr",assessments:"3 assessments/month"},Enterprise:{price:"Custom",quarterly:"Custom",assessments:"Unlimited assessments"}},UY=[{id:"INV-2026-Q1",date:"Mar 1, 2026",status:"upcoming"},{id:"INV-2025-Q4",date:"Dec 1, 2025",status:"paid"},{id:"INV-2025-Q3",date:"Sep 1, 2025",status:"paid"}],jY=e=>{var t,n,i;return(null===e||void 0===e?void 0:e.planOption)||(null===e||void 0===e||null===(t=e.user)||void 0===t?void 0:t.planOption)||(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.planOption)||(null===e||void 0===e||null===(i=e.subscription)||void 0===i?void 0:i.planOption)||null},FY=e=>e||0===e?"string"===typeof e?e:"$".concat(Number(e).toLocaleString()):null,RY=function(){const e=Je({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return delete e.password,e},OY=()=>{const e=re(),{t:t}=qe(),[n,i]=(0,o.useState)(""),[r,a]=(0,o.useState)(""),[s,l]=(0,o.useState)(null),[c,u]=(0,o.useState)("en"),d=(0,o.useRef)(null),[h,f]=(0,o.useState)(!1),[p,g]=(0,o.useState)(!1),[m,v]=(0,o.useState)(""),[b,y]=(0,o.useState)({}),[x,w]=(0,o.useState)(""),[_,D]=(0,o.useState)(""),[S,k]=(0,o.useState)(""),[C,A]=(0,o.useState)(""),[T,E]=(0,o.useState)(!1),[N,M]=(0,o.useState)([]),[P,U]=(0,o.useState)(!1),[j,F]=(0,o.useState)(!1),R=(0,o.useMemo)((()=>{try{const e=localStorage.getItem("bv.registerResponse");return e?JSON.parse(e):null}catch(e){return null}}),[]),O=null===R||void 0===R?void 0:R.authToken,I=(0,o.useMemo)((()=>{var e,n,i,r,a,o,s,l,c,u,d,h;const f=jY(R),p=(g=(e=>e?"string"===typeof e?e:e.name||e.planName||e.title||e.label||e.tier||AY:AY)(f),Object.keys(PY).find((e=>e.toLowerCase()===String(g).toLowerCase()))||g||AY);var g;const m=f&&"object"===typeof f?f:{};return{tier:p,details:PY[p]||{price:FY(m.price||m.monthlyPrice)||"\u2014",quarterly:FY(m.quarterly||m.quarterlyPrice)||"\u2014",assessments:m.assessments||m.assessmentLimit||t("Assessment limit unavailable")},monthsRemaining:null!==(e=null!==(n=null!==(i=m.monthsRemaining)&&void 0!==i?i:null===R||void 0===R?void 0:R.monthsRemaining)&&void 0!==n?n:null===R||void 0===R||null===(r=R.subscription)||void 0===r?void 0:r.monthsRemaining)&&void 0!==e?e:EY,assessmentsThisMonth:null!==(a=null!==(o=null!==(s=m.assessmentsThisMonth)&&void 0!==s?s:null===R||void 0===R?void 0:R.assessmentsThisMonth)&&void 0!==o?o:null===R||void 0===R||null===(l=R.subscription)||void 0===l?void 0:l.assessmentsThisMonth)&&void 0!==a?a:NY,monthsActive:null!==(c=null!==(u=null!==(d=m.monthsActive)&&void 0!==d?d:null===R||void 0===R?void 0:R.monthsActive)&&void 0!==u?u:null===R||void 0===R||null===(h=R.subscription)||void 0===h?void 0:h.monthsActive)&&void 0!==c?c:MY}}),[R,t]),L=(0,o.useMemo)((()=>{var e,t;return R&&((null===R||void 0===R?void 0:R.userId)||(null===R||void 0===R?void 0:R._id)||(null===R||void 0===R||null===(e=R.user)||void 0===e?void 0:e._id)||(null===R||void 0===R||null===(t=R.data)||void 0===t?void 0:t.userId)
2)||null}),[R]),B=(0,o.useMemo)((()=>{var e,t,n;return(null===R||void 0===R?void 0:R.email)||(null===R||void 0===R||null===(e=R.user)||void 0===e?void 0:e.email)||(null===R||void 0===R||null===(t=R.data)||void 0===t?void 0:t.email)||(null===R||void 0===R||null===(n=R.company)||void 0===n?void 0:n.email)||""}),[R]),W=(0,o.useMemo)((()=>{var e,t;return R&&((null===R||void 0===R||null===(e=R.subscription)||void 0===e?void 0:e.status)||(null===R||void 0===R?void 0:R.subscriptionStatus)||(null===R||void 0===R?void 0:R.status)||(null!==R&&void 0!==R&&null!==(t=R.subscription)&&void 0!==t&&t.paid?"paid":null))||null}),[R]),[z,V]=(0,o.useState)(W);(0,o.useEffect)((()=>{V(W)}),[W]);const H=(0,o.useMemo)((()=>{var e;let t="";try{var n,i;t=localStorage.getItem("role")||(null===R||void 0===R?void 0:R.role)||(null===R||void 0===R||null===(n=R.user)||void 0===n?void 0:n.role)||(null===R||void 0===R||null===(i=R.data)||void 0===i?void 0:i.role)||""}catch(r){t=""}return"admin"===(null===(e=t)||void 0===e?void 0:e.toLowerCase())}),[R]);(0,o.useEffect)((()=>{var e,t,n,r;const o=(null===R||void 0===R?void 0:R.companyName)||(null===R||void 0===R||null===(e=R.company)||void 0===e?void 0:e.companyName)||(null===R||void 0===R||null===(t=R.data)||void 0===t?void 0:t.companyName)||"",s=(null===R||void 0===R?void 0:R.companyLogo)||(null===R||void 0===R||null===(n=R.company)||void 0===n?void 0:n.companyLogo)||(null===R||void 0===R||null===(r=R.data)||void 0===r?void 0:r.companyLogo)||"";o&&i(o),s&&a(s)}),[R]),(0,o.useEffect)((()=>{var e,t,n,i;const r=(null===R||void 0===R?void 0:R.fullName)||(null===R||void 0===R||null===(e=R.user)||void 0===e?void 0:e.fullName)||(null===R||void 0===R||null===(t=R.data)||void 0===t?void 0:t.fullName)||"",a=(null===R||void 0===R?void 0:R.phone)||(null===R||void 0===R||null===(n=R.user)||void 0===n?void 0:n.phone)||(null===R||void 0===R||null===(i=R.data)||void 0===i?void 0:i.phone)||"";w(r),D(a)}),[R]),(0,o.useEffect)((()=>{var e,t,n,i,r,a;const o=(null===R||void 0===R?void 0:R.fullName)||(null===R||void 0===R||null===(e=R.user)||void 0===e?void 0:e.fullName)||(null===R||void 0===R||null===(t=R.company)||void 0===t?void 0:t.contact)||"",s=(null===R||void 0===R?void 0:R.email)||(null===R||void 0===R||null===(n=R.user)||void 0===n?void 0:n.email)||(null===R||void 0===R||null===(i=R.company)||void 0===i?void 0:i.email)||"",l=jY(R),c=I.tier,u=(null===R||void 0===R?void 0:R.nextBilling)||(null===R||void 0===R?void 0:R.billingDate)||(null===R||void 0===R||null===(r=R.subscription)||void 0===r?void 0:r.nextBilling)||(null===R||void 0===R||null===(a=R.subscription)||void 0===a?void 0:a.billingDate)||TY||"",d=l&&"object"===typeof l?l:{},h=FY(d.amount||d.quarterly||d.quarterlyPrice||d.price||d.monthlyPrice)||I.details.quarterly||"\u2014";y({name:o||"N/A",email:s||"N/A",nextBilling:u||"\u2014",amount:h,plan:c})}),[R,I]),(0,o.useEffect)((()=>{if(!L)return;(async()=>{U(!0);try{var n,i;const r=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/user/invoices",{method:"POST",headers:Je({"Content-Type":"application/json"},O?{authorization:O}:{}),body:JSON.stringify({userId:L})}),a=await r.json().catch((()=>({})));if(null!==a&&void 0!==a&&null!==(n=a.message)&&void 0!==n&&n.toLowerCase().includes("unauthorized")||null!==a&&void 0!==a&&null!==(i=a.message)&&void 0!==i&&i.toLowerCase().includes("401"))return void e("/ ");if(!r.ok)throw new Error((null===a||void 0===a?void 0:a.message)||t("Unable to load invoices."));M(a)}catch(tQ){var r,a;if(console.error("invoice fetch error",tQ),null!==tQ&&void 0!==tQ&&null!==(r=tQ.message)&&void 0!==r&&r.toLowerCase().includes("unauthorized")||null!==tQ&&void 0!==tQ&&null!==(a=tQ.message)&&void 0!==a&&a.toLowerCase().includes("401"))return void e("/login");Mz({title:t("Invoice load failed"),description:(null===tQ||void 0===tQ?void 0:tQ.message)||t("Could not load upcoming invoices."),variant:"destructive"})}finally{U(!1)}})()}),[O,e,t,L]);const q=(0,o.useCallback)((()=>{var e;return"undefined"===typeof window?Promise.reject():null!==(e=window.cloudinary)&&void 0!==e&&e.createUploadWidget?Promise.resolve(window.cloudinary):new Promise(((e,n)=>{const i=document.createElement("script");i.src="https://widget.cloudinary.com/v2.0/global/all.js",i.async=!0,i.onload=()=>{var i;null!==(i=window.cloudinary)&&void 0!==i&&i.createUploadWidget?e(window.cloudinary):n(new Error(t("Cloudinary widget failed to load.")))},i.onerror=()=>n(new Error(t("Cloudinary widget failed to load."))),document.body.appendChild(i)}))}),[t]),G=(0,o.useCallback)((async()=>
2{if(v(""),L)try{g(!0);const e=(await q()).createUploadWidget({cloudName:"dcfotquxt",uploadPreset:"flsdzoc2",sources:["local","url"],multiple:!1,resourceType:"image",maxFiles:1,folder:"BizVantage/".concat(L,"/Companys")},((e,n)=>{if(e)return g(!1),void Mz({title:t("Upload failed"),description:e.message||t("Could not upload logo."),variant:"destructive"});"success"===(null===n||void 0===n?void 0:n.event)&&null!==n&&void 0!==n&&n.info&&(a(n.info.secure_url),l(null),Mz({title:t("Logo uploaded"),description:t("Your company logo has been saved.")}),g(!1)),"close"===(null===n||void 0===n?void 0:n.event)&&g(!1)}));null===e||void 0===e||e.open()}catch(eQ){g(!1),v(eQ.message||t("Unable to open upload widget."))}else v(t("Missing user id. Please sign in again."))}),[q,t,L]),{tier:Y,details:X,monthsRemaining:K,assessmentsThisMonth:$,monthsActive:Q}=I,Z="Core"===Y&&Q>=6&&$>1,J=e=>{if(!e)return"\u2014";return("number"===typeof e?new Date(1e3*e):new Date(e)).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})},ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";if(null==e||""===e)return"\u2014";const n=Number(e);return Number.isNaN(n)?String(e):new Intl.NumberFormat("en-US",{style:"currency",currency:t.toUpperCase()}).format(n/100)},te=N.length?N.map((e=>{var n,i,r;return{id:e.number||e.invoice_number||e.id||e._id||"Invoice",date:e.due_date||e.next_payment_attempt||e.period_end||e.date||"",status:e.status||(e.paid?"paid":"upcoming")||"upcoming",amount:e.amount_due||e.total||e.amount_paid||e.amount||e.price||e.quarterly||null,currency:e.currency||e.currency_code||"USD",description:e.description||e.statement_descriptor||(null===(n=e.lines)||void 0===n||null===(i=n.data)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.description)||t("Quarterly invoice"),invoiceUrl:e.invoice_pdf||e.hosted_invoice_url||""}})):UY.map((e=>{var n;return Je(Je({},e),{},{amount:e.amount||(null===(n=X.quarterly)||void 0===n?void 0:n.replace("/qtr",""))||"\u2014",currency:"USD",description:e.description||t("Quarterly invoice"),invoiceUrl:""})}));return(0,Le.jsxs)(Oz,{children:[h&&(0,Le.jsx)(tl,{}),(0,Le.jsx)(Uj,{open:T,onOpenChange:E,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsxs)(Oj,{children:[(0,Le.jsx)("div",{className:"mb-2 flex h-11 w-11 items-center justify-center rounded-full bg-primary/10",children:(0,Le.jsx)(GI,{className:"h-6 w-6 text-primary"})}),(0,Le.jsx)(Lj,{className:"font-display",children:t("Account Settings Updated")}),(0,Le.jsx)(Bj,{children:t("Your account details have been saved successfully.")})]}),(0,Le.jsx)(Ij,{children:(0,Le.jsx)(BN,{onClick:()=>E(!1),children:t("Done")})})]})}),(0,Le.jsx)(Uj,{open:j,onOpenChange:F,children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsxs)(Oj,{children:[(0,Le.jsx)(Lj,{className:"font-display",children:t("Pause Subscription")}),(0,Le.jsx)(Bj,{children:t("Please contact [email protected] to pause your account and payments.")})]}),(0,Le.jsx)(Ij,{className:"space-x-2",children:(0,Le.jsx)(BN,{variant:"secondary",onClick:()=>F(!1),children:t("Close")})})]})}),(0,Le.jsxs)("div",{className:"max-w-5xl mx-auto space-y-6 py-2",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:t("Settings")}),(0,Le.jsx)("p",{className:"text-muted-foreground text-sm mt-1",children:t("settings.subtitle")})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(ZG,{className:"h-5 w-5 text-accent"}),(0,Le.jsx)(rM,{className:"text-lg font-display",children:t("Account Settings")})]}),(0,Le.jsx)(aM,{children:t("Update your contact information and password.")})]}),(0,Le.jsxs)(oM,{className:"space-y-5",children:[(0,Le.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"accountFullName",children:t("Full Name")}),(0,Le.jsx)(zN,{id:"accountFullName",value:x,onChange:e=>w(e.target.value),placeholder:t("Enter your full name"),autoComplete:"name"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"accountPhone",children:t("Phone")}
2),(0,Le.jsx)(zN,{id:"accountPhone",type:"tel",value:_,onChange:e=>D(e.target.value),placeholder:t("Enter your phone number"),autoComplete:"tel"})]})]}),(0,Le.jsx)(Zj,{}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"accountPassword",children:t("New Password")}),(0,Le.jsx)(zN,{id:"accountPassword",type:"password",value:S,onChange:e=>k(e.target.value),placeholder:t("Leave blank to keep current"),autoComplete:"new-password"})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"accountConfirmPassword",children:t("Confirm Password")}),(0,Le.jsx)(zN,{id:"accountConfirmPassword",type:"password",value:C,onChange:e=>A(e.target.value),placeholder:t("Confirm new password"),autoComplete:"new-password"})]})]})]})]}),(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(JG,{className:"h-5 w-5 text-accent"}),(0,Le.jsx)(rM,{className:"text-lg font-display",children:t("White Label")})]}),(0,Le.jsx)(aM,{children:t("Your company name and logo appear on all generated documents.")})]}),(0,Le.jsxs)(oM,{className:"space-y-5",children:[(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"companyName",children:t("form.companyName")}),(0,Le.jsx)(zN,{id:"companyName",placeholder:t("Enter your company name"),value:n,onChange:e=>i(e.target.value)})]}),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{children:t("Company Logo")}),r?(0,Le.jsxs)("div",{className:"flex items-center gap-4 relative",children:[(0,Le.jsx)("button",{onClick:()=>{a(null),l(null),d.current&&(d.current.value="")},className:"absolute -top-1.5 z-20 -left-1.5 bg-destructive text-destructive-foreground rounded-full p-0.5 hover:bg-destructive/90 transition-colors",children:(0,Le.jsx)(_M,{className:"h-3.5 w-3.5"})}),(0,Le.jsx)("div",{className:"relative h-20 w-20 rounded-lg border border-border bg-muted/30 flex items-center justify-center overflow-hidden",children:(0,Le.jsx)("img",{src:r,alt:t("Company Logo"),className:"h-full w-full object-contain p-1"})}),(0,Le.jsxs)("div",{className:"text-sm text-muted-foreground",children:[(0,Le.jsx)("p",{className:"font-medium text-foreground",children:null===s||void 0===s?void 0:s.name}),(0,Le.jsx)("p",{children:s?(s.size/1024).toFixed(1)+" KB":""})]})]}):(0,Le.jsxs)("div",{onClick:G,className:"border-2 border-dashed border-border rounded-lg p-6 flex flex-col items-center gap-2 cursor-pointer hover:border-primary/50 hover:bg-primary/10 transition-colors",children:[(0,Le.jsx)("div",{className:"h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Le.jsx)(hq,{className:"h-5 w-5 text-primary"})}),(0,Le.jsx)("p",{className:"text-sm font-medium text-foreground",children:t("Click to upload logo")}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:t("PNG, JPG, SVG up to 2MB")})]}),(0,Le.jsx)("input",{ref:d,type:"file",accept:"image/*",onChange:e=>{var n,i;const r=null===e||void 0===e||null===(n=e.target)||void 0===n||null===(i=n.files)||void 0===i?void 0:i[0];if(!r)return void G();if(!r.type.startsWith("image/"))return void Mz({title:t("Invalid file"),description:t("Please upload an image file."),variant:"destructive"});l(r);const o=new FileReader;o.onloadend=()=>a(o.result),o.readAsDataURL(r)},className:"hidden"})]}),(n||r)&&(0,Le.jsxs)("div",{className:"rounded-lg border border-border bg-muted/20 p-4",children:[(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mb-2 uppercase tracking-wider font-medium",children:t("Document Header Preview")}),(0,Le.jsxs)("div",{className:"flex items-center gap-3 bg-background rounded-md p-3 border border-border",children:[r?(0,Le.jsx)("img",{src:r,alt:t("Company Logo"),className:"h-8 w-8 object-contain"}):(0,Le.jsx)("div",{className:"h-8 w-8 rounded bg-muted flex items-center justify-center",children:(0,Le.jsx)(eY,{className:"h-4 w-4 text-muted-foreground"})}),(0,Le.jsx)("span",{className:"font-semibold text-foreground",children:n||t("Your Company Name")})]})]})]})]}),(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(tY,{className:"h-5 w-5 text-accent"}),(0,Le.jsx)(rM,{className:"text-lg font-display",children:t("Language")})]}),(0,Le.jsx)(aM,{children:t("Select the language for generated output documents and reports.")})]}),(0,Le.jsx)(oM,{children:(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"language",children:t("Output Language")}),(0,Le.jsxs)(lW,{value:c,onValueChange:u,children:[(0,Le.jsx)(uW,{children:(0,Le.jsx)(cW,{placeholder:t("Select language")})}),(0,Le.jsx)(dW,{children:CY.map((e=>(0,Le.jsx)(pW,{value:e.value,children:e.label},e.value)))})]}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:t("This determines the language used in AI Readiness Assessments and Policy documents.")})]})})]}),(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{className:"flex flex-row items-center justify-between",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(zz,{className:"h-5 w-5 text-accent"}),(0,Le.jsx)(rM,{className:"text-lg font-display",children:t("Subscription")})]}),(0,Le.jsx)(cM,{variant:"secondary",className:"text-xs font-semibold",children:Y})]}),(0,Le.jsxs)(oM,{className:"space-y-5",children:[(0,Le.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[(0,Le.jsx)("div",{children:(0,Le.jsxs)("p",{className:"text-xs text-muted-foreground",children:[t(X.assessments)," \xb7 ",t("Billed quarterly at")," ","Custom"===X.quarterly?t("Custom"):X.quarterly]})}),"active"===String(z||W||"").toLowerCase()&&(0,Le.jsx)(BN,{variant:"destructive",size:"sm",className:"h-10 w-full sm:w-auto",onClick:()=>F(!0),children:t("Pause Subscription")})]}),(0,Le.jsx)(Zj,{}),(0,Le.jsxs)("div",{children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Le.jsx)(Vz,{className:"h-4 w-4 text-muted-foreground"}),(0,Le.jsx)("span",{className:"text-sm font-medium",children:t("Quarterly Invoices")})]}),(0,Le.jsx)("div",{className:"space-y-2",children:P?(0,Le.jsx)("div",{className:"rounded-md border px-3 py-4 text-sm text-muted-foreground",children:t("Loading upcoming invoices...")}):te.length>0?te.map((e=>(0,Le.jsxs)("div",{className:"flex items-center justify-between rounded-md border px-3 py-2",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-sm font-medium",children:e.id}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:e.description}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:J(e.date)})]}),(0,Le.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Le.jsx)("span",{className:"text-sm font-medium",children:ee(e.amount,e.currency)}),(0,Le.jsx)(cM,{variant:"paid"===e.status?"secondary":"default",className:"text-[10px]",children:"paid"===e.status?t("Paid"):t("Upcoming")}),e.invoiceUrl&&(0,Le.jsx)(BN,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>window.open(e.invoiceUrl,"_blank"),children:(0,Le.jsx)(nY,{className:"h-3.5 w-3.5"})})]})]},e.id))):(0,Le.jsx)("div",{className:"rounded-md border px-3 py-4 text-sm text-muted-foreground",children:t("No upcoming invoices found.")})})]}),Z&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(Zj,{}),(0,Le.jsx)("div",{className:"rounded-lg border border-primary/20 bg-primary/5 p-4",children:(0,Le.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Le.jsx)(qz,{className:"h-5 w-5 text-primary shrink-0 mt-0.5"}),(0,Le.jsxs)("div",{className:"flex-1",children:[(0,Le.jsx)("p",{className:"text-sm font-semibold",children:t("Upgrade to Pro")}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:t("settings.upgradeCopy")}),(0,Le.jsxs)(BN,{size:"sm",className:"text-xs h-8 mt-3",children:[t("Upgrade to Pro")," ",(0,Le.jsx)(Gz,{className:"h-3.5 w-3.5 ml-1"})]})]})]})})]})]})]}),(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{children:[(0,Le.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Le.jsx)(iY,{className:"h-5 w-5 text-accent"}),(0,Le.jsx)(rM,{className:"text-lg font-display",children:t("Billing")})]}),(0,Le.jsx)(aM,{children:t("Manage your payment method and billing details.")})]}),(0,Le.jsxs)(oM,{className:"space-y-5",children:[(0,Le.jsx)(Zj,{}),(0,Le.jsxs)("div",{className:"space-y-3",children:[(0,Le.jsx)(KN,{children:t("Billing Details")}),(0,Le.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,Le.jsxs)("div",{className:"flex justify-between",children:[(0,Le.jsx)("span",{className:"text-muted-foreground",children:t("Name")}
2),(0,Le.jsx)("span",{className:"font-medium",children:b.name||"N/A"})]}),(0,Le.jsxs)("div",{className:"flex justify-between",children:[(0,Le.jsx)("span",{className:"text-muted-foreground",children:t("Email")}),(0,Le.jsx)("span",{className:"font-medium",children:b.email||"N/A"})]}),(0,Le.jsxs)("div",{className:"flex justify-between",children:[(0,Le.jsx)("span",{className:"text-muted-foreground",children:t("Plan")}),(0,Le.jsx)("span",{className:"font-medium",children:b.plan||"N/A"})]}),(0,Le.jsxs)("div",{className:"flex justify-between",children:[(0,Le.jsx)("span",{className:"text-muted-foreground",children:t("Next billing")}),(0,Le.jsx)("span",{className:"font-medium",children:b.nextBilling||"\u2014"})]}),(0,Le.jsxs)("div",{className:"flex justify-between",children:[(0,Le.jsx)("span",{className:"text-muted-foreground",children:t("Amount")}),(0,Le.jsx)("span",{className:"font-medium",children:b.amount||"\u2014"})]})]})]}),(0,Le.jsx)(Zj,{}),(0,Le.jsxs)(BN,{variant:"outline",className:"w-full gap-2 text-sm",onClick:()=>e("/billing"),children:[(0,Le.jsx)(nY,{className:"h-4 w-4"}),t("Open Billing Portal")]})]})]})]}),H&&(0,Le.jsx)(hM,{children:(0,Le.jsx)(kY,{})}),(0,Le.jsx)("div",{className:"flex justify-end gap-3",children:(0,Le.jsx)(BN,{onClick:async()=>{v("");const e=x.trim(),i=_.trim(),a=S.trim(),o=n.trim();if(!e)return v(t("Full name is required.")),void Mz({title:t("Full name required"),description:t("Enter your full name before saving account settings."),variant:"destructive"});if(!i)return v(t("Phone number is required.")),void Mz({title:t("Phone number required"),description:t("Enter your phone number before saving account settings."),variant:"destructive"});if(!B)return v(t("Email is required.")),void Mz({title:t("Email missing"),description:t("Please sign in again before updating account settings."),variant:"destructive"});if(C.trim()&&!a)return v(t("New password is required.")),void Mz({title:t("New password required"),description:t("Enter a new password before confirming it."),variant:"destructive"});if(a&&a!==C.trim())return v(t("Passwords do not match.")),void Mz({title:t("Passwords do not match"),description:t("Confirm your new password before saving."),variant:"destructive"});try{f(!0);const n=Je({email:B,fullName:e,phone:i,companyName:o,companyLogo:r},a?{password:Ye().AES.encrypt(a,"122Codeman!").toString()}:{}),s=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/userUpdate",{method:"POST",headers:Je({"Content-Type":"application/json"},O?{authorization:O}:{}),body:JSON.stringify(n)}),l=await s.json().catch((()=>({})));if(s.ok&&null!==l&&void 0!==l&&l.success){const n=(null===R||void 0===R?void 0:R.user)||{},a=(null===R||void 0===R?void 0:R.data)||{},s=(null===R||void 0===R?void 0:R.company)||{},c=RY(l),u=RY(null===c||void 0===c?void 0:c.user),d=RY(null===c||void 0===c?void 0:c.data),h=RY(null===c||void 0===c?void 0:c.company),f=Je(Je(Je(Je(Je({},R||{}),c),{},{email:B,fullName:e,phone:i,companyName:o,companyLogo:r},null!==R&&void 0!==R&&R.user||null!==c&&void 0!==c&&c.user?{user:Je(Je(Je({},n),u),{},{email:B,fullName:e,phone:i})}:{}),null!==R&&void 0!==R&&R.data||null!==c&&void 0!==c&&c.data?{data:Je(Je(Je({},a),d),{},{email:B,fullName:e,phone:i,companyName:o,companyLogo:r})}:{}),null!==R&&void 0!==R&&R.company||null!==c&&void 0!==c&&c.company?{company:Je(Je(Je({},s),h),{},{email:B,companyName:o,companyLogo:r})}:{});localStorage.setItem("bv.registerResponse",JSON.stringify(f)),y((t=>Je(Je({},t),{},{name:e}))),k(""),A(""),E(!0),Mz({title:t("Saved"),description:t("Account settings updated.")})}else{const e=(null===l||void 0===l?void 0:l.message)||t("Failed to save account settings.");v(e),Mz({title:t("Save failed"),description:e,variant:"destructive"})}}catch(eQ){const n=eQ.message||t("Failed to save account settings.");v(n),Mz({title:t("Save failed"),description:n,variant:"destructive"})}finally{f(!1)}},disabled:h,className:"px-6",children:t(h?"Saving...":"Save Settings")})})]}),(0,Le.jsx)(aY,{})]})},IY=(xM("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),xM("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),{lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}});function LY(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const BY={date:LY({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:LY({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:LY({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},WY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function zY(e){return(t,n)=>{let i;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=null!==n&&void 0!==n&&n.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}return i[e.argumentCallback?e.argumentCallback(t):t]}}const VY={ordinalNumber:(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:zY({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:zY({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:zY({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:zY({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:zY({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function HY(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=n.width,r=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const o=a[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(o))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(o)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(o.length)}}}const qY={ordinalNumber:(GY={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.match(GY.matchPattern);if(!n)return null;const i=n[0],r=e.match(GY.parsePattern);if(!r)return null;let a=GY.valueCallback?GY.valueCallback(r[0]):r[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(i.length)}}),era:HY({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:HY({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:HY({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:HY({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:HY({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var GY;const YY={code:"en-US",formatDistance:(e,t,n)=>{let i;const r=IY[e];return i="string"===typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:BY,formatRelative:(e,t,n,i)=>WY[e],localize:VY,match:qY,options:{weekStartsOn:0,firstWeekContainsDate:1}};let XY={};function KY(){return XY}Math.pow(10,8);const $Y=6048e5,QY=Symbol.for("constructDateFrom");function ZY(e,t){return"function"===typeof e?e(t):e&&"object"===typeof e&&QY in e?e[QY](t):e instanceof Date?new e.constructor(t):new Date(t)}function JY(e,t){return ZY(t||e,e)}function eX(e){const t=JY(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tX(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];const r=ZY.bind(null,e||n.find((e=>"object"===typeof e)));return n.map(r)}function nX(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in);return n.setHours(0,0,0,0),n}function iX(e,t,n){const[i,r]=tX(null===n||void 0===n?void 0:n.in,e,t),a=nX(i),o=nX(r),s=+a-eX(a),l=+o-eX(o);return Math.round((s-l)/864e5)}function rX(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function aX(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in);return iX(n,rX(n))+1}function oX(e,t){var n,i,r,a,o,s;const l=KY(),c=null!==(n=null!==(i=null!==(r=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==r?r:l.weekStartsOn)&&void 0!==i?i:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,u=JY(e,null===t||void 0===t?void 0:t.in),d=u.getDay(),h=(d<c?7:0)+d-c;return u.setDate(u.getDate()-h),u.setHours(0,0,0,0),u}function sX(e,t){return oX(e,Je(Je({},t),{},{weekStartsOn:1}
2))}function lX(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in),i=n.getFullYear(),r=ZY(n,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);const a=sX(r),o=ZY(n,0);o.setFullYear(i,0,4),o.setHours(0,0,0,0);const s=sX(o);return n.getTime()>=a.getTime()?i+1:n.getTime()>=s.getTime()?i:i-1}function cX(e,t){const n=lX(e,t),i=ZY((null===t||void 0===t?void 0:t.in)||e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),sX(i)}function uX(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in),i=+sX(n)-+cX(n);return Math.round(i/$Y)+1}function dX(e,t){var n,i,r,a,o,s;const l=JY(e,null===t||void 0===t?void 0:t.in),c=l.getFullYear(),u=KY(),d=null!==(n=null!==(i=null!==(r=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==r?r:u.firstWeekContainsDate)&&void 0!==i?i:null===(s=u.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,h=ZY((null===t||void 0===t?void 0:t.in)||e,0);h.setFullYear(c+1,0,d),h.setHours(0,0,0,0);const f=oX(h,t),p=ZY((null===t||void 0===t?void 0:t.in)||e,0);p.setFullYear(c,0,d),p.setHours(0,0,0,0);const g=oX(p,t);return+l>=+f?c+1:+l>=+g?c:c-1}function hX(e,t){var n,i,r,a,o,s;const l=KY(),c=null!==(n=null!==(i=null!==(r=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==r?r:l.firstWeekContainsDate)&&void 0!==i?i:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==n?n:1,u=dX(e,t),d=ZY((null===t||void 0===t?void 0:t.in)||e,0);d.setFullYear(u,0,c),d.setHours(0,0,0,0);return oX(d,t)}function fX(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in),i=+oX(n,t)-+hX(n,t);return Math.round(i/$Y)+1}function pX(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const gX={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return pX("yy"===t?i%100:i,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):pX(n+1,2)},d:(e,t)=>pX(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>pX(e.getHours()%12||12,t.length),H:(e,t)=>pX(e.getHours(),t.length),m:(e,t)=>pX(e.getMinutes(),t.length),s:(e,t)=>pX(e.getSeconds(),t.length),S(e,t){const n=t.length,i=e.getMilliseconds();return pX(Math.trunc(i*Math.pow(10,n-3)),t.length)}},mX="midnight",vX="noon",bX="morning",yX="afternoon",xX="evening",wX="night",_X={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),i=t>0?t:1-t;return n.ordinalNumber(i,{unit:"year"})}return gX.y(e,t)},Y:function(e,t,n,i){const r=dX(e,i),a=r>0?r:1-r;if("YY"===t){return pX(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):pX(a,t.length)},R:function(e,t){return pX(lX(e),t.length)},u:function(e,t){return pX(e.getFullYear(),t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return pX(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return pX(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return gX.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return pX(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const r=fX(e,i);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):pX(r,t.length)},I:function(e,t,n){const i=uX(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):pX(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):gX.d(e,t)},D:function(e,t,n){const i=aX(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):pX(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return pX(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const r=e.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return pX(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),r=0===i?7:i;switch(t){case"i":return String(r);case"ii":return pX(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let r;switch(r=12===i?vX:0===i?mX:i/12>
2=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let r;switch(r=i>=17?xX:i>=12?yX:i>=4?bX:wX,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return gX.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):gX.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):pX(i,t.length)},k:function(e,t,n){let i=e.getHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):pX(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):gX.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):gX.s(e,t)},S:function(e,t){return gX.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return SX(i);case"XXXX":case"XX":return kX(i);default:return kX(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return SX(i);case"xxxx":case"xx":return kX(i);default:return kX(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+DX(i,":");default:return"GMT"+kX(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+DX(i,":");default:return"GMT"+kX(i,":")}},t:function(e,t,n){return pX(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return pX(+e,t.length)}};function DX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",i=Math.abs(e),r=Math.trunc(i/60),a=i%60;return 0===a?n+String(r):n+String(r)+t+pX(a,2)}function SX(e,t){if(e%60===0){return(e>0?"-":"+")+pX(Math.abs(e)/60,2)}return kX(e,t)}function kX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",i=Math.abs(e);return n+pX(Math.trunc(i/60),2)+t+pX(i%60,2)}const CX=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},AX=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},TX={p:AX,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return CX(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",CX(i,t)).replace("{{time}}",AX(r,t))}},EX=/^D+$/,NX=/^Y+$/,MX=["D","DD","YY","YYYY"];function PX(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function UX(e){return!(!PX(e)&&"number"!==typeof e||isNaN(+JY(e)))}const jX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,FX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,RX=/^'([^]*?)'?$/,OX=/''/g,IX=/[a-zA-Z]/;function LX(e,t,n){var i,r,a,o,s,l,c,u,d,h,f,p,g,m;const v=KY(),b=null!==(i=null!==(r=null===n||void 0===n?void 0:n.locale)&&void 0!==r?r:v.locale)&&void 0!==i?i:YY,y=null!==(a=null!==(o=null!==(s=null!==(l=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==s?s:v.firstWeekContainsDate)&&void 0!==o?o:null===(u=v.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:1,x=null!==(d=null!==(h=null!==(f=null!==(p=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==p?p:null===n||void 0===n||null===(g=n.locale)||void 0===g||null===(g=g.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==f?f:v.weekStartsOn)&&void 0!==h?h:null===(m=v.locale)||void 0===m||null===(m=m.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==d?d:0,w=JY(e,null===n||void 0===n?void 0:n.in);if(!UX(w))throw new RangeError("Invalid time value");let _=t.match(FX).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,TX[t])(e,b.formatLong)}return e})).join("").match(jX).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:BX(e)};if(_X[t])return{isToken:!0,value:e};
2if(t.match(IX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));b.localize.preprocessor&&(_=b.localize.preprocessor(w,_));const D={firstWeekContainsDate:y,weekStartsOn:x,locale:b};return _.map((i=>{if(!i.isToken)return i.value;const r=i.value;(null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!function(e){return NX.test(e)}(r))&&(null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!function(e){return EX.test(e)}(r))||function(e,t,n){const i=function(e,t,n){const i="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(i," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(i),MX.includes(e))throw new RangeError(i)}(r,t,String(e));return(0,_X[r[0]])(w,r,b.localize,D)})).join("")}function BX(e){const t=e.match(RX);return t?t[1].replace(OX,"'"):e}const WX=Je(Je({},YY),{},{labels:{labelDayButton:(e,t,n,i)=>{let r;r=i&&"function"===typeof i.format?i.format.bind(i):(e,t)=>LX(e,t,Je({locale:YY},n));let a=r(e,"PPPP");return t.today&&(a="Today, ".concat(a)),t.selected&&(a="".concat(a,", selected")),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>"Week ".concat(e),labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let i;return i=n&&"function"===typeof n.format?n.format.bind(n):(e,n)=>LX(e,n,Je({locale:YY},t)),i(e,"LLLL yyyy")},labelGridcell:(e,t,n,i)=>{let r;r=i&&"function"===typeof i.format?i.format.bind(i):(e,t)=>LX(e,t,Je({locale:YY},n));let a=r(e,"PPPP");return null!==t&&void 0!==t&&t.today&&(a="Today, ".concat(a)),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let i;return i=n&&"function"===typeof n.format?n.format.bind(n):(e,n)=>LX(e,n,Je({locale:YY},t)),i(e,"cccc")}}});Symbol.for("constructDateFrom");const zX={},VX={};function HX(e,t){try{const n=(zX[e]||(zX[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return n in VX?VX[n]:GX(n,n.split(":"))}catch(n){if(e in VX)return VX[e];const t=null===e||void 0===e?void 0:e.match(qX);return t?GX(e,t.slice(1)):NaN}}const qX=/([+-]\d\d):?(\d\d)?/;function GX(e,t){const n=+(t[0]||0),i=+(t[1]||0),r=+(t[2]||0)/60;return VX[e]=60*n+i>0?60*n+i+r:60*n-i-r}class YX extends Date{constructor(){super();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1&&"string"===typeof t[t.length-1]&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(HX(this.timeZone,this))?this.setTime(NaN):t.length?"number"===typeof t[0]&&(1===t.length||2===t.length&&"number"!==typeof t[1])?this.setTime(t[0]):"string"===typeof t[0]?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),$X(this),KX(this)):this.setTime(Date.now())}static tz(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?new YX(...n,e):new YX(Date.now(),e)}withTimeZone(e){return new YX(+this,e)}getTimezoneOffset(){const e=-HX(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),KX(this),+this}[Symbol.for("constructDateFrom")](e){return new YX(+new Date(e),this.timeZone)}}const XX=/^(get|set)(?!UTC)/;function KX(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-HX(e.timeZone,e)))}function $X(e){const t=HX(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),i=new Date(+e);i.setUTCHours(i.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),a=r- -new Date(+i).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=r-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const l=new Date(+e);l.setUTCSeconds(0);const c=r>0?l.getSeconds():(l.getSeconds()-60)%60,u=Math.round(-60*HX(e.timeZone,e))%60;(u||c)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+c));const d=HX(e.timeZone,e),h=d>0?Math.floor(d):Math.ceil(d),f=-new Date(+e).getTimezoneOffset()-h-s;if(h!==n&&f){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);const t=HX(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!XX.test(e))return;const t=e.replace(XX,"$1UTC");YX.prototype[t]&&(e.startsWith("get")?YX.prototype[e]=function(){return this.internal[t]()}:(YX.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),$X(e),+this},YX.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),KX(this),+this}))}));class QX extends YX{static tz(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?new QX(...n,e):new QX(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),i="".concat(e).concat(t,":").concat(n);return this.internal.toISOString().slice(0,-1)+i}toString(){return"".concat(this.toDateString()," ").concat(this.toT
2imeString())}toDateString(){const[e,t,n,i]=this.internal.toUTCString().split(" ");return"".concat(null===e||void 0===e?void 0:e.slice(0,-1)," ").concat(n," ").concat(t," ").concat(i)}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,i]=this.tzComponents();return"".concat(e," GMT").concat(t).concat(n).concat(i," (").concat(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"long";return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this),")")}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,Je(Je({},t),{},{timeZone:(null===t||void 0===t?void 0:t.timeZone)||this.timeZone}))}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,Je(Je({},t),{},{timeZone:(null===t||void 0===t?void 0:t.timeZone)||this.timeZone}))}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,Je(Je({},t),{},{timeZone:(null===t||void 0===t?void 0:t.timeZone)||this.timeZone}))}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new QX(+this,e)}[Symbol.for("constructDateFrom")](e){return new QX(+new Date(e),this.timeZone)}}function ZX(e,t,n){const i=JY(e,null===n||void 0===n?void 0:n.in);return isNaN(t)?ZY((null===n||void 0===n?void 0:n.in)||e,NaN):t?(i.setDate(i.getDate()+t),i):i}function JX(e,t,n){const i=JY(e,null===n||void 0===n?void 0:n.in);if(isNaN(t))return ZY((null===n||void 0===n?void 0:n.in)||e,NaN);if(!t)return i;const r=i.getDate(),a=ZY((null===n||void 0===n?void 0:n.in)||e,i.getTime());a.setMonth(i.getMonth()+t+1,0);return r>=a.getDate()?a:(i.setFullYear(a.getFullYear(),a.getMonth(),r),i)}function eK(e,t,n){return ZX(e,7*t,n)}function tK(e,t,n){return JX(e,12*t,n)}function nK(e,t,n){const[i,r]=tX(null===n||void 0===n?void 0:n.in,e,t);return 12*(i.getFullYear()-r.getFullYear())+(i.getMonth()-r.getMonth())}function iK(e,t){const[n,i]=tX(e,t.start,t.end);return{start:n,end:i}}function rK(e,t){var n;const{start:i,end:r}=iK(null===t||void 0===t?void 0:t.in,e);let a=+i>+r;const o=a?+i:+r,s=a?r:i;s.setHours(0,0,0,0),s.setDate(1);let l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,a=!a);const c=[];for(;+s<=o;)c.push(ZY(i,s)),s.setMonth(s.getMonth()+l);return a?c.reverse():c}function aK(e,t){var n;const{start:i,end:r}=iK(null===t||void 0===t?void 0:t.in,e);let a=+i>+r;const o=a?+i:+r,s=a?r:i;s.setHours(0,0,0,0),s.setMonth(0,1);let l=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!l)return[];l<0&&(l=-l,a=!a);const c=[];for(;+s<=o;)c.push(ZY(i,s)),s.setFullYear(s.getFullYear()+l);return a?c.reverse():c}function oK(e,t){var n,i,r,a,o,s;const l=KY(),c=null!==(n=null!==(i=null!==(r=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(o=t.locale)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==r?r:l.weekStartsOn)&&void 0!==i?i:null===(s=l.locale)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==n?n:0,u=JY(e,null===t||void 0===t?void 0:t.in),d=u.getDay(),h=6+(d<c?-7:0)-(d-c);return u.setDate(u.getDate()+h),u.setHours(23,59,59,999),u}function sK(e,t){return oK(e,Je(Je({},t),{},{weekStartsOn:1}))}function lK(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}function cK(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in),i=n.getFullYear();return n.setFullYear(i+1,0,0),n.setHours(23,59,59,999),n}function uK(e,t){return JY(e,null===t||void 0===t?void 0:t.in).getMonth()}function dK(e,t){return JY(e,null===t||void 0===t?void 0:t.in).getFullYear()}function hK(e,t){return+JY(e)>+JY(t)}function fK(e,t){return+JY(e)<+JY(t)}function pK(e,t,n){const[i,r]=tX(null===n||void 0===n?void 0:n.in,e,t);return+nX(i)===+nX(r)}function gK(e,t,n){const[i,r]=tX(null===n||void 0===n?void 0:n.in,e,t);return i.getFullYear()===r.getFullYear()&&i.getMonth()===r.getMonth()}
2function mK(e,t,n){const[i,r]=tX(null===n||void 0===n?void 0:n.in,e,t);return i.getFullYear()===r.getFullYear()}function vK(e,t){let n,i=null===t||void 0===t?void 0:t.in;return e.forEach((e=>{i||"object"!==typeof e||(i=ZY.bind(null,e));const t=JY(e,i);(!n||n<t||isNaN(+t))&&(n=t)})),ZY(i,n||NaN)}function bK(e,t){let n,i=null===t||void 0===t?void 0:t.in;return e.forEach((e=>{i||"object"!==typeof e||(i=ZY.bind(null,e));const t=JY(e,i);(!n||n>t||isNaN(+t))&&(n=t)})),ZY(i,n||NaN)}function yK(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in),i=n.getFullYear(),r=n.getMonth(),a=ZY(n,0);return a.setFullYear(i,r+1,0),a.setHours(0,0,0,0),a.getDate()}function xK(e,t,n){const i=JY(e,null===n||void 0===n?void 0:n.in),r=i.getFullYear(),a=i.getDate(),o=ZY((null===n||void 0===n?void 0:n.in)||e,0);o.setFullYear(r,t,15),o.setHours(0,0,0,0);const s=yK(o);return i.setMonth(t,Math.min(a,s)),i}function wK(e,t,n){const i=JY(e,null===n||void 0===n?void 0:n.in);return isNaN(+i)?ZY((null===n||void 0===n?void 0:n.in)||e,NaN):(i.setFullYear(t),i)}function _K(e,t){const n=JY(e,null===t||void 0===t?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function DK(e,t){const n=t.startOfMonth(e),i=n.getDay();return 1===i?n:0===i?t.addDays(n,-6):t.addDays(n,-1*(i-1))}class SK{constructor(e,t){this.Date=Date,this.today=()=>{var e;return null!==(e=this.overrides)&&void 0!==e&&e.today?this.overrides.today():this.options.timeZone?QX.tz(this.options.timeZone):new this.Date},this.newDate=(e,t,n)=>{var i;return null!==(i=this.overrides)&&void 0!==i&&i.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new QX(e,t,n,this.options.timeZone):new Date(e,t,n)},this.addDays=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.addDays?this.overrides.addDays(e,t):ZX(e,t)},this.addMonths=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.addMonths?this.overrides.addMonths(e,t):JX(e,t)},this.addWeeks=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.addWeeks?this.overrides.addWeeks(e,t):eK(e,t)},this.addYears=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.addYears?this.overrides.addYears(e,t):tK(e,t)},this.differenceInCalendarDays=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):iX(e,t)},this.differenceInCalendarMonths=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):nK(e,t)},this.eachMonthOfInterval=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):rK(e)},this.eachYearOfInterval=e=>{var t;const n=null!==(t=this.overrides)&&void 0!==t&&t.eachYearOfInterval?this.overrides.eachYearOfInterval(e):aK(e),i=new Set(n.map((e=>this.getYear(e))));if(i.size===n.length)return n;const r=[];return i.forEach((e=>{r.push(new Date(e,0,1))})),r},this.endOfBroadcastWeek=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){const n=DK(e,t),i=function(e,t){const n=t.startOfMonth(e),i=n.getDay()>0?n.getDay():7,r=t.addDays(e,1-i),a=t.addDays(r,34);return t.getMonth(e)===t.getMonth(a)?5:4}(e,t);return t.addDays(n,7*i-1)}(e,this)},this.endOfISOWeek=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.endOfISOWeek?this.overrides.endOfISOWeek(e):sK(e)},this.endOfMonth=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.endOfMonth?this.overrides.endOfMonth(e):lK(e)},this.endOfWeek=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.endOfWeek?this.overrides.endOfWeek(e,t):oK(e,this.options)},this.endOfYear=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.endOfYear?this.overrides.endOfYear(e):cK(e)},this.format=(e,t,n)=>{var i;const r=null!==(i=this.overrides)&&void 0!==i&&i.format?this.overrides.format(e,t,this.options):LX(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.getISOWeek?this.overrides.getISOWeek(e):uX(e)},this.getMonth=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.getMonth?this.overrides.getMonth(e,this.options):uK(e,this.options)},this.getYear=(e,t)=>
2{var n;return null!==(n=this.overrides)&&void 0!==n&&n.getYear?this.overrides.getYear(e,this.options):dK(e,this.options)},this.getWeek=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.getWeek?this.overrides.getWeek(e,this.options):fX(e,this.options)},this.isAfter=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.isAfter?this.overrides.isAfter(e,t):hK(e,t)},this.isBefore=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.isBefore?this.overrides.isBefore(e,t):fK(e,t)},this.isDate=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.isDate?this.overrides.isDate(e):PX(e)},this.isSameDay=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.isSameDay?this.overrides.isSameDay(e,t):pK(e,t)},this.isSameMonth=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.isSameMonth?this.overrides.isSameMonth(e,t):gK(e,t)},this.isSameYear=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.isSameYear?this.overrides.isSameYear(e,t):mK(e,t)},this.max=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.max?this.overrides.max(e):vK(e)},this.min=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.min?this.overrides.min(e):bK(e)},this.setMonth=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.setMonth?this.overrides.setMonth(e,t):xK(e,t)},this.setYear=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.setYear?this.overrides.setYear(e,t):wK(e,t)},this.startOfBroadcastWeek=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):DK(e,this)},this.startOfDay=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.startOfDay?this.overrides.startOfDay(e):nX(e)},this.startOfISOWeek=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.startOfISOWeek?this.overrides.startOfISOWeek(e):sX(e)},this.startOfMonth=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.startOfMonth?this.overrides.startOfMonth(e):_K(e)},this.startOfWeek=(e,t)=>{var n;return null!==(n=this.overrides)&&void 0!==n&&n.startOfWeek?this.overrides.startOfWeek(e,this.options):oX(e,this.options)},this.startOfYear=e=>{var t;return null!==(t=this.overrides)&&void 0!==t&&t.startOfYear?this.overrides.startOfYear(e):rX(e)},this.options=Je({locale:WX},e),this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let i=0;i<10;i++)n[i.toString()]=t.format(i);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,(e=>t[e]||e))}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){var e;const t=null===(e=this.options.locale)||void 0===e?void 0:e.code;return t&&SK.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(e){const{locale:t,timeZone:n,numerals:i}=this.options,r=null===t||void 0===t?void 0:t.code;if(r&&SK.yearFirstLocales.has(r))try{const t=new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:n,numberingSystem:i});return t.format(e)}catch(o){}const a="year-first"===this.getMonthYearOrder()?"y LLLL":"LLLL y";return this.format(e,a)}}SK.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const kK=new SK;var CK,AK,TK,EK;!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(CK||(CK={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(AK||(AK={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}
2(TK||(TK={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(EK||(EK={}));function NK(e){return o.createElement("button",Je({},e))}function MK(e){return o.createElement("span",Je({},e))}function PK(e){const{size:t=24,orientation:n="left",className:i}=e;return o.createElement("svg",{className:i,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&o.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&o.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&o.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&o.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}const UK=["day","modifiers"];function jK(e){const{day:t,modifiers:n}=e,i=Xe(e,UK);return o.createElement("td",Je({},i))}const FK=["day","modifiers"];function RK(e){const{day:t,modifiers:n}=e,i=Xe(e,FK),r=o.useRef(null);return o.useEffect((()=>{var e;n.focused&&(null===(e=r.current)||void 0===e||e.focus())}),[n.focused]),o.createElement("button",Je({ref:r},i))}const OK=["options","className","components","classNames"];function IK(e){const{options:t,className:n,components:i,classNames:r}=e,a=Xe(e,OK),s=[r[CK.Dropdown],n].join(" "),l=null===t||void 0===t?void 0:t.find((e=>{let{value:t}=e;return t===a.value}));return o.createElement("span",{"data-disabled":a.disabled,className:r[CK.DropdownRoot]},o.createElement(i.Select,Je({className:s},a),null===t||void 0===t?void 0:t.map((e=>{let{value:t,label:n,disabled:r}=e;return o.createElement(i.Option,{key:t,value:t,disabled:r},n)}))),o.createElement("span",{className:r[CK.CaptionLabel],"aria-hidden":!0},null===l||void 0===l?void 0:l.label,o.createElement(i.Chevron,{orientation:"down",size:18,className:r[CK.Chevron]})))}function LK(e){return o.createElement("div",Je({},e))}function BK(e){return o.createElement("div",Je({},e))}const WK=["calendarMonth","displayIndex"];function zK(e){const{calendarMonth:t,displayIndex:n}=e,i=Xe(e,WK);return o.createElement("div",Je({},i),e.children)}const VK=["calendarMonth","displayIndex"];function HK(e){const{calendarMonth:t,displayIndex:n}=e,i=Xe(e,VK);return o.createElement("div",Je({},i))}function qK(e){return o.createElement("table",Je({},e))}function GK(e){return o.createElement("div",Je({},e))}const YK=(0,o.createContext)(void 0);function XK(){const e=(0,o.useContext)(YK);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}function KK(e){const{components:t}=XK();return o.createElement(t.Dropdown,Je({},e))}const $K=["onPreviousClick","onNextClick","previousMonth","nextMonth"];function QK(e){const{onPreviousClick:t,onNextClick:n,previousMonth:i,nextMonth:r}=e,a=Xe(e,$K),{components:s,classNames:l,labels:{labelPrevious:c,labelNext:u}}=XK(),d=(0,o.useCallback)((e=>{r&&(null===n||void 0===n||n(e))}),[r,n]),h=(0,o.useCallback)((e=>{i&&(null===t||void 0===t||t(e))}),[i,t]);return o.createElement("nav",Je({},a),o.createElement(s.PreviousMonthButton,{type:"button",className:l[CK.PreviousMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":c(i),onClick:h},o.createElement(s.Chevron,{disabled:!i||void 0,className:l[CK.Chevron],orientation:"left"})),o.createElement(s.NextMonthButton,{type:"button",className:l[CK.NextMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":u(r),onClick:d},o.createElement(s.Chevron,{disabled:!r||void 0,orientation:"right",className:l[CK.Chevron]})))}function ZK(e){const{components:t}=XK();return o.createElement(t.Button,Je({},e))}function JK(e){return o.createElement("option",Je({},e))}function e$(e){const{components:t}=XK();return o.createElement(t.Button,Je({},e))}const t$=["rootRef"];function n$(e){const{rootRef:t}=e,n=Xe(e,t$);return o.createElement("div",Je(Je({},n),{},{ref:t}))}function i$(e){return o.createElement("select",Je({},e))}const r$=["week"];function a$(e){const{week:t}=e,n=Xe(e,r$);return o.createElement("tr",Je({},n))}function o$(e){return o.createElement("th",Je({},e))}function s$(e){return o.createElement("thead",{"aria-hidden":!0},o.createElement("tr",Je({},e)))}const l$=["week"];function c$(e){const{week:t}=e,n=Xe(e,l$);return o.createElement("th",Je({},n))}function u$(e){return o.createElement("th",Je({},e))}function d$(e){return o.createElement("tbody",Je({},e))}function h$(e){const{components:t}=XK();return o.createElement(t.Dropdown,Je({},e))}function f$(e,t,n){return(null!==n&&void 0!==n?n:new SK(t)).formatMonthYear(e)}const p$=f$;function g$(e,t,n){return(null!==n&&void 0!==n?n:new SK(t)).format(e,"d")}function m$(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:kK).format(e,"LLLL")}function v$(e,t,n){return(null!==n&&void 0!==n?n:new SK(t)).format(e,"cccccc")}function b$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kK;
2return e<10?t.formatNumber("0".concat(e.toLocaleString())):t.formatNumber("".concat(e.toLocaleString()))}function y$(){return""}function x$(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:kK).format(e,"yyyy")}const w$=x$;function _$(e,t,n,i){let r=(null!==i&&void 0!==i?i:new SK(n)).format(e,"PPPP");return t.today&&(r="Today, ".concat(r)),t.selected&&(r="".concat(r,", selected")),r}const D$=_$;function S$(e,t,n){return(null!==n&&void 0!==n?n:new SK(t)).formatMonthYear(e)}const k$=S$;function C$(e,t,n,i){let r=(null!==i&&void 0!==i?i:new SK(n)).format(e,"PPPP");return null!==t&&void 0!==t&&t.today&&(r="Today, ".concat(r)),r}function A$(e){return"Choose the Month"}function T$(){return""}const E$="Go to the Next Month";function N$(e,t){return E$}function M$(e){return"Go to the Previous Month"}function P$(e,t,n){return(null!==n&&void 0!==n?n:new SK(t)).format(e,"cccc")}function U$(e,t){return"Week ".concat(e)}function j$(e){return"Week Number"}function F$(e){return"Choose the Year"}var R$;!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(R$||(R$={}));const O$=xM("users-round",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]),I$=xM("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),L$=xM("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),B$=xM("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]),W$="https://printlogs-17738dc65798.herokuapp.com/bizVantage/admin/users",z$="122Codeman!",V$=()=>{try{const e=localStorage.getItem("bv.registerResponse");return e?JSON.parse(e):null}catch(e){return null}},H$=e=>String((null===e||void 0===e?void 0:e.userId)||(null===e||void 0===e?void 0:e.email)||(null===e||void 0===e?void 0:e.phone)),q$=e=>null!==e&&void 0!==e&&e.status?String(e.status):!0===(null===e||void 0===e?void 0:e.isCompleted)||!0===(null===e||void 0===e?void 0:e.completed)?"completed":(null===e||void 0===e||e.active,"active"),G$=e=>{if(!e)return"";const t=Number(e);if(!Number.isFinite(t))return String(e);const n=new Date(t<1e10?1e3*t:t);return Number.isNaN(n.getTime())?String(e):n.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})},Y$=e=>{if(!e)return"";try{return Ye().AES.decrypt(String(e),z$).toString(Ye().enc.Utf8)||String(e)}catch(t){return String(e)}},X$=e=>Je(Je({},e||{}),{},{password:Y$(null===e||void 0===e?void 0:e.password)}),K$=()=>{const[e,t]=(0,o.useState)([]),[n,i]=(0,o.useState)(""),[r,a]=(0,o.useState)([]),[s,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(""),[f,p]=(0,o.useState)(""),[g,m]=(0,o.useState)([]),[v,b]=(0,o.useState)(""),[y,x]=(0,o.useState)(!1),[w,_]=(0,o.useState)(""),[D,S]=(0,o.useState)({}),[k,C]=(0,o.useState)(!1),[A,T]=(0,o.useState)(""),[E,N]=(0,o.useState)(!1),[M,P]=(0,o.useState)(!1),[U,j]=(0,o.useState)("assessments"),[F,R]=(0,o.useState)([]),[O,I]=(0,o.useState)(!1),[L,B]=(0,o.useState)(""),[W,z]=(0,o.useState)(!1),[V,H]=(0,o.useState)({month:"",year:"",allowed:""}),[q,G]=(0,o.useState)(null),Y=[{value:"1",label:"Jan"},{value:"2",label:"Feb"},{value:"3",label:"Mar"},{value:"4",label:"Apr"},{value:"5",label:"May"},{value:"6",label:"Jun"},{value:"7",label:"Jul"},{value:"8",label:"Aug"},{value:"9",label:"Sep"},{value:"10",label:"Oct"},{value:"11",label:"Nov"},{value:"12",label:"Dec"}],X=(0,o.useMemo)((()=>{const e=(new Date).getFullYear(),t=e+10,n=[];for(let i=e;i<=t;i+=1)n.push(String(i));return n}),[]),[K,$]=(0,o.useState)(""),[Q,Z]=(0,o.useState)(!0),[J,ee]=(0,o.useState)(""),te=(0,o.useMemo)(V$,[]),ne=null===te||void 0===te?void 0:te.authToken;(0,o.useEffect)((()=>{(async()=>{Z(!0),ee("");try{const e=await fetch(W$,{method:"POST",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify({})}),n=await e.json().catch((()=>({})));if(!e.ok||!1===(null===n||void 0===n?void 0:n.success))throw new Error((null===n||void 0===n?void 0:n.message)||"Failed to fetch users.");const r=(e=>{var t;return Array.isArray(e)?e:Array.isArray(null===e||void 0===e?void 0:e.users)?e.users:Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:Array.isArray(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.users)?e.data.users:[]})(n);t(r),i((e=>e||H$(r[0])))}catch(eQ){ee(eQ.message||"Failed to fetch users."),t([])}finally{Z(!1)}})()}),[ne]);const ie=(0,o.useMemo)((()=>{const t=K.trim().toLowerCase();return t?e.filter((e=>[null===e||void 0===e?void 0:e.fullName,null===e||void 0===e?void 0:e.name,null===e||void 0===e?void 0:e.email,null===e||void 0===e?void 0:e.phone,null===e||void 0===e?void 0:e.companyName,null===e||void 0===e?void 0:e.role].filter(
2Boolean).some((e=>String(e).toLowerCase().includes(t))))):e}),[K,e]),re=e.find((e=>H$(e)===n)),ae=r.find((e=>String((null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.assessmentId)||(null===e||void 0===e?void 0:e.companyName))===s)),oe=(0,o.useMemo)((()=>{const e=v.trim().toLowerCase();return e?g.filter((t=>[null===t||void 0===t?void 0:t.name,null===t||void 0===t?void 0:t.fullName,null===t||void 0===t?void 0:t.email,null===t||void 0===t?void 0:t.phone,null===t||void 0===t?void 0:t.role,null===t||void 0===t?void 0:t.position,null===t||void 0===t?void 0:t.department].filter(Boolean).some((t=>String(t).toLowerCase().includes(e))))):g}),[v,g]),se=(0,o.useMemo)((()=>{const e=f.trim().toLowerCase();return e?r.filter((t=>[null===t||void 0===t?void 0:t.companyName,null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.keyContact,null===t||void 0===t?void 0:t.contact,null===t||void 0===t?void 0:t.email,null===t||void 0===t?void 0:t.phone,null===t||void 0===t?void 0:t.status,null===t||void 0===t?void 0:t.assessmentId,null===t||void 0===t?void 0:t._id,null===t||void 0===t?void 0:t.id].filter(Boolean).some((t=>String(t).toLowerCase().includes(e))))):r}),[f,r]);(0,o.useEffect)((()=>{S(X$(re))}),[re]),(0,o.useEffect)((()=>{if(!re)return a([]),l(""),p(""),m([]),void b("");(async()=>{u(!0),h("");try{const e=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/admin/users/assessments",{method:"POST",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify({user:null===re||void 0===re?void 0:re.email})}),t=await e.json().catch((()=>({})));if(!e.ok||!1===(null===t||void 0===t?void 0:t.success))throw new Error((null===t||void 0===t?void 0:t.message)||"Failed to fetch assessments.");const n=(e=>{var t;return Array.isArray(e)?e:Array.isArray(null===e||void 0===e?void 0:e.assessments)?e.assessments:Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:Array.isArray(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.assessments)?e.data.assessments:Array.isArray(null===e||void 0===e?void 0:e.active)||Array.isArray(null===e||void 0===e?void 0:e.completed)?[...e.active||[],...e.completed||[]]:[]})(t);a(n),l((e=>{if(e&&n.some((t=>String((null===t||void 0===t?void 0:t._id)||(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.assessmentId)||(null===t||void 0===t?void 0:t.companyName))===e)))return e;const t=n[0];return t?String((null===t||void 0===t?void 0:t._id)||(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.assessmentId)||(null===t||void 0===t?void 0:t.companyName)):""}))}catch(eQ){h(eQ.message||"Failed to fetch assessments."),a([]),l("")}finally{u(!1)}})()}),[ne,re]),(0,o.useEffect)((()=>{if(!ae)return m([]),b(""),void _("");(async()=>{x(!0),_("");try{const t=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/admin/users/assessments/interviewees",{method:"POST",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify({user:null===re||void 0===re?void 0:re.email,assessmentId:(e=ae,(null===e||void 0===e?void 0:e.assessmentId)||(null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id)||""),assessment:ae})}),n=await t.json().catch((()=>({})));if(!t.ok||!1===(null===n||void 0===n?void 0:n.success))throw new Error((null===n||void 0===n?void 0:n.message)||"Failed to fetch interviewees.");m((e=>{var t;return Array.isArray(e)?e:Array.isArray(null===e||void 0===e?void 0:e.interviewees)?e.interviewees:Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:Array.isArray(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.interviewees)?e.data.interviewees:[]})(n))}catch(eQ){_(eQ.message||"Failed to fetch interviewees."),m([])}finally{x(!1)}var e})()}),[ne,ae,null===re||void 0===re?void 0:re.email]);const le=(e,t)=>{S((n=>Je(Je({},n),{},{[e]:t})))},ce=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=null===D||void 0===D?void 0:D[e],a="img"===e||"companyLogo"===e;if("boolean"===typeof r){const n="active"===e?r?"Active":"De-activated":null;return(0,Le.jsxs)("div",{className:"space-y-2 rounded-lg border p-4",children:[(0,Le.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,Le.jsx)(KN,{htmlFor:"profile-".concat(e),children:t}),(0,Le.jsx)(_Y,{id:"profile-".concat(e),checked:r,disabled:i,onCheckedChange:t=>le(e,t)})]}),n?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:n}):null,(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:'Please click on "Update" button to save the changes.'})]})}return(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"profile-".concat(e),children:t}),(0,Le.jsx)(zN,{id:"profile-".concat(e),type:n,value:null!==r&&void 0!==r?r:"",disabled:a||i,onChange:t=>le(e,t.target.value)}),a&&r?(0,Le.jsx)("div",{className:"mt-2 max-w-[160px] overflow-hidden rounded-md border border-slate-200 bg-white p-1",children:(0,Le.jsx)("img",{src:r,alt:"".concat(t," thumbnail"),className:"h-24 w-full object-cover"})}):null]})},ue=(e,t)=>
2(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"profile-".concat(e),children:t}),(0,Le.jsx)(zN,{id:"profile-".concat(e),value:G$(null===D||void 0===D?void 0:D[e]),disabled:!0})]}),de=async()=>{if(re){I(!0),B("");try{const e=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/admin/assessmentsAllowedMonthly",{method:"POST",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify({userId:H$(re)})}),t=await e.json().catch((()=>({})));if(!e.ok||!1===(null===t||void 0===t?void 0:t.success))throw new Error((null===t||void 0===t?void 0:t.message)||"Failed to fetch monthly allowed.");const n=(null===t||void 0===t?void 0:t.data)||(null===t||void 0===t?void 0:t.allowed)||t||[];R(Array.isArray(n)?n:[])}catch(eQ){B(eQ.message||"Failed to fetch monthly allowed."),R([])}finally{I(!1)}}};(0,o.useEffect)((()=>{"monthlyAllowed"===U&&re&&de()}),[U,n]);const he=()=>{z(!1),G(null)};return(0,Le.jsxs)(Oz,{children:[(Q||c||y||k)&&(0,Le.jsx)(tl,{}),(0,Le.jsxs)("div",{className:"mx-auto max-w-7xl space-y-6",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h1",{className:"text-3xl font-bold font-display tracking-tight text-foreground",children:"Admin"}),(0,Le.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Manage platform users and account details."})]}),(0,Le.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[minmax(240px,20%)_1fr] ",children:[(0,Le.jsxs)(nM,{className:"shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{className:"pb-3",children:[(0,Le.jsxs)(rM,{className:"flex items-center gap-2 text-sm font-display",children:[(0,Le.jsx)(O$,{className:"h-4 w-4 text-accent"}),"Users"]}),(0,Le.jsxs)(aM,{children:[e.length," total users"]})]}),(0,Le.jsxs)(oM,{className:"space-y-3",children:[(0,Le.jsx)(zN,{value:K,onChange:e=>$(e.target.value),placeholder:"Search users...","aria-label":"Search users"}),J?(0,Le.jsx)("p",{className:"text-sm text-destructive",children:J}):0!==e.length||Q?0!==ie.length||Q?(0,Le.jsx)("div",{className:"max-h-[calc(100vh-240px)] space-y-2 overflow-y-auto pr-1",children:ie.map((e=>{const t=H$(e),r=(null===e||void 0===e?void 0:e.fullName)||(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.companyName)||"User",a=n===t;return(0,Le.jsx)("button",{type:"button",onClick:()=>i(t),className:ON("w-full rounded-lg border p-3 text-left transition-colors",a?"border-primary bg-primary/10":"hover:bg-muted"),children:(0,Le.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Le.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-primary/10",children:(0,Le.jsx)(HI,{className:"h-4 w-4 text-primary"})}),(0,Le.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Le.jsx)("p",{className:"truncate text-sm font-medium",children:r}),(0,Le.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:(null===e||void 0===e?void 0:e.email)||"No email"}),!0===(null===e||void 0===e?void 0:e.superAdmin)&&(0,Le.jsx)(cM,{className:"mt-2 text-[10px]",children:"Super Admin"})]})]})},t)}))}):(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"No users match your search."}):(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"No users found."})]})]}),(0,Le.jsxs)(nM,{className:" shadow-[var(--card-shadow)]",children:[(0,Le.jsxs)(iM,{children:[(0,Le.jsx)(rM,{className:"text-lg font-display",children:"User Details"}),(0,Le.jsx)(aM,{children:"Select a user from the list to view details."})]}),(0,Le.jsx)(oM,{children:re?(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)(lq,{defaultValue:"assessments",className:"w-full",children:[(0,Le.jsxs)(cq,{className:"grid w-full max-w-md grid-cols-3",children:[(0,Le.jsx)(uq,{value:"assessments",onClick:()=>j("assessments"),children:"Assessments"}),(0,Le.jsx)(uq,{value:"profile",onClick:()=>j("profile"),children:"Profile Data"}),(0,Le.jsx)(uq,{value:"monthlyAllowed",onClick:()=>j("monthlyAllowed"),children:"Monthly Allowed"})]}),(0,Le.jsx)(dq,{value:"assessments",className:"mt-5",children:(0,Le.jsxs)("div",{className:"grid grid-cols-1 gap-4 xl:grid-cols-[minmax(240px,30%)_1fr]",children:[(0,Le.jsxs)("div",{className:"rounded-lg border p-3",children:[(0,Le.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,Le.jsxs)("p",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,Le.jsx)(zI,{className:"h-4 w-4 text-accent"}),"Assessments"]}),(0,Le.jsx)(cM,{variant:"secondary",className:"text-[10px]",children:r.length})]}),(0,Le.jsxs)("div",{className:"relative mb-3",children:[(0,Le.jsx)(I$,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,Le.jsx)(zN,{value:f,onChange:e=>p(e.target.value),placeholder:"Search assessments...",className:"pl-9"})]}),c?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading assessments..."}):d?(0,Le.jsx)("p",{className:"text-sm text-destructive",children:d}):0===r.length?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"No assessments found."}):0===se.length?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"No assessments match your search."}):(0,Le.jsx)("div",{className:"max-h-[520px] space-y-2 overflow-y-auto pr-1",children:se.map((e=>{const t=String((null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.assessmentId)||
2(null===e||void 0===e?void 0:e.companyName)),n=s===t,i=q$(e);return(0,Le.jsxs)("button",{type:"button",onClick:()=>l(t),className:ON("w-full rounded-lg border p-3 text-left transition-colors",n?"border-primary bg-primary/10":"hover:bg-muted"),children:[(0,Le.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Le.jsx)("p",{className:"truncate text-sm font-medium",children:(null===e||void 0===e?void 0:e.companyName)||(null===e||void 0===e?void 0:e.title)||"Untitled assessment"}),(0,Le.jsx)(cM,{variant:"secondary",className:ON("shrink-0 text-[10px]","completed"===i.toLowerCase()&&"bg-green-500/15 text-green-700","completed"!==i.toLowerCase()&&"bg-amber-500/15 text-amber-700"),children:i})]}),(0,Le.jsx)("p",{className:"mt-1 truncate text-xs text-muted-foreground",children:(null===e||void 0===e?void 0:e.keyContact)||(null===e||void 0===e?void 0:e.contact)||(null===e||void 0===e?void 0:e.status)||"No contact"})]},t)}))})]}),(0,Le.jsx)("div",{className:"rounded-lg border p-4",children:ae?(0,Le.jsxs)("div",{className:"space-y-4",children:[(0,Le.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h3",{className:"text-lg font-semibold",children:ae.companyName||ae.title||"Untitled assessment"}),(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:ae.keyContact||ae.contact||"No contact listed"})]}),(0,Le.jsx)(cM,{variant:"secondary",children:q$(ae)})]}),(0,Le.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,Le.jsxs)("div",{className:"rounded-lg bg-muted/40 p-3",children:[(0,Le.jsxs)("p",{className:"flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground",children:[(0,Le.jsx)(JG,{className:"h-3.5 w-3.5"}),"Company"]}),(0,Le.jsx)("p",{className:"mt-1 text-sm font-medium",children:ae.companyName||"N/A"})]}),(0,Le.jsxs)("div",{className:"rounded-lg bg-muted/40 p-3",children:[(0,Le.jsxs)("p",{className:"flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground",children:[(0,Le.jsx)(VI,{className:"h-3.5 w-3.5"}),"Assessment ID"]}),(0,Le.jsx)("p",{className:"mt-1 break-all text-sm font-medium",children:ae.assessmentId||ae._id||ae.id||"N/A"})]}),(0,Le.jsxs)("div",{className:"rounded-lg bg-muted/40 p-3",children:[(0,Le.jsxs)("p",{className:"flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground",children:[(0,Le.jsx)(L$,{className:"h-3.5 w-3.5"}),"Email"]}),(0,Le.jsx)("p",{className:"mt-1 break-words text-sm font-medium",children:ae.email||"N/A"})]}),(0,Le.jsxs)("div",{className:"rounded-lg bg-muted/40 p-3",children:[(0,Le.jsxs)("p",{className:"flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground",children:[(0,Le.jsx)(B$,{className:"h-3.5 w-3.5"}),"Phone"]}),(0,Le.jsx)("p",{className:"mt-1 text-sm font-medium",children:ae.phone||"N/A"})]})]}),(ae.assessmentFile||ae.assessmentAiPolicyPdf)&&(0,Le.jsxs)("div",{className:"flex flex-wrap gap-3 border-t pt-4",children:[ae.assessmentFile&&(0,Le.jsx)(BN,{asChild:!0,variant:"outline",size:"sm",children:(0,Le.jsxs)("a",{href:ae.assessmentFile,target:"_blank",rel:"noreferrer",download:!0,children:[(0,Le.jsx)(Hz,{className:"mr-2 h-4 w-4"}),"Download Assessment"]})}),ae.assessmentAiPolicyPdf&&(0,Le.jsx)(BN,{asChild:!0,variant:"outline",size:"sm",children:(0,Le.jsxs)("a",{href:ae.assessmentAiPolicyPdf,target:"_blank",rel:"noreferrer",download:!0,children:[(0,Le.jsx)(Hz,{className:"mr-2 h-4 w-4"}),"Download AI Policy"]})})]}),(0,Le.jsxs)("div",{className:"space-y-3 border-t pt-4",children:[(0,Le.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-sm font-medium",children:"Interviewees"}),(0,Le.jsxs)("p",{className:"text-xs text-muted-foreground",children:[g.length," total interviewees"]})]}),(0,Le.jsxs)("div",{className:"relative w-full sm:w-72",children:[(0,Le.jsx)(I$,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,Le.jsx)(zN,{value:v,onChange:e=>b(e.target.value),placeholder:"Search interviewees...",className:"pl-9"})]})]}),y?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading interviewees..."}):w?(0,Le.jsx)("p",{className:"text-sm text-destructive",children:w}):0===oe.length?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"No interviewees found."}):(0,Le.jsx)("div",{className:"grid gap-2 lg:grid-cols-2",children:oe.map((e=>{const t=(null===e||void 0===e?void 0:e.intervieweeId)||(null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.email)||(null===e||void 0===e?void 0:e.name);return(0,Le.jsxs)("div",{className:"rounded-lg border p-3",children:[(0,Le.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Le.jsxs)("div",{className:"min-w-0",children:[(0,Le.jsx)("p",{className:"truncate text-sm font-medium",children:(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e?void 0:e.fullName)||"Interviewee"}),(0,Le.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:(null===e||void 0===e?void 0:e.role)||(null===e||void 0===e?void 0:e.position)||(null===e||void 0===e?void 0:e.department)||"No role"})]}),(null===e||void 0===e?void 0:e.status)&&(0,Le.jsx)(cM,{variant:"secondary",className:"shrink-0 text-[10px]",children:e.status})]}),(0,Le.jsxs)("div",{className:"mt-3 space-y-1 text-xs text-muted-foreground",children:[(null===e||void 0===e?void 0:e.email)&&(0,Le.jsx)("p",{className:"truncate",children:e.email}),(null===e||void 0===e?void 0:e.phone)&&(0,Le.jsx)("p",{className:"truncate",children:e.phone})]})]},t)}))})]})]}):(0,Le.jsx)("div",{className:"flex min-h-[420px] items-center justify-center rounded-lg border border-dashed",children:(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select an assessment to view details."})})})]})}),(0,Le.jsxs)(dq,{value:"profile",className:"mt-5",children:[(0,Le.jsxs)("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-sm font-medium",children:"Profile Data"}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:"Edit user details and save changes."})]}),(0,Le.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[!0!==(null===re||void 0===re?void 0:re.superAdmin)&&re?(0,Le.jsx)(BN,{variant:"destructive",onClick:()=>N(!0),disabled:k||M,children:"Delete"}):null,(0,Le.jsx)(BN,{onClick:async()=>
2{if(!re)return;const e=re.email||D.email;if(!e)return T("Selected user email is required."),void NV.error("Selected user email is required.");C(!0),T("");try{const r=Je(Je({},D),{},{email:e,password:D.password&&D.password!==Y$(re.password)?(i=D.password,Ye().AES.encrypt(String(i),z$).toString()):re.password||D.password||""}),a=await fetch(W$,{method:"PATCH",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify(r)}),o=await a.json().catch((()=>({})));if(!a.ok||!1===(null===o||void 0===o?void 0:o.success))throw new Error((null===o||void 0===o?void 0:o.message)||"Failed to update user.");const s=(null===o||void 0===o?void 0:o.user)||(null===o||void 0===o?void 0:o.data)||r;t((t=>t.map((t=>H$(t)===n?Je(Je(Je({},t),s),{},{email:e}):t)))),S((t=>X$(Je(Je(Je({},t),s),{},{email:e})))),NV.success("User profile updated.")}catch(eQ){const t=eQ.message||"Failed to update user.";T(t),NV.error(t)}finally{C(!1)}var i},disabled:k,children:k?"Updating...":"Update"})]})]}),A&&(0,Le.jsx)("p",{className:"mb-4 text-sm text-destructive",children:A}),(0,Le.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[ce("fullName","Full Name"),ce("phone","Phone","tel"),ce("email","Email","email",!0),ce("password","Password","password"),ce("img","Profile Image URL"),ce("userId","User ID","text",!0),ue("createdDate","Created Date"),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"profile-role",children:"Role"}),(0,Le.jsxs)(lW,{value:(null===D||void 0===D?void 0:D.role)||"",onValueChange:e=>le("role",e),children:[(0,Le.jsx)(uW,{id:"profile-role",children:(0,Le.jsx)(cW,{placeholder:"Select role"})}),(0,Le.jsxs)(dW,{children:[(0,Le.jsx)(pW,{value:"USER",children:"USER"}),(0,Le.jsx)(pW,{value:"ADMIN",children:"ADMIN"})]})]})]}),ce("active","Active"),ce("companyLogo","Company Logo URL"),ce("companyName","Company Name"),ue("lastUpdated","Last Updated"),(0,Le.jsxs)("div",{className:"space-y-2",children:[(0,Le.jsx)(KN,{htmlFor:"profile-planOption",children:"Plan Option"}),(0,Le.jsxs)(lW,{value:(null===D||void 0===D?void 0:D.planOption)||"",onValueChange:e=>le("planOption",e),children:[(0,Le.jsx)(uW,{id:"profile-planOption",children:(0,Le.jsx)(cW,{placeholder:"Select plan"})}),(0,Le.jsxs)(dW,{children:[(0,Le.jsx)(pW,{value:"Core",children:"Core"}),(0,Le.jsx)(pW,{value:"Pro",children:"Pro"})]})]})]}),ce("superAdmin","Super Admin","text",!0)]})]}),(0,Le.jsxs)(dq,{value:"monthlyAllowed",className:"mt-5",children:[(0,Le.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-3",children:[(0,Le.jsxs)("div",{className:"flex flex-col",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-sm font-medium",children:"Monthly allowed assessments"}),(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:"View and add allowed assessments per month."})]}),(0,Le.jsxs)("div",{className:"mt-2 flex items-center gap-4",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:"Plan"}),(0,Le.jsx)("p",{className:"text-sm font-semibold",children:(null===D||void 0===D?void 0:D.planOption)||(null===re||void 0===re?void 0:re.planOption)||"-"})]}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-xs text-muted-foreground",children:"Created Date"}),(0,Le.jsx)("p",{className:"text-sm font-semibold",children:G$((null===D||void 0===D?void 0:D.createdDate)||(null===re||void 0===re?void 0:re.createdDate))||"-"})]})]})]}),(0,Le.jsx)(BN,{onClick:()=>{H({month:"",year:"",allowed:""}),G(null),z(!0)},children:"Add"})]}),L&&(0,Le.jsx)("p",{className:"mb-4 text-sm text-destructive",children:L}),O?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):0===F.length?(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"No monthly entries found."}):(0,Le.jsx)("div",{className:"space-y-2",children:F.map(((e,t)=>{var n,i,r;return(0,Le.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[(0,Le.jsxs)("div",{children:[(0,Le.jsx)("p",{className:"text-sm font-medium",children:e.monthYear||"".concat(e.month||e.m||"","/").concat(e.year||e.y||"")}),(0,Le.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Allowed:"," ",null!==(n=null!==(i=null!==(r=e.allowed)&&void 0!==r?r:e.count)&&void 0!==i?i:e.allowedAssessments)&&void 0!==n?n:"-"]})]}),(0,Le.jsx)("div",{className:"flex items-center gap-2",children:(0,Le.jsx)(BN,{size:"sm",variant:"ghost",onClick:()=>(e=>{var t,n,i;const[r,a]=String(e.monthYear||"").split("-"),o=Y.find((e=>e.label===r)),s=o?o.value:"",l=null!==(t=null!==(n=null!==(i=e.allowedAssessments)&&void 0!==i?i:e.allowed)&&void 0!==n?n:e.count)&&void 0!==t?t:"";H({month:String(s),year:String(a||""),allowed:String(l)}
2),G(e),z(!0)})(e),children:"Edit"})})]},t)}))}),W?(0,Le.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,Le.jsx)("div",{className:"absolute inset-0 bg-black/40",onClick:he}),(0,Le.jsxs)("div",{className:"z-50 w-full max-w-md rounded-lg bg-white p-6 shadow-lg",children:[(0,Le.jsx)("h3",{className:"mb-3 text-lg font-semibold",children:q?"Edit monthly allowed":"Add monthly allowed"}),(0,Le.jsxs)("div",{className:"grid gap-3",children:[(0,Le.jsxs)("div",{className:"flex gap-2",children:[(0,Le.jsxs)("div",{className:"flex-1",children:[(0,Le.jsx)(KN,{children:"Month"}),(0,Le.jsxs)(lW,{value:V.month,onValueChange:e=>H((t=>Je(Je({},t),{},{month:e}))),children:[(0,Le.jsx)(uW,{id:"monthly-month",children:(0,Le.jsx)(cW,{placeholder:"Select month"})}),(0,Le.jsx)(dW,{children:Y.map((e=>(0,Le.jsx)(pW,{value:e.value,children:e.label},e.value)))})]})]}),(0,Le.jsxs)("div",{className:"flex-1",children:[(0,Le.jsx)(KN,{children:"Year"}),(0,Le.jsxs)(lW,{value:V.year,onValueChange:e=>H((t=>Je(Je({},t),{},{year:e}))),children:[(0,Le.jsx)(uW,{id:"monthly-year",children:(0,Le.jsx)(cW,{placeholder:"Select year"})}),(0,Le.jsx)(dW,{children:X.map((e=>(0,Le.jsx)(pW,{value:e,children:e},e)))})]})]})]}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)(KN,{children:"Allowed assessments"}),(0,Le.jsx)(zN,{value:V.allowed,onChange:e=>H((t=>Je(Je({},t),{},{allowed:e.target.value}))),placeholder:"Number allowed",type:"number"})]}),(0,Le.jsxs)("div",{className:"mt-4 flex justify-end gap-2",children:[(0,Le.jsx)(BN,{variant:"ghost",onClick:he,children:"Cancel"}),q?(0,Le.jsx)(BN,{onClick:async()=>{const e=Number(V.month),t=Number(V.year),n=Number(V.allowed);if(e&&t&&Number.isFinite(n))try{I(!0);const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e-1]||String(V.month),r={userId:H$(re),monthYear:"".concat(i,"-").concat(t),allowedAssessments:n},a=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/admin/assessmentsAllowedMonthly",{method:"PATCH",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify(r)}),o=await a.json().catch((()=>({})));if(!a.ok||!1===(null===o||void 0===o?void 0:o.success))throw new Error((null===o||void 0===o?void 0:o.message)||"Failed to save monthly allowed.");NV.success("Monthly allowed saved."),z(!1),de()}catch(eQ){NV.error(eQ.message||"Failed to save monthly allowed.")}finally{I(!1)}else alert("Please provide valid month, year and allowed number.")},disabled:O,children:O?"Updating...":"Update"}):(0,Le.jsx)(BN,{onClick:async()=>{const e=Number(V.month),t=Number(V.year),n=Number(V.allowed);if(e&&t&&Number.isFinite(n))try{I(!0);const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e-1]||String(V.month),r={userId:H$(re),monthYear:"".concat(i,"-").concat(t),allowedAssessments:n},a=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/admin/assessmentsAllowedMonthly",{method:"PUT",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify(r)}),o=await a.json().catch((()=>({})));if(!a.ok||!1===(null===o||void 0===o?void 0:o.success))throw new Error((null===o||void 0===o?void 0:o.message)||"Failed to save monthly allowed.");NV.success("Monthly allowed saved."),z(!1),de()}catch(eQ){NV.error(eQ.message||"Failed to save monthly allowed.")}finally{I(!1)}else alert("Please provide valid month, year and allowed number.")},disabled:O,children:O?"Saving...":"Save"})]})]})]})]}):null]})]}),(0,Le.jsx)(Uj,{open:E,onOpenChange:e=>N(e),children:(0,Le.jsxs)(Rj,{className:"sm:max-w-md",children:[(0,Le.jsxs)(Oj,{children:[(0,Le.jsx)(Lj,{className:"font-display",children:"Delete User"}),(0,Le.jsx)(Bj,{children:"Are you sure? This action cannot be undone."})]}),(0,Le.jsxs)(Ij,{className:"gap-2",children:[(0,Le.jsx)(BN,{variant:"outline",onClick:()=>N(!1),children:"Cancel"}),(0,Le.jsx)(BN,{variant:"destructive",onClick:async()=>{if(n){P(!0),T("");try{const e=await fetch("https://printlogs-17738dc65798.herokuapp.com/bizVantage/admin/users",{method:"DELETE",headers:Je({"Content-Type":"application/json"},ne?{authorization:ne}:{}),body:JSON.stringify({userId:n})}),r=await e.json().catch((()=>({})));if(!e.ok||!1===(null===r||void 0===r?void 0:r.success))throw new Error((null===r||void 0===r?void 0:r.message)||"Failed to delete user.");t((e=>e.filter((e=>H$(e)!==n)))),i(""),S({}),NV.success("User deleted.")}catch(eQ){const t=eQ.message||"Failed to delete user.";T(t),NV.error(t)}finally{P(!1),N(!1)}}},disabled:M,children:M?"Deleting...":"Delete"})]})]})})]}):(0,Le.jsx)("div",{className:"flex min-h-[360px] items-center justify-center rounded-lg border border-dashed",children:(0,Le.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a user to view account details."})})})]})]})]})]})};const $$=void 0||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_JWT_SECRET:"122Codeman!"}.REACT_APP_VERIFY_SESSION_URL||"/verify-checkout-session",Q$=()=>{const e=re(),{search:t}=ne(),[n,i]=(0,o.useState)(!0),[r,a]=(0,o.useState)(null),[s,l]=(0,o.useState)("");return(0,o.useEffect)((()=>{const e=new URLSearchParams(t),n=e.get("session_id")||e.get("sessionId")||e.get("session"),r=e.get("success"),o=e.get("
2canceled")||e.get("cancelled")||e.get("canceled");!async function(){if(n)try{i(!0);const e=await _E.post($$,{sessionId:n},{headers:{"Content-Type":"application/json"}}),t=(null===e||void 0===e?void 0:e.data)||{};if(null!==t&&void 0!==t&&t.paid||"complete"===(null===t||void 0===t?void 0:t.status)||"paid"===(null===t||void 0===t?void 0:t.status)){a("success"),l((null===t||void 0===t?void 0:t.message)||"Payment completed successfully.");const e=localStorage.getItem("bv.pendingSignup");if(e)try{i(!0);const t=JSON.parse(e),n=await _E.post("https://printlogs-17738dc65798.herokuapp.com/bizVantage/register",t,{headers:{"Content-Type":"application/json"}}),r=(null===n||void 0===n?void 0:n.data)||{};null!==r&&void 0!==r&&r.success?(localStorage.setItem("bv.registerResponse",JSON.stringify(r)),l((null===r||void 0===r?void 0:r.message)||"Account created and subscription active."),localStorage.removeItem("bv.pendingSignup")):(a("failed"),l((null===r||void 0===r?void 0:r.message)||"Payment succeeded but account creation failed."))}catch(tQ){console.error("complete registration error",(null===tQ||void 0===tQ?void 0:tQ.response)||tQ),a("failed"),l("Payment succeeded but registration failed. Contact support.")}finally{i(!1)}}else"open"===(null===t||void 0===t?void 0:t.status)||"unpaid"===(null===t||void 0===t?void 0:t.status)?(a("failed"),l((null===t||void 0===t?void 0:t.message)||"Payment is pending or incomplete.")):"canceled"===(null===t||void 0===t?void 0:t.status)||"expired"===(null===t||void 0===t?void 0:t.status)?(a("canceled"),l((null===t||void 0===t?void 0:t.message)||"Payment was canceled.")):(a((null===t||void 0===t?void 0:t.status)||"success"),l((null===t||void 0===t?void 0:t.message)||"Checkout completed."))}catch(tQ){console.error("verify session error",(null===tQ||void 0===tQ?void 0:tQ.response)||tQ),l("Unable to verify checkout session. If you were charged, please contact support."),a("true"===r||"1"===r?"success":o?"canceled":"failed")}finally{i(!1)}else"true"===r||"1"===r?(a("success"),l("Payment completed successfully.")):o?(a("canceled"),l("Payment was canceled.")):(a("failed"),l("Payment status unknown. Contact support if needed.")),i(!1)}()}),[t]),(0,Le.jsxs)("div",{className:"min-h-screen flex items-center justify-center p-6 bg-[radial-gradient(ellipse_at_bottom_left,_var(--tw-gradient-stops))] from-slate-900 to-slate-800",children:[n&&(0,Le.jsx)(tl,{}),!n&&(0,Le.jsx)("div",{className:"max-w-lg w-full",children:(0,Le.jsxs)("div",{className:"bg-white/5 border border-white/10 p-6 rounded-lg shadow-lg text-white",children:[(0,Le.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,Le.jsx)("div",{className:"h-12 w-12 flex items-center justify-center rounded-full ".concat("success"===r?"bg-emerald-500":"canceled"===r?"bg-amber-500":"bg-rose-500"),children:"success"===r?(0,Le.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):"canceled"===r?(0,Le.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}):(0,Le.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-white animate-pulse",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Le.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3"})})}),(0,Le.jsxs)("div",{children:[(0,Le.jsx)("h3",{className:"text-lg font-semibold",children:"success"===r?"Payment Successful":"canceled"===r?"Payment Canceled":"Payment Issue"}),(0,Le.jsx)("p",{className:"text-sm text-white/80",children:s})]})]}),(0,Le.jsxs)("div",{className:"mt-4 flex gap-3",children:[(0,Le.jsx)(BN,{onClick:()=>e("/dashboard"),children:"Go to Dashboard"}),(0,Le.jsx)(BN,{variant:"ghost",onClick:()=>e(-1),children:"Back"})]}),(0,Le.jsx)("div",{className:"mt-4 text-xs text-white/60",children:"success"===r?(0,Le.jsx)("p",{children:"Thank y
2ou \u2014 your subscription is active. You can manage billing in Settings."}):"canceled"===r?(0,Le.jsx)("p",{children:"If you changed your mind, you can try again from the Pricing page."}):(0,Le.jsx)("p",{children:"If you were charged but see an error, please contact support with your order details."})})]})})]})};const Z$=function(){return(0,Le.jsx)(He,{children:(0,Le.jsx)(BG,{children:(0,Le.jsx)(Me,{children:(0,Le.jsxs)(De,{children:[(0,Le.jsx)(we,{path:"/",element:(0,Le.jsx)(Wj,{})}),(0,Le.jsx)(we,{path:"/dashboard",element:(0,Le.jsx)(uH,{})}),(0,Le.jsx)(we,{path:"/checkout-result",element:(0,Le.jsx)(Q$,{})}),(0,Le.jsx)(we,{path:"/admin",element:(0,Le.jsx)(K$,{})}),(0,Le.jsx)(we,{path:"/assessments",element:(0,Le.jsx)(pH,{})}),(0,Le.jsx)(we,{path:"/assessment/:assessmentId",element:(0,Le.jsx)(YG,{})}),(0,Le.jsx)(we,{path:"/documents",element:(0,Le.jsx)(QG,{})}),(0,Le.jsx)(we,{path:"/settings",element:(0,Le.jsx)(OY,{})})]})})})})},J$=e=>{e&&e instanceof Function&&n.e(488).then(n.bind(n,2488)).then((t=>{let{getCLS:n,getFID:i,getFCP:r,getLCP:a,getTTFB:o}=t;n(e),i(e),r(e),a(e),o(e)}))};l.createRoot(document.getElementById("root")).render((0,Le.jsx)(o.StrictMode,{children:(0,Le.jsx)(Z$,{})})),J$()})()})();
3//# sourceMappingURL=main.b5411b32.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.