@fungi.computer/prints 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +0,0 @@
1
- import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{Mt as n,_i as r,dn as i,fn as a,g as o,h as s,m as c,mn as l,t as u,u as d}from"./log-event-DzW_bfP7.js";import{f,l as p,m,n as h,p as g,s as _,u as v}from"./local-images-C8BsGPrp.js";var y=c(`Download`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`7 10 12 15 17 10`,key:`2ggqvy`}],[`line`,{x1:`12`,x2:`12`,y1:`15`,y2:`3`,key:`1vk2je`}]]),b=t((e=>{function t(e,t,n){if(n===void 0&&(n=Array.prototype),e&&typeof n.find==`function`)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(r(e,i)){var a=e[i];if(t.call(void 0,a,i,e))return a}}function n(e,t){return t===void 0&&(t=Object),t&&typeof t.getOwnPropertyDescriptors==`function`&&(e=t.create(null,t.getOwnPropertyDescriptors(e))),t&&typeof t.freeze==`function`?t.freeze(e):e}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e,t){if(typeof e!=`object`||!e)throw TypeError(`target is not an object`);for(var n in t)r(t,n)&&(e[n]=t[n]);return e}var a=n({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});function o(e){return r(a,e.toLowerCase())}var s=n({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function c(e){return r(s,e.toLowerCase())}var l=n({script:!1,style:!1,textarea:!0,title:!0});function u(e){var t=e.toLowerCase();return r(l,t)&&!l[t]}function d(e){var t=e.toLowerCase();return r(l,t)&&l[t]}function f(e){return e===m.HTML}function p(e){return f(e)||e===m.XML_XHTML_APPLICATION}var m=n({HTML:`text/html`,XML_APPLICATION:`application/xml`,XML_TEXT:`text/xml`,XML_XHTML_APPLICATION:`application/xhtml+xml`,XML_SVG_IMAGE:`image/svg+xml`}),h=Object.keys(m).map(function(e){return m[e]});function g(e){return h.indexOf(e)>-1}var _=n({HTML:`http://www.w3.org/1999/xhtml`,SVG:`http://www.w3.org/2000/svg`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`});e.assign=i,e.find=t,e.freeze=n,e.HTML_BOOLEAN_ATTRIBUTES=a,e.HTML_RAW_TEXT_ELEMENTS=l,e.HTML_VOID_ELEMENTS=s,e.hasDefaultHTMLNamespace=p,e.hasOwn=r,e.isHTMLBooleanAttribute=o,e.isHTMLRawTextElement=u,e.isHTMLEscapableRawTextElement=d,e.isHTMLMimeType=f,e.isHTMLVoidElement=c,e.isValidMimeType=g,e.MIME_TYPE=m,e.NAMESPACE=_})),x=t((e=>{var t=b();function n(e,t){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:t}})}var r=t.freeze({Error:`Error`,IndexSizeError:`IndexSizeError`,DomstringSizeError:`DomstringSizeError`,HierarchyRequestError:`HierarchyRequestError`,WrongDocumentError:`WrongDocumentError`,InvalidCharacterError:`InvalidCharacterError`,NoDataAllowedError:`NoDataAllowedError`,NoModificationAllowedError:`NoModificationAllowedError`,NotFoundError:`NotFoundError`,NotSupportedError:`NotSupportedError`,InUseAttributeError:`InUseAttributeError`,InvalidStateError:`InvalidStateError`,SyntaxError:`SyntaxError`,InvalidModificationError:`InvalidModificationError`,NamespaceError:`NamespaceError`,InvalidAccessError:`InvalidAccessError`,ValidationError:`ValidationError`,TypeMismatchError:`TypeMismatchError`,SecurityError:`SecurityError`,NetworkError:`NetworkError`,AbortError:`AbortError`,URLMismatchError:`URLMismatchError`,QuotaExceededError:`QuotaExceededError`,TimeoutError:`TimeoutError`,InvalidNodeTypeError:`InvalidNodeTypeError`,DataCloneError:`DataCloneError`,EncodingError:`EncodingError`,NotReadableError:`NotReadableError`,UnknownError:`UnknownError`,ConstraintError:`ConstraintError`,DataError:`DataError`,TransactionInactiveError:`TransactionInactiveError`,ReadOnlyError:`ReadOnlyError`,VersionError:`VersionError`,OperationError:`OperationError`,NotAllowedError:`NotAllowedError`,OptOutError:`OptOutError`}),i=Object.keys(r);function a(e){return typeof e==`number`&&e>=1&&e<=25}function o(e){return typeof e==`string`&&e.substring(e.length-r.Error.length)===r.Error}function s(e,t){a(e)?(this.name=i[e],this.message=t||``):(this.message=e,this.name=o(t)?t:r.Error),Error.captureStackTrace&&Error.captureStackTrace(this,s)}n(s,!0),Object.defineProperties(s.prototype,{code:{enumerable:!0,get:function(){var e=i.indexOf(this.name);return a(e)?e:0}}});for(var c={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},l=Object.entries(c),u=0;u<l.length;u++){var d=l[u][0];s[d]=l[u][1]}function f(e,t,n){this.message=e,this.locator=t,this.cause=n,Error.captureStackTrace&&Error.captureStackTrace(this,f)}n(f),e.DOMException=s,e.DOMExceptionName=r,e.ExceptionCode=c,e.ParseError=f})),S=t((e=>{function t(e){try{typeof e!=`function`&&(e=RegExp);var t=new e(`𝌆`,`u`).exec(`𝌆`);return!!t&&t[0].length===2}catch{}return!1}var n=t();function r(e){if(e.source[0]!==`[`)throw Error(e+` can not be used with chars`);return e.source.slice(1,e.source.lastIndexOf(`]`))}function i(e,t){if(e.source[0]!==`[`)throw Error(`/`+e.source+`/ can not be used with chars_without`);if(!t||typeof t!=`string`)throw Error(JSON.stringify(t)+` is not a valid search`);if(e.source.indexOf(t)===-1)throw Error(`"`+t+`" is not is /`+e.source+`/`);if(t===`-`&&e.source.indexOf(t)!==1)throw Error(`"`+t+`" is not at the first postion of /`+e.source+`/`);return new RegExp(e.source.replace(t,``),n?`u`:``)}function a(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var n=typeof e==`string`;if(n&&t===void 0&&e===`|`)throw Error("use regg instead of reg to wrap expressions with `|`!");return n?e:e.source}).join(``),n?`u`:``)}function o(e){if(arguments.length===0)throw Error(`no parameters provided`);return a.apply(o,[`(?:`].concat(Array.prototype.slice.call(arguments),[`)`]))}var s=`�`,c=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;n&&(c=a(`[`,r(c),`\\u{10000}-\\u{10FFFF}`,`]`));var l=RegExp(`[^`+r(c)+`]`,n?`u`:``),u=/[\x20\x09\x0D\x0A]/,d=r(u),f=a(u,`+`),p=a(u,`*`),m=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;n&&(m=a(`[`,r(m),`\\u{10000}-\\u{10FFFF}`,`]`));var h=a(`[`,r(m),r(/[-.0-9\xB7]/),r(/[\u0300-\u036F\u203F-\u2040]/),`]`),g=a(m,h,`*`),_=a(`^`,g,`$`),v=a(h,`+`),y=o(a(`&`,g,`;`),`|`,o(/&#[0-9]+;|&#x[0-9a-fA-F]+;/)),b=a(`%`,g,`;`),x=o(a(`"`,o(/[^%&"]/,`|`,b,`|`,y),`*`,`"`),`|`,a(`'`,o(/[^%&']/,`|`,b,`|`,y),`*`,`'`)),S=o(`"`,o(/[^<&"]/,`|`,y),`*`,`"`,`|`,`'`,o(/[^<&']/,`|`,y),`*`,`'`),C=a(i(m,`:`),i(h,`:`),`*`),w=a(`^`,C,`$`),T=a(C,o(`:`,C),`?`),E=a(`^`,T,`$`),D=a(`(`,T,`)`),O=o(/"[^"]*"|'[^']*'/),k=a(/^<\?/,`(`,g,`)`,o(f,`(?!`,u,`)(`,c,`*?)`),`?`,/\?>/),A=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,j=o(`"`,A,`*"`,`|`,`'`,i(A,`'`),`*'`),M=`<!--`,N=`-->`,P=a(M,o(i(c,`-`),`|`,a(`-`,i(c,`-`))),`*`,N),F=`#PCDATA`,I=o(`EMPTY`,`|`,`ANY`,`|`,o(a(/\(/,p,F,o(p,/\|/,p,T),`*`,p,/\)\*/),`|`,a(/\(/,p,F,p,/\)/)),`|`,a(/\([^>]+\)/,/[?*+]?/)),L=a(`<!ELEMENT`,f,o(T,`|`,b),f,o(I,`|`,b),p,`>`),ee=a(`<!ATTLIST`,f,g,o(f,g,f,o(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,`|`,o(a(`NOTATION`,f,/\(/,p,g,o(p,/\|/,p,g),`*`,p,/\)/),`|`,a(/\(/,p,v,o(p,/\|/,p,v),`*`,p,/\)/))),f,o(/#REQUIRED|#IMPLIED/,`|`,o(o(`#FIXED`,f),`?`,S))),`*`,p,`>`),R=`about:legacy-compat`,z=o(`"`+R+`"`,`|`,`'`+R+`'`),B=`SYSTEM`,V=`PUBLIC`,H=o(o(B,f,O),`|`,o(V,f,j,f,O)),U=a(`^`,o(o(B,f,`(?<SystemLiteralOnly>`,O,`)`),`|`,o(V,f,`(?<PubidLiteral>`,j,`)`,f,`(?<SystemLiteral>`,O,`)`))),W=a(`^`,j,`$`),te=a(`^`,O,`$`),ne=o(x,`|`,o(H,o(f,`NDATA`,f,g),`?`)),re=`<!ENTITY`,ie=o(a(re,f,g,f,ne,p,`>`),`|`,a(re,f,`%`,f,g,f,o(x,`|`,H),p,`>`)),ae=a(`<!NOTATION`,f,g,f,o(H,`|`,a(V,f,j)),p,`>`),oe=a(p,`=`,p),se=/1[.]\d+/,ce=a(f,`version`,oe,o(`'`,se,`'`,`|`,`"`,se,`"`)),le=/[A-Za-z][-A-Za-z0-9._]*/,ue=a(/^<\?xml/,ce,o(f,`encoding`,oe,o(`"`,le,`"`,`|`,`'`,le,`'`)),`?`,o(f,`standalone`,oe,o(`'`,o(`yes`,`|`,`no`),`'`,`|`,`"`,o(`yes`,`|`,`no`),`"`)),`?`,p,/\?>/),G=`<!DOCTYPE`,de=`<![CDATA[`,fe=`]]>`,K=a(/<!\[CDATA\[/,a(c,`*?`,/\]\]>/));e.chars=r,e.chars_without=i,e.detectUnicodeSupport=t,e.reg=a,e.regg=o,e.ABOUT_LEGACY_COMPAT=R,e.ABOUT_LEGACY_COMPAT_SystemLiteral=z,e.AttlistDecl=ee,e.CDATA_START=de,e.CDATA_END=fe,e.CDSect=K,e.Char=c,e.Comment=P,e.COMMENT_START=M,e.COMMENT_END=N,e.DOCTYPE_DECL_START=G,e.elementdecl=L,e.EntityDecl=ie,e.EntityValue=x,e.ExternalID=H,e.ExternalID_match=U,e.Name=g,e.Name_exact=_,e.NCName_exact=w,e.NotationDecl=ae,e.Reference=y,e.PEReference=b,e.PI=k,e.PUBLIC=V,e.PubidLiteral=j,e.PubidLiteral_match=W,e.QName=T,e.QName_exact=E,e.QName_group=D,e.S=f,e.SChar_s=d,e.S_OPT=p,e.SYSTEM=B,e.SystemLiteral=O,e.SystemLiteral_match=te,e.InvalidChar=l,e.UNICODE_REPLACEMENT_CHARACTER=s,e.UNICODE_SUPPORT=n,e.XMLDecl=ue})),C=t((e=>{var t=b(),n=t.find,r=t.hasDefaultHTMLNamespace,i=t.hasOwn,a=t.isHTMLMimeType,o=t.isHTMLRawTextElement,s=t.isHTMLVoidElement,c=t.MIME_TYPE,l=t.NAMESPACE,u=Symbol(),d=x(),f=d.DOMException,p=d.DOMExceptionName,m=S();function h(e){if(e!==u)throw TypeError(`Illegal constructor`)}function g(e){return e!==``}function _(e){return e?e.split(/[\t\n\f\r ]+/).filter(g):[]}function v(e,t){return i(e,t)||(e[t]=!0),e}function y(e){if(!e)return[];var t=_(e);return Object.keys(t.reduce(v,{}))}function C(e){return function(t){return e&&e.indexOf(t)!==-1}}function w(e){if(!m.QName_exact.test(e))throw new f(f.INVALID_CHARACTER_ERR,`invalid character in qualified name "`+e+`"`)}function T(e,n){w(n),e||=null;var r=null,i=n;if(n.indexOf(`:`)>=0){var a=n.split(`:`);r=a[0],i=a[1]}if(r!==null&&e===null)throw new f(f.NAMESPACE_ERR,`prefix is non-null and namespace is null`);if(r===`xml`&&e!==t.NAMESPACE.XML)throw new f(f.NAMESPACE_ERR,`prefix is "xml" and namespace is not the XML namespace`);if((r===`xmlns`||n===`xmlns`)&&e!==t.NAMESPACE.XMLNS)throw new f(f.NAMESPACE_ERR,`either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace`);if(e===t.NAMESPACE.XMLNS&&r!==`xmlns`&&n!==`xmlns`)throw new f(f.NAMESPACE_ERR,`namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"`);return[e,r,i]}function E(e,t){for(var n in e)i(e,n)&&(t[n]=e[n])}function D(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,E(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!=`function`&&console.error(`unknown Class:`+e),n.constructor=e)}var O={},k=O.ELEMENT_NODE=1,A=O.ATTRIBUTE_NODE=2,j=O.TEXT_NODE=3,M=O.CDATA_SECTION_NODE=4,N=O.ENTITY_REFERENCE_NODE=5,P=O.ENTITY_NODE=6,F=O.PROCESSING_INSTRUCTION_NODE=7,I=O.COMMENT_NODE=8,L=O.DOCUMENT_NODE=9,ee=O.DOCUMENT_TYPE_NODE=10,R=O.DOCUMENT_FRAGMENT_NODE=11,z=O.NOTATION_NODE=12,B=t.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function V(e,t){if(t.length<e.length)return V(t,e);var n=null;for(var r in e){if(e[r]!==t[r])return n;n=e[r]}return n}function H(e){return e.guid||=Math.random(),e.guid}function U(){}U.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){for(var t=typeof e==`function`?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e?{requireWellFormed:!!e.requireWellFormed,splitCDATASections:e.splitCDATASections!==!1,nodeFilter:e.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null},n=[],r=0;r<this.length;r++)q(this[r],n,null,t);return n.join(``)},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},U.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}};function W(e,t){this._node=e,this._refresh=t,te(this)}function te(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(qe(e,`length`,n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)i(e,r)&&delete e[r];E(n,e),e._inc=t}}W.prototype.item=function(e){return te(this),this[e]||null},D(W,U);function ne(){this._nsIndex=Object.create(null),this._noNsIndex=Object.create(null)}function re(e,t){for(var n=0;n<e.length;){if(e[n]===t)return n;n++}}function ie(e,t,n){if(!t)return e._noNsIndex;var r=e._nsIndex[t];return!r&&n&&(r=e._nsIndex[t]=Object.create(null)),r}function ae(e,t,n){var r=ie(e,t,!1);return r&&r[n]||null}function oe(e,t){ie(e,t.namespaceURI,!0)[t.localName]=t}function se(e,t){var n=ie(e,t.namespaceURI,!1);n&&delete n[t.localName]}function ce(e,t,n,r){if(r?t[re(t,r)]=n:(t[t.length]=n,t.length++),oe(t,n),e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&he(i,e,r),me(i,e,n))}}function le(e,t,n){var r=re(t,n);if(r>=0){for(var i=t.length-1;r<=i;)t[r]=t[++r];if(t.length=i,se(t,n),e){var a=e.ownerDocument;a&&he(a,e,n),n.ownerElement=null}}}ne.prototype={length:0,item:U.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var t=0;t<this.length;){var n=this[t];if(n.nodeName===e)return n;t++}return null},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!==this._ownerElement)throw new f(f.INUSE_ATTRIBUTE_ERR);var n=ae(this,e.namespaceURI,e.localName);return n===e?e:(ce(this._ownerElement,this,e,n),n)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var t=this.getNamedItem(e);if(!t)throw new f(f.NOT_FOUND_ERR,e);return le(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);if(!n)throw new f(f.NOT_FOUND_ERR,e?e+` : `+t:t);return le(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){e||=null;for(var n=0;n<this.length;){var r=this[n];if(r.localName===t&&r.namespaceURI===e)return r;n++}return null}},ne.prototype[Symbol.iterator]=function(){var e=this,t=0;return{next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0}},return:function(){return{done:!0}}}};function ue(){}ue.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=c.XML_APPLICATION;e===l.HTML?r=c.XML_XHTML_APPLICATION:e===l.SVG&&(r=c.XML_SVG_IMAGE);var i=new pe(u,{contentType:r});if(i.implementation=this,i.childNodes=new U,i.doctype=n||null,n&&i.appendChild(n),t){var a=i.createElementNS(e,t);i.appendChild(a)}return i},createDocumentType:function(e,t,n,r){w(e);var i=new Fe(u);return i.name=e,i.nodeName=e,i.publicId=t||``,i.systemId=n||``,i.internalSubset=r||``,i.childNodes=new U,i},createHTMLDocument:function(e){var t=new pe(u,{contentType:c.HTML});if(t.implementation=this,t.childNodes=new U,e!==!1){t.doctype=this.createDocumentType(`html`),t.doctype.ownerDocument=t,t.appendChild(t.doctype);var n=t.createElement(`html`);t.appendChild(n);var r=t.createElement(`head`);if(n.appendChild(r),typeof e==`string`){var i=t.createElement(`title`);i.appendChild(t.createTextNode(e)),r.appendChild(i)}n.appendChild(t.createElement(`body`))}return t}};function G(e){h(e)}G.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:`about:blank`,get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var t=e;do{if(this===t)return!0;t=t.parentNode}while(t);return!1},getRootNode:function(e){var t=this;do{if(!t.parentNode)return t;t=t.parentNode}while(t)},isEqualNode:function(e){if(!e)return!1;for(var t=[{node:this,other:e}];t.length>0;){var n=t.pop(),r=n.node,i=n.other;if(r.nodeType!==i.nodeType)return!1;switch(r.nodeType){case r.DOCUMENT_TYPE_NODE:if(r.name!==i.name||r.publicId!==i.publicId||r.systemId!==i.systemId)return!1;break;case r.ELEMENT_NODE:if(r.namespaceURI!==i.namespaceURI||r.prefix!==i.prefix||r.localName!==i.localName||r.attributes.length!==i.attributes.length)return!1;for(var a=0;a<r.attributes.length;a++){var o=r.attributes.item(a),s=i.getAttributeNodeNS(o.namespaceURI,o.localName);if(!s)return!1;t.push({node:o,other:s})}break;case r.ATTRIBUTE_NODE:if(r.namespaceURI!==i.namespaceURI||r.localName!==i.localName||r.value!==i.value)return!1;break;case r.PROCESSING_INSTRUCTION_NODE:if(r.target!==i.target||r.data!==i.data)return!1;break;case r.TEXT_NODE:case r.CDATA_SECTION_NODE:case r.COMMENT_NODE:if(r.data!==i.data)return!1}if(r.childNodes.length!==i.childNodes.length)return!1;for(var a=r.childNodes.length-1;a>=0;a--)t.push({node:r.childNodes[a],other:i.childNodes[a]})}return!0},isSameNode:function(e){return this===e},insertBefore:function(e,t){return Oe(this,e,t)},replaceChild:function(e,t){Oe(this,e,t,De),t&&this.removeChild(t)},removeChild:function(e){return _e(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Ke(this.ownerDocument||this,this,e)},normalize:function(){K(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;if(n!==null&&n.nodeType===j&&t.nodeType===j){for(var r=[],i=n;i!==null&&i.nodeType===j;)r.push(i.data),i=i.nextSibling;for(var a=t.nextSibling;a!==i;){var o=a.nextSibling;a.parentNode=null,a.previousSibling=null,a.nextSibling=null,a=o}t.nextSibling=i,i===null?e.lastChild=t:i.previousSibling=t,t.appendData(r.join(``)),ge(e.ownerDocument,e),t=i}else t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var r in n)if(i(n,r)&&n[r]===e)return r}t=t.nodeType==A?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&i(n,e))return n[e];t=t.nodeType==A?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return this.lookupPrefix(e)==null},compareDocumentPosition:function(e){if(this===e)return 0;var t=e,n=this,r=null,i=null;if(t instanceof Ae&&(r=t,t=r.ownerElement),n instanceof Ae&&(i=n,n=i.ownerElement,r&&t&&n===t))for(var a=0,o;o=n.attributes[a];a++){if(o===r)return B.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+B.DOCUMENT_POSITION_PRECEDING;if(o===i)return B.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+B.DOCUMENT_POSITION_FOLLOWING}if(!t||!n||n.ownerDocument!==t.ownerDocument)return B.DOCUMENT_POSITION_DISCONNECTED+B.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(H(n.ownerDocument)>H(t.ownerDocument)?B.DOCUMENT_POSITION_FOLLOWING:B.DOCUMENT_POSITION_PRECEDING);if(i&&t===n)return B.DOCUMENT_POSITION_CONTAINS+B.DOCUMENT_POSITION_PRECEDING;if(r&&t===n)return B.DOCUMENT_POSITION_CONTAINED_BY+B.DOCUMENT_POSITION_FOLLOWING;for(var s=[],c=t.parentNode;c;){if(!i&&c===n)return B.DOCUMENT_POSITION_CONTAINED_BY+B.DOCUMENT_POSITION_FOLLOWING;s.push(c),c=c.parentNode}s.reverse();for(var l=[],u=n.parentNode;u;){if(!r&&u===t)return B.DOCUMENT_POSITION_CONTAINS+B.DOCUMENT_POSITION_PRECEDING;l.push(u),u=u.parentNode}l.reverse();var d=V(s,l);for(var f in d.childNodes){var p=d.childNodes[f];if(p===n)return B.DOCUMENT_POSITION_FOLLOWING;if(p===t)return B.DOCUMENT_POSITION_PRECEDING;if(l.indexOf(p)>=0)return B.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(p)>=0)return B.DOCUMENT_POSITION_PRECEDING}return 0}};function de(e){return e==`<`&&`&lt;`||e==`>`&&`&gt;`||e==`&`&&`&amp;`||e==`"`&&`&quot;`||`&#`+e.charCodeAt()+`;`}E(O,G),E(O,G.prototype),E(B,G),E(B,G.prototype);function fe(e,t){K(e,null,{enter:function(e){return!t(e)||K.STOP}})}function K(e,t,n){for(var r=[{node:e,context:t,phase:K.ENTER}];r.length>0;){var i=r.pop();if(i.phase===K.ENTER){var a=n.enter(i.node,i.context);if(a===K.STOP)return K.STOP;if(r.push({node:i.node,context:a,phase:K.EXIT}),a==null)continue;for(var o=i.node.lastChild;o;)r.push({node:o,context:a,phase:K.ENTER}),o=o.previousSibling}else n.exit&&n.exit(i.node,i.context)}}K.STOP=Symbol(`walkDOM.STOP`),K.ENTER=0,K.EXIT=1;function pe(e,t){h(e);var n=t||{};this.ownerDocument=this,this.contentType=n.contentType||c.XML_APPLICATION,this.type=a(this.contentType)?`html`:`xml`}function me(e,t,n){e&&e._inc++,n.namespaceURI===l.XMLNS&&(t._nsMap[n.prefix?n.localName:``]=n.value)}function he(e,t,n,r){e&&e._inc++,n.namespaceURI===l.XMLNS&&delete t._nsMap[n.prefix?n.localName:``]}function ge(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n&&!n.nextSibling)r[r.length++]=n;else{for(var i=t.firstChild,a=0;i;)r[a++]=i,i=i.nextSibling;r.length=a,delete r[r.length]}}}function _e(e,t){if(e!==t.parentNode)throw new f(f.NOT_FOUND_ERR,`child's parent is not parent`);var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,ge(e.ownerDocument,e),t.parentNode=null,t.previousSibling=null,t.nextSibling=null,t}function ve(e){return e&&(e.nodeType===G.DOCUMENT_NODE||e.nodeType===G.DOCUMENT_FRAGMENT_NODE||e.nodeType===G.ELEMENT_NODE)}function ye(e){return e&&(e.nodeType===G.CDATA_SECTION_NODE||e.nodeType===G.COMMENT_NODE||e.nodeType===G.DOCUMENT_FRAGMENT_NODE||e.nodeType===G.DOCUMENT_TYPE_NODE||e.nodeType===G.ELEMENT_NODE||e.nodeType===G.PROCESSING_INSTRUCTION_NODE||e.nodeType===G.TEXT_NODE)}function be(e){return e&&e.nodeType===G.DOCUMENT_TYPE_NODE}function xe(e){return e&&e.nodeType===G.ELEMENT_NODE}function Se(e){return e&&e.nodeType===G.TEXT_NODE}function Ce(e,t){var r=e.childNodes||[];if(n(r,xe)||be(t))return!1;var i=n(r,be);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function we(e,t){var r=e.childNodes||[];function i(e){return xe(e)&&e!==t}if(n(r,i))return!1;var a=n(r,be);return!(t&&a&&r.indexOf(a)>r.indexOf(t))}function Te(e,t,n){if(!ve(e))throw new f(f.HIERARCHY_REQUEST_ERR,`Unexpected parent node type `+e.nodeType);if(n&&n.parentNode!==e)throw new f(f.NOT_FOUND_ERR,`child not in parent`);if(!ye(t)||be(t)&&e.nodeType!==G.DOCUMENT_NODE)throw new f(f.HIERARCHY_REQUEST_ERR,`Unexpected node type `+t.nodeType+` for parent node type `+e.nodeType)}function Ee(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===G.DOCUMENT_FRAGMENT_NODE){var o=a.filter(xe);if(o.length>1||n(a,Se))throw new f(f.HIERARCHY_REQUEST_ERR,`More than one element or text in fragment`);if(o.length===1&&!Ce(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Element in fragment can not be inserted before doctype`)}if(xe(t)&&!Ce(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one element can be added and only after doctype`);if(be(t)){if(n(i,be))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one doctype is allowed`);var s=n(i,xe);if(r&&i.indexOf(s)<i.indexOf(r))throw new f(f.HIERARCHY_REQUEST_ERR,`Doctype can only be inserted before an element`);if(!r&&s)throw new f(f.HIERARCHY_REQUEST_ERR,`Doctype can not be appended since element is present`)}}function De(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===G.DOCUMENT_FRAGMENT_NODE){var o=a.filter(xe);if(o.length>1||n(a,Se))throw new f(f.HIERARCHY_REQUEST_ERR,`More than one element or text in fragment`);if(o.length===1&&!we(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Element in fragment can not be inserted before doctype`)}if(xe(t)&&!we(e,r))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one element can be added and only after doctype`);if(be(t)){function e(e){return be(e)&&e!==r}if(n(i,e))throw new f(f.HIERARCHY_REQUEST_ERR,`Only one doctype is allowed`);var s=n(i,xe);if(r&&i.indexOf(s)<i.indexOf(r))throw new f(f.HIERARCHY_REQUEST_ERR,`Doctype can only be inserted before an element`)}}function Oe(e,t,n,r){Te(e,t,n),e.nodeType===G.DOCUMENT_NODE&&(r||Ee)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===R){var a=t.firstChild;if(a==null)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,n==null?e.lastChild=o:n.previousSibling=o;do a.parentNode=e;while(a!==o&&(a=a.nextSibling));return ge(e.ownerDocument||e,e,t),t.nodeType==R&&(t.firstChild=t.lastChild=null),t}pe.prototype={implementation:null,nodeName:`#document`,nodeType:L,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType===R){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return Oe(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===k&&(this.documentElement=e),e},removeChild:function(e){var t=_e(this,e);return t===this.documentElement&&(this.documentElement=null),t},replaceChild:function(e,t){Oe(this,e,t,De),e.ownerDocument=this,t&&this.removeChild(t),xe(e)&&(this.documentElement=e)},importNode:function(e,t){return Ge(this,e,t)},getElementById:function(e){var t=null;return fe(this.documentElement,function(n){if(n.nodeType==k&&n.getAttribute(`id`)==e)return t=n,!0}),t},createElement:function(e){var t=new ke(u);t.ownerDocument=this,this.type===`html`&&(e=e.toLowerCase()),r(this.contentType)&&(t.namespaceURI=l.HTML),t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new U;var n=t.attributes=new ne;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new ze(u);return e.ownerDocument=this,e.childNodes=new U,e},createTextNode:function(e){var t=new Me(u);return t.ownerDocument=this,t.childNodes=new U,t.appendData(e),t},createComment:function(e){var t=new Ne(u);return t.ownerDocument=this,t.childNodes=new U,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf(`]]>`)!==-1)throw new f(f.INVALID_CHARACTER_ERR,`data contains "]]>"`);var t=new Pe(u);return t.ownerDocument=this,t.childNodes=new U,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Be(u);return n.ownerDocument=this,n.childNodes=new U,n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){if(!m.QName_exact.test(e))throw new f(f.INVALID_CHARACTER_ERR,`invalid character in name "`+e+`"`);return this.type===`html`&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var t=new Ae(u);return t.ownerDocument=this,t.childNodes=new U,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!m.Name_exact.test(e))throw new f(f.INVALID_CHARACTER_ERR,`not a valid xml name "`+e+`"`);if(this.type===`html`)throw new f(`document is an html document`,p.NotSupportedError);var t=new Re(u);return t.ownerDocument=this,t.childNodes=new U,t.nodeName=e,t},createElementNS:function(e,t){var n=T(e,t),r=new ke(u),i=r.attributes=new ne;return r.childNodes=new U,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],i._ownerElement=r,r},createAttributeNS:function(e,t){var n=T(e,t),r=new Ae(u);return r.ownerDocument=this,r.childNodes=new U,r.nodeName=t,r.name=t,r.specified=!0,r.namespaceURI=n[0],r.prefix=n[1],r.localName=n[2],r}},D(pe,G);function ke(e){h(e),this._nsMap=Object.create(null)}ke.prototype={nodeType:k,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+`:`+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type===`html`&&this.namespaceURI===l.HTML},hasAttributes:function(){return!!(this.attributes&&this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t?t.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,t){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var n=this.getAttributeNode(e);n?n.value=n.nodeValue=``+t:(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)},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 this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n?n.value:null},setAttributeNS:function(e,t,n){var r=T(e,t)[2],i=this.getAttributeNodeNS(e,r);i?i.value=i.nodeValue=``+n:(i=this.ownerDocument.createAttributeNS(e,t),i.value=i.nodeValue=``+n,this.setAttributeNode(i))},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByClassName:function(e){var t=y(e);return new W(this,function(n){var r=[];return t.length>0&&fe(n,function(i){if(i!==n&&i.nodeType===k){var a=i.getAttribute(`class`);if(a){var o=e===a;if(!o){var s=y(a);o=t.every(C(s))}o&&r.push(i)}}}),r})},getElementsByTagName:function(e){var t=(this.nodeType===L?this:this.ownerDocument).type===`html`,n=e.toLowerCase();return new W(this,function(r){var i=[];return fe(r,function(a){a!==r&&a.nodeType===k&&(e===`*`||a.getQualifiedName()===(t&&a.namespaceURI===l.HTML?n:e))&&i.push(a)}),i})},getElementsByTagNameNS:function(e,t){return new W(this,function(n){var r=[];return fe(n,function(i){i!==n&&i.nodeType===k&&(e===`*`||i.namespaceURI===e)&&(t===`*`||i.localName==t)&&r.push(i)}),r})}},pe.prototype.getElementsByClassName=ke.prototype.getElementsByClassName,pe.prototype.getElementsByTagName=ke.prototype.getElementsByTagName,pe.prototype.getElementsByTagNameNS=ke.prototype.getElementsByTagNameNS,D(ke,G);function Ae(e){h(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}Ae.prototype.nodeType=A,D(Ae,G);function je(e){h(e)}je.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)},deleteData:function(e,t){this.replaceData(e,t,``)},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},D(je,G);function Me(e){h(e)}Me.prototype={nodeName:`#text`,nodeType:j,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 r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},D(Me,je);function Ne(e){h(e)}Ne.prototype={nodeName:`#comment`,nodeType:I},D(Ne,je);function Pe(e){h(e)}Pe.prototype={nodeName:`#cdata-section`,nodeType:M},D(Pe,Me);function Fe(e){h(e)}Fe.prototype.nodeType=ee,D(Fe,G);function Ie(e){h(e)}Ie.prototype.nodeType=z,D(Ie,G);function Le(e){h(e)}Le.prototype.nodeType=P,D(Le,G);function Re(e){h(e)}Re.prototype.nodeType=N,D(Re,G);function ze(e){h(e)}ze.prototype.nodeName=`#document-fragment`,ze.prototype.nodeType=R,D(ze,G);function Be(e){h(e)}Be.prototype.nodeType=F,D(Be,je);function Ve(){}Ve.prototype.serializeToString=function(e,t){return He.call(e,t)},G.prototype.toString=He;function He(e){var t=typeof e==`function`?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:e}:e==null?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null}:{requireWellFormed:!!e.requireWellFormed,splitCDATASections:e.splitCDATASections!==!1,nodeFilter:e.nodeFilter||null},n=[],r=this.nodeType===L&&this.documentElement||this,i=r.prefix,a=r.namespaceURI;if(a&&i==null){var i=r.lookupPrefix(a);if(i==null)var o=[{namespace:a,prefix:null}]}return q(this,n,o,t),n.join(``)}function Ue(e,t,n){var r=e.prefix||``,i=e.namespaceURI;if(!i||r===`xml`&&i===l.XML||i===l.XMLNS)return!1;for(var a=n.length;a--;){var o=n[a];if(o.prefix===r)return o.namespace!==i}return!0}function We(e,t,n,r){if(r&&!m.QName_exact.test(t))throw new f(`The attribute name "`+t+`" is not a valid XML QName`,p.InvalidStateError);e.push(` `,t,`="`,n.replace(/[<>&"\t\n\r]/g,de),`"`)}function q(e,t,n,r){n||=[];var i=r.nodeFilter,a=r.requireWellFormed,c=r.splitCDATASections,u=(e.nodeType===L?e:e.ownerDocument).type===`html`;K(e,{ns:n},{enter:function(e,n){var d=n.ns;if(i){if(e=i(e),e){if(typeof e==`string`)return t.push(e),null}else return null}switch(e.nodeType){case k:var h=e.attributes,g=h.length,_=e.tagName,v=_;if(!u&&!e.prefix&&e.namespaceURI){for(var y,b=0;b<h.length;b++)if(h.item(b).name===`xmlns`){y=h.item(b).value;break}if(!y)for(var x=d.length-1;x>=0;x--){var S=d[x];if(S.prefix===``&&S.namespace===e.namespaceURI){y=S.namespace;break}}if(y!==e.namespaceURI)for(var x=d.length-1;x>=0;x--){var S=d[x];if(S.namespace===e.namespaceURI){S.prefix&&(v=S.prefix+`:`+_);break}}}if(a&&!m.QName_exact.test(v))throw new f(`The element name "`+v+`" is not a valid XML QName`,p.InvalidStateError);t.push(`<`,v);for(var C=d.slice(),w=0;w<g;w++){var T=h.item(w);T.prefix==`xmlns`?C.push({prefix:T.localName,namespace:T.value}):T.nodeName==`xmlns`&&C.push({prefix:``,namespace:T.value})}for(var w=0;w<g;w++){var T=h.item(w);if(Ue(T,u,C)){var E=T.prefix||``,D=T.namespaceURI;We(t,E?`xmlns:`+E:`xmlns`,D,a),C.push({prefix:E,namespace:D})}var O=i?i(T):T;O&&(typeof O==`string`?t.push(O):We(t,O.name,O.value,a))}if(_===v&&Ue(e,u,C)){var P=e.prefix||``,D=e.namespaceURI;We(t,P?`xmlns:`+P:`xmlns`,D,a),C.push({prefix:P,namespace:D})}var z=!e.firstChild;if(z&&(u||e.namespaceURI===l.HTML)&&(z=s(_)),z)return t.push(`/>`),null;if(t.push(`>`),u&&o(_)){for(var B=e.firstChild;B;)B.data?t.push(B.data):q(B,t,C.slice(),r),B=B.nextSibling;return t.push(`</`,v,`>`),null}return{ns:C,tag:v};case L:case R:if(a&&e.nodeType===L&&e.documentElement==null)throw new f(`The Document has no documentElement`,p.InvalidStateError);return{ns:d};case A:return We(t,e.name,e.value,a),null;case j:if(a&&m.InvalidChar.test(e.data))throw new f(`The Text node data contains characters outside the XML Char production`,p.InvalidStateError);return t.push(e.data.replace(/[<&>]/g,de)),null;case M:if(a&&e.data.indexOf(`]]>`)!==-1)throw new f(`The CDATASection data contains "]]>"`,p.InvalidStateError);return c?t.push(m.CDATA_START,e.data.replace(/]]>/g,`]]]]><![CDATA[>`),m.CDATA_END):t.push(m.CDATA_START,e.data,m.CDATA_END),null;case I:if(a){if(m.InvalidChar.test(e.data))throw new f(`The comment node data contains characters outside the XML Char production`,p.InvalidStateError);if(e.data.indexOf(`--`)!==-1||e.data[e.data.length-1]===`-`)throw new f(`The comment node data contains "--" or ends with "-"`,p.InvalidStateError)}return t.push(m.COMMENT_START,e.data,m.COMMENT_END),null;case ee:var V=e.publicId,H=e.systemId;if(a){if(!m.Name_exact.test(e.name))throw new f(`The doctype name "`+e.name+`" is not a valid XML Name`,p.InvalidStateError);if(V&&!m.PubidLiteral_match.test(V))throw new f(`DocumentType publicId is not a valid PubidLiteral`,p.InvalidStateError);if(H&&H!==`.`&&!m.SystemLiteral_match.test(H))throw new f(`DocumentType systemId is not a valid SystemLiteral`,p.InvalidStateError);if(e.internalSubset&&e.internalSubset.indexOf(`]>`)!==-1)throw new f(`DocumentType internalSubset contains "]>"`,p.InvalidStateError)}return t.push(m.DOCTYPE_DECL_START,` `,e.name),V?(t.push(` `,m.PUBLIC,` `,V),H&&H!==`.`&&t.push(` `,H)):H&&H!==`.`&&t.push(` `,m.SYSTEM,` `,H),e.internalSubset&&t.push(` [`,e.internalSubset,`]`),t.push(`>`),null;case F:if(a){if(!m.NCName_exact.test(e.target)||e.target.toLowerCase()===`xml`)throw new f(`The processing instruction target "`+e.target+`" is not a valid XML NCName or is reserved`,p.InvalidStateError);if(m.InvalidChar.test(e.data))throw new f(`The ProcessingInstruction data contains characters outside the XML Char production`,p.InvalidStateError);if(e.data.indexOf(`?>`)!==-1)throw new f(`The ProcessingInstruction data contains "?>"`,p.InvalidStateError)}return t.push(`<?`,e.target,` `,e.data,`?>`),null;case N:if(a&&!m.Name_exact.test(e.nodeName))throw new f(`The entity reference name "`+e.nodeName+`" is not a valid XML Name`,p.InvalidStateError);return t.push(`&`,e.nodeName,`;`),null;default:return t.push(`??`,e.nodeName),null}},exit:function(e,n){n&&n.tag&&t.push(`</`,n.tag,`>`)}})}function Ge(e,t,n){var r;return K(t,null,{enter:function(t,i){var a=t.cloneNode(!1);return a.ownerDocument=e,a.parentNode=null,i===null?r=a:i.appendChild(a),t.nodeType===A||n?a:null}}),r}function Ke(e,t,n){var r;return K(t,null,{enter:function(t,a){var o=new t.constructor(u);for(var s in t)if(i(t,s)){var c=t[s];typeof c!=`object`&&c!=o[s]&&(o[s]=c)}t.childNodes&&(o.childNodes=new U),o.ownerDocument=e;var l=n;switch(o.nodeType){case k:var d=t.attributes,f=o.attributes=new ne,p=d.length;f._ownerElement=o;for(var m=0;m<p;m++)o.setAttributeNode(Ke(e,d.item(m),!0));break;case A:l=!0}return a===null?r=o:a.appendChild(o),l?o:null}}),r}function qe(e,t,n){e[t]=n}function Je(e){for(var t=[],n=e.firstChild;n;)n.nodeType===k&&t.push(n),n=n.nextSibling;return t}try{Object.defineProperty&&(Object.defineProperty(W.prototype,"length",{get:function(){return te(this),this.$$length}}),Object.defineProperty(G.prototype,"textContent",{get:function(){if(this.nodeType===k||this.nodeType===R){var e=[];return K(this,null,{enter:function(t){if(t.nodeType===k||t.nodeType===R)return!0;if(t.nodeType===F||t.nodeType===I)return null;e.push(t.nodeValue)}}),e.join(``)}return this.nodeValue},set:function(e){switch(this.nodeType){case k:case R: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}}}),Object.defineProperty(je.prototype,"data",{get:function(){return this._data==null?``:this._data},set:function(e){this._data=e,this.length=typeof e==`string`?e.length:0}}),Object.defineProperty(je.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"children",{get:function(){return new W(this,Je)}}),Object.defineProperty(pe.prototype,"children",{get:function(){return new W(this,Je)}}),Object.defineProperty(ze.prototype,"children",{get:function(){return new W(this,Je)}}),qe=function(e,t,n){e[`$$`+t]=n})}catch{}e._updateLiveList=te,e.Attr=Ae,e.CDATASection=Pe,e.CharacterData=je,e.Comment=Ne,e.Document=pe,e.DocumentFragment=ze,e.DocumentType=Fe,e.DOMImplementation=ue,e.Element=ke,e.Entity=Le,e.EntityReference=Re,e.LiveNodeList=W,e.NamedNodeMap=ne,e.Node=G,e.NodeList=U,e.Notation=Ie,e.Text=Me,e.ProcessingInstruction=Be,e.walkDOM=K,e.XMLSerializer=Ve})),w=t((e=>{var t=b().freeze;e.XML_ENTITIES=t({amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}),e.HTML_ENTITIES=t({Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,AMP:`&`,amp:`&`,And:`⩓`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,ap:`≈`,apacir:`⩯`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,Barwed:`⌆`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,Because:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxDL:`╗`,boxDl:`╖`,boxdL:`╕`,boxdl:`┐`,boxDR:`╔`,boxDr:`╓`,boxdR:`╒`,boxdr:`┌`,boxH:`═`,boxh:`─`,boxHD:`╦`,boxHd:`╤`,boxhD:`╥`,boxhd:`┬`,boxHU:`╩`,boxHu:`╧`,boxhU:`╨`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxUL:`╝`,boxUl:`╜`,boxuL:`╛`,boxul:`┘`,boxUR:`╚`,boxUr:`╙`,boxuR:`╘`,boxur:`└`,boxV:`║`,boxv:`│`,boxVH:`╬`,boxVh:`╫`,boxvH:`╪`,boxvh:`┼`,boxVL:`╣`,boxVl:`╢`,boxvL:`╡`,boxvl:`┤`,boxVR:`╠`,boxVr:`╟`,boxvR:`╞`,boxvr:`├`,bprime:`‵`,Breve:`˘`,breve:`˘`,brvbar:`¦`,Bscr:`ℬ`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,Cap:`⋒`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,CenterDot:`·`,centerdot:`·`,Cfr:`ℭ`,cfr:`𝔠`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,cir:`○`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,Colon:`∷`,colon:`:`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,Conint:`∯`,conint:`∮`,ContourIntegral:`∮`,Copf:`ℂ`,copf:`𝕔`,coprod:`∐`,Coproduct:`∐`,COPY:`©`,copy:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,Cross:`⨯`,cross:`✗`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,Cup:`⋓`,cup:`∪`,cupbrcap:`⩈`,CupCap:`≍`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,Dagger:`‡`,dagger:`†`,daleth:`ℸ`,Darr:`↡`,dArr:`⇓`,darr:`↓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,DD:`ⅅ`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,Diamond:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,Downarrow:`⇓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,ecir:`≖`,Ecirc:`Ê`,ecirc:`ê`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,eDot:`≑`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp:` `,emsp13:` `,emsp14:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,Escr:`ℰ`,escr:`ℯ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,ExponentialE:`ⅇ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,ForAll:`∀`,forall:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,Fscr:`ℱ`,fscr:`𝒻`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,gE:`≧`,ge:`≥`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,Gg:`⋙`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gl:`≷`,gla:`⪥`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gnE:`≩`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,Gt:`≫`,GT:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,hArr:`⇔`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,Hfr:`ℌ`,hfr:`𝔥`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,Hopf:`ℍ`,hopf:`𝕙`,horbar:`―`,HorizontalLine:`─`,Hscr:`ℋ`,hscr:`𝒽`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,Ifr:`ℑ`,ifr:`𝔦`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Im:`ℑ`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,Int:`∬`,int:`∫`,intcal:`⊺`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,Iscr:`ℐ`,iscr:`𝒾`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,Lang:`⟪`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,Larr:`↞`,lArr:`⇐`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,lAtail:`⤛`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lBarr:`⤎`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,lE:`≦`,le:`≤`,LeftAngleBracket:`⟨`,LeftArrow:`←`,Leftarrow:`⇐`,leftarrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,Ll:`⋘`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lnE:`≨`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftarrow:`⟵`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longleftrightarrow:`⟷`,longmapsto:`⟼`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,Lscr:`ℒ`,lscr:`𝓁`,Lsh:`↰`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,Lt:`≪`,LT:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,Mscr:`ℳ`,mscr:`𝓂`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,ne:`≠`,nearhk:`⤤`,neArr:`⇗`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
2
- `,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlArr:`⇍`,nlarr:`↚`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nLeftarrow:`⇍`,nleftarrow:`↚`,nLeftrightarrow:`⇎`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,nopf:`𝕟`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nRightarrow:`⇏`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nVDash:`⊯`,nVdash:`⊮`,nvDash:`⊭`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwArr:`⇖`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,Ocirc:`Ô`,ocirc:`ô`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,Or:`⩔`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,Otimes:`⨷`,otimes:`⊗`,otimesas:`⨶`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,Popf:`ℙ`,popf:`𝕡`,pound:`£`,Pr:`⪻`,pr:`≺`,prap:`⪷`,prcue:`≼`,prE:`⪳`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,Prime:`″`,prime:`′`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportion:`∷`,Proportional:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,Qopf:`ℚ`,qopf:`𝕢`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,QUOT:`"`,quot:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,Rang:`⟫`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,Rarr:`↠`,rArr:`⇒`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,rAtail:`⤜`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,RBarr:`⤐`,rBarr:`⤏`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,Re:`ℜ`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,REG:`®`,reg:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,Rfr:`ℜ`,rfr:`𝔯`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrow:`→`,Rightarrow:`⇒`,rightarrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,Ropf:`ℝ`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,Rscr:`ℛ`,rscr:`𝓇`,Rsh:`↱`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,Sc:`⪼`,sc:`≻`,scap:`⪸`,Scaron:`Š`,scaron:`š`,sccue:`≽`,scE:`⪴`,sce:`⪰`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,searhk:`⤥`,seArr:`⇘`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:`­`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,Square:`□`,square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,Sub:`⋐`,sub:`⊂`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,Subset:`⋐`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,Sum:`∑`,sum:`∑`,sung:`♪`,Sup:`⋑`,sup:`⊃`,sup1:`¹`,sup2:`²`,sup3:`³`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,Supset:`⋑`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swArr:`⇙`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,Therefore:`∴`,therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:`  `,thinsp:` `,ThinSpace:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,Tilde:`∼`,tilde:`˜`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,TRADE:`™`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,Uarr:`↟`,uArr:`⇑`,uarr:`↑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrow:`↑`,Uparrow:`⇑`,uparrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,Updownarrow:`⇕`,updownarrow:`↕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,upsi:`υ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTee:`⊥`,UpTeeArrow:`↥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,vArr:`⇕`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,Vbar:`⫫`,vBar:`⫨`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,VDash:`⊫`,Vdash:`⊩`,vDash:`⊨`,vdash:`⊢`,Vdashl:`⫦`,Vee:`⋁`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,Verbar:`‖`,verbar:`|`,Vert:`‖`,vert:`|`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,Wedge:`⋀`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,Xi:`Ξ`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,Yuml:`Ÿ`,yuml:`ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:`​`,Zeta:`Ζ`,zeta:`ζ`,Zfr:`ℨ`,zfr:`𝔷`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,Zopf:`ℤ`,zopf:`𝕫`,Zscr:`𝒵`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`}),e.entityMap=e.HTML_ENTITIES})),T=t((e=>{var t=b(),n=S(),r=x(),i=t.isHTMLEscapableRawTextElement,a=t.isHTMLMimeType,o=t.isHTMLRawTextElement,s=t.hasOwn,c=t.NAMESPACE,l=r.ParseError,u=r.DOMException,d=0,f=1,p=2,m=3,h=4,g=5,_=6,v=7;function y(){}y.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),k(t,t=Object.create(null)),w(e,t,n,r,this.errorHandler),r.endDocument()}};var C=/&#?\w+;?/g;function w(e,r,i,o,c){var d=a(o.mimeType);e.indexOf(n.UNICODE_REPLACEMENT_CHARACTER)>=0&&c.warning(`Unicode replacement character detected, source encoding issues?`);function f(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function p(e){var t=e[e.length-1]===`;`?e:e+`;`;if(!d&&t!==e)return c.error(`EntityRef: expecting ;`),e;var r=n.Reference.exec(t);if(!r||r[0].length!==t.length)return c.error(`entity not matching Reference production: `+e),e;var a=t.slice(1,-1);return s(i,a)?i[a]:a.charAt(0)===`#`?f(parseInt(a.substring(1).replace(`x`,`0x`))):(c.error(`entity not found:`+e),e)}function m(t){if(t>S){var n=e.substring(S,t).replace(C,p);v&&y(S),o.characters(n,0,t-S),S=t}}var h=0,g=0,_=/\r\n?|\n|$/g,v=o.locator;function y(t,n){for(;t>=g&&(n=_.exec(e));)h=g,g=n.index+n[0].length,v.lineNumber++;v.columnNumber=t-h+1}for(var b=[{currentNSMap:r}],x=[],S=0;;){try{var w=e.indexOf(`<`,S);if(w<0){if(!d&&x.length>0)return c.fatalError(`unclosed xml tag(s): `+x.join(`, `));if(!e.substring(S).match(/^\s*$/)){var k=o.doc,A=k.createTextNode(e.substring(S));if(k.documentElement)return c.error(`Extra content at the end of the document`);k.appendChild(A),o.currentElement=A}return}if(w>S){var j=e.substring(S,w);!d&&x.length===0&&(j=j.replace(new RegExp(n.S_OPT.source,`g`),``),j&&c.error(`Unexpected content outside root element: '`+j+`'`)),m(w)}switch(e.charAt(w+1)){case`/`:var F=e.indexOf(`>`,w+2),I=e.substring(w+2,F>0?F:void 0);if(!I)return c.fatalError(`end tag name missing`);var L=n.reg(`^`,n.QName_group,n.S_OPT,`$`),ee=F>0&&L.exec(I);if(!ee){var R=F>0&&n.reg(`^`,n.QName_group).exec(I);if(d&&R)c.warning(`end tag name contains invalid trailing characters: "`+I+`"`),ee=R;else if(R&&new RegExp(L.source,L.flags+`m`).test(I))c.error(`end tag name is followed by a line break and trailing content: "`+I+`"`),ee=R;else return c.fatalError(`end tag name contains invalid characters: "`+I+`"`)}if(!o.currentElement&&!o.doc.documentElement)return;var z=x[x.length-1]||o.currentElement.tagName||o.doc.documentElement.tagName||``;if(z!==ee[1]){var B=ee[1].toLowerCase();if(!d||z.toLowerCase()!==B)return c.fatalError(`Opening and ending tag mismatch: "`+z+`" != "`+I+`"`)}var V=b.pop();x.pop();var H=V.localNSMap;if(o.endElement(V.uri,V.localName,z),H)for(var U in H)s(H,U)&&o.endPrefixMapping(U);F++;break;case`?`:v&&y(w),F=N(e,w,o,c);break;case`!`:v&&y(w),F=M(e,w,o,c,d);break;default:v&&y(w);var W=new P,te=b[b.length-1].currentNSMap,F=E(e,w,W,te,p,c,d),ne=W.length;if(W.closed||(d&&t.isHTMLVoidElement(W.tagName)?W.closed=!0:x.push(W.tagName)),v&&ne){for(var re=T(v,{}),ie=0;ie<ne;ie++){var ae=W[ie];y(ae.offset),ae.locator=T(v,{})}o.locator=re,D(W,o,te)&&b.push(W),o.locator=v}else D(W,o,te)&&b.push(W);d&&!W.closed?F=O(e,F,W.tagName,p,o):F++}}catch(e){if(e instanceof l)throw e;if(e instanceof u)return c.fatalError(`Error constructing the DOM: `+e.name+`: `+e.message,e);c.error(`element parse error: `+e),F=-1}F>S?S=F:m(Math.max(w,S)+1)}}function T(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function E(e,t,n,r,i,a,o){function c(e,t,r){if(s(n.attributeNames,e))return a.fatalError(`Attribute `+e+` redefined`);if(!o&&t.indexOf(`<`)>=0)return a.fatalError(`Unescaped '<' not allowed in attributes values`);n.addValue(e,t.replace(/[\t\n\r]/g,` `).replace(C,i),r)}for(var l,u,y=++t,b=d;;){var x=e.charAt(y);if(b===d&&x===`<`)throw Error(`unexpected < in tag name: `+e.slice(t,y));switch(x){case`=`:if(b===f)l=e.slice(t,y),b=m;else if(b===p)b=m;else throw Error(`attribute equal must after attrName`);break;case`'`:case`"`:if(b===m||b===f){if(b===f&&(a.warning(`attribute value must after "="`),l=e.slice(t,y)),t=y+1,y=e.indexOf(x,t),y>0)u=e.slice(t,y),c(l,u,t-1),b=g;else throw Error(`attribute value no end '`+x+`' match`)}else if(b==h)u=e.slice(t,y),c(l,u,t),a.warning(`attribute "`+l+`" missed start quot(`+x+`)!!`),t=y+1,b=g;else throw Error(`attribute value must after "="`);break;case`/`:switch(b){case d:n.setTagName(e.slice(t,y));case g:case _:case v:b=v,n.closed=!0;case h:case f:break;case p:n.closed=!0;break;default:throw Error(`attribute invalid close char('/')`)}break;case``:return a.error(`unexpected end of input`),b==d&&n.setTagName(e.slice(t,y)),y;case`>`:switch(b){case d:n.setTagName(e.slice(t,y));case g:case _:case v:break;case h:case f:u=e.slice(t,y),u.slice(-1)===`/`&&(n.closed=!0,u=u.slice(0,-1));case p:b===p&&(u=l),b==h?(a.warning(`attribute "`+u+`" missed quot(")!`),c(l,u,t)):(o||a.warning(`attribute "`+u+`" missed value!! "`+u+`" instead!!`),c(u,u,t));break;case m:if(!o)return a.fatalError(`AttValue: ' or " expected`)}return y;case`€`:x=` `;default:if(x<=` `)switch(b){case d:n.setTagName(e.slice(t,y)),b=_;break;case f:l=e.slice(t,y),b=p;break;case h:var u=e.slice(t,y);a.warning(`attribute "`+u+`" missed quot(")!!`),c(l,u,t);case g:b=_}else switch(b){case p:o||a.warning(`attribute "`+l+`" missed value!! "`+l+`" instead2!!`),c(l,l,t),t=y,b=f;break;case g:a.warning(`attribute space is required"`+l+`"!!`);case _:b=f,t=y;break;case m:b=h,t=y;break;case v:throw Error(`elements closed character '/' and '>' must be connected to`)}}y++}}function D(e,t,n){for(var r=e.tagName,i=null,a=e.length;a--;){var o=e[a],l=o.qName,u=o.value,d=l.indexOf(`:`);if(d>0)var f=o.prefix=l.slice(0,d),p=l.slice(d+1),m=f===`xmlns`&&p;else p=l,f=null,m=l===`xmlns`&&``;o.localName=p,m!==!1&&(i??(i=Object.create(null),n=Object.create(n)),n[m]=i[m]=u,o.uri=c.XMLNS,t.startPrefixMapping(m,u))}for(var a=e.length;a--;)o=e[a],o.prefix&&(o.prefix===`xml`&&(o.uri=c.XML),o.prefix!==`xmlns`&&(o.uri=n[o.prefix]));var d=r.indexOf(`:`);d>0?(f=e.prefix=r.slice(0,d),p=e.localName=r.slice(d+1)):(f=null,p=e.localName=r);var h=e.uri=n[f||``];if(t.startElement(h,p,r,e),e.closed){if(t.endElement(h,p,r),i)for(f in i)s(i,f)&&t.endPrefixMapping(f)}else return e.currentNSMap=n,e.localNSMap=i,!0}function O(e,t,n,r,a){var s=i(n);if(s||o(n)){var c=RegExp(`</`+n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)+`>`,`ig`);c.lastIndex=t;var l=c.exec(e),u=l?l.index:-1;if(u<0)return t+1;var d=e.substring(t+1,u);return s&&(d=d.replace(C,r)),a.characters(d,0,d.length),u}return t+1}function k(e,t){for(var n in e)s(e,n)&&(t[n]=e[n])}function A(e,t){var r=t;function i(t){return t||=0,e.charAt(r+t)}function a(e){e||=1,r+=e}function o(){for(var t=0;r<e.length;){var n=i();if(n!==` `&&n!==`
3
- `&&n!==` `&&n!==`\r`)return t;t++,a()}return-1}function s(){return e.substring(r)}function c(t){return e.substring(r,r+t.length)===t}function l(t){return e.substring(r,r+t.length).toUpperCase()===t.toUpperCase()}function u(e){var t=n.reg(`^`,e).exec(s());return t?(a(t[0].length),t[0]):null}return{char:i,getIndex:function(){return r},getMatch:u,getSource:function(){return e},skip:a,skipBlanks:o,substringFromIndex:s,substringStartsWith:c,substringStartsWithCaseInsensitive:l}}function j(e,t){function r(e,t){var r=n.PI.exec(e.substringFromIndex());return r?r[1].toLowerCase()===`xml`?t.fatalError(`xml declaration is only allowed at the start of the document, but found at position `+e.getIndex()):(e.skip(r[0].length),r[0]):t.fatalError(`processing instruction is not well-formed at position `+e.getIndex())}var i=e.getSource();if(e.char()===`[`){e.skip(1);for(var a=e.getIndex();e.getIndex()<i.length;){if(e.skipBlanks(),e.char()===`]`){var o=i.substring(a,e.getIndex());return e.skip(1),o}var s=null;if(e.char()===`<`&&e.char(1)===`!`)switch(e.char(2)){case`E`:e.char(3)===`L`?s=e.getMatch(n.elementdecl):e.char(3)===`N`&&(s=e.getMatch(n.EntityDecl));break;case`A`:s=e.getMatch(n.AttlistDecl);break;case`N`:s=e.getMatch(n.NotationDecl);break;case`-`:s=e.getMatch(n.Comment)}else if(e.char()===`<`&&e.char(1)===`?`)s=r(e,t);else if(e.char()===`%`)s=e.getMatch(n.PEReference);else return t.fatalError(`Error detected in Markup declaration`);if(!s)return t.fatalError(`Error in internal subset at position `+e.getIndex())}return t.fatalError(`doctype internal subset is not well-formed, missing ]`)}}function M(e,t,r,i,a){var o=A(e,t);switch(a?o.char(2).toUpperCase():o.char(2)){case`-`:var s=o.getMatch(n.Comment);return s?(r.comment(s,n.COMMENT_START.length,s.length-n.COMMENT_START.length-n.COMMENT_END.length),o.getIndex()):i.fatalError(`comment is not well-formed at position `+o.getIndex());case`[`:var c=o.getMatch(n.CDSect);return c?!a&&!r.currentElement?i.fatalError(`CDATA outside of element`):(r.startCDATA(),r.characters(c,n.CDATA_START.length,c.length-n.CDATA_START.length-n.CDATA_END.length),r.endCDATA(),o.getIndex()):i.fatalError(`Invalid CDATA starting at position `+t);case`D`:if(r.doc&&r.doc.documentElement)return i.fatalError(`Doctype not allowed inside or after documentElement at position `+o.getIndex());if(a?!o.substringStartsWithCaseInsensitive(n.DOCTYPE_DECL_START):!o.substringStartsWith(n.DOCTYPE_DECL_START))return i.fatalError(`Expected `+n.DOCTYPE_DECL_START+` at position `+o.getIndex());if(o.skip(n.DOCTYPE_DECL_START.length),o.skipBlanks()<1)return i.fatalError(`Expected whitespace after `+n.DOCTYPE_DECL_START+` at position `+o.getIndex());var l={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(l.name=o.getMatch(n.Name),!l.name)return i.fatalError(`doctype name missing or contains unexpected characters at position `+o.getIndex());if(a&&l.name.toLowerCase()!==`html`&&i.warning(`Unexpected DOCTYPE in HTML document at position `+o.getIndex()),o.skipBlanks(),o.substringStartsWith(n.PUBLIC)||o.substringStartsWith(n.SYSTEM)){var u=n.ExternalID_match.exec(o.substringFromIndex());if(!u)return i.fatalError(`doctype external id is not well-formed at position `+o.getIndex());u.groups.SystemLiteralOnly===void 0?(l.systemId=u.groups.SystemLiteral,l.publicId=u.groups.PubidLiteral):l.systemId=u.groups.SystemLiteralOnly,o.skip(u[0].length)}else if(a&&o.substringStartsWithCaseInsensitive(n.SYSTEM)){if(o.skip(n.SYSTEM.length),o.skipBlanks()<1)return i.fatalError(`Expected whitespace after `+n.SYSTEM+` at position `+o.getIndex());if(l.systemId=o.getMatch(n.ABOUT_LEGACY_COMPAT_SystemLiteral),!l.systemId)return i.fatalError(`Expected `+n.ABOUT_LEGACY_COMPAT+` in single or double quotes after `+n.SYSTEM+` at position `+o.getIndex())}return a&&l.systemId&&!n.ABOUT_LEGACY_COMPAT_SystemLiteral.test(l.systemId)&&i.warning(`Unexpected doctype.systemId in HTML document at position `+o.getIndex()),a||(o.skipBlanks(),l.internalSubset=j(o,i)),o.skipBlanks(),o.char()===`>`?(o.skip(1),r.startDTD(l.name,l.publicId,l.systemId,l.internalSubset),r.endDTD(),o.getIndex()):i.fatalError(`doctype not terminated with > at position `+o.getIndex());default:return i.fatalError(`Not well-formed XML starting with "<!" at position `+t)}}function N(e,t,r,i){var a=e.substring(t).match(n.PI);if(!a)return i.fatalError(`Invalid processing instruction starting at position `+t);if(a[1].toLowerCase()===`xml`){if(t>0)return i.fatalError(`processing instruction at position `+t+` is an xml declaration which is only at the start of the document`);if(!n.XMLDecl.test(e.substring(t)))return i.fatalError(`xml declaration is not well-formed`)}return r.processingInstruction(a[1],a[2]),t+a[0].length}function P(){this.attributeNames=Object.create(null)}P.prototype={setTagName:function(e){if(!n.QName_exact.test(e))throw Error(`invalid tagName:`+e);this.tagName=e},addValue:function(e,t,r){if(!n.QName_exact.test(e))throw Error(`invalid attribute:`+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},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}},e.XMLReader=y,e.parseUtils=A,e.parseDoctypeCommentOrCData=M})),E=t((e=>{var t=b(),n=C(),r=x(),i=w(),a=T(),o=n.DOMImplementation,s=t.hasDefaultHTMLNamespace,c=t.isHTMLMimeType,l=t.isValidMimeType,u=t.MIME_TYPE,d=t.NAMESPACE,f=r.ParseError,p=a.XMLReader;function m(e){return e.replace(/\r[\n\u0085]/g,`
4
- `).replace(/[\r\u0085\u2028\u2029]/g,`
5
- `)}function h(e){if(e||={},e.locator===void 0&&(e.locator=!0),this.assign=e.assign||t.assign,this.domHandler=e.domHandler||g,this.onError=e.onError||e.errorHandler,e.errorHandler&&typeof e.errorHandler!=`function`)throw TypeError(`errorHandler object is no longer supported, switch to onError!`);e.errorHandler&&e.errorHandler(`warning`,"The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=e.normalizeLineEndings||m,this.locator=!!e.locator,this.xmlns=this.assign(Object.create(null),e.xmlns)}h.prototype.parseFromString=function(e,n){if(!l(n))throw TypeError(`DOMParser.parseFromString: the provided mimeType "`+n+`" is not valid.`);var r=this.assign(Object.create(null),this.xmlns),a=i.XML_ENTITIES,o=r[``]||null;s(n)?(a=i.HTML_ENTITIES,o=d.HTML):n===u.XML_SVG_IMAGE&&(o=d.SVG),r[``]=o,r.xml=r.xml||d.XML;var c=new this.domHandler({mimeType:n,defaultNamespace:o,onError:this.onError}),f=this.locator?{}:void 0;this.locator&&c.setDocumentLocator(f);var m=new p;return m.errorHandler=c,m.domBuilder=c,!t.isHTMLMimeType(n)&&typeof e!=`string`&&m.errorHandler.fatalError(`source is not a string`),m.parse(this.normalizeLineEndings(String(e)),r,a),c.doc.documentElement||m.errorHandler.fatalError(`missing root element`),c.doc};function g(e){var t=e||{};this.mimeType=t.mimeType||u.XML_APPLICATION,this.defaultNamespace=t.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=t.onError}function _(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}g.prototype={startDocument:function(){var e=new o;this.doc=c(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,``)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;S(this,a),this.currentElement=a,this.locator&&_(this.locator,a);for(var s=0;s<o;s++){var e=r.getURI(s),c=r.getValue(s),n=r.getQName(s),l=i.createAttributeNS(e,n);this.locator&&_(r.getLocator(s),l),l.value=l.nodeValue=c,a.setAttributeNode(l)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&_(this.locator,n),S(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=y.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&_(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,t,n){e=y.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&_(this.locator,r),S(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,t,n,r);this.locator&&_(this.locator,a),S(this,a),this.doc.doctype=a}},reportError:function(e,t){if(typeof this.onError==`function`)try{this.onError(e,t,this)}catch(n){throw new f(`Reporting `+e+` "`+t+`" caused `+n,this.locator)}else console.error(`[xmldom `+e+`] `+t,v(this.locator))},warning:function(e){this.reportError(`warning`,e)},error:function(e){this.reportError(`error`,e)},fatalError:function(e,t){throw this.reportError(`fatalError`,e),new f(e,this.locator,t)}};function v(e){if(e)return`
6
- @#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function y(e,t,n){return typeof e==`string`?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){g.prototype[e]=function(){return null}});function S(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}function E(e){if(e===`error`)throw`onErrorStopParsing`}function D(){throw`onWarningStopParsing`}e.__DOMHandler=g,e.DOMParser=h,e.normalizeLineEndings=m,e.onErrorStopParsing=E,e.onWarningStopParsing=D})),D=t((e=>{var t=b();e.assign=t.assign,e.hasDefaultHTMLNamespace=t.hasDefaultHTMLNamespace,e.isHTMLMimeType=t.isHTMLMimeType,e.isValidMimeType=t.isValidMimeType,e.MIME_TYPE=t.MIME_TYPE,e.NAMESPACE=t.NAMESPACE;var n=x();e.DOMException=n.DOMException,e.DOMExceptionName=n.DOMExceptionName,e.ExceptionCode=n.ExceptionCode,e.ParseError=n.ParseError;var r=C();e.Attr=r.Attr,e.CDATASection=r.CDATASection,e.CharacterData=r.CharacterData,e.Comment=r.Comment,e.Document=r.Document,e.DocumentFragment=r.DocumentFragment,e.DocumentType=r.DocumentType,e.DOMImplementation=r.DOMImplementation,e.Element=r.Element,e.Entity=r.Entity,e.EntityReference=r.EntityReference,e.LiveNodeList=r.LiveNodeList,e.NamedNodeMap=r.NamedNodeMap,e.Node=r.Node,e.NodeList=r.NodeList,e.Notation=r.Notation,e.ProcessingInstruction=r.ProcessingInstruction,e.Text=r.Text,e.XMLSerializer=r.XMLSerializer;var i=E();e.DOMParser=i.DOMParser,e.normalizeLineEndings=i.normalizeLineEndings,e.onErrorStopParsing=i.onErrorStopParsing,e.onWarningStopParsing=i.onWarningStopParsing})),O=e(r(),1),k=D(),A=class{constructor(e){if(j(e))throw Error(`DataView: Passed buffer type is unsupported.`);this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,t){return t?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,t){return t?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,t){return t?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function j(e){return typeof e!=`object`||e.length===void 0||e.readUInt8===void 0||e.readUInt16LE===void 0||e.readUInt16BE===void 0||e.readUInt32LE===void 0||e.readUInt32BE===void 0||e.readInt32LE===void 0||e.readInt32BE===void 0}function M(e,t,n){try{return new DataView(e,t,n)}catch{return new A(e,t,n)}}function N(e,t,n){let r=[];for(let i=0;i<n&&t+i<e.byteLength;i++)r.push(e.getUint8(t+i));return L(r)}function P(e,t){let n=[],r=0;for(;t+r<e.byteLength;){let i=e.getUint8(t+r);if(i===0)break;n.push(i),r++}return L(n)}function F(e,t,n){let r=[];for(let i=0;i+2<=n&&t+i+2<=e.byteLength;i+=2)r.push(e.getUint16(t+i));return r[r.length-1]===0&&r.pop(),L(r)}function I(e,t){let n=e.getUint8(t);return[n,N(e,t+1,n)]}function L(e){return e.map(e=>String.fromCharCode(e)).join(``)}function ee(e){let t=R(e);return t===void 0?e:t}function R(e){try{return decodeURIComponent(escape(e))}catch{return}}function z(e,t,n,r){e&&t&&e.push({type:t,start:n,end:r})}function B(){if(typeof Promise>`u`)throw Error(`Promise is required when async mode is enabled.`)}function V(){for(let e=1;e<arguments.length;e++)for(let t in arguments[e])H(arguments[0],t,arguments[e][t]);return arguments[0]}function H(e,t,n){if(t===`__proto__`){Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0,configurable:!0});return}e[t]=n}function U(e,t,n){let r=!1;Object.defineProperty(e,t,{get(){return r||(r=!0,Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n.apply(e),writable:!0})),e[t]},configurable:!0,enumerable:!0})}function W(e){if(typeof btoa<`u`)return btoa(typeof e==`string`?e:Array.prototype.reduce.call(new Uint8Array(e),(e,t)=>e+String.fromCharCode(t),``));if(!(typeof Buffer>`u`))return Buffer.from===void 0?new Buffer(e).toString(`base64`):Buffer.from(e).toString(`base64`)}function te(e){let t=e.substring(e.indexOf(`,`)+1);if(e.indexOf(`;base64`)!==-1)return typeof atob<`u`?Uint8Array.from(atob(t),e=>e.charCodeAt(0)).buffer:typeof Buffer>`u`?void 0:Buffer.from===void 0?new Buffer(t,`base64`):Buffer.from(t,`base64`);let n=decodeURIComponent(t);return typeof Buffer<`u`?Buffer.from===void 0?new Buffer(n):Buffer.from(n):Uint8Array.from(n,e=>e.charCodeAt(0)).buffer}function ne(e,t,n){return ie(n,Math.max(0,t-e.length))+e}function re(e,t){return parseInt(e.replace(`.`,``),t)/t**+(e.split(`.`)[1]||``).length}function ie(e,t){return Array(t+1).join(e)}var ae=`brotli`,oe=134217728;function se(e,t,n,r=`string`,i){let a=ce(i);if(i&&t!==void 0){let o=i[t===0?`deflate`:`brotli`];if(typeof o==`function`){let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return Promise.resolve(o(t)).then(e=>de(e)>a?fe(a):r===`dataview`?e instanceof ArrayBuffer?new DataView(e):e.byteOffset===0&&e.byteLength===e.buffer.byteLength?new DataView(e.buffer):new DataView(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):new TextDecoder(n).decode(e))}}if(t===0&&typeof DecompressionStream==`function`)return le(e,`deflate`,a).then(e=>G(e,r,n));if(t===`brotli`){if(typeof DecompressionStream==`function`)try{return le(e,`brotli`,a).then(e=>G(e,r,n))}catch{}return Promise.reject(`Brotli decompression is not supported in this environment. Pass in a brotli decompression function via the decompress option.`)}if(t!==void 0)return Promise.reject(`Unknown compression method ${t}.`);if(r===`string`)try{return new TextDecoder(n).decode(e)}catch{let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return Array.from(t,e=>String.fromCharCode(e)).join(``)}return e}function ce(e){return e&&typeof e.maxDecompressedSize==`number`?e.maxDecompressedSize:oe}function le(e,t,n){let r=new DecompressionStream(t),i=new Blob([e]).stream().pipeThrough(r).getReader(),a=[],o=0;return s();function s(){return i.read().then(({done:e,value:t})=>e?ue(a,o):(o+=t.byteLength,o>n?i.cancel().then(()=>fe(n)):(a.push(t),s())))}}function ue(e,t){let n=new Uint8Array(t),r=0;for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].byteLength;return n.buffer}function G(e,t,n){return t===`dataview`?new DataView(e):new TextDecoder(n).decode(e)}function de(e){return e&&typeof e.byteLength==`number`?e.byteLength:0}function fe(e){return typeof console<`u`&&typeof console.warn==`function`&&console.warn(`ExifReader: skipped a compressed metadata block that would exceed the maximum decompressed size of ${e} bytes.`),Promise.reject(`Decompressed metadata exceeded the maximum allowed size of ${e} bytes.`)}function K(e){return typeof e==`string`}function pe(e){return typeof File<`u`&&e instanceof File}function me(e){return/^data:[^;,]*(;base64)?,/.test(e)}function he(e,t){return/^\w+:\/\//.test(e)?typeof fetch<`u`?ve(e,_e(t)).then(e=>e.buffer):Se(e,_e(t)).then(e=>e.buffer):me(e)?Promise.resolve(te(e)):Ee(e,_e(t)).then(e=>e.buffer)}function ge(e,t){return Ae(e,_e(t)).then(e=>e.buffer)}function _e(e){return e&&Number.isInteger(e.length)&&e.length>=0?{start:0,end:e.length}:{start:0}}function ve(e,{start:t=0,end:n}={}){let r={method:`GET`};return(t>0||n!==void 0&&n!==1/0)&&(r.headers={range:ye(t,n)}),fetch(e,r).then(e=>{let t=e&&typeof e.status==`number`?e.status:void 0;if(t!==void 0&&!xe(t)){let n=e.statusText||``;return Promise.reject(Error(`Could not fetch file: ${t} ${n}`.trim()))}let n=be(e);return Promise.resolve(e.arrayBuffer()).then(e=>({buffer:e,totalSize:n,status:t}))})}function ye(e,t){return t===void 0||t===1/0?`bytes=${e}-`:`bytes=${e}-${t-1}`}function be(e){if(!(!e||!e.headers||typeof e.headers.get!=`function`))return we(e.headers.get(`Content-Range`),e.headers.get(`Content-Length`))}function xe(e){return e>=200&&e<=299||e===416}function Se(e,{start:t=0,end:n}={}){return new Promise((r,i)=>{let a={};(t>0||n!==void 0&&n!==1/0)&&(a.headers={range:ye(t,n)}),Te(e)(e,a,e=>{if(e.statusCode>=200&&e.statusCode<=299){let t=Ce(e),n=[];e.on(`data`,e=>n.push(Buffer.from(e))),e.on(`error`,e=>i(e)),e.on(`end`,()=>r({buffer:Buffer.concat(n),totalSize:t,status:e.statusCode}))}else e.statusCode===416?(e.resume(),r({buffer:Buffer.alloc(0),totalSize:Ce(e),status:e.statusCode})):(i(Error(`Could not fetch file: ${e.statusCode} ${e.statusMessage}`)),e.resume())}).on(`error`,e=>i(e))})}function Ce(e){if(!(!e||!e.headers))return we(e.headers[`content-range`],e.headers[`content-length`])}function we(e,t){if(e){let t=/\/(\d+|\*)$/.exec(e);if(t&&t[1]!==`*`)return parseInt(t[1],10)}if(t){let e=parseInt(t,10);if(Number.isFinite(e))return e}}function Te(e){return/^https:\/\//.test(e)?__non_webpack_require__(`https`).get:__non_webpack_require__(`http`).get}function Ee(e,{start:t=0,end:n,totalSize:r}={}){return new Promise((i,a)=>{let o=ke();o.open(e,(s,c)=>{if(s)return a(s);De(o,e,r,(r,s)=>{if(r)return o.close(c,()=>a(r));let l=n===void 0||n===1/0||n>s?s:n,u=Math.min(Math.max(0,t),l),d=l-u,f=Buffer.alloc(d);if(d===0)return o.close(c,t=>Oe(e,t,f,s,i));o.read(c,{buffer:f,length:d,position:u},t=>{if(t)return o.close(c,()=>a(t));o.close(c,t=>Oe(e,t,f,s,i))})})})})}function De(e,t,n,r){if(n!==void 0)return r(null,n);e.stat(t,(e,t)=>r(e,e?void 0:t.size))}function Oe(e,t,n,r,i){t&&console.warn(`Could not close file ${e}:`,t),i({buffer:n,totalSize:r})}function ke(){try{return __non_webpack_require__(`fs`)}catch{return}}function Ae(e,{start:t=0,end:n}={}){return new Promise((r,i)=>{let a=new FileReader,o=typeof e.size==`number`?e.size:void 0;if(a.onload=e=>r({buffer:e.target.result,totalSize:o}),a.onerror=()=>i(a.error),e&&typeof e.slice==`function`&&(t>0||n!==void 0&&n!==1/0)){let r=n===void 0||n===1/0?o:n;a.readAsArrayBuffer(e.slice(t,r))}else a.readAsArrayBuffer(e)})}function je(e,t){if(!e)return t;if(!t)return e;if(typeof Buffer<`u`&&Buffer.isBuffer(e)&&Buffer.isBuffer(t))return Buffer.concat([e,t]);let n=Me(e),r=Me(t),i=new Uint8Array(n.byteLength+r.byteLength);return i.set(n,0),i.set(r,n.byteLength),i.buffer}function Me(e){return e instanceof ArrayBuffer?new Uint8Array(e):typeof Buffer<`u`&&Buffer.isBuffer(e)||ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var Ne=131072,Pe=4,Fe=`length: "auto" could not locate metadata in this file (no metadata blocks found after reading the file — e.g. plain TIFF, bare JPEG XL codestream, or a file with no recognizable metadata).`,Ie=`length: "auto" is not supported for this file type (no leading metadata container — e.g. plain TIFF or bare JPEG XL codestream).`;function Le(e){if(e.expanded!==!0||e.includeOffsets!==!0)throw Error(`length: "auto" requires both expanded: true and includeOffsets: true.`)}function Re(e){return function(e,i){B();let a=V({},i,{async:!0});return K(e)?t(e,a):pe(e)?n(e,a):r(e,a)};function t(e,t){return/^\w+:\/\//.test(e)?i(typeof fetch<`u`?{readRange:(t,n)=>ve(e,{start:t,end:n}),options:t}:{readRange:(t,n)=>Se(e,{start:t,end:n}),options:t}):me(e)?r(te(e),t):i({readRange:(t,n,r)=>Ee(e,{start:t,end:n,totalSize:r?r.totalSize:void 0}),options:t})}function n(e,t){return i({readRange:(t,n)=>Ae(e,{start:t,end:n}),options:t})}function r(t,n){return Promise.resolve().then(()=>e(t,n)).then(e=>{if(!e||!e.metadataRange)throw Error(Ie);let n=e.metadataRange.end;return e.metadataRange.buffer=Ue(t,n),e.metadataRange.fetched=We(e.metadataRange.buffer),e.metadataRange.requests=0,e})}function i({readRange:e,options:t}){return a({readRange:e,options:t,buffer:null,fetched:0,requests:0,totalSize:void 0,need:Ne,iter:0})}function a(t){return t.iter>=Pe||(t.totalSize!==void 0&&(t.need=Math.min(t.need,t.totalSize)),t.need<=t.fetched)?c(t):t.readRange(t.fetched,t.need,{totalSize:t.totalSize}).then(n=>(t.requests++,n.status===416?s(t):(ze(t,n),Promise.resolve(e(t.buffer,t.options)).then(e=>o(t,e)))))}function o(e,t){let n=t&&t.metadataRange;if(n&&n.complete)return Be(t,e.buffer,e.fetched,e.requests);let r=e.totalSize!==void 0&&e.fetched>=e.totalSize;if(!n&&r)throw Error(Fe);let i=Ve({range:n,totalSize:e.totalSize,fetched:e.fetched});if(i<=e.fetched){if(n)return Be(t,e.buffer,e.fetched,e.requests);throw Error(Fe)}return e.need=i,e.iter++,a(e)}function s(t){return t.readRange(0,1/0,{totalSize:void 0}).then(n=>(t.requests++,t.buffer=n.buffer,t.fetched=We(t.buffer),n.totalSize!==void 0&&(t.totalSize=n.totalSize),Promise.resolve(e(t.buffer,t.options)))).then(e=>{if(!e||!e.metadataRange)throw Error(Fe);return Be(e,t.buffer,t.fetched,t.requests)})}function c(t){console.warn(`ExifReader: length:"auto" did not converge in ${Pe} iterations; falling back to full read.`);let n;return n=t.totalSize!==void 0&&t.fetched<t.totalSize?t.readRange(t.fetched,t.totalSize,{totalSize:t.totalSize}).then(e=>{t.requests++,ze(t,e)}):t.totalSize===void 0?t.readRange(t.fetched,1/0,{totalSize:t.totalSize}).then(e=>{t.requests++,ze(t,e)}):Promise.resolve(),n.then(()=>Promise.resolve(e(t.buffer,t.options))).then(e=>{if(!e||!e.metadataRange)throw Error(Fe);return Be(e,t.buffer,t.fetched,t.requests)})}}function ze(e,t){if(t.status===200&&e.fetched>0){e.buffer=t.buffer,e.fetched=We(e.buffer),t.totalSize!==void 0&&(e.totalSize=t.totalSize);return}t.totalSize!==void 0&&e.totalSize===void 0&&(e.totalSize=t.totalSize),e.buffer=je(e.buffer,t.buffer),e.fetched=We(e.buffer)}function Be(e,t,n,r){let i=e.metadataRange.end;return e.metadataRange.buffer=He(t,i),e.metadataRange.fetched=n,e.metadataRange.requests=r,e}function Ve({range:e,totalSize:t,fetched:n}){return e?Math.min(Math.max(e.end,n*2),t===void 0?1/0:t):t===void 0?n*2:t}function He(e,t){return!e||typeof t!=`number`||t<0?e:typeof Buffer<`u`&&Buffer.isBuffer(e)?Buffer.from(e.subarray(0,Math.min(t,e.length))):e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer?e.slice(0,Math.min(t,e.byteLength)):e}function Ue(e,t){if(typeof Buffer<`u`&&Buffer.isBuffer(e))return Buffer.from(e.subarray(0,t));if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0,t);if(ArrayBuffer.isView(e)){let n=Math.max(0,Math.min(t,e.byteLength));return e.buffer.slice(e.byteOffset,e.byteOffset+n)}return e}function We(e){return e?typeof e.byteLength==`number`?e.byteLength:typeof e.length==`number`?e.length:0:0}var q={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_JXL:!0,USE_WEBP:!0,USE_GIF:!0,USE_MAKER_NOTES:!0};function Ge(e){if(e.length>=8){let t=L(e.slice(0,8));if(t===`ASCII\0\0\0`)return L(e.slice(8));if(t===`JIS\0\0\0\0\0`)return`[JIS encoded text]`;if(t===`UNICODE\0`)return`[Unicode encoded text]`;if(t===`\0\0\0\0\0\0\0\0`){let t=L(e.slice(8));return/[\x20-\x7e]/.test(t)?t:`[Undefined encoding]`}}return`Undefined`}function Ke(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}var qe=18761,Je=19789,J={BIG_ENDIAN:Je,LITTLE_ENDIAN:qe,getByteOrder:Ye};function Ye(e,t){if(e.getUint16(t)===qe)return qe;if(e.getUint16(t)===Je)return Je;throw Error(`Illegal byte order value. Faulty image.`)}function Xe(e,t){return e.getUint32(t+4)}function Ze(e,t,n){return t+n<=e.byteLength}var Qe=1048576;function $e(e,t,n,r,i,a){let{offsets:o,sizes:s}=et(n,r+3),c=e.getUint8(o.offsetSize)>>4;s.item.extent.extentOffset=c;let l=e.getUint8(o.lengthSize)&15;s.item.extent.extentLength=l;let u=e.getUint8(o.baseOffsetSize)>>4;s.item.baseOffset=u;let d=tt(e,o.indexSize,n);s.item.extent.extentIndex=d===void 0?0:d;let f=nt(e,o.itemCount,n);return{type:`iloc`,items:rt(e,Math.min(t+i,a),n,o,s,c,l,d,f),length:i}}function et(e,t){let n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};e<2?(n.itemCount=2,n.item.itemId=2):e===2&&(n.itemCount=4,n.item.itemId=4),e===1||e===2?n.item.constructionMethod=2:n.item.constructionMethod=0;let r={offsetSize:t,lengthSize:t,baseOffsetSize:t+1,indexSize:t+1};return r.itemCount=t+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function tt(e,t,n){if(n===1||n===2)return e.getUint8(t)&15}function nt(e,t,n){if(n<2)return e.getUint16(t);if(n===2)return e.getUint32(t)}function rt(e,t,n,r,i,a,o,s,c){if(c===void 0)return[];let l=[],u=r.items,d=i.item.extent.extentIndex+i.item.extent.extentOffset+i.item.extent.extentLength,f=i.item.itemId+i.item.constructionMethod+i.item.dataReferenceIndex+i.item.baseOffset+i.item.extentCount,p=0;for(let r=0;r<c&&!(u+f>t);r++){let r={extents:[]};r.itemId=at(e,u,n),u+=i.item.itemId,r.constructionMethod=n===1||n===2?e.getUint16(u)&15:void 0,u+=i.item.constructionMethod,r.dataReferenceIndex=e.getUint16(u),u+=i.item.dataReferenceIndex,r.baseOffset=st(e,u,i.item.baseOffset),u+=i.item.baseOffset,r.extentCount=e.getUint16(u),u+=i.item.extentCount;let c=it(r.extentCount,d,u,t,Qe-p);for(let t=0;t<c;t++){let t={};t.extentIndex=ot(e,n,u,s),u+=i.item.extent.extentIndex,t.extentOffset=st(e,u,a),u+=i.item.extent.extentOffset,t.extentLength=st(e,u,o),u+=i.item.extent.extentLength,r.extents.push(t)}if(p+=c,l.push(r),(r.extentCount-c)*d>0)break}return l}function it(e,t,n,r,i){if(t===0)return 0;let a=Math.floor((r-n)/t);return Math.max(0,Math.min(e,a,i))}function at(e,t,n){if(n<2)return e.getUint16(t);if(n===2)return e.getUint32(t)}function ot(e,t,n,r){if((t===1||t===2)&&r>0)return st(e,n,r)}function st(e,t,n){return n===4?e.getUint32(t):n===8?(console.warn(`This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed.`),Xe(e,t)):0}var ct=1718909296,lt=1768977008,ut=1835365473,dt=1768714083,ft=1768186228,pt=1768517222,mt=1768842853,ht=1768973167,gt=1668246642,_t=1165519206,vt=1835625829,yt=1970432288;function bt(e,t,n=e.byteLength){if(Ze(e,t,8))try{let{length:r,contentOffset:i}=St(e,t);if(r<8)return;let a=e.getUint32(t+4);if(a===ct)return Bt(e,i,r);if(a===lt)return Vt(e,t,i,r,n);if(a===ht)return Ht(e,t,i,r,n);if(a===gt)return Ut(e,i,r);if(a===ft)return Kt(i,r);if(!Ze(e,i,1))return;let o=e.getUint8(i);return a===ut?Gt(e,t,i+1,r,n):a===dt?$e(e,t,o,i+1,r,n):a===pt?Jt(e,t,o,i+1,r,n):a===mt?Yt(e,t,o,i+1,r):{type:void 0,length:r}}catch{return}}function xt(e,t){if(!e)return!1;try{let n=bt(e,0);return n!==void 0&&t.indexOf(n.majorBrand)!==-1}catch{return!1}}function St(e,t){let n=e.getUint32(t);if(Ct(n))return{length:e.byteLength-t,contentOffset:t+4+4};if(wt(n)){if(!Ze(e,t,16))return{length:0,contentOffset:t+4+4};if(Tt(e,t))return{length:e.getUint32(t+12),contentOffset:t+4+4+8}}return{length:n,contentOffset:t+4+4}}function Ct(e){return e===0}function wt(e){return e===1}function Tt(e,t){return e.getUint32(t+8)===0}function Et(e,t){if(q.USE_EXIF||q.USE_XMP||q.USE_ICC){let n={},r=Dt(e);if(!r)return{hasAppMarkers:!1};if(q.USE_EXIF){let i=Ot(e,r,t);i!==void 0&&(n.tiffHeaderOffset=i.tiffHeaderOffset,i.dataView!==void 0&&(n.exifDataView=i.dataView))}if(q.USE_XMP){let i=Lt(e,r,t);i!==void 0&&(n.xmpChunks=i.chunks,i.dataView!==void 0&&(n.xmpDataView=i.dataView))}return q.USE_ICC&&(n.iccChunks=zt(r,t)),n.hasAppMarkers=n.tiffHeaderOffset!==void 0||n.xmpChunks!==void 0||n.iccChunks!==void 0,n}return{}}function Dt(e){let t=0;for(;t+4+4<=e.byteLength;){let n=bt(e,t);if(n===void 0)break;if(n.type===`meta`)return n;t+=n.length}}function Ot(e,t,n){try{let r=Pt(t).itemId,i=Ft(t,r);Mt(i);let a=jt(t);if(kt(n,i,`exif`,a),i.extents.length>1){let t=Nt(e,i,a);return t===void 0?void 0:{tiffHeaderOffset:It(t,0),dataView:t}}let o=At(i,i.extents[0],a);return o===void 0?void 0:{tiffHeaderOffset:It(e,o)}}catch{return}}function kt(e,t,n,r){if(e)for(let i=0;i<t.extents.length;i++){let a=t.extents[i],o=At(t,a,r);o!==void 0&&z(e,n,o,o+a.extentLength)}}function At(e,t,n){let r=e.constructionMethod;if(r===void 0||r===0)return e.baseOffset+t.extentOffset;if(r===1&&n!==void 0)return n+e.baseOffset+t.extentOffset}function jt(e){let t=e.subBoxes.find(e=>e.type===`idat`);return t?t.contentOffset:void 0}function Mt(e){e.constructionMethod===2&&console.warn(`This file uses iloc constructionMethod 2 (item_offset) which is currently not supported by ExifReader. Contact the maintainer to get it fixed.`)}function Nt(e,t,n){let r=[],i=0;for(let a=0;a<t.extents.length;a++){let o=t.extents[a],s=At(t,o,n);if(s===void 0||s+o.extentLength>e.byteLength||(r.push({start:s,length:o.extentLength}),i+=o.extentLength,i>e.byteLength))return}let a=new Uint8Array(i),o=0;for(let t=0;t<r.length;t++){let{start:n,length:i}=r[t];for(let t=0;t<i;t++)a[o+t]=e.getUint8(n+t);o+=i}return new DataView(a.buffer)}function Pt(e){return e.subBoxes.find(e=>e.type===`iinf`).itemInfos.find(e=>e.itemType===_t)}function Ft(e,t){return e.subBoxes.find(e=>e.type===`iloc`).items.find(e=>e.itemId===t)}function It(e,t){return t+4+e.getUint32(t)}function Lt(e,t,n){try{let r=Rt(t).itemId,i=Ft(t,r);Mt(i);let a=jt(t);if(kt(n,i,`xmp`,a),i.extents.length>1){let t=Nt(e,i,a);return t===void 0?void 0:{chunks:[{dataOffset:0,length:t.byteLength}],dataView:t}}let o=i.extents[0],s=At(i,o,a);return s===void 0?void 0:{chunks:[{dataOffset:s,length:o.extentLength}]}}catch{return}}function Rt(e){return e.subBoxes.find(e=>e.type===`iinf`).itemInfos.find(e=>e.itemType===1835625829&&e.contentType===`application/rdf+xml`)}function zt(e,t){try{let n=e.subBoxes.find(e=>e.type===`iprp`).subBoxes.find(e=>e.type===`ipco`).properties.find(e=>e.type===`colr`).icc;if(n)return z(t,`icc`,n.offset,n.offset+n.length),[n]}catch{}}function Bt(e,t,n){return{type:`ftyp`,majorBrand:N(e,t,4),length:n}}function Vt(e,t,n,r,i){return{type:`iprp`,subBoxes:qt(e,n,r-(n-t),i),length:r}}function Ht(e,t,n,r,i){return{type:`ipco`,properties:qt(e,n,r-(n-t),i),length:r}}function Ut(e,t,n){return{type:`colr`,icc:Wt(e,t),length:n}}function Wt(e,t){let n=N(e,t,4);if(n===`prof`||n===`rICC`)return{offset:t+4,length:e.getUint32(t+4),chunkNumber:1,chunksTotal:1}}function Gt(e,t,n,r,i){return{type:`meta`,subBoxes:qt(e,n+3,r-(n+3-t),i),length:r}}function Kt(e,t){return{type:`idat`,contentOffset:e,length:t}}function qt(e,t,n,r){let i=[_t,vt],a=Math.min(t+n,r),o=[],s=t;for(;s+8<=a;){let t=bt(e,s,a);if(t===void 0)break;t.type!==void 0&&(t.itemType===void 0||i.indexOf(t.itemType)!==-1)&&o.push(t),s+=t.length}return o}function Jt(e,t,n,r,i,a){let o=n===0?2:4,s=r+3+o;return{type:`iinf`,itemInfos:qt(e,s,i-(s-t),a),length:i}}function Yt(e,t,n,r,i){r+=3;let a={type:`infe`,length:i};return(n===0||n===1)&&(a.itemId=e.getUint16(r),r+=2,a.itemProtectionIndex=e.getUint16(r),r+=2,a.itemName=P(e,r),r+=a.itemName.length+1),n>=2&&(n===2?(a.itemId=e.getUint16(r),r+=2):n===3&&(a.itemId=e.getUint32(r),r+=4),a.itemProtectionIndex=e.getUint16(r),r+=2,a.itemType=e.getUint32(r),r+=4,a.itemName=P(e,r),r+=a.itemName.length+1,a.itemType===1835625829?(a.contentType=P(e,r),r+=a.contentType.length+1,t+i>r&&(a.contentEncoding=P(e,r),r+=a.contentEncoding.length+1)):a.itemType===yt&&(a.itemUri=P(e,r),r+=a.itemUri.length+1)),a}var Xt={isTiffFile:Zt,findTiffOffsets:$t};function Zt(e){return!!e&&e.byteLength>=4&&Qt(e)}function Qt(e){let t=e.getUint16(0)===J.LITTLE_ENDIAN;return e.getUint16(2,t)===42}function $t(){return q.USE_EXIF?{hasAppMarkers:!0,tiffHeaderOffset:0}:{}}var en={isJpegFile:In,findJpegOffsets:Ln},tn=2,nn=65496,rn=2,Y=4,X=2,an=2,on=10,sn=18,cn=33,ln=79,un=18,dn=8,fn=`ICC_PROFILE\0`,pn=16,mn=17,hn=255,gn=`MPF\0`,_n=65472,vn=65474,yn=65476,bn=65499,xn=65501,Sn=65498,Cn=65504,wn=65505,Tn=65506,En=65517,Dn=65519,On=65534,kn=65535,An=`JFIF`,jn=`Exif`,Mn=`http://ns.adobe.com/xap/1.0/\0`,Nn=`http://ns.adobe.com/xmp/extension/\0`,Pn=`Photoshop 3.0`,Fn=`8BIM`;function In(e){return!!e&&e.byteLength>=tn&&e.getUint16(0)===nn}function Ln(e,t){let n=rn,r,i,a,o,s,c,l,u,d,f=0,p,m=!1;for(;n+Y+5<=e.byteLength;){let h;if(e.getUint16(n)===Sn&&(m=!0),q.USE_FILE&&Rn(e,n))r=e.getUint16(n+X),i=n+X,h=`file`;else if(q.USE_FILE&&zn(e,n))r=e.getUint16(n+X),a=n+X,h=`file`;else if(q.USE_JFIF&&Hn(e,n))r=e.getUint16(n+X),o=n+an,h=`jfif`;else if(q.USE_EXIF&&Un(e,n)){r=e.getUint16(n+X),f++;let t=n+on;if(f===1)p={appMarkerPosition:n,fieldLength:r,tiffHeaderOffset:t,score:void 0};else{p.score===void 0&&(p.score=$n(e,p.appMarkerPosition,p.fieldLength,p.tiffHeaderOffset));let i=$n(e,n,r,t);i>p.score&&(p={appMarkerPosition:n,fieldLength:r,tiffHeaderOffset:t,score:i})}s=p.tiffHeaderOffset,h=`exif`}else if(q.USE_XMP&&Wn(e,n))l||=[],r=e.getUint16(n+X),l.push(Jn(n,r)),h=`xmp`;else if(q.USE_XMP&&Kn(e,n))l||=[],r=e.getUint16(n+X),l.push(Yn(n,r)),h=`xmp`;else if(q.USE_IPTC&&Xn(e,n))r=e.getUint16(n+X),c=n+sn,h=`iptc`;else if(q.USE_ICC&&Bn(e,n)){if(r=e.getUint16(n+X),u||=[],u.length<hn){let t=n+un,i=r-16,a=e.getUint8(n+pn),o=e.getUint8(n+mn);u.push({offset:t,length:i,chunkNumber:a,chunksTotal:o})}h=`icc`}else if(q.USE_MPF&&Vn(e,n))r=e.getUint16(n+X),d=n+dn,h=`mpf`;else if(Zn(e,n))r=e.getUint16(n+X);else if(Qn(e,n)){n++;continue}else break;z(t,h,n,n+X+r),n+=X+r}return f>1&&tr(f),t&&(!m&&n+X<=e.byteLength&&e.getUint16(n)===Sn&&(m=!0),t.truncated=!m),{hasAppMarkers:n>rn,fileDataOffset:i||a,jfifDataOffset:o,tiffHeaderOffset:s,iptcDataOffset:c,xmpChunks:l,iccChunks:u,mpfDataOffset:d}}function Rn(e,t){return e.getUint16(t)===_n}function zn(e,t){return e.getUint16(t)===vn}function Bn(e,t){return e.getUint16(t)===Tn&&t+mn<e.byteLength&&N(e,t+Y,12)===fn}function Vn(e,t){return e.getUint16(t)===Tn&&N(e,t+Y,4)===gn}function Hn(e,t){return e.getUint16(t)===Cn&&N(e,t+Y,4)===An&&e.getUint8(t+Y+4)===0}function Un(e,t){return e.getUint16(t)===wn&&N(e,t+Y,4)===jn&&e.getUint8(t+Y+4)===0}function Wn(e,t){return e.getUint16(t)===wn&&Gn(e,t)}function Gn(e,t){return N(e,t+Y,29)===Mn}function Kn(e,t){return e.getUint16(t)===wn&&qn(e,t)}function qn(e,t){return N(e,t+Y,35)===Nn}function Jn(e,t){return{dataOffset:e+cn,length:t-31}}function Yn(e,t){return{dataOffset:e+ln,length:t-77}}function Xn(e,t){let n=t+Y+13+1;return n+4<=e.byteLength&&e.getUint16(t)===En&&N(e,t+Y,13)===Pn&&e.getUint8(t+Y+13)===0&&N(e,n,4)===Fn}function Zn(e,t){let n=e.getUint16(t);return n>=Cn&&n<=Dn||n===On||n===_n||n===vn||n===yn||n===bn||n===xn||n===Sn}function Qn(e,t){return e.getUint16(t)===kn}function $n(e,t,n,r){let i=er(e,r,t+X+n);if(!i)return 0;let a=Number.isInteger(i.ifdEntries)?i.ifdEntries:0;return(i.isValid?1e9:0)+a*1e6+n}function er(e,t,n){try{if(t+8>n)return;let r=e.getUint16(t+0),i=r===J.LITTLE_ENDIAN;if(!i&&r!==J.BIG_ENDIAN||e.getUint16(t+2,i)!==42)return;let a=t+e.getUint32(t+4,i);if(a+2>n)return;let o=e.getUint16(a,i);return{ifdEntries:o,isValid:a+(2+o*12+4)<=n&&o>0}}catch{return}}function tr(e){typeof console>`u`||typeof console.warn!=`function`||console.warn(`ExifReader: Found ${e} Exif segments (APP1). Will pick the best candidate segment.`)}var nr={isPngFile:ur,findPngOffsets:dr},rr=`‰PNG\r
7
- 
8
- `,ir=4,ar=`XML:com.adobe.xmp\0`,or=`pHYs`,sr=`tIME`,cr=`eXIf`,lr=`iCCP`;function ur(e){return!!e&&N(e,0,8)===rr}function dr(e,t,n){let r={hasAppMarkers:!1},i=8,a=!1;for(;i+ir+4<=e.byteLength;){let o,s=e.getUint32(i+0);if(n&&N(e,i+4,4)===`IEND`&&(a=!0),q.USE_PNG_FILE&&fr(e,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+8,o=`file`;else if(q.USE_XMP&&pr(e,i)){let t=vr(e,i);t!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:t,length:s-(t-(i+8))}],o=`xmp`)}else if(mr(e,i,t)){r.hasAppMarkers=!0;let t=N(e,i+4,4);r.pngTextChunks||=[],r.pngTextChunks.push({length:s,type:t,offset:i+8}),o=`png`}else if(hr(e,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+8,o=`exif`;else if(q.USE_ICC&&t&&gr(e,i)){let t=i+8,n=yr(e,t);n!==void 0&&(r.hasAppMarkers=!0,r.iccChunks||=[],r.iccChunks.push({offset:n.compressedProfileOffset,length:s-(n.compressedProfileOffset-t),chunkNumber:1,chunksTotal:1,profileName:n.profileName,compressionMethod:n.compressionMethod}),o=`icc`)}else _r(e,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||=[],r.pngChunkOffsets.push(i+0),o=`png`);let c=s+ir+4+4;z(n,o,i,i+c),i+=c}return n&&(n.truncated=!a),r}function fr(e,t){return N(e,t+4,4)===`IHDR`}function pr(e,t){return N(e,t+4,4)===`iTXt`&&N(e,t+8,18)===ar}function mr(e,t,n){let r=N(e,t+4,4);return r===`tEXt`||r===`iTXt`||r===`zTXt`&&n}function hr(e,t){return N(e,t+4,4)===cr}function gr(e,t){return N(e,t+4,4)===lr}function _r(e,t){let n=[or,sr],r=N(e,t+4,4);return n.includes(r)}function vr(e,t){t+=28;let n=0;for(;n<2&&t<e.byteLength;)e.getUint8(t)===0&&n++,t++;if(!(n<2))return t}function yr(e,t){let n=P(e,t);if(t+=n.length+1,t+1>e.byteLength)return;let r=e.getUint8(t);return t+=1,{profileName:n,compressionMethod:r,compressedProfileOffset:t}}var br={isHeicFile:Sr,findHeicOffsets:Cr},xr=[`heic`,`heix`,`hevc`,`hevx`,`heim`,`heis`,`hevm`,`hevs`,`mif1`];function Sr(e){return xt(e,xr)}function Cr(e,t){return Et(e,t)}var wr={isAvifFile:Er,findAvifOffsets:Dr},Tr=[`avif`];function Er(e){return xt(e,Tr)}function Dr(e,t){return Et(e,t)}var Or={isJxlFile:Rr,findJxlOffsets:Vr},kr=[0,0,0,12,74,88,76,32,13,10,135,10],Ar=[255,10],jr=1165519206,Mr=2020437024,Nr=1651666786,Pr=1786276963,Fr=1786276976,Ir=4,Lr=4;function Rr(e){try{return zr(e)||Br(e)}catch{return!1}}function zr(e){if(!e||e.byteLength<kr.length)return!1;for(let t=0;t<kr.length;t++)if(e.getUint8(t)!==kr[t])return!1;return!0}function Br(e){return!e||e.byteLength<Ar.length?!1:e.getUint8(0)===Ar[0]&&e.getUint8(1)===Ar[1]}function Vr(e,t){let n=0,r,i,a,o,s;if(Br(e))return{hasAppMarkers:!0,tiffHeaderOffset:void 0,xmpChunks:void 0,brobExifChunk:void 0,brobXmpChunk:void 0,jxlCodestreamOffset:0};for(;n+8<=e.byteLength;){let{length:c,contentOffset:l}=St(e,n);if(c<8)break;let u=e.getUint32(n+4),d;if(q.USE_EXIF&&u===jr){try{r=It(e,l)}catch{}d=`exif`}if(q.USE_XMP&&u===Mr&&(i=[{dataOffset:l,length:c-(l-n)}],d=`xmp`),u===Pr&&s===void 0&&(s=l),u===Fr&&s===void 0&&l+Ir<=e.byteLength&&(e.getUint32(l)&2147483647||(s=l+Ir)),u===Nr&&l+Lr<=e.byteLength){let t=e.getUint32(l),s=l+Lr,u=c-(s-n);q.USE_EXIF&&t===jr&&(d=`exif`,r===void 0&&!a&&(a={dataOffset:s,length:u})),q.USE_XMP&&t===Mr&&(d=`xmp`,!i&&!o&&(o={dataOffset:s,length:u}))}z(t,d,n,n+c),n+=c}return{hasAppMarkers:r!==void 0||i!==void 0||a!==void 0||o!==void 0||s!==void 0,tiffHeaderOffset:r,xmpChunks:i,brobExifChunk:a,brobXmpChunk:o,jxlCodestreamOffset:s}}var Hr={isWebpFile:Ur,findOffsets:Wr};function Ur(e){return!!e&&N(e,0,4)===`RIFF`&&N(e,8,4)===`WEBP`}function Wr(e,t){let n=12,r=!1,i,a,o,s;for(;n+8<e.byteLength;){let c=N(e,n,4),l=e.getUint32(n+4,!0),u;q.USE_EXIF&&c===`EXIF`?(r=!0,i=N(e,n+8,6)===`Exif\0\0`?n+8+6:n+8,u=`exif`):q.USE_XMP&&c===`XMP `?(r=!0,a=[{dataOffset:n+8,length:l}],u=`xmp`):q.USE_ICC&&c===`ICCP`?(r=!0,o=[{offset:n+8,length:l,chunkNumber:1,chunksTotal:1}],u=`icc`):c===`VP8X`&&(r=!0,s=n+8,u=`riff`);let d=8+(l%2==0?l:l+1);z(t,u,n,n+d),n+=d}return{hasAppMarkers:r,tiffHeaderOffset:i,xmpChunks:a,iccChunks:o,vp8xChunkOffset:s}}var Gr={isGifFile:Yr,findOffsets:Xr},Kr=6,qr=[`GIF87a`,`GIF89a`],Jr=13;function Yr(e){return!!e&&qr.includes(N(e,0,Kr))}function Xr(e,t){return z(t,`gif`,0,Jr),{gifHeaderOffset:0}}var Zr={isXMLFile:ti,findOffsets:ni},Qr=0,$r=`<?xpacket begin`,ei=[`<?xpacket end=`,`</x:xmpmeta>`];function ti(e){return!!e&&N(e,Qr,15)===$r}function ni(e,t){let n=[];return n.push({dataOffset:Qr,length:e.byteLength}),z(t,`xmp`,0,e.byteLength),t&&(t.truncated=!ri(e)),{xmpChunks:n}}function ri(e){let t=N(e,0,e.byteLength);for(let e=0;e<ei.length;e++)if(t.indexOf(ei[e])!==-1)return!0;return!1}var ii={parseAppMarkers:ai};function ai(e,t,n){let r=n?[]:void 0;if(q.USE_TIFF&&Xt.isTiffFile(e))return oi(Xt.findTiffOffsets(),`tiff`,`TIFF`,r);if(q.USE_JPEG&&en.isJpegFile(e))return oi(en.findJpegOffsets(e,r),`jpeg`,`JPEG`,r);if(q.USE_PNG&&nr.isPngFile(e))return oi(nr.findPngOffsets(e,t,r),`png`,`PNG`,r);if(q.USE_HEIC&&br.isHeicFile(e))return oi(br.findHeicOffsets(e,r),`heic`,`HEIC`,r);if(q.USE_AVIF&&wr.isAvifFile(e))return oi(wr.findAvifOffsets(e,r),`avif`,`AVIF`,r);if(q.USE_JXL&&Or.isJxlFile(e))return oi(Or.findJxlOffsets(e,r),`jxl`,`JPEG XL`,r);if(q.USE_WEBP&&Hr.isWebpFile(e))return oi(Hr.findOffsets(e,r),`webp`,`WebP`,r);if(q.USE_GIF&&Gr.isGifFile(e))return oi(Gr.findOffsets(e,r),`gif`,`GIF`,r);if(q.USE_XMP&&Zr.isXMLFile(e))return oi(Zr.findOffsets(e,r),`xml`,`XML`,r);throw Error(`Invalid image format`)}function oi(e,t,n,r){let i=V({},e,{fileType:{value:t,description:n}});return r!==void 0&&(i.metadataBlocks=r,i.metadataTruncated=!!r.truncated),i}var Z={ApertureValue:e=>(Math.sqrt(2)**+(e[0]/e[1])).toFixed(2),ColorSpace(e){return e===1?`sRGB`:e===65535?`Uncalibrated`:`Unknown`},ComponentsConfiguration(e){return e.map(e=>{if(e===49)return`Y`;if(e===50)return`Cb`;if(e===51)return`Cr`;if(e===52)return`R`;if(e===53)return`G`;if(e===54)return`B`}).join(``)},Contrast(e){return e===0?`Normal`:e===1?`Soft`:e===2?`Hard`:`Unknown`},CustomRendered(e){return e===0?`Normal process`:e===1?`Custom process`:`Unknown`},ExposureMode(e){return e===0?`Auto exposure`:e===1?`Manual exposure`:e===2?`Auto bracket`:`Unknown`},ExposureProgram(e){return e===0?`Undefined`:e===1?`Manual`:e===2?`Normal program`:e===3?`Aperture priority`:e===4?`Shutter priority`:e===5?`Creative program`:e===6?`Action program`:e===7?`Portrait mode`:e===8?`Landscape mode`:e===9?`Bulb`:`Unknown`},ExposureTime(e){if(e[0]/e[1]>.25){let t=e[0]/e[1];return Number.isInteger(t)?``+t:t.toFixed(1)}return e[0]===0?`0/${e[1]}`:`1/${Math.round(e[1]/e[0])}`},FNumber:e=>`f/${Number(e[0]/e[1]).toFixed(1)}`,FocalLength:e=>e[0]/e[1]+` mm`,FocalPlaneResolutionUnit(e){return e===2?`inches`:e===3?`centimeters`:e===4?`millimeters`:`Unknown`},LightSource:e=>e===1?`Daylight`:e===2?`Fluorescent`:e===3?`Tungsten (incandescent light)`:e===4?`Flash`:e===9?`Fine weather`:e===10?`Cloudy weather`:e===11?`Shade`:e===12?`Daylight fluorescent (D 5700 – 7100K)`:e===13?`Day white fluorescent (N 4600 – 5400K)`:e===14?`Cool white fluorescent (W 3900 – 4500K)`:e===15?`White fluorescent (WW 3200 – 3700K)`:e===17?`Standard light A`:e===18?`Standard light B`:e===19?`Standard light C`:e===20?`D55`:e===21?`D65`:e===22?`D75`:e===23?`D50`:e===24?`ISO studio tungsten`:e===255?`Other light source`:`Unknown`,MeteringMode(e){return e===1?`Average`:e===2?`CenterWeightedAverage`:e===3?`Spot`:e===4?`MultiSpot`:e===5?`Pattern`:e===6?`Partial`:e===255?`Other`:`Unknown`},ResolutionUnit(e){return e===2?`inches`:e===3?`centimeters`:`Unknown`},Saturation(e){return e===0?`Normal`:e===1?`Low saturation`:e===2?`High saturation`:`Unknown`},FocalLengthIn35mmFilm(e){return e===0?`Unknown`:e+` mm`},SceneCaptureType(e){return e===0?`Standard`:e===1?`Landscape`:e===2?`Portrait`:e===3?`Night scene`:`Unknown`},Sharpness(e){return e===0?`Normal`:e===1?`Soft`:e===2?`Hard`:`Unknown`},ShutterSpeedValue(e){let t=2**(e[0]/e[1]);return t<=1?`${Math.round(1/t)}`:`1/${Math.round(t)}`},WhiteBalance(e){return e===0?`Auto white balance`:e===1?`Manual white balance`:`Unknown`},XResolution:e=>``+Math.round(e[0]/e[1]),YResolution:e=>``+Math.round(e[0]/e[1])},si={11:`ProcessingSoftware`,254:{name:`SubfileType`,description:e=>({0:`Full-resolution image`,1:`Reduced-resolution image`,2:`Single page of multi-page image`,3:`Single page of multi-page reduced-resolution image`,4:`Transparency mask`,5:`Transparency mask of reduced-resolution image`,6:`Transparency mask of multi-page image`,7:`Transparency mask of reduced-resolution multi-page image`,65537:`Alternate reduced-resolution image`,4294967295:`Invalid`})[e]||`Unknown`},255:{name:`OldSubfileType`,description:e=>({0:`Full-resolution image`,1:`Reduced-resolution image`,2:`Single page of multi-page image`})[e]||`Unknown`},256:`ImageWidth`,257:`ImageLength`,258:`BitsPerSample`,259:`Compression`,262:`PhotometricInterpretation`,263:{name:`Thresholding`,description:e=>({1:`No dithering or halftoning`,2:`Ordered dither or halfton`,3:`Randomized dither`})[e]||`Unknown`},264:`CellWidth`,265:`CellLength`,266:{name:`FillOrder`,description:e=>({1:`Normal`,2:`Reversed`})[e]||`Unknown`},269:`DocumentName`,270:`ImageDescription`,271:`Make`,272:`Model`,273:`StripOffsets`,274:{name:`Orientation`,description:e=>e===1?`top-left`:e===2?`top-right`:e===3?`bottom-right`:e===4?`bottom-left`:e===5?`left-top`:e===6?`right-top`:e===7?`right-bottom`:e===8?`left-bottom`:`Undefined`},277:`SamplesPerPixel`,278:`RowsPerStrip`,279:`StripByteCounts`,280:`MinSampleValue`,281:`MaxSampleValue`,282:{name:`XResolution`,description:Z.XResolution},283:{name:`YResolution`,description:Z.YResolution},284:`PlanarConfiguration`,285:`PageName`,286:{name:`XPosition`,description:e=>``+Math.round(e[0]/e[1])},287:{name:`YPosition`,description:e=>``+Math.round(e[0]/e[1])},290:{name:`GrayResponseUnit`,description:e=>({1:`0.1`,2:`0.001`,3:`0.0001`,4:`1e-05`,5:`1e-06`})[e]||`Unknown`},296:{name:`ResolutionUnit`,description:Z.ResolutionUnit},297:`PageNumber`,301:`TransferFunction`,305:`Software`,306:`DateTime`,315:`Artist`,316:`HostComputer`,317:`Predictor`,318:{name:`WhitePoint`,description:e=>e.map(e=>`${e[0]}/${e[1]}`).join(`, `)},319:{name:`PrimaryChromaticities`,description:e=>e.map(e=>`${e[0]}/${e[1]}`).join(`, `)},321:`HalftoneHints`,322:`TileWidth`,323:`TileLength`,330:`A100DataOffset`,332:{name:`InkSet`,description:e=>({1:`CMYK`,2:`Not CMYK`})[e]||`Unknown`},337:`TargetPrinter`,338:{name:`ExtraSamples`,description:e=>({0:`Unspecified`,1:`Associated Alpha`,2:`Unassociated Alpha`})[e]||`Unknown`},339:{name:`SampleFormat`,description:e=>{let t={1:`Unsigned`,2:`Signed`,3:`Float`,4:`Undefined`,5:`Complex int`,6:`Complex float`};return Array.isArray(e)?e.map(e=>t[e]||`Unknown`).join(`, `):`Unknown`}},513:`JPEGInterchangeFormat`,514:`JPEGInterchangeFormatLength`,529:{name:`YCbCrCoefficients`,description:e=>e.map(e=>``+e[0]/e[1]).join(`/`)},530:`YCbCrSubSampling`,531:{name:`YCbCrPositioning`,description:e=>e===1?`centered`:e===2?`co-sited`:`undefined `+e},532:{name:`ReferenceBlackWhite`,description:e=>e.map(e=>``+e[0]/e[1]).join(`, `)},700:`ApplicationNotes`,18246:`Rating`,18249:`RatingPercent`,33432:{name:`Copyright`,description:e=>e.join(`; `)},33550:`PixelScale`,33723:`IPTC-NAA`,33920:`IntergraphMatrix`,33922:`ModelTiePoint`,34118:`SEMInfo`,34264:`ModelTransform`,34377:`PhotoshopSettings`,34665:`Exif IFD Pointer`,34675:`ICC_Profile`,34735:`GeoTiffDirectory`,34736:`GeoTiffDoubleParams`,34737:`GeoTiffAsciiParams`,34853:`GPS Info IFD Pointer`,40091:{name:`XPTitle`,description:ci},40092:{name:`XPComment`,description:ci},40093:{name:`XPAuthor`,description:ci},40094:{name:`XPKeywords`,description:ci},40095:{name:`XPSubject`,description:ci},42112:`GDALMetadata`,42113:`GDALNoData`,50341:`PrintIM`,50707:`DNGBackwardVersion`,50708:`UniqueCameraModel`,50709:`LocalizedCameraModel`,50721:`ColorMatrix1`,50722:`ColorMatrix2`,50723:`CameraCalibration1`,50724:`CameraCalibration2`,50725:`ReductionMatrix1`,50726:`ReductionMatrix2`,50727:`AnalogBalance`,50728:`AsShotNeutral`,50729:`AsShotWhiteXY`,50730:`BaselineExposure`,50731:`BaselineNoise`,50732:`BaselineSharpness`,50734:`LinearResponseLimit`,50735:`CameraSerialNumber`,50736:`DNGLensInfo`,50739:`ShadowScale`,50741:{name:`MakerNoteSafety`,description:e=>({0:`Unsafe`,1:`Safe`})[e]||`Unknown`},50778:{name:`CalibrationIlluminant1`,description:Z.LightSource},50779:{name:`CalibrationIlluminant2`,description:Z.LightSource},50781:`RawDataUniqueID`,50827:`OriginalRawFileName`,50828:`OriginalRawFileData`,50831:`AsShotICCProfile`,50832:`AsShotPreProfileMatrix`,50833:`CurrentICCProfile`,50834:`CurrentPreProfileMatrix`,50879:`ColorimetricReference`,50885:`SRawType`,50898:`PanasonicTitle`,50899:`PanasonicTitle2`,50931:`CameraCalibrationSig`,50932:`ProfileCalibrationSig`,50933:`ProfileIFD`,50934:`AsShotProfileName`,50936:`ProfileName`,50937:`ProfileHueSatMapDims`,50938:`ProfileHueSatMapData1`,50939:`ProfileHueSatMapData2`,50940:`ProfileToneCurve`,50941:{name:`ProfileEmbedPolicy`,description:e=>({0:`Allow Copying`,1:`Embed if Used`,2:`Never Embed`,3:`No Restrictions`})[e]||`Unknown`},50942:`ProfileCopyright`,50964:`ForwardMatrix1`,50965:`ForwardMatrix2`,50966:`PreviewApplicationName`,50967:`PreviewApplicationVersion`,50968:`PreviewSettingsName`,50969:`PreviewSettingsDigest`,50970:{name:`PreviewColorSpace`,description:e=>({1:`Gray Gamma 2.2`,2:`sRGB`,3:`Adobe RGB`,4:`ProPhoto RGB`})[e]||`Unknown`},50971:`PreviewDateTime`,50972:`RawImageDigest`,50973:`OriginalRawFileDigest`,50981:`ProfileLookTableDims`,50982:`ProfileLookTableData`,51043:`TimeCodes`,51044:`FrameRate`,51058:`TStop`,51081:`ReelName`,51089:`OriginalDefaultFinalSize`,51090:`OriginalBestQualitySize`,51091:`OriginalDefaultCropSize`,51105:`CameraLabel`,51107:{name:`ProfileHueSatMapEncoding`,description:e=>({0:`Linear`,1:`sRGB`})[e]||`Unknown`},51108:{name:`ProfileLookTableEncoding`,description:e=>({0:`Linear`,1:`sRGB`})[e]||`Unknown`},51109:`BaselineExposureOffset`,51110:{name:`DefaultBlackRender`,description:e=>({0:`Auto`,1:`None`})[e]||`Unknown`},51111:`NewRawImageDigest`,51112:`RawToPreviewGain`};function ci(e){return new TextDecoder(`utf-16`).decode(new Uint8Array(e)).replace(/\u0000+$/,``)}var li={33434:{name:`ExposureTime`,description:Z.ExposureTime},33437:{name:`FNumber`,description:Z.FNumber},34850:{name:`ExposureProgram`,description:Z.ExposureProgram},34852:`SpectralSensitivity`,34855:`ISOSpeedRatings`,34856:{name:`OECF`,description:()=>`[Raw OECF table data]`},34858:`TimeZoneOffset`,34859:`SelfTimerMode`,34864:{name:`SensitivityType`,description:e=>({1:`Standard Output Sensitivity`,2:`Recommended Exposure Index`,3:`ISO Speed`,4:`Standard Output Sensitivity and Recommended Exposure Index`,5:`Standard Output Sensitivity and ISO Speed`,6:`Recommended Exposure Index and ISO Speed`,7:`Standard Output Sensitivity, Recommended Exposure Index and ISO Speed`})[e]||`Unknown`},34865:`StandardOutputSensitivity`,34866:`RecommendedExposureIndex`,34867:`ISOSpeed`,34868:`ISOSpeedLatitudeyyy`,34869:`ISOSpeedLatitudezzz`,36864:{name:`ExifVersion`,description:e=>L(e)},36867:`DateTimeOriginal`,36868:`DateTimeDigitized`,36873:`GooglePlusUploadCode`,36880:`OffsetTime`,36881:`OffsetTimeOriginal`,36882:`OffsetTimeDigitized`,37121:{name:`ComponentsConfiguration`,description:Z.ComponentsConfiguration},37122:`CompressedBitsPerPixel`,37377:{name:`ShutterSpeedValue`,description:Z.ShutterSpeedValue},37378:{name:`ApertureValue`,description:Z.ApertureValue},37379:`BrightnessValue`,37380:`ExposureBiasValue`,37381:{name:`MaxApertureValue`,description:e=>(Math.sqrt(2)**+(e[0]/e[1])).toFixed(2)},37382:{name:`SubjectDistance`,description:e=>e[0]/e[1]+` m`},37383:{name:`MeteringMode`,description:Z.MeteringMode},37384:{name:`LightSource`,description:Z.LightSource},37385:{name:`Flash`,description:e=>e===0?`Flash did not fire`:e===1?`Flash fired`:e===5?`Strobe return light not detected`:e===7?`Strobe return light detected`:e===9?`Flash fired, compulsory flash mode`:e===13?`Flash fired, compulsory flash mode, return light not detected`:e===15?`Flash fired, compulsory flash mode, return light detected`:e===16?`Flash did not fire, compulsory flash mode`:e===24?`Flash did not fire, auto mode`:e===25?`Flash fired, auto mode`:e===29?`Flash fired, auto mode, return light not detected`:e===31?`Flash fired, auto mode, return light detected`:e===32?`No flash function`:e===65?`Flash fired, red-eye reduction mode`:e===69?`Flash fired, red-eye reduction mode, return light not detected`:e===71?`Flash fired, red-eye reduction mode, return light detected`:e===73?`Flash fired, compulsory flash mode, red-eye reduction mode`:e===77?`Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected`:e===79?`Flash fired, compulsory flash mode, red-eye reduction mode, return light detected`:e===89?`Flash fired, auto mode, red-eye reduction mode`:e===93?`Flash fired, auto mode, return light not detected, red-eye reduction mode`:e===95?`Flash fired, auto mode, return light detected, red-eye reduction mode`:`Unknown`},37386:{name:`FocalLength`,description:Z.FocalLength},37393:`ImageNumber`,37394:{name:`SecurityClassification`,description:e=>({C:`Confidential`,R:`Restricted`,S:`Secret`,T:`Top Secret`,U:`Unclassified`})[e]||`Unknown`},37395:`ImageHistory`,37396:{name:`SubjectArea`,description:e=>e.length===2?`Location; X: ${e[0]}, Y: ${e[1]}`:e.length===3?`Circle; X: ${e[0]}, Y: ${e[1]}, diameter: ${e[2]}`:e.length===4?`Rectangle; X: ${e[0]}, Y: ${e[1]}, width: ${e[2]}, height: ${e[3]}`:`Unknown`},37500:{name:`MakerNote`,description:()=>`[Raw maker note data]`},37510:{name:`UserComment`,description:Ge},37520:`SubSecTime`,37521:`SubSecTimeOriginal`,37522:`SubSecTimeDigitized`,37724:`ImageSourceData`,37888:{name:`AmbientTemperature`,description:e=>e[0]/e[1]+` °C`},37889:{name:`Humidity`,description:e=>e[0]/e[1]+` %`},37890:{name:`Pressure`,description:e=>e[0]/e[1]+` hPa`},37891:{name:`WaterDepth`,description:e=>e[0]/e[1]+` m`},37892:{name:`Acceleration`,description:e=>e[0]/e[1]+` mGal`},37893:{name:`CameraElevationAngle`,description:e=>e[0]/e[1]+` °`},40960:{name:`FlashpixVersion`,description:e=>e.map(e=>String.fromCharCode(e)).join(``)},40961:{name:`ColorSpace`,description:Z.ColorSpace},40962:`PixelXDimension`,40963:`PixelYDimension`,40964:`RelatedSoundFile`,40965:`Interoperability IFD Pointer`,41483:`FlashEnergy`,41484:{name:`SpatialFrequencyResponse`,description:()=>`[Raw SFR table data]`},41486:`FocalPlaneXResolution`,41487:`FocalPlaneYResolution`,41488:{name:`FocalPlaneResolutionUnit`,description:Z.FocalPlaneResolutionUnit},41492:{name:`SubjectLocation`,description:([e,t])=>`X: ${e}, Y: ${t}`},41493:`ExposureIndex`,41495:{name:`SensingMethod`,description:e=>e===1?`Undefined`:e===2?`One-chip color area sensor`:e===3?`Two-chip color area sensor`:e===4?`Three-chip color area sensor`:e===5?`Color sequential area sensor`:e===7?`Trilinear sensor`:e===8?`Color sequential linear sensor`:`Unknown`},41728:{name:`FileSource`,description:e=>e===3?`DSC`:`Unknown`},41729:{name:`SceneType`,description:e=>e===1?`A directly photographed image`:`Unknown`},41730:{name:`CFAPattern`,description:()=>`[Raw CFA pattern table data]`},41985:{name:`CustomRendered`,description:Z.CustomRendered},41986:{name:`ExposureMode`,description:Z.ExposureMode},41987:{name:`WhiteBalance`,description:Z.WhiteBalance},41988:{name:`DigitalZoomRatio`,description:e=>e[0]===0?`Digital zoom was not used`:``+e[0]/e[1]},41989:{name:`FocalLengthIn35mmFilm`,description:Z.FocalLengthIn35mmFilm},41990:{name:`SceneCaptureType`,description:Z.SceneCaptureType},41991:{name:`GainControl`,description:e=>e===0?`None`:e===1?`Low gain up`:e===2?`High gain up`:e===3?`Low gain down`:e===4?`High gain down`:`Unknown`},41992:{name:`Contrast`,description:Z.Contrast},41993:{name:`Saturation`,description:Z.Saturation},41994:{name:`Sharpness`,description:Z.Sharpness},41995:{name:`DeviceSettingDescription`,description:()=>`[Raw device settings table data]`},41996:{name:`SubjectDistanceRange`,description:e=>e===1?`Macro`:e===2?`Close view`:e===3?`Distant view`:`Unknown`},42016:`ImageUniqueID`,42032:`CameraOwnerName`,42033:`BodySerialNumber`,42034:{name:`LensSpecification`,description:e=>{let t=`${parseFloat((e[0][0]/e[0][1]).toFixed(5))}-${parseFloat((e[1][0]/e[1][1]).toFixed(5))} mm`;if(e[3][1]===0)return`${t} f/?`;let n=1/(e[2][1]/e[2][1]/(e[3][0]/e[3][1]));return`${t} f/${parseFloat(n.toFixed(5))}`}},42035:`LensMake`,42036:`LensModel`,42037:`LensSerialNumber`,42080:{name:`CompositeImage`,description:e=>({1:`Not a Composite Image`,2:`General Composite Image`,3:`Composite Image Captured While Shooting`})[e]||`Unknown`},42081:`SourceImageNumberOfCompositeImage`,42082:`SourceExposureTimesOfCompositeImage`,42240:`Gamma`,59932:`Padding`,59933:`OffsetSchema`,65e3:`OwnerName`,65001:`SerialNumber`,65002:`Lens`,65100:`RawFile`,65101:`Converter`,65102:`WhiteBalance`,65105:`Exposure`,65106:`Shadows`,65107:`Brightness`,65108:`Contrast`,65109:`Saturation`,65110:`Sharpness`,65111:`Smoothness`,65112:`MoireFilter`},ui={0:{name:`GPSVersionID`,description:e=>e[0]===2&&e[1]===2&&e[2]===0&&e[3]===0?`Version 2.2`:`Unknown`},1:{name:`GPSLatitudeRef`,description:e=>{let t=e.join(``);return t===`N`?`North latitude`:t===`S`?`South latitude`:`Unknown`}},2:{name:`GPSLatitude`,description:Ke},3:{name:`GPSLongitudeRef`,description:e=>{let t=e.join(``);return t===`E`?`East longitude`:t===`W`?`West longitude`:`Unknown`}},4:{name:`GPSLongitude`,description:Ke},5:{name:`GPSAltitudeRef`,description:e=>e===0?`Sea level`:e===1?`Sea level reference (negative value)`:`Unknown`},6:{name:`GPSAltitude`,description:e=>e[0]/e[1]+` m`},7:{name:`GPSTimeStamp`,description:e=>e.map(([e,t])=>{let n=e/t;return/^\d(\.|$)/.test(`${n}`)?`0${n}`:n}).join(`:`)},8:`GPSSatellites`,9:{name:`GPSStatus`,description:e=>{let t=e.join(``);return t===`A`?`Measurement in progress`:t===`V`?`Measurement Interoperability`:`Unknown`}},10:{name:`GPSMeasureMode`,description:e=>{let t=e.join(``);return t===`2`?`2-dimensional measurement`:t===`3`?`3-dimensional measurement`:`Unknown`}},11:`GPSDOP`,12:{name:`GPSSpeedRef`,description:e=>{let t=e.join(``);return t===`K`?`Kilometers per hour`:t===`M`?`Miles per hour`:t===`N`?`Knots`:`Unknown`}},13:`GPSSpeed`,14:{name:`GPSTrackRef`,description:e=>{let t=e.join(``);return t===`T`?`True direction`:t===`M`?`Magnetic direction`:`Unknown`}},15:`GPSTrack`,16:{name:`GPSImgDirectionRef`,description:e=>{let t=e.join(``);return t===`T`?`True direction`:t===`M`?`Magnetic direction`:`Unknown`}},17:`GPSImgDirection`,18:`GPSMapDatum`,19:{name:`GPSDestLatitudeRef`,description:e=>{let t=e.join(``);return t===`N`?`North latitude`:t===`S`?`South latitude`:`Unknown`}},20:{name:`GPSDestLatitude`,description:e=>e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600},21:{name:`GPSDestLongitudeRef`,description:e=>{let t=e.join(``);return t===`E`?`East longitude`:t===`W`?`West longitude`:`Unknown`}},22:{name:`GPSDestLongitude`,description:e=>e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600},23:{name:`GPSDestBearingRef`,description:e=>{let t=e.join(``);return t===`T`?`True direction`:t===`M`?`Magnetic direction`:`Unknown`}},24:`GPSDestBearing`,25:{name:`GPSDestDistanceRef`,description:e=>{let t=e.join(``);return t===`K`?`Kilometers`:t===`M`?`Miles`:t===`N`?`Knots`:`Unknown`}},26:`GPSDestDistance`,27:{name:`GPSProcessingMethod`,description:Ge},28:{name:`GPSAreaInformation`,description:Ge},29:`GPSDateStamp`,30:{name:`GPSDifferential`,description:e=>e===0?`Measurement without differential correction`:e===1?`Differential correction applied`:`Unknown`},31:`GPSHPositioningError`},di={1:`InteroperabilityIndex`,2:{name:`InteroperabilityVersion`,description:e=>L(e)},4096:`RelatedImageFileFormat`,4097:`RelatedImageWidth`,4098:`RelatedImageHeight`},fi={45056:{name:`MPFVersion`,description:e=>L(e)},45057:`NumberOfImages`,45058:`MPEntry`,45059:`ImageUIDList`,45060:`TotalFrames`},pi={1:{name:`CameraSettings`,description:e=>e},4:{name:`ShotInfo`,description:e=>e},149:`LensModel`},mi={0:{name:`PentaxVersion`,description:e=>e.join(`.`)},5:`PentaxModelID`,555:`LevelInfo`},hi=q.USE_EXIF?V({},si,li):{},gi=`exif`,_i=`interoperability`,vi=`canon`,yi=`pentax`,bi={"0th":hi,"1st":q.USE_EXIF?si:{},[gi]:hi,gps:q.USE_EXIF?ui:{},[_i]:q.USE_EXIF?di:{},mpf:q.USE_MPF?fi:{},[vi]:q.USE_MAKER_NOTES?pi:{},[yi]:q.USE_MAKER_NOTES?mi:{}},xi={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},Si={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},Q={getAsciiValue:Ci,getByteAt:wi,getAsciiAt:Ti,getShortAt:Ei,getLongAt:Di,getRationalAt:Oi,getUndefinedAt:ki,getSlongAt:Ai,getSrationalAt:ji,getIfdPointerAt:Mi,typeSizes:xi,tagTypes:Si,getTypeSize:Ni};function Ci(e){return e.map(e=>String.fromCharCode(e))}function wi(e,t){return e.getUint8(t)}function Ti(e,t){return e.getUint8(t)}function Ei(e,t,n){return e.getUint16(t,n===J.LITTLE_ENDIAN)}function Di(e,t,n){return e.getUint32(t,n===J.LITTLE_ENDIAN)}function Oi(e,t,n){return[Di(e,t,n),Di(e,t+4,n)]}function ki(e,t){return wi(e,t)}function Ai(e,t,n){return e.getInt32(t,n===J.LITTLE_ENDIAN)}function ji(e,t,n){return[Ai(e,t,n),Ai(e,t+4,n)]}function Mi(e,t,n){return Di(e,t,n)}function Ni(e){if(Si[e]===void 0)throw Error(`No such type found.`);return xi[Si[e]]}var Pi={exif:!0,iptc:!0,photoshop:!0,mpf:!0,makerNotes:!0},Fi={exif:!0,iptc:!0,xmp:!0,icc:!0,photoshop:!0,makerNotes:!0,mpf:!0,file:!0,jfif:!0,png:!0,riff:!0,gif:!0,gps:!0,composite:!0,thumbnail:!0},Ii={exifIfdPointer:`Exif IFD Pointer`,gpsInfoIfdPointer:`GPS Info IFD Pointer`,interoperabilityIfdPointer:`Interoperability IFD Pointer`},Li={thumbnail:[`JPEGInterchangeFormat`,`JPEGInterchangeFormatLength`],iptc:[`IPTC-NAA`],xmp:[`ApplicationNotes`],icc:[`ICC_Profile`],photoshop:[`ImageSourceData`,`PhotoshopSettings`],makerNotes:[`MakerNote`,`Make`],gps:[`GPSLatitude`,`GPSLatitudeRef`,`GPSLongitude`,`GPSLongitudeRef`,`GPSAltitude`,`GPSAltitudeRef`]},Ri={file:[`Image Width`,`Image Height`],exif:[`FocalLength`,`FocalPlaneXResolution`,`FocalPlaneYResolution`,`FocalPlaneResolutionUnit`,`FocalLengthIn35mmFilm`]};function zi(e){let t=Object.create(null);if(!e)return t;Array.isArray(e.exif)&&e.exif.length>0&&(t[Ii.exifIfdPointer]=!0,n(t,e.exif));for(let n in Li)if(Bi(e[n])){let e=Li[n];for(let n=0;n<e.length;n++)t[e[n]]=!0;t[Ii.exifIfdPointer]=!0}return Bi(e.gps)&&(t[Ii.gpsInfoIfdPointer]=!0,t[Ii.exifIfdPointer]=!0),t;function n(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(typeof r!=`string`)continue;let i=r.toLowerCase();i.indexOf(`gps`)===0&&(e[Ii.gpsInfoIfdPointer]=!0),(i.indexOf(`interoperability`)===0||i.indexOf(`relatedimage`)===0)&&(e[Ii.interoperabilityIfdPointer]=!0)}}}function Bi(e){return e===!0||Array.isArray(e)&&e.length>0}function Vi({includeTags:e,excludeTags:t}={}){let n=!!e,r=!!t,i=n||r,a=Object.create(null),o=Object.create(null),s=Object.create(null);if(!i)return Hi();let c=n&&(qi(e,`iptc`)||qi(e,`xmp`)||qi(e,`icc`)||qi(e,`photoshop`)||qi(e,`makerNotes`)||qi(e,`thumbnail`)||qi(e,`gps`)||qi(e,`composite`)),l=n&&qi(e,`composite`),u=Object.create(null);n&&(u=Wi(e));let d=Object.create(null);n&&l&&(d=$i(Ri.file));for(let i in Fi){let f=n&&Object.prototype.hasOwnProperty.call(e,i),p=r&&Object.prototype.hasOwnProperty.call(t,i),m;p&&!f&&(m=t[i]);let h=Yi({groupKey:i,includeValue:f?e[i]:void 0,excludeValue:m,extraIncludeNames:Object.create(null)});a[i]=!n||f,f&&Ji(e[i])&&(a[i]=!1),h.excludeAll&&(a[i]=!1),o[i]=h,s[i]=Yi({groupKey:i,includeValue:Gi({groupKey:i,hasIncludeTags:n,hasIncludeEntry:f,includeTags:e,shouldParseExif:c,shouldParseFile:l}),excludeValue:m,extraIncludeNames:Ki({groupKey:i,hasIncludeTags:n,hasIncludeEntry:f,shouldParseExif:c,shouldParseFile:l,exifIncludeDependencies:u,fileIncludeDependencies:d})})}return{isActive:i,shouldReturnGroup:f,shouldParseGroup:p,shouldReturnTag:m,shouldParseTag:h};function f(e){return!Fi[e]||!!a[e]}function p(e){return!Fi[e]||f(e)?!0:e===`exif`?c:e===`file`&&l}function m(e,t,n){return Fi[e]?f(e)?Xi(o[e],t,n):!1:!0}function h(e,t,n){return Fi[e]?p(e)?Xi(s[e],t,n):!1:!0}}function Hi(){return{isActive:!1,shouldReturnGroup:e,shouldParseGroup:e,shouldReturnTag:e,shouldParseTag:e};function e(){return!0}}var Ui=Hi();function Wi(e){let t=zi(e);return qi(e,`composite`)&&ea(t,Ri.exif),t}function Gi({groupKey:e,hasIncludeTags:t,hasIncludeEntry:n,includeTags:r,shouldParseExif:i,shouldParseFile:a}){if(!t)return!0;if(n)return e===`thumbnail`&&Array.isArray(r[e])?!0:r[e];if(e===`exif`&&i||e===`file`&&a)return[]}function Ki({groupKey:e,hasIncludeTags:t,hasIncludeEntry:n,shouldParseExif:r,shouldParseFile:i,exifIncludeDependencies:a,fileIncludeDependencies:o}){return t?e===`exif`&&(r||n&&Object.keys(a).length>0)?a:e===`file`&&i?o:Object.create(null):Object.create(null)}function qi(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,t))return!1;let n=e[t];return n===!0||Array.isArray(n)&&n.length>0}function Ji(e){return Array.isArray(e)&&e.length===0}function Yi({groupKey:e,includeValue:t,excludeValue:n,extraIncludeNames:r}){let i=!!Pi[e],a={includeAll:!1,includeNames:void 0,includeIds:void 0,excludeAll:!1,excludeNames:void 0,excludeIds:void 0};if(t===!0)a.includeAll=!0;else if(Array.isArray(t)){a.includeNames=Object.create(null),i&&(a.includeIds=Object.create(null));for(let e=0;e<t.length;e++)o(a,t[e]);for(let e in r)a.includeNames[e.toLowerCase()]=!0}else if(r&&Object.keys(r).length>0){a.includeNames=Object.create(null);for(let e in r)a.includeNames[e.toLowerCase()]=!0}if(n===!0)return a.excludeAll=!0,a;if(Array.isArray(n)){a.excludeNames=Object.create(null),i&&(a.excludeIds=Object.create(null));for(let e=0;e<n.length;e++)s(a,n[e])}return a;function o(e,t){if(typeof t==`number`&&e.includeIds){e.includeIds[String(t)]=!0;return}typeof t==`string`&&(e.includeNames[t.toLowerCase()]=!0)}function s(e,t){if(typeof t==`number`&&e.excludeIds){e.excludeIds[String(t)]=!0;return}typeof t==`string`&&(e.excludeNames[t.toLowerCase()]=!0)}}function Xi(e,t,n){return e.excludeAll?!1:e.includeAll||!e.includeNames&&!e.includeIds||Zi(e,t,n)?!Qi(e,t,n):!1}function Zi(e,t,n){return!!(n!==void 0&&e.includeIds&&e.includeIds[String(n)]||t&&e.includeNames&&e.includeNames[String(t).toLowerCase()])}function Qi(e,t,n){return!!(n!==void 0&&e.excludeIds&&e.excludeIds[String(n)]||t&&e.excludeNames&&e.excludeNames[String(t).toLowerCase()])}function $i(e){let t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].toLowerCase()]=!0;return t}function ea(e,t){for(let n=0;n<t.length;n++)e[t[n]]=!0}var ta=4,na={1:Q.getByteAt,2:Q.getAsciiAt,3:Q.getShortAt,4:Q.getLongAt,5:Q.getRationalAt,7:Q.getUndefinedAt,9:Q.getSlongAt,10:Q.getSrationalAt,13:Q.getIfdPointerAt};function ra(e,t,n){let r=t+4;if(!(r+Q.getTypeSize(`LONG`)>e.byteLength))return t+Q.getLongAt(e,r,n)}function ia(e,t,n,r,i,a,o=!1,s=Ui,c=`exif`,l=aa(e)){let u=Q.getTypeSize(`SHORT`),d={},f=oa(e,r,i);r+=u;for(let u=0;u<f&&!(r+12>e.byteLength);u++){let u=sa(e,t,n,r,i,a,s,c,l);u!==void 0&&(d[u.name]={id:u.id,value:u.value,description:u.description},o&&(d[u.name].computed=ga(u.tagType,u.value)),(u.name===`MakerNote`||t===`pentax`&&u.name===`LevelInfo`)&&(d[u.name].__offset=u.__offset)),r+=12}if(q.USE_THUMBNAIL&&r<e.byteLength-Q.getTypeSize(`LONG`)){let c=Q.getLongAt(e,r,i);c!==0&&t===`0th`&&s.shouldParseGroup(`thumbnail`)&&(d.Thumbnail=ia(e,`1st`,n,n+c,i,a,o,s,`thumbnail`,l))}return d}function aa(e){return{remaining:e.byteLength*ta}}function oa(e,t,n){return t+Q.getTypeSize(`SHORT`)<=e.byteLength?Q.getShortAt(e,t,n):0}function sa(e,t,n,r,i,a=!1,o=Ui,s=`exif`,c){let l=Q.getTypeSize(`SHORT`),u=l+Q.getTypeSize(`SHORT`),d=u+Q.getTypeSize(`LONG`),f=Q.getShortAt(e,r,i),p=Q.getShortAt(e,r+l,i),m=Q.getLongAt(e,r+u,i),h,g;if(Q.typeSizes[p]===void 0||!a&&bi[t][f]===void 0)return;let _=ca(t,f);if(!o.shouldParseTag(s,_,f))return;if(la(p,m))g=r+d,h=ua(e,g,p,m,i);else if(g=Q.getLongAt(e,r+d,i),da(e,n,g,p,m)){let t=f===33723,r=fa(c.remaining,p,m);c.remaining-=r*Q.typeSizes[p],h=ua(e,n+g,p,r,i,t)}else h=`<faulty value>`;p===Q.tagTypes.ASCII&&(h=pa(h),h=ma(h));let v=h;if(bi[t][f]!==void 0){if(bi[t][f].name!==void 0&&bi[t][f].description!==void 0)try{v=bi[t][f].description(h)}catch{v=ha(h)}else v=p===Q.tagTypes.RATIONAL||p===Q.tagTypes.SRATIONAL?``+h[0]/h[1]:ha(h)}return{id:f,name:_,value:h,description:v,tagType:p,__offset:g}}function ca(e,t){if(bi[e][t]!==void 0){if(typeof bi[e][t]==`string`)return bi[e][t];if(bi[e][t].name)return bi[e][t].name}return`undefined-${t}`}function la(e,t){return Q.typeSizes[e]*t<=Q.getTypeSize(`LONG`)}function ua(e,t,n,r,i,a=!1){let o=[];a&&(r*=Q.typeSizes[n],n=Q.tagTypes.BYTE);for(let a=0;a<r;a++)o.push(na[n](e,t,i)),t+=Q.typeSizes[n];return n===Q.tagTypes.ASCII?o=Q.getAsciiValue(o):o.length===1&&(o=o[0]),o}function da(e,t,n,r,i){return t+n+Q.typeSizes[r]*i<=e.byteLength}function fa(e,t,n){let r=Math.min(n,Math.floor(e/Q.typeSizes[t]));return r===1&&n>1?0:r}function pa(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(e[r]===`\0`){n++;continue}t[n]===void 0&&(t[n]=``),t[n]+=e[r]}return t}function ma(e){return e.map(e=>ee(e))}function ha(e){return e instanceof Array?e.join(`, `):e}function ga(e,t){return e===Q.tagTypes.ASCII?Array.isArray(t)&&t.length===1?t[0]:t:e===Q.tagTypes.RATIONAL||e===Q.tagTypes.SRATIONAL?_a(t)?va(t):Array.isArray(t)?t.map(e=>va(e)):t:t}function _a(e){return!Array.isArray(e)||e.length!==2?!1:typeof e[0]==`number`&&typeof e[1]==`number`}function va(e){if(!Array.isArray(e)||e.length!==2)return e;let t=e[0],n=e[1];return!Number.isFinite(t)||!Number.isFinite(n)?e:n===0?null:t/n}var ya=[{pointerKey:`Exif IFD Pointer`,ifdType:gi},{pointerKey:`GPS Info IFD Pointer`,ifdType:`gps`},{pointerKey:`Interoperability IFD Pointer`,ifdType:_i}],ba={read:xa};function xa(e,t,n,r=!1,i=void 0){let a=J.getByteOrder(e,t),o=aa(e),s=Sa(e,t,a,n,r,i,o);for(let c=0;c<ya.length;c++)s=Ca(ya[c],s,e,t,a,n,r,i,o);return{tags:s,byteOrder:a}}function Sa(e,t,n,r,i,a,o){let s=ra(e,t,n);return s===void 0?{}:ia(e,`0th`,t,s,n,r,i,a,`exif`,o)}function Ca(e,t,n,r,i,a,o,s,c){let l=t[e.pointerKey];return l===void 0?t:V(t,ia(n,e.ifdType,r,r+l.value,i,a,o,s,`exif`,c))}var wa={read:Da},Ta=16,Ea=8;function Da(e,t,n,r=!1,i=void 0){try{let a=J.getByteOrder(e,t),o=ra(e,t,a);return o===void 0?{}:Oa(e,t,ia(e,`mpf`,t,o,a,n,r,i,`mpf`),a)}catch{return{}}}function Oa(e,t,n,r){if(!n.MPEntry)return n;let i=e.byteLength,a=e.byteOffset||0,o=i*Ea,s=[];for(let c=0;c<Math.ceil(n.MPEntry.value.length/Ta);c++){s[c]={};let l=ka(n.MPEntry.value,c*Ta,Q.getTypeSize(`LONG`),r);s[c].ImageFlags=Aa(l),s[c].ImageFormat=ja(l),s[c].ImageType=Ma(l);let u=ka(n.MPEntry.value,c*Ta+4,Q.getTypeSize(`LONG`),r);s[c].ImageSize={value:u,description:``+u};let d=Na(c,n.MPEntry,r,t);s[c].ImageOffset={value:d,description:``+d};let f=ka(n.MPEntry.value,c*Ta+12,Q.getTypeSize(`SHORT`),r);s[c].DependentImage1EntryNumber={value:f,description:``+f};let p=ka(n.MPEntry.value,c*Ta+14,Q.getTypeSize(`SHORT`),r);s[c].DependentImage2EntryNumber={value:p,description:``+p};let m=Math.min(Math.max(d,0),i),h=Math.min(m+Math.max(u,0),i,m+o);s[c].image=e.buffer.slice(a+m,a+h),o-=h-m,U(s[c],`base64`,function(){return W(this.image)})}return n.Images=s,n}function ka(e,t,n,r){if(r===J.LITTLE_ENDIAN){let r=0;for(let i=0;i<n;i++)r+=e[t+i]<<8*i;return r}let i=0;for(let r=0;r<n;r++)i+=e[t+r]<<8*(n-1-r);return i}function Aa(e){let t=[e>>31&1,e>>30&1,e>>29&1],n=[];return t[0]&&n.push(`Dependent Parent Image`),t[1]&&n.push(`Dependent Child Image`),t[2]&&n.push(`Representative Image`),{value:t,description:n.join(`, `)||`None`}}function ja(e){let t=e>>24&7;return{value:t,description:t===0?`JPEG`:`Unknown`}}function Ma(e){let t=e&16777215;return{value:t,description:{196608:`Baseline MP Primary Image`,65537:`Large Thumbnail (VGA equivalent)`,65538:`Large Thumbnail (Full HD equivalent)`,131073:`Multi-Frame Image (Panorama)`,131074:`Multi-Frame Image (Disparity)`,131075:`Multi-Frame Image (Multi-Angle)`,0:`Undefined`}[t]||`Unknown`}}function Na(e,t,n,r){return Pa(e)?0:ka(t.value,e*Ta+8,Q.getTypeSize(`LONG`),n)+r}function Pa(e){return e===0}var Fa={read:Ia};function Ia(e,t){let n=La(e,t),r=Va(e,t,n);return{"Bits Per Sample":Ra(e,t,n),"Image Height":za(e,t,n),"Image Width":Ba(e,t,n),"Color Components":r,Subsampling:r&&Ha(e,t,r.value,n)}}function La(e,t){return Math.min(Q.getShortAt(e,t),e.byteLength-t)}function Ra(e,t,n){if(3>n)return;let r=Q.getByteAt(e,t+2);return{value:r,description:``+r}}function za(e,t,n){if(5>n)return;let r=Q.getShortAt(e,t+3);return{value:r,description:`${r}px`}}function Ba(e,t,n){if(7>n)return;let r=Q.getShortAt(e,t+5);return{value:r,description:`${r}px`}}function Va(e,t,n){if(8>n)return;let r=Q.getByteAt(e,t+7);return{value:r,description:``+r}}function Ha(e,t,n,r){if(8+3*n>r)return;let i=[];for(let r=0;r<n;r++){let n=t+8+r*3;i.push([Q.getByteAt(e,n),Q.getByteAt(e,n+1),Q.getByteAt(e,n+2)])}return{value:i,description:i.length>1?Ua(i)+Wa(i):``}}function Ua(e){let t={1:`Y`,2:`Cb`,3:`Cr`,4:`I`,5:`Q`};return e.map(e=>t[e[0]]).join(``)}function Wa(e){let t={17:`4:4:4 (1 1)`,18:`4:4:0 (1 2)`,20:`4:4:1 (1 4)`,33:`4:2:2 (2 1)`,34:`4:2:0 (2 2)`,36:`4:2:1 (2 4)`,65:`4:1:1 (4 1)`,66:`4:1:0 (4 2)`};return e.length===0||e[0][1]===void 0||t[e[0][1]]===void 0?``:t[e[0][1]]}var Ga={read:Ya},Ka=2,qa=[9,13,18,30],Ja=[0,1,12/10,4/3,3/2,16/9,5/4,2];function Ya(e,t){let n={};try{let{height:r,width:i}=Xa(Qa(e,t+Ka));n[`Image Height`]={value:r,description:`${r}px`},n[`Image Width`]={value:i,description:`${i}px`}}catch{}return n}function Xa(e){let t=e.readBits(1),n,r;if(t){n=(e.readBits(5)+1)*8;let t=e.readBits(3);r=t===0?(e.readBits(5)+1)*8:Math.ceil(n*Ja[t])}else{n=Za(e);let t=e.readBits(3);r=t===0?Za(e):Math.ceil(n*Ja[t])}return{height:n,width:r}}function Za(e){let t=e.readBits(2);return 1+e.readBits(qa[t])}function Qa(e,t){let n=t,r=0;return{readBits(t){let i=0;for(let a=0;a<t;a++){if(n>=e.byteLength)throw Error(`Unexpected end of data`);let t=e.getUint8(n)>>r&1;i|=t<<a,r++,r>=8&&(r=0,n++)}return i}}}var $a={read:eo};function eo(e,t){let n=to(e,t),r=so(e,t,n),i=co(e,t,n),a={"JFIF Version":no(e,t,n),"Resolution Unit":ro(e,t,n),XResolution:ao(e,t,n),YResolution:oo(e,t,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){let o=lo(e,t,3*r.value*i.value,n);o&&(a[`JFIF Thumbnail`]=o)}for(let e in a)a[e]===void 0&&delete a[e];return a}function to(e,t){return Math.min(Q.getShortAt(e,t),e.byteLength-t)}function no(e,t,n){if(9>n)return;let r=Q.getByteAt(e,t+7),i=Q.getByteAt(e,t+7+1);return{value:r*256+i,description:r+`.`+i}}function ro(e,t,n){if(10>n)return;let r=Q.getByteAt(e,t+9);return{value:r,description:io(r)}}function io(e){return e===0?`None`:e===1?`inches`:e===2?`cm`:`Unknown`}function ao(e,t,n){if(12>n)return;let r=Q.getShortAt(e,t+10);return{value:r,description:``+r}}function oo(e,t,n){if(14>n)return;let r=Q.getShortAt(e,t+12);return{value:r,description:``+r}}function so(e,t,n){if(15>n)return;let r=Q.getByteAt(e,t+14);return{value:r,description:`${r}px`}}function co(e,t,n){if(16>n)return;let r=Q.getByteAt(e,t+15);return{value:r,description:`${r}px`}}function lo(e,t,n,r){if(n===0||16+n>r)return;let i=e.byteOffset||0;return{value:e.buffer.slice(i+t+16,i+t+16+n),description:`<24-bit RGB pixel data>`}}var uo={iptc:{256:{name:`Model Version`,description:e=>((e[0]<<8)+e[1]).toString()},261:{name:`Destination`,repeatable:!0},276:{name:`File Format`,description:e=>((e[0]<<8)+e[1]).toString()},278:{name:`File Format Version`,description:e=>((e[0]<<8)+e[1]).toString()},286:`Service Identifier`,296:`Envelope Number`,306:`Product ID`,316:`Envelope Priority`,326:{name:`Date Sent`,description:fo},336:{name:`Time Sent`,description:po},346:{name:`Coded Character Set`,description:mo,encoding_name:mo},356:`UNO`,376:{name:`ARM Identifier`,description:e=>((e[0]<<8)+e[1]).toString()},378:{name:`ARM Version`,description:e=>((e[0]<<8)+e[1]).toString()},512:{name:`Record Version`,description:e=>((e[0]<<8)+e[1]).toString()},515:`Object Type Reference`,516:`Object Attribute Reference`,517:`Object Name`,519:`Edit Status`,520:{name:`Editorial Update`,description:e=>L(e)===`01`?`Additional Language`:`Unknown`},522:`Urgency`,524:{name:`Subject Reference`,repeatable:!0,description:e=>{let t=L(e).split(`:`);return t[2]+(t[3]?`/`+t[3]:``)+(t[4]?`/`+t[4]:``)}},527:`Category`,532:{name:`Supplemental Category`,repeatable:!0},534:`Fixture Identifier`,537:{name:`Keywords`,repeatable:!0},538:{name:`Content Location Code`,repeatable:!0},539:{name:`Content Location Name`,repeatable:!0},542:`Release Date`,547:`Release Time`,549:`Expiration Date`,550:`Expiration Time`,552:`Special Instructions`,554:{name:`Action Advised`,description:e=>{let t=L(e);return t===`01`?`Object Kill`:t===`02`?`Object Replace`:t===`03`?`Object Append`:t===`04`?`Object Reference`:`Unknown`}},557:{name:`Reference Service`,repeatable:!0},559:{name:`Reference Date`,repeatable:!0},562:{name:`Reference Number`,repeatable:!0},567:{name:`Date Created`,description:fo},572:{name:`Time Created`,description:po},574:{name:`Digital Creation Date`,description:fo},575:{name:`Digital Creation Time`,description:po},577:`Originating Program`,582:`Program Version`,587:{name:`Object Cycle`,description:e=>{let t=L(e);return t===`a`?`morning`:t===`p`?`evening`:t===`b`?`both`:`Unknown`}},592:{name:`By-line`,repeatable:!0},597:{name:`By-line Title`,repeatable:!0},602:`City`,604:`Sub-location`,607:`Province/State`,612:`Country/Primary Location Code`,613:`Country/Primary Location Name`,615:`Original Transmission Reference`,617:`Headline`,622:`Credit`,627:`Source`,628:`Copyright Notice`,630:{name:`Contact`,repeatable:!0},632:`Caption/Abstract`,634:{name:`Writer/Editor`,repeatable:!0},637:{name:`Rasterized Caption`,description:e=>e},642:`Image Type`,643:{name:`Image Orientation`,description:e=>{let t=L(e);return t===`P`?`Portrait`:t===`L`?`Landscape`:t===`S`?`Square`:`Unknown`}},647:`Language Identifier`,662:{name:`Audio Type`,description:e=>{let t=L(e),n=t.charAt(0),r=t.charAt(1),i=``;return n===`1`?i+=`Mono`:n===`2`&&(i+=`Stereo`),r===`A`?i+=`, actuality`:r===`C`?i+=`, question and answer session`:r===`M`?i+=`, music, transmitted by itself`:r===`Q`?i+=`, response to a question`:r===`R`?i+=`, raw sound`:r===`S`?i+=`, scener`:r===`V`?i+=`, voicer`:r===`W`&&(i+=`, wrap`),i===``?t:i}},663:{name:`Audio Sampling Rate`,description:e=>parseInt(L(e),10)+` Hz`},664:{name:`Audio Sampling Resolution`,description:e=>{let t=parseInt(L(e),10);return t+(t===1?` bit`:` bits`)}},665:{name:`Audio Duration`,description:e=>{let t=L(e);return t.length>=6?t.substr(0,2)+`:`+t.substr(2,2)+`:`+t.substr(4,2):t}},666:`Audio Outcue`,698:`Short Document ID`,699:`Unique Document ID`,700:`Owner ID`,712:{name:e=>e.length===2?`ObjectData Preview File Format`:`Record 2 destination`,description:e=>{if(e.length===2){let t=(e[0]<<8)+e[1];return t===0?`No ObjectData`:t===1?`IPTC-NAA Digital Newsphoto Parameter Record`:t===2?`IPTC7901 Recommended Message Format`:t===3?`Tagged Image File Format (Adobe/Aldus Image data)`:t===4?`Illustrator (Adobe Graphics data)`:t===5?`AppleSingle (Apple Computer Inc)`:t===6?`NAA 89-3 (ANPA 1312)`:t===7?`MacBinary II`:t===8?`IPTC Unstructured Character Oriented File Format (UCOFF)`:t===9?`United Press International ANPA 1312 variant`:t===10?`United Press International Down-Load Message`:t===11?`JPEG File Interchange (JFIF)`:t===12?`Photo-CD Image-Pac (Eastman Kodak)`:t===13?`Microsoft Bit Mapped Graphics File [*.BMP]`:t===14?`Digital Audio File [*.WAV] (Microsoft & Creative Labs)`:t===15?`Audio plus Moving Video [*.AVI] (Microsoft)`:t===16?`PC DOS/Windows Executable Files [*.COM][*.EXE]`:t===17?`Compressed Binary File [*.ZIP] (PKWare Inc)`:t===18?`Audio Interchange File Format AIFF (Apple Computer Inc)`:t===19?`RIFF Wave (Microsoft Corporation)`:t===20?`Freehand (Macromedia/Aldus)`:t===21?`Hypertext Markup Language "HTML" (The Internet Society)`:t===22?`MPEG 2 Audio Layer 2 (Musicom), ISO/IEC`:t===23?`MPEG 2 Audio Layer 3, ISO/IEC`:t===24?`Portable Document File (*.PDF) Adobe`:t===25?`News Industry Text Format (NITF)`:t===26?`Tape Archive (*.TAR)`:t===27?`Tidningarnas Telegrambyrå NITF version (TTNITF DTD)`:t===28?`Ritzaus Bureau NITF version (RBNITF DTD)`:t===29?`Corel Draw [*.CDR]`:`Unknown format ${t}`}return L(e)}},713:{name:`ObjectData Preview File Format Version`,description:(e,t)=>{let n={"00":{"00":`1`},"01":{"01":`1`,"02":`2`,"03":`3`,"04":`4`},"02":{"04":`4`},"03":{"01":`5.0`,"02":`6.0`},"04":{"01":`1.40`},"05":{"01":`2`},"06":{"01":`1`},11:{"01":`1.02`},20:{"01":`3.1`,"02":`4.0`,"03":`5.0`,"04":`5.5`},21:{"02":`2.0`}},r=L(e);if(t[`ObjectData Preview File Format`]){let e=L(t[`ObjectData Preview File Format`].value);if(n[e]&&n[e][r])return n[e][r]}return r}},714:`ObjectData Preview Data`,1802:{name:`Size Mode`,description:e=>e[0].toString()},1812:{name:`Max Subfile Size`,description:e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1882:{name:`ObjectData Size Announced`,description:e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1887:{name:`Maximum ObjectData Size`,description:e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}}}};function fo(e){let t=L(e);return t.length>=8?t.substr(0,4)+`-`+t.substr(4,2)+`-`+t.substr(6,2):t}function po(e){let t=L(e),n=t;return t.length>=6&&(n=t.substr(0,2)+`:`+t.substr(2,2)+`:`+t.substr(4,2),t.length===11&&(n+=t.substr(6,1)+t.substr(7,2)+`:`+t.substr(9,2))),n}function mo(e){let t=L(e);return t===`\x1B%G`?`UTF-8`:t===`\x1B%5`?`Windows-1252`:t===`\x1B%/G`?`UTF-8 Level 1`:t===`\x1B%/H`?`UTF-8 Level 2`:t===`\x1B%/I`?`UTF-8 Level 3`:t===`\x1B/A`?`ISO-8859-1`:t===`\x1B/B`?`ISO-8859-2`:t===`\x1B/C`?`ISO-8859-3`:t===`\x1B/D`?`ISO-8859-4`:t===`\x1B/@`?`ISO-8859-5`:t===`\x1B/G`?`ISO-8859-6`:t===`\x1B/F`?`ISO-8859-7`:t===`\x1B/H`?`ISO-8859-8`:`Unknown`}var ho={get:go};function go(){if(typeof TextDecoder<`u`)return TextDecoder}var _o=5,vo={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},yo={decode:bo,TAG_HEADER_SIZE:_o};function bo(e,t){if(typeof t==`string`)return ee(t);let n=ho.get();if(n!==void 0&&e!==void 0)try{return new n(e).decode(t instanceof DataView?t.buffer:Uint8Array.from(t))}catch{}let r=t.map(e=>String.fromCharCode(e)).join(``);try{return decodeURIComponent(escape(r))}catch{return xo(t)}}function xo(e){let t=e instanceof DataView,n=t?e.byteLength:e.length,r=t?t=>e.getUint8(t):t=>e[t],i=Array(n);for(let e=0;e<n;e++){let t=r(e),n=vo[t];i[e]=n===void 0?t:n}return String.fromCharCode.apply(null,i)}var So=943868237,Co=4,wo=2,To=1,Eo=4,Do=12,Oo=1028,ko=5,Ao={read:jo};function jo(e,t,n,r=Ui){try{if(Array.isArray(e))return Io(new DataView(Uint8Array.from(e).buffer),{size:e.length},0,n,r);let{naaBlock:i,dataOffset:a}=Mo(e,t);return Io(e,i,a,n,r)}catch{return{}}}function Mo(e,t){for(;t+Do<=e.byteLength;){let n=No(e,t);if(Po(n))return{naaBlock:n,dataOffset:t+n.headerSize};t+=n.headerSize+n.size+Fo(n)}throw Error(`No IPTC NAA resource block.`)}function No(e,t){if(e.getUint32(t,!1)!==So)throw Error(`Not an IPTC resource block.`);let n=e.getUint8(t+Co+wo),r=(n%2==0?n+1:n)+To;return{headerSize:6+r+Eo,type:e.getUint16(t+Co),size:e.getUint32(t+Co+wo+r)}}function Po(e){return e.type===Oo}function Fo(e){return e.size%2==0?0:1}function Io(e,t,n,r,i){let a={},o,s=n+t.size;for(;n<s&&n<e.byteLength;){let{tag:t,tagSize:s}=Lo(e,n,a,o,r,i);if(t===null)break;t&&(`encoding`in t&&(o=t.encoding),a[t.name]===void 0||t.repeatable===void 0?a[t.name]={id:t.id,value:t.value,description:t.description}:(a[t.name]instanceof Array||(a[t.name]=[{id:a[t.name].id,value:a[t.name].value,description:a[t.name].description}]),a[t.name].push({id:t.id,value:t.value,description:t.description}))),n+=ko+s}return a}function Lo(e,t,n={},r=void 0,i=!1,a=Ui){if(zo(e,t))return{tag:null,tagSize:0};let o=e.getUint16(t+1),s=e.getUint16(t+3);if(!i&&!uo.iptc[o]||!a.shouldParseTag(`iptc`,Ro(o,i),o))return{tag:void 0,tagSize:s};let c=Bo(e,t+ko,s),l={id:o,name:Vo(uo.iptc[o],o,c),value:c,description:Wo(uo.iptc[o],c,n,r)};return qo(o)&&(l.repeatable=!0),Jo(o)&&(l.encoding=uo.iptc[o].encoding_name(c)),{tag:l,tagSize:s}}function Ro(e,t){let n=uo.iptc[e];if(!n)return t?`undefined-${e}`:void 0;if(typeof n==`string`)return n;if(n&&typeof n.name==`string`)return n.name}function zo(e,t){return e.getUint8(t)!==28}function Bo(e,t,n){let r=[];for(let i=0;i<n;i++)r.push(e.getUint8(t+i));return r}function Vo(e,t,n){return e?Ho(e)?e:Uo(e)?e.name(n):e.name:`undefined-${t}`}function Ho(e){return typeof e==`string`}function Uo(e){return typeof e.name==`function`}function Wo(e,t,n,r){if(Ko(e))try{return e.description(t,n)}catch{}return Go(e,t)?yo.decode(r,t):t}function Go(e,t){return e&&t instanceof Array}function Ko(e){return e&&e.description!==void 0}function qo(e){return uo.iptc[e]&&uo.iptc[e].repeatable}function Jo(e){return uo.iptc[e]&&uo.iptc[e].encoding_name!==void 0}var Yo={"tiff:Orientation"(e){return e===`1`?`Horizontal (normal)`:e===`2`?`Mirror horizontal`:e===`3`?`Rotate 180`:e===`4`?`Mirror vertical`:e===`5`?`Mirror horizontal and rotate 270 CW`:e===`6`?`Rotate 90 CW`:e===`7`?`Mirror horizontal and rotate 90 CW`:e===`8`?`Rotate 270 CW`:e},"tiff:ResolutionUnit":e=>Z.ResolutionUnit(parseInt(e,10)),"tiff:XResolution":e=>Xo(Z.XResolution,e),"tiff:YResolution":e=>Xo(Z.YResolution,e),"exif:ApertureValue":e=>Xo(Z.ApertureValue,e),"exif:GPSLatitude":$o,"exif:GPSLongitude":$o,"exif:FNumber":e=>Xo(Z.FNumber,e),"exif:FocalLength":e=>Xo(Z.FocalLength,e),"exif:FocalPlaneResolutionUnit":e=>Z.FocalPlaneResolutionUnit(parseInt(e,10)),"exif:ColorSpace":e=>Z.ColorSpace(Zo(e)),"exif:ComponentsConfiguration"(e,t){if(/^\d, \d, \d, \d$/.test(t)){let e=t.split(`, `).map(e=>e.charCodeAt(0));return Z.ComponentsConfiguration(e)}return t},"exif:Contrast":e=>Z.Contrast(parseInt(e,10)),"exif:CustomRendered":e=>Z.CustomRendered(parseInt(e,10)),"exif:ExposureMode":e=>Z.ExposureMode(parseInt(e,10)),"exif:ExposureProgram":e=>Z.ExposureProgram(parseInt(e,10)),"exif:ExposureTime"(e){return Qo(e)?Z.ExposureTime(e.split(`/`).map(e=>parseInt(e,10))):e},"exif:MeteringMode":e=>Z.MeteringMode(parseInt(e,10)),"exif:Saturation":e=>Z.Saturation(parseInt(e,10)),"exif:SceneCaptureType":e=>Z.SceneCaptureType(parseInt(e,10)),"exif:Sharpness":e=>Z.Sharpness(parseInt(e,10)),"exif:ShutterSpeedValue":e=>Xo(Z.ShutterSpeedValue,e),"exif:WhiteBalance":e=>Z.WhiteBalance(parseInt(e,10))};function Xo(e,t){return Qo(t)?e(t.split(`/`)):t}function Zo(e){return e.substring(0,2)===`0x`?parseInt(e.substring(2),16):parseInt(e,10)}function Qo(e){return/^-?\d+\/-?\d+$/.test(e)}function $o(e){let[t,n]=e.split(`,`);if(t!==void 0&&n!==void 0){let e=parseFloat(t),r=parseFloat(n),i=n.charAt(n.length-1);if(!Number.isNaN(e)&&!Number.isNaN(r))return``+(e+r/60)+i}return e}var es={get:ts};function ts(e){if(e)return e;if(typeof DOMParser<`u`)return new DOMParser;try{let{DOMParser:e,onErrorStopParsing:t}=__non_webpack_require__(`@xmldom/xmldom`);return new e({onError:t})}catch{return}}function ns(e){let t=[`prefix is non-null and namespace is null`,`prefix not bound to a namespace`,`prefix inte bundet till en namnrymd`,/Namespace prefix .+ is not defined/];for(let n=0;n<t.length;n++)if(new RegExp(t[n]).test(e.message))return!0;return!1}function rs(e){let t=is(e);if(t===-1)return e;let{insertionIndex:n,attributeValueSpans:r}=as(e,t+1);if(n===-1)return e;let i=cs(e,t,n,r),a=us(e).filter(e=>i[e]===void 0);if(a.length===0)return e;let o=fs(a);return e.slice(0,n)+o+e.slice(n)}function is(e){let t=0;for(;t<e.length;){if(t=e.indexOf(`<`,t),t===-1)return-1;if(/[A-Za-z_]/.test(e.charAt(t+1)))return t;os(e,`<!--`,t)?t=ss(e,t+4,`-->`):os(e,`<![CDATA[`,t)?t=ss(e,t+9,`]]>`):e.charAt(t+1)===`?`?t=ss(e,t+2,`?>`):t++}return-1}function as(e,t){let n=[],r,i;for(let a=t;a<e.length;a++){let t=e.charAt(a);if(r!==void 0)t===r&&(n.push({start:i,end:a}),r=void 0);else if(t===`"`||t===`'`)r=t,i=a+1;else if(t===`>`)return e.charAt(a-1)===`/`?{insertionIndex:a-1,attributeValueSpans:n}:{insertionIndex:a,attributeValueSpans:n}}return{insertionIndex:-1,attributeValueSpans:n}}function os(e,t,n){return e.slice(n,n+t.length)===t}function ss(e,t,n){let r=e.indexOf(n,t);return r===-1?e.length:r+n.length}function cs(e,t,n,r){let i=Object.create(null),a=/xmlns:([A-Za-z_][A-Za-z0-9._-]*)\s*=\s*["']([^"']*)["']/g,o,s=0;for(;(o=a.exec(e))!==null;){for(;s<r.length&&r[s].end<=o.index;)s++;if(s<r.length&&r[s].start<=o.index){a.lastIndex=r[s].end;continue}(o[2]!==``||ls(o.index,t,n))&&(i[o[1]]=!0)}return i}function ls(e,t,n){return e>t&&e<n}function us(e){let t=[],n=Object.create(null),r=/(?:^|[^A-Za-z0-9._-])([A-Za-z_][A-Za-z0-9._-]*):[A-Za-z_][A-Za-z0-9._-]*/g,i;for(;(i=r.exec(e))!==null;){let e=i[1];e!==`xmlns`&&e!==`xml`&&n[e]===void 0&&(n[e]=!0,t.push(e))}return t}var ds={xmp:`http://ns.adobe.com/xap/1.0/`,tiff:`http://ns.adobe.com/tiff/1.0/`,exif:`http://ns.adobe.com/exif/1.0/`,dc:`http://purl.org/dc/elements/1.1/`,xmpMM:`http://ns.adobe.com/xap/1.0/mm/`,stEvt:`http://ns.adobe.com/xap/1.0/sType/ResourceEvent#`,stRef:`http://ns.adobe.com/xap/1.0/sType/ResourceRef#`,photoshop:`http://ns.adobe.com/photoshop/1.0/`};function fs(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];t.push(` xmlns:`+r+`="`+ps(r)+`"`)}return t.join(``)}function ps(e){return Object.prototype.hasOwnProperty.call(ds,e)?ds[e]:`http://fallback.namespace/`+e}var ms={read:gs},hs=class extends Error{constructor(e){super(e),this.name=`ParseError`}};function gs(e,t,n){let r={};if(typeof e==`string`)return bs(r,e,n),r;let[i,a]=_s(e,t),o=bs(r,i,n);if(a){let i=bs(r,a,n);!o&&!i&&(delete r._raw,bs(r,vs(e,t),n))}return r}function _s(e,t){if(t.length===0)return[];let n=[vs(e,t.slice(0,1))];return t.length>1&&n.push(vs(e,t.slice(1))),n}function vs(e,t){let n=t.map(t=>ys(e,t)),r=n.reduce((e,t)=>e+t.length,0),i=new Uint8Array(r),a=0;for(let e=0;e<n.length;e++)i.set(n[e],a),a+=n[e].length;return new DataView(i.buffer)}function ys(e,t){let n=e.byteLength,r=e.byteOffset||0,i=Math.min(Math.max(t.dataOffset,0),n),a=Math.min(i+Math.max(t.length,0),n);return new Uint8Array(e.buffer.slice(r+i,r+a))}function bs(e,t,n){try{let{doc:r,raw:i,decodeValue:a}=xs(t,n);return e._raw=(e._raw||``)+i,V(e,Is(Os(Ds(r),!0,a))),!0}catch{return!1}}function xs(e,t){let n=es.get(t);if(!n)throw console.warn(`Warning: DOMParser is not available. It is needed to be able to parse XMP tags.`),Error();let{xmlString:r,decodeValue:i}=Ss(e);return{doc:Es(n,Ts(r)),raw:r,decodeValue:i}}function Ss(e){if(typeof e==`string`)return Cs(e);let t=ho.get();if(t!==void 0)try{return{xmlString:new t(`utf-8`,{fatal:!0}).decode(e),decodeValue:ws}}catch{}return Cs(N(e,0,e.byteLength))}function Cs(e){let t=R(e);return t===void 0?{xmlString:e,decodeValue:ee}:{xmlString:t,decodeValue:ws}}function ws(e){return e}function Ts(e){return e.replace(/^.+(<\?xpacket begin)/,`$1`).replace(/(<\?xpacket end=".*"\?>).+$/,`$1`)}function Es(e,t,n=!1){try{let n=e.parseFromString(t,`application/xml`),r=n.getElementsByTagName(`parsererror`);if(r.length>0)throw new hs(r[0].textContent);return n}catch(r){if(r.name===`ParseError`&&ns(r)&&!n)return Es(e,rs(t),!0);throw r}}function Ds(e){for(let t=0;t<e.childNodes.length;t++){if(e.childNodes[t].tagName===`x:xmpmeta`)return Ds(e.childNodes[t]);if(e.childNodes[t].tagName===`rdf:RDF`)return e.childNodes[t]}throw Error()}function Os(e,t,n){let r=ks(e);return As(r)?t?{}:n(js(r[0])):Ms(r,n)}function ks(e){let t=[];for(let n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t}function As(e){return e.length===1&&e[0].nodeName===`#text`}function js(e){return e.nodeValue}function Ms(e,t){let n=Object.create(null);return e.forEach(e=>{if(Ns(e)){let r=Ps(e,t);n[e.nodeName]===void 0?n[e.nodeName]=r:(Array.isArray(n[e.nodeName])||(n[e.nodeName]=[n[e.nodeName]]),n[e.nodeName].push(r))}}),n}function Ns(e){return e.nodeName&&e.nodeName!==`#text`}function Ps(e,t){return{attributes:Fs(e,t),value:Os(e,!1,t)}}function Fs(e,t){let n={};for(let r=0;r<e.attributes.length;r++)H(n,e.attributes[r].nodeName,t(e.attributes[r].value));return n}function Is(e){let t={};if(typeof e==`string`)return e;for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]),r.forEach(e=>{V(t,Ls(e.attributes)),typeof e.value==`object`&&V(t,Ks(e.value))})}return t}function Ls(e){let t={};for(let n in e)try{Rs(n)&&H(t,Bs(n),{value:e[n],attributes:{},description:Vs(e[n],n)})}catch{}return t}function Rs(e){return e!==`rdf:parseType`&&!zs(e)}function zs(e){return e.split(`:`)[0]===`xmlns`}function Bs(e){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(e)?`RatingPercent`:e.split(`:`)[1]}function Vs(e,t=void 0){if(Array.isArray(e)){let n=Hs(e);if(Us(t))try{let r=Yo[t](e,n);if(typeof r==`string`)return r}catch{}return n}if(typeof e==`object`)return Ws(e);if(Us(t))try{return Yo[t](e)}catch{return e}return e}function Hs(e){return e.map(e=>e.value===void 0?Vs(e):Vs(e.value)).join(`, `)}function Us(e){return Object.prototype.hasOwnProperty.call(Yo,e)&&typeof Yo[e]==`function`}function Ws(e){let t=[];for(let n in e)t.push(`${Gs(n)}: ${Vs(e[n].value)}`);return t.join(`; `)}function Gs(e){return e===`CiAdrCity`?`CreatorCity`:e===`CiAdrCtry`?`CreatorCountry`:e===`CiAdrExtadr`?`CreatorAddress`:e===`CiAdrPcode`?`CreatorPostalCode`:e===`CiAdrRegion`?`CreatorRegion`:e===`CiEmailWork`?`CreatorWorkEmail`:e===`CiTelWork`?`CreatorWorkPhone`:e===`CiUrlWork`?`CreatorWorkUrl`:e}function Ks(e,t={}){for(let n in e)try{zs(n)||H(t,Bs(n),qs(e[n],n))}catch{}return t}function qs(e,t){return Ys(e)?Xs(e,t):Js(e)?{value:``,attributes:{},description:``}:Zs(e)?Qs(e,t):ic(e)?ac(e,t):oc(e)?sc(e,t):cc(e)?uc(e,t):fc(e,t)}function Js(e){return e.attributes[`rdf:parseType`]===`Resource`&&typeof e.value==`string`&&e.value.trim()===``}function Ys(e){return Array.isArray(e)}function Xs(e,t){return fc(e[e.length-1],t)}function Zs(e){return e.attributes[`rdf:parseType`]===`Resource`&&e.value[`rdf:value`]!==void 0||e.value[`rdf:Description`]!==void 0&&e.value[`rdf:Description`].value[`rdf:value`]!==void 0}function Qs(e,t){let n=$s(e);e.value[`rdf:Description`]!==void 0&&(e=e.value[`rdf:Description`]),V(n,$s(e),ec(e));let r=tc(e);return{value:r,attributes:n,description:Vs(r,t)}}function $s(e){let t={};for(let n in e.attributes)n!==`rdf:parseType`&&n!==`rdf:resource`&&!zs(n)&&H(t,Bs(n),e.attributes[n]);return t}function ec(e){let t={};for(let n in e.value)n!==`rdf:value`&&!zs(n)&&H(t,Bs(n),e.value[n].value);return t}function tc(e){let t=nc(e.value[`rdf:value`]);return pc(t)||rc(t)}function nc(e){return Ys(e)?e[e.length-1]:e}function rc(e){return cc(e)?uc(e).value:typeof e.value==`object`?Ks(e.value,Object.create(null)):e.value}function ic(e){return e.attributes[`rdf:parseType`]===`Resource`||e.value[`rdf:Description`]!==void 0&&e.value[`rdf:Description`].value[`rdf:value`]===void 0}function ac(e,t){let n={value:{},attributes:{}};return e.value[`rdf:Description`]!==void 0&&(V(n.value,Ls(e.value[`rdf:Description`].attributes)),V(n.attributes,$s(e)),e=e.value[`rdf:Description`]),V(n.value,Ks(e.value)),n.description=Vs(n.value,t),n}function oc(e){return Object.keys(e.value).length===0&&e.attributes[`xml:lang`]===void 0&&e.attributes[`rdf:resource`]===void 0}function sc(e,t){let n=Ls(e.attributes);return{value:n,attributes:{},description:Vs(n,t)}}function cc(e){return lc(e.value)!==void 0}function lc(e){return nc(e[`rdf:Bag`]||e[`rdf:Seq`]||e[`rdf:Alt`])}function uc(e,t){let n=lc(e.value).value[`rdf:li`],r=$s(e),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(e=>{i.push(dc(e))}),{value:i,attributes:r,description:Vs(i,t)}}function dc(e){return Zs(e)?Qs(e):ic(e)?ac(e).value:oc(e)?sc(e).value:fc(e)}function fc(e,t){let n=pc(e)||Is(e.value);return{value:n,attributes:$s(e),description:Vs(n,t)}}function pc(e){return e.attributes&&e.attributes[`rdf:resource`]}var mc={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},hc=24,gc={2e3:{name:`PathInformation`,description:_c},2999:{name:`ClippingPathName`,description(e){let[,t]=I(e,0);return t}}};function _c(e){let t={},n=[];for(let r=0;r<e.byteLength;r+=26){let i=Q.getShortAt(e,r);vc[i]&&(t[i]||(t[i]=vc[i].description),n.push({type:i,path:vc[i].path(e,r+2)}))}return JSON.stringify({types:t,paths:n})}var vc={[mc.CLOSED_SUBPATH_LENGTH]:{description:`Closed subpath length`,path:(e,t)=>[Q.getShortAt(e,t)]},[mc.CLOSED_SUBPATH_BEZIER_LINKED]:{description:`Closed subpath Bezier knot, linked`,path:yc},[mc.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:`Closed subpath Bezier knot, unlinked`,path:yc},[mc.OPEN_SUBPATH_LENGTH]:{description:`Open subpath length`,path:(e,t)=>[Q.getShortAt(e,t)]},[mc.OPEN_SUBPATH_BEZIER_LINKED]:{description:`Open subpath Bezier knot, linked`,path:yc},[mc.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:`Open subpath Bezier knot, unlinked`,path:yc},[mc.FILL_RULE]:{description:`Path fill rule`,path:()=>[]},[mc.INITIAL_FILL_RULE]:{description:`Initial fill rule`,path:(e,t)=>[Q.getShortAt(e,t)]},[mc.CLIPBOARD]:{description:`Clipboard`,path:xc}};function yc(e,t){let n=[];for(let r=0;r<hc;r+=8)n.push(bc(e,t+r));return n}function bc(e,t){let n=Sc(e,t,8);return[Sc(e,t+4,8),n]}function xc(e,t){return[[Sc(e,t,8),Sc(e,t+4,8),Sc(e,t+8,8),Sc(e,t+12,8)],Sc(e,t+16,8)]}function Sc(e,t,n){let r=Q.getLongAt(e,t),i=r>>>31?-1:1,a=(r&2130706432)>>>32-n,o=r&parseInt(ie(`1`,32-n),2);return i*re(a.toString(2)+`.`+ne(o.toString(2),32-n,`0`),2)}var Cc={read:kc},wc=`8BIM`,Tc=2,Ec=4,Dc=4,Oc=12;function kc(e,t,n=Ui){if(!Array.isArray(e))return{};let r=M(new Uint8Array(e).buffer),i={},a=0;for(;a+Oc<=r.byteLength;){let e=N(r,a,Dc);a+=Dc;let o=Q.getShortAt(r,a);a+=Tc;let{tagName:s,tagNameSize:c}=jc(r,a);if(a+=c,a+Ec>r.byteLength)break;let l=Q.getLongAt(r,a);a+=Ec;let u=Math.min(l,r.byteLength-a);if(e===wc){let e=Ac(o,s,t);if(!n.shouldParseTag(`photoshop`,e,o)){a+=u+u%2;continue}let c=M(r.buffer,a,u),l={id:o,value:N(c,0,u)};if(gc[o]){try{l.description=gc[o].description(c)}catch{l.description=`<no description formatter>`}i[s||gc[o].name]=l}else t&&(i[`undefined-${o}`]=l)}a+=u+u%2}return i}function Ac(e,t,n){if(t)return t;if(gc[e]&&gc[e].name)return gc[e].name;if(n)return`undefined-${e}`}function jc(e,t){let[n,r]=I(e,t);return{tagName:r,tagNameSize:1+n+ +(n%2==0)}}var Mc={desc:{name:`ICC Description`},cprt:{name:`ICC Copyright`},dmdd:{name:`ICC Device Model Description`},vued:{name:`ICC Viewing Conditions Description`},dmnd:{name:`ICC Device Manufacturer for Display`},tech:{name:`Technology`}},Nc={4:{name:`Preferred CMM type`,value:(e,t)=>N(e,t,4),description:e=>e===null?``:Lc(e)},8:{name:`Profile Version`,value:(e,t)=>e.getUint8(t).toString(10)+`.`+(e.getUint8(t+1)>>4).toString(10)+`.`+(e.getUint8(t+1)%16).toString(10)},12:{name:`Profile/Device class`,value:(e,t)=>N(e,t,4),description:e=>{switch(e.toLowerCase()){case`scnr`:return`Input Device profile`;case`mntr`:return`Display Device profile`;case`prtr`:return`Output Device profile`;case`link`:return`DeviceLink profile`;case`abst`:return`Abstract profile`;case`spac`:return`ColorSpace profile`;case`nmcl`:return`NamedColor profile`;case`cenc`:return`ColorEncodingSpace profile`;case`mid `:return`MultiplexIdentification profile`;case`mlnk`:return`MultiplexLink profile`;case`mvis`:return`MultiplexVisualization profile`;default:return e}}},16:{name:`Color Space`,value:(e,t)=>N(e,t,4)},20:{name:`Connection Space`,value:(e,t)=>N(e,t,4)},24:{name:`ICC Profile Date`,value:(e,t)=>Pc(e,t).toISOString()},36:{name:`ICC Signature`,value:(e,t)=>Ic(e.buffer.slice(t,t+4))},40:{name:`Primary Platform`,value:(e,t)=>N(e,t,4),description:e=>Lc(e)},48:{name:`Device Manufacturer`,value:(e,t)=>N(e,t,4),description:e=>Lc(e)},52:{name:`Device Model Number`,value:(e,t)=>N(e,t,4)},64:{name:`Rendering Intent`,value:(e,t)=>e.getUint32(t),description:e=>{switch(e){case 0:return`Perceptual`;case 1:return`Relative Colorimetric`;case 2:return`Saturation`;case 3:return`Absolute Colorimetric`;default:return e}}},80:{name:`Profile Creator`,value:(e,t)=>N(e,t,4)}};function Pc(e,t){let n=e.getUint16(t),r=e.getUint16(t+2)-1,i=e.getUint16(t+4),a=e.getUint16(t+6),o=e.getUint16(t+8),s=e.getUint16(t+10);return new Date(Date.UTC(n,r,i,a,o,s))}var Fc=8192;function Ic(e){let t=new Uint8Array(e),n=[];for(let e=0;e<t.length;e+=Fc)n.push(String.fromCharCode.apply(null,t.subarray(e,e+Fc)));return n.join(``)}function Lc(e){switch(e.toLowerCase()){case`appl`:return`Apple`;case`adbe`:return`Adobe`;case`msft`:return`Microsoft`;case`sunw`:return`Sun Microsystems`;case`sgi`:return`Silicon Graphics`;case`tgnt`:return`Taligent`;default:return e}}var Rc={read:$c},zc=84,Bc=128,Vc=`acsp`,Hc=`desc`,Uc=`mluc`,Wc=`text`,Gc=`sig `,Kc=12,qc=12,Jc=12,Yc=16,Xc=1e3,Zc=1e3,Qc=1048576;function $c(e,t,n,r){return n&&t[0].compressionMethod!==void 0?el(e,t,r):nl(e,t)}function el(e,t,n){if(!tl(t[0].compressionMethod))return{};let r=e.byteOffset||0,i=e.buffer.slice(r+t[0].offset,r+t[0].offset+t[0].length);return se(new DataView(new Uint8Array(i).buffer),t[0].compressionMethod,`utf-8`,`dataview`,n).then(sl).catch(()=>({}))}function tl(e){return e===0}function nl(e,t){try{let n=rl(e),r=e.byteOffset||0,i=t.reduce((e,t)=>e+t.length,0),a=Math.min(i,n.byteLength),o=new Uint8Array(a),s=0,c=il(t);for(let e=1;e<=t.length;e++){let t=c[e];if(!t)throw Error(`ICC chunk ${e} not found`);let i=n.slice(r+t.offset,r+t.offset+t.length),a=new Uint8Array(i);o.set(a,s),s+=a.length}return sl(new DataView(o.buffer))}catch{return{}}}function rl(e){return Array.isArray(e)?new DataView(Uint8Array.from(e).buffer).buffer:e.buffer}function il(e){let t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].chunkNumber]===void 0&&(t[e[n].chunkNumber]=e[n]);return t}function al(e){return e.byteLength<132}function ol(e,t){return e.byteLength<t+Kc}function sl(e){let t=e.buffer,n=e.getUint32();if(e.byteLength!==n)throw Error(`ICC profile length not matching`);if(e.byteLength<zc)throw Error(`ICC profile too short`);let r={},i=Object.keys(Nc);for(let t=0;t<i.length;t++){let n=i[t],a=Nc[n],o=a.value(e,parseInt(n,10)),s=o;a.description&&(s=a.description(o)),r[a.name]={value:o,description:s}}if(Ic(t.slice(36,40))!==Vc)throw Error(`ICC profile: missing signature`);if(al(e))return r;let a=Math.min(e.getUint32(Bc),Zc),o=132,s={remaining:Math.min(e.byteLength,Qc)};for(let n=0;n<a;n++){if(ol(e,o))return r;let n=N(e,o,4),i=e.getUint32(o+4),a=e.getUint32(o+8);if(i>e.byteLength)return r;let c=N(e,i,4);if(c===Hc){if(i+qc>e.byteLength)return r;let t=e.getUint32(i+8);if(t>a)return r;ll(r,n,cl(e,i+12,t-1,s))}else if(c===Uc){if(i+Yc>e.byteLength)return r;let t=e.getUint32(i+8),o=e.getUint32(i+12);if(o<Jc||t>Xc)return r;let c=t*o;if(c>e.byteLength-i-Yc||c>s.remaining)return r;s.remaining-=c;let l=Math.min(a,e.byteLength-i),u=i+Yc,d=[];for(let n=0;n<t;n++){let t=N(e,u+0,2),n=N(e,u+2,2),r=e.getUint32(u+4),a=e.getUint32(u+8),c=Math.max(0,l-a),f=Math.min(r,c,s.remaining);s.remaining-=f;let p=F(e,i+a,f);d.push({languageCode:t,countryCode:n,text:p}),u+=o}if(t===1)ll(r,n,d[0].text);else{let e={};for(let t=0;t<d.length;t++)e[`${d[t].languageCode}-${d[t].countryCode}`]=d[t].text;ll(r,n,e)}}else if(c===Wc){let t=cl(e,i+8,a-8,s),o=t.indexOf(`\0`);ll(r,n,o===-1?t:t.slice(0,o))}else c===Gc&&ll(r,n,Ic(t.slice(i+8,i+12)));o+=12}return r}function cl(e,t,n,r){let i=Math.max(0,Math.min(n,e.byteLength-t,r.remaining));return r.remaining-=i,Ic(e.buffer.slice(t,t+i))}function ll(e,t,n){Mc[t]?e[Mc[t].name]={value:n,description:n}:e[t]={value:n,description:n}}var ul=27,dl=22,fl={read:pl,SHOT_INFO_AUTO_ROTATE:ul,CAMERA_SETTINGS_LENS_TYPE:dl};function pl(e,t,n,r,i,a=!1,o=void 0){let s=ia(e,vi,t,t+n,r,i,a,o,`makerNotes`);return s.ShotInfo&&(s=V({},s,ml(s.ShotInfo.value)),delete s.ShotInfo),s.CameraSettings&&(s=V({},s,hl(s.CameraSettings.value)),delete s.CameraSettings),s}function ml(e){let t={};return e[ul]!==void 0&&(t.AutoRotate={value:e[ul],description:gl(e[ul])}),t}function hl(e){let t={};if(!Array.isArray(e))return t;let n=e[dl];return Number.isFinite(n)&&(t.LensType={value:n,description:`${n}`}),t}function gl(e){return e===0?`None`:e===1?`Rotate 90 CW`:e===2?`Rotate 180`:e===3?`Rotate 270 CW`:`Unknown`}var _l=8,vl=10,yl={K3_III:78420},bl={CAMERA_ORIENTATION:1,ROLL_ANGLE:3,PITCH_ANGLE:5},xl={read:Sl,PENTAX_IFD_OFFSET:vl,MODEL_ID:yl,LIK3III:bl};function Sl(e,t,n,r,i=!1,a=void 0){try{let o=J.getByteOrder(e,t+n+_l),s=t+n,c=ia(e,yi,s,s+vl,o,r,i,a,`makerNotes`);return Cl(c)&&(c=V({},c,wl(e,s+c.LevelInfo.__offset,o)),delete c.LevelInfo),c}catch{return{}}}function Cl(e){return e.PentaxModelID&&e.PentaxModelID.value===yl.K3_III&&e.LevelInfo}function wl(e,t,n){let r={};if(t+7>e.byteLength)return r;let i=e.getInt8(t+bl.CAMERA_ORIENTATION);r.CameraOrientation={value:i,description:Tl(i)};let a=e.getInt16(t+bl.ROLL_ANGLE,n===J.LITTLE_ENDIAN);r.RollAngle={value:a,description:El(a)};let o=e.getInt16(t+bl.PITCH_ANGLE,n===J.LITTLE_ENDIAN);return r.PitchAngle={value:o,description:Dl(o)},r}function Tl(e){return e===0?`Horizontal (normal)`:e===1?`Rotate 270 CW`:e===2?`Rotate 180`:e===3?`Rotate 90 CW`:e===4?`Upwards`:e===5?`Downwards`:`Unknown`}function El(e){return``+e*-.5}function Dl(e){return``+e*-.5}var Ol={read:Ml},kl={0:`Grayscale`,2:`RGB`,3:`Palette`,4:`Grayscale with Alpha`,6:`RGB with Alpha`},Al={0:`Noninterlaced`,1:`Adam7 Interlace`},jl=[{name:`Image Width`,offset:0,size:4,read:Q.getLongAt,description:e=>`${e}px`},{name:`Image Height`,offset:4,size:4,read:Q.getLongAt,description:e=>`${e}px`},{name:`Bit Depth`,offset:8,size:1,read:Q.getByteAt,description:e=>`${e}`},{name:`Color Type`,offset:9,size:1,read:Q.getByteAt,description:e=>kl[e]||`Unknown`},{name:`Compression`,offset:10,size:1,read:Q.getByteAt,description:e=>e===0?`Deflate/Inflate`:`Unknown`},{name:`Filter`,offset:11,size:1,read:Q.getByteAt,description:e=>e===0?`Adaptive`:`Unknown`},{name:`Interlace`,offset:12,size:1,read:Q.getByteAt,description:e=>Al[e]||`Unknown`}];function Ml(e,t){let n={};for(let r=0;r<jl.length;r++)n[jl[r].name]=Nl(e,t,jl[r]);return n}function Nl(e,t,n){if(t+n.offset+n.size>e.byteLength)return;let r=n.read(e,t+n.offset);return{value:r,description:n.description(r)}}var Pl={read:Ul},Fl=`STATE_KEYWORD`,Il=`STATE_COMPRESSION`,Ll=`STATE_LANG`,Rl=`STATE_TRANSLATED_KEYWORD`,zl=`STATE_TEXT`,Bl=1,Vl=1,Hl=6;function Ul(e,t,n,r,i=!1,a=Ui,o){let s={},c=[];for(let l=0;l<t.length;l++){let{offset:u,length:d,type:f}=t[l],p=Wl(e,u,d,f,n,o);if(p instanceof Promise)c.push(p.then(({name:e,value:t,description:n})=>{try{if(q.USE_EXIF&&Ql(e,t))return a.shouldParseGroup(`exif`)?{__exif:ba.read(eu(t),Hl,r,i,a).tags}:{};if(q.USE_IPTC&&$l(e,t))return a.shouldParseGroup(`iptc`)?{__iptc:Ao.read(eu(t),0,r,a)}:{};if(e&&!Ql(e,t)&&!$l(e,t))return a.shouldParseGroup(`png`)?{[e]:{value:t,description:n}}:{}}catch{}return{}}));else{let{name:e,value:t,description:n}=p;e&&a.shouldParseGroup(`png`)&&(s[e]={value:t,description:n})}}return{readTags:s,readTagsPromise:c.length>0?Promise.all(c):void 0}}function Wl(e,t,n,r,i,a){let o=[],s=[],c=[],l,u=Fl,d,f=e.byteOffset||0;for(let i=0;i<n&&t+i<e.byteLength;i++){if(u===Il){d=Gl({type:r,dataView:e,offset:t+i}),r===`iTXt`&&(i+=Bl),u=Kl(r,u);continue}if(u===zl){let r=e.buffer.slice(f+t+i,f+t+n);l=new DataView(new Uint8Array(r).buffer);break}let a=e.getUint8(t+i);a===0?u=Kl(r,u):u===Fl?o.push(a):u===Ll?s.push(a):u===Rl&&c.push(a)}if(d!==void 0&&!i)return{};let p=se(l,d,ql(r),`string`,a);return p instanceof Promise?p.then(e=>Jl(e,r,s,o)).catch(()=>Jl(`<text using unknown compression>`.split(``),r,s,o)):Jl(p,r,s,o)}function Gl({type:e,dataView:t,offset:n}){if(e===`iTXt`){if(n+1<t.byteLength&&t.getUint8(n)===Vl)return t.getUint8(n+1)}else if(e===`zTXt`)return t.getUint8(n)}function Kl(e,t){return t===Fl&&[`iTXt`,`zTXt`].includes(e)?Il:t===Il?e===`iTXt`?Ll:zl:t===Ll?Rl:zl}function ql(e){return e===`tEXt`||e===`zTXt`?`latin1`:`utf-8`}function Jl(e,t,n,r){let i=Xl(e);return{name:Yl(t,n,r),value:i,description:t===`iTXt`?Zl(e):i}}function Yl(e,t,n){let r=L(n);return e===`tEXt`||t.length===0?r:`${r} (${L(t)})`}function Xl(e){return e instanceof DataView?N(e,0,e.byteLength):e}function Zl(e){return yo.decode(`UTF-8`,e)}function Ql(e,t){return e.toLowerCase()===`raw profile type exif`&&t.substring(1,5)===`exif`}function $l(e,t){return e.toLowerCase()===`raw profile type iptc`&&t.substring(1,5)===`iptc`}function eu(e){return tu(e.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/)[2].replace(/\n/g,``))}function tu(e){let t=new DataView(new ArrayBuffer(e.length/2));for(let n=0;n<e.length;n+=2)t.setUint8(n/2,parseInt(e.substring(n,n+2),16));return t}var nu={read:ru};function ru(e,t){let n={};for(let r=0;r<t.length;r++){let i=Q.getLongAt(e,t[r]+0),a=N(e,t[r]+4,4);a===`pHYs`?(n[`Pixels Per Unit X`]=iu(e,t[r],i),n[`Pixels Per Unit Y`]=au(e,t[r],i),n[`Pixel Units`]=ou(e,t[r],i)):a===`tIME`&&(n[`Modify Date`]=su(e,t[r],i))}return n}function iu(e,t,n){if(!cu(e,t,n,0,4))return;let r=Q.getLongAt(e,t+8+0);return{value:r,description:``+r}}function au(e,t,n){if(!cu(e,t,n,4,4))return;let r=Q.getLongAt(e,t+8+4);return{value:r,description:``+r}}function ou(e,t,n){if(!cu(e,t,n,8,1))return;let r=Q.getByteAt(e,t+8+8);return{value:r,description:r===1?`meters`:`Unknown`}}function su(e,t,n){if(!cu(e,t,n,0,7))return;let r=Q.getShortAt(e,t+8),i=Q.getByteAt(e,t+8+2),a=Q.getByteAt(e,t+8+3),o=Q.getByteAt(e,t+8+4),s=Q.getByteAt(e,t+8+5),c=Q.getByteAt(e,t+8+6);return{value:[r,i,a,o,s,c],description:`${lu(r,4)}-${lu(i,2)}-${lu(a,2)} ${lu(o,2)}:${lu(s,2)}:${lu(c,2)}`}}function cu(e,t,n,r,i){return r+i<=n&&t+8+r+i<=e.byteLength}function lu(e,t){return ne(``+e,t,`0`)}var uu={read:mu},du=4,fu=7,pu=10;function mu(e,t){let n={};if(t+pu>e.byteLength)return n;let r=Q.getByteAt(e,t);return n.Alpha=hu(r),n.Animation=gu(r),n.ImageWidth=_u(e,t+du),n.ImageHeight=_u(e,t+fu),n}function hu(e){let t=e&16;return{value:+!!t,description:t?`Yes`:`No`}}function gu(e){let t=e&2;return{value:+!!t,description:t?`Yes`:`No`}}function _u(e,t){let n=Q.getByteAt(e,t)+256*Q.getByteAt(e,t+1)+65536*Q.getByteAt(e,t+2)+1;return{value:n,description:n+`px`}}var vu={read:xu},yu=e=>`${e} ${e===1?`bit`:`bits`}`,bu=[{name:`GIF Version`,offset:3,size:3,getValue:(e,t)=>N(e,t,3),description:e=>e},{name:`Image Width`,offset:6,size:2,getValue:(e,t)=>e.getUint16(t,!0),description:e=>`${e}px`},{name:`Image Height`,offset:8,size:2,getValue:(e,t)=>e.getUint16(t,!0),description:e=>`${e}px`},{name:`Global Color Map`,offset:10,size:1,getValue:(e,t)=>(e.getUint8(t)&128)>>>7,description:e=>e===1?`Yes`:`No`},{name:`Bits Per Pixel`,offset:10,size:1,getValue:(e,t)=>(e.getUint8(t)&7)+1,description:yu},{name:`Color Resolution Depth`,offset:10,size:1,getValue:(e,t)=>((e.getUint8(t)&112)>>>4)+1,description:yu}];function xu(e){let t={};for(let n=0;n<bu.length;n++)t[bu[n].name]=Su(e,bu[n]);return t}function Su(e,t){if(t.offset+t.size>e.byteLength)return;let n=t.getValue(e,t.offset);return{value:n,description:t.description(n)}}var Cu=[6,7,99],wu={get:Tu};function Tu(e,t,n){if(Eu(t)){let r=n+t.JPEGInterchangeFormat.value,i=t.JPEGInterchangeFormatLength.value;if(Du(e,r,i)){t.type=`image/jpeg`;let n=e.byteOffset||0;t.image=e.buffer.slice(n+r,n+r+i),U(t,`base64`,function(){return W(this.image)})}}return t}function Eu(e){return e&&(e.Compression===void 0||Cu.includes(e.Compression.value))&&e.JPEGInterchangeFormat&&e.JPEGInterchangeFormat.value&&e.JPEGInterchangeFormatLength&&e.JPEGInterchangeFormatLength.value}function Du(e,t,n){return Ou(t)&&Ou(n)&&t+n<=e.byteLength}function Ou(e){return typeof e==`number`&&e>=0&&e%1==0}var ku={INCHES:2,CENTIMETERS:3,MILLIMETERS:4},Au={INCHES_TO_MM:25.4,CM_TO_MM:10,MM_TO_MM:1},ju={get:Mu};function Mu(e,t){let n={},r=!1,i=Nu(e,`exif`,`FocalLength`,t),a=Nu(e,`exif`,`FocalPlaneXResolution`,t),o=Nu(e,`exif`,`FocalPlaneYResolution`,t),s=Nu(e,`exif`,`FocalPlaneResolutionUnit`,t),c=Nu(e,`file`,`Image Width`,t),l=Nu(e,`file`,`Image Height`,t),u=Nu(e,`exif`,`FocalLengthIn35mmFilm`,t)||Pu(a,o,s,c,l,i);u&&(n.FocalLength35efl={value:u,description:Z.FocalLengthIn35mmFilm(u)},r=!0);let d=Fu(i,u);d&&(n.ScaleFactorTo35mmEquivalent=d,r=!0);let f=Iu(u);if(f&&(n.FieldOfView=f,r=!0),r)return n}function Nu(e,t,n,r){if(r&&e[t]&&e[t][n])return e[t][n].value;if(!r&&e[n])return e[n].value}function Pu(e,t,n,r,i,a){if(e&&t&&n&&r&&i&&a)try{let o;switch(n){case ku.INCHES:o=Au.INCHES_TO_MM;break;case ku.CENTIMETERS:o=Au.CM_TO_MM;break;case ku.MILLIMETERS:o=Au.MM_TO_MM;break;default:return}let s=e[0]/e[1]*o,c=t[0]/t[1]*o,l=r/s,u=i/c,d=Math.sqrt(l**2+u**2);return a[0]/a[1]*(43.27/d)}catch{}}function Fu(e,t){if(e&&t)try{let n=t/(e[0]/e[1]);return{value:n,description:n.toFixed(1)}}catch{}}function Iu(e){if(e)try{let t=2*Math.atan(36/(2*e))*(180/Math.PI);return{value:t,description:t.toFixed(1)+` deg`}}catch{}}function Lu({mergeSteps:e,deferredResults:t,parsedGroups:n,expanded:r,tagFilter:i,dataView:a,tiffHeaderOffset:o,exifDataView:s,fileType:c,pngTextChunks:l,pngTextIsAsync:u,thumbnailIfdTags:d,deps:f}){let p={};for(let l=0;l<e.length;l++)p=Ru({step:e[l],deferredResults:t,parsedGroups:n,expanded:r,tagFilter:i,dataView:a,tiffHeaderOffset:o,exifDataView:s,fileType:c,thumbnailIfdTags:d,tags:p,deps:f});return q.USE_PNG&&r&&u&&i.shouldReturnGroup(`png`)&&p.png&&(p.pngText=f.objectAssign({},p.png)),q.USE_PNG&&r&&i.shouldReturnGroup(`png`)&&f.hasPngTextData(l)&&p.png&&!p.pngText&&(p.pngText=f.objectAssign({},p.png)),p}function Ru({step:e,deferredResults:t,parsedGroups:n,expanded:r,tagFilter:i,dataView:a,tiffHeaderOffset:o,exifDataView:s,fileType:c,thumbnailIfdTags:l,tags:u,deps:d}){if(e.type===`mergeGroupAssign`){let t=d.filterTagsForReturn(e.groupKey,e.parsedTags,i);return zu(u,e.groupKey,t,r,d)}if(e.type===`mergeGroupMerge`){let t=d.filterTagsForReturn(e.groupKey,e.parsedTags,i);return Vu(u,e.groupKey,t,r,d)}if(q.USE_XMP&&e.type===`mergeXmpGroupAssign`){let t=d.filterTagsForReturn(`xmp`,e.parsedTags,i);return Bu(u,t,r,d)}if(q.USE_ICC&&e.type===`mergeIccDeferred`){let a=t[e.deferredKey],o=d.filterTagsForParse(`icc`,a,i);if(n.icc=o,!i.shouldReturnGroup(`icc`))return u;let s=d.filterTagsForReturn(`icc`,o,i);return zu(u,`icc`,s,r,d)}if(q.USE_JXL&&e.type===`mergeBrobExifDeferred`){let a=t[e.deferredKey];if(!a||Object.keys(a).length===0)return u;let o=d.filterTagsForParse(`exif`,a,i);if(n.exif=n.exif?d.objectAssign({},n.exif,o):o,!i.shouldReturnGroup(`exif`))return u;let s=d.filterTagsForReturn(`exif`,o,i);return zu(u,`exif`,s,r,d)}if(q.USE_JXL&&e.type===`mergeBrobXmpDeferred`){let a=t[e.deferredKey];if(!a||Object.keys(a).length===0)return u;let o=d.filterTagsForParse(`xmp`,a,i);if(n.xmp=o,!i.shouldReturnGroup(`xmp`))return u;let s=d.filterTagsForReturn(`xmp`,o,i);return Bu(u,s,r,d)}if(q.USE_PNG&&e.type===`mergePngFile`){let t=d.filterTagsForReturn(`png`,e.parsedTags,i);return i.shouldReturnGroup(`png`)?r?(u.png=u.png?d.objectAssign({},u.png,t):t,u.pngFile=t,u):d.objectAssign({},u,t):u}if(q.USE_PNG&&e.type===`mergePngChunk`){let t=d.filterTagsForReturn(`png`,e.parsedTags,i);return i.shouldReturnGroup(`png`)?r?(u.png=u.png?d.objectAssign({},u.png,t):t,u):d.objectAssign({},u,t):u}if(q.USE_PNG&&e.type===`processPngTextReadTags`)return Hu({readTags:e.readTags,parsedGroups:n,expanded:r,tagFilter:i,tags:u,deps:d});if(q.USE_PNG&&e.type===`processPngTextReadTagsDeferredList`){let a=t[e.deferredKey]||[];for(let e=0;e<a.length;e++)u=Hu({readTags:a[e],parsedGroups:n,expanded:r,tagFilter:i,tags:u,deps:d});return u}if(q.USE_EXIF&&e.type===`gps`){if(r&&i.shouldReturnGroup(`gps`)&&n.exif){let e=d.getGpsGroupFromExifTags(n.exif);if(e){let t=d.filterTagsForReturn(`gps`,e,i);u.gps=t}}return u}if((q.USE_EXIF||q.USE_XMP)&&e.type===`composite`){if(!i.shouldReturnGroup(`composite`))return u;let e=u,t=r;i.isActive&&(e={exif:n.exif,file:n.file},t=!0);let a=d.Composite.get(e,t);if(!a)return u;let o=d.filterTagsForReturn(`composite`,a,i);return zu(u,`composite`,o,r,d)}if(e.type===`thumbnail`){if(!i.shouldReturnGroup(`thumbnail`)||!i.shouldReturnTag(`thumbnail`,`Thumbnail`))return delete u.Thumbnail,u;if(!l)return u;let e=d.filterTagsForParse(`thumbnail`,l,i),t=q.USE_EXIF&&q.USE_THUMBNAIL&&d.Thumbnail.get(s||a,e,o);return t?u.Thumbnail=t:delete u.Thumbnail,u}if(e.type===`metadataRange`){if(!r)return u;let t=Wu(e.metadataBlocks,e.metadataTruncated,a,n);return t&&(u.metadataRange=t),u}return e.type===`fileType`&&c&&i.shouldReturnGroup(`file`)&&i.shouldReturnTag(`file`,`FileType`)&&(r?(u.file||(u.file={}),u.file.FileType=c):u.FileType=c),u}function zu(e,t,n,r,i){return r?(e[t]=n,e):i.objectAssign({},e,n)}function Bu(e,t,n,r){if(n)return e.xmp=t,e;let i=r.objectAssign({},t);return delete i._raw,r.objectAssign({},e,i)}function Vu(e,t,n,r,i){return r?(e[t]=e[t]?i.objectAssign({},e[t],n):n,e):i.objectAssign({},e,n)}function Hu({readTags:e,parsedGroups:t,expanded:n,tagFilter:r,tags:i,deps:a}){let o=e.__exif,s=e.__iptc;if(delete e.__exif,delete e.__iptc,o){let e=a.filterTagsForParse(`exif`,o,r);if(t.exif=t.exif?a.objectAssign({},t.exif,e):e,r.shouldReturnGroup(`exif`)){let t=a.filterTagsForReturn(`exif`,e,r);if(n)i.exif=i.exif?a.objectAssign({},i.exif,t):t;else{let e=a.objectAssign({},t);delete e.Thumbnail,i=a.objectAssign({},i,e)}}}if(s){let e=a.filterTagsForParse(`iptc`,s,r);if(t.iptc=t.iptc?a.objectAssign({},t.iptc,e):e,r.shouldReturnGroup(`iptc`)){let t=a.filterTagsForReturn(`iptc`,e,r);n?i.iptc=i.iptc?a.objectAssign({},i.iptc,t):t:i=a.objectAssign({},i,t)}}if(r.shouldReturnGroup(`png`)){let o=a.filterTagsForParse(`png`,e,r),s=a.filterTagsForReturn(`png`,o,r);t.pngText=o,n?(i.png=i.png?a.objectAssign({},i.png,s):s,s&&Object.keys(s).length>0&&(i.pngText=i.pngText?a.objectAssign({},i.pngText,s):s)):i=a.objectAssign({},i,s)}return i}function Uu(e){return!!e&&typeof e.then==`function`}function Wu(e,t,n,r){let i=(e||[]).slice(),a=!!t;if(r&&r.mpf&&Array.isArray(r.mpf.Images))for(let e=0;e<r.mpf.Images.length;e++){let t=r.mpf.Images[e];if(!t||!t.ImageOffset||!t.ImageSize)continue;let n=t.ImageOffset.value,a=t.ImageSize.value;typeof n!=`number`||n<=0||typeof a!=`number`||a<=0||i.push({type:`mpfImage`,start:n,end:n+a})}if(i.length===0)return;i.sort((e,t)=>e.start-t.start);let o=i[0].start,s=i[0].end;for(let e=1;e<i.length;e++)i[e].end>s&&(s=i[e].end);let c=n&&typeof n.byteLength==`number`?n.byteLength:0;return{start:o,end:s,complete:!a&&s<=c,blocks:i}}function Gu(e){this.name=`MetadataMissingError`,this.message=e||`No Exif data`,this.stack=Error().stack}Gu.prototype=Error();var Ku={MetadataMissingError:Gu},qu={load:Ju,loadView:Zu,errors:Ku};function Ju(e,t={}){if(t.length===`auto`)return Le(t),Re(Yu)(e,t);if(K(e)||pe(e)){B();let n=K(e)?he:ge,r=V({},t,{async:!0});return n(e,r).then(e=>Yu(e,r))}return Yu(e,t)}function Yu(e,t){return Xu(e)&&(e=new Uint8Array(e).buffer),Zu(M(e),t)}function Xu(e){try{return Buffer.isBuffer(e)}catch{return!1}}function Zu(e,{expanded:t=!1,async:n=!1,computed:r=!1,includeUnknown:i=!1,includeOffsets:a=!1,domParser:o=void 0,includeTags:s=void 0,excludeTags:c=void 0,decompress:l=void 0}={}){e=Qu(e);let u=Vi({includeTags:s,excludeTags:c}),d=Object.create(null),f=[],p=Object.create(null),m=[],h=!1,g,_,{fileType:v,fileDataOffset:y,jfifDataOffset:b,tiffHeaderOffset:x,iptcDataOffset:S,xmpChunks:C,iccChunks:w,mpfDataOffset:T,pngHeaderOffset:E,pngTextChunks:D,pngChunkOffsets:O,vp8xChunkOffset:k,gifHeaderOffset:A,brobExifChunk:j,brobXmpChunk:M,jxlCodestreamOffset:N,metadataBlocks:P,metadataTruncated:F,exifDataView:I,xmpDataView:ee}=ii.parseAppMarkers(e,n,t&&a),R=ad({fileType:v,fileDataOffset:y,jfifDataOffset:b,tiffHeaderOffset:x,iptcDataOffset:S,xmpChunks:C,iccChunks:w,mpfDataOffset:T,pngHeaderOffset:E,pngTextChunks:D,pngChunkOffsets:O,vp8xChunkOffset:k,gifHeaderOffset:A,jxlCodestreamOffset:N});if(q.USE_JPEG&&q.USE_FILE&&y!==void 0&&u.shouldParseGroup(`file`)&&H(s)){let t=$(`file`,Fa.read(e,y),u);d.file=t,u.shouldReturnGroup(`file`)&&f.push({type:`mergeGroupAssign`,groupKey:`file`,parsedTags:t})}if(q.USE_JPEG&&q.USE_JFIF&&b!==void 0&&u.shouldParseGroup(`jfif`)){let t=$(`jfif`,$a.read(e,b),u);d.jfif=t,u.shouldReturnGroup(`jfif`)&&f.push({type:`mergeGroupAssign`,groupKey:`jfif`,parsedTags:t})}if(q.USE_EXIF&&x!==void 0&&u.shouldParseGroup(`exif`)){let{tags:n,byteOrder:a}=nd(I||e,x,i,r,u);n.Thumbnail&&(g=n.Thumbnail,delete n.Thumbnail);let s=$(`exif`,n,u);if(d.exif=s,q.USE_IPTC&&s[`IPTC-NAA`]&&S===void 0&&u.shouldParseGroup(`iptc`)){let e=$(`iptc`,Ao.read(s[`IPTC-NAA`].value,0,i,u),u);d.iptc=e,u.shouldReturnGroup(`iptc`)&&f.push({type:`mergeGroupAssign`,groupKey:`iptc`,parsedTags:e})}if(q.USE_XMP&&s.ApplicationNotes&&Array.isArray(s.ApplicationNotes.value)&&!sd(C)&&u.shouldParseGroup(`xmp`)){let e=$(`xmp`,ms.read(L(s.ApplicationNotes.value),void 0,o),u);if(d.xmp=e,u.shouldReturnGroup(`xmp`)){let n={type:`mergeXmpGroupAssign`,parsedTags:e};t?f.push(n):_=n}}if(q.USE_PHOTOSHOP&&s.ImageSourceData&&s.PhotoshopSettings&&Array.isArray(s.PhotoshopSettings.value)&&u.shouldParseGroup(`photoshop`)){let e=$(`photoshop`,Cc.read(s.PhotoshopSettings.value,i,u),u);d.photoshop=e,u.shouldReturnGroup(`photoshop`)&&f.push({type:`mergeGroupAssign`,groupKey:`photoshop`,parsedTags:e})}if(q.USE_ICC&&s.ICC_Profile&&!cd(w)&&u.shouldParseGroup(`icc`)){let e=$(`icc`,Rc.read(s.ICC_Profile.value,[{offset:0,length:s.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]),u);d.icc=e,u.shouldReturnGroup(`icc`)&&f.push({type:`mergeGroupAssign`,groupKey:`icc`,parsedTags:e})}if(q.USE_MAKER_NOTES&&s.MakerNote&&u.shouldParseGroup(`makerNotes`)){if(ld(s)){let t=fl.read(I||e,x,s.MakerNote.__offset,a,i,r,u);d.makerNotes=t,u.shouldReturnGroup(`makerNotes`)&&f.push({type:`mergeGroupAssign`,groupKey:`makerNotes`,parsedTags:t})}else if(ud(s)){let t=xl.read(I||e,x,s.MakerNote.__offset,i,r,u);d.makerNotes=t,u.shouldReturnGroup(`makerNotes`)&&f.push({type:`mergeGroupAssign`,groupKey:`makerNotes`,parsedTags:t})}}s.MakerNote&&delete s.MakerNote.__offset,u.shouldReturnGroup(`exif`)&&f.push({type:`mergeGroupAssign`,groupKey:`exif`,parsedTags:s}),!t&&_&&(f.push(_),_=void 0)}if(q.USE_JPEG&&q.USE_IPTC&&S!==void 0&&u.shouldParseGroup(`iptc`)){let t=$(`iptc`,Ao.read(e,S,i,u),u);d.iptc=t,u.shouldReturnGroup(`iptc`)&&f.push({type:`mergeGroupAssign`,groupKey:`iptc`,parsedTags:t})}if(q.USE_XMP&&sd(C)&&u.shouldParseGroup(`xmp`)){let t=$(`xmp`,ms.read(ee||e,C,o),u);d.xmp=t,u.shouldReturnGroup(`xmp`)&&f.push({type:`mergeXmpGroupAssign`,parsedTags:t})}if(q.USE_JXL&&q.USE_EXIF&&j&&x===void 0&&u.shouldParseGroup(`exif`)&&n){let t=td(e,j);m.push(se(t,ae,void 0,`dataview`,l).then(e=>{let t=It(e,0),{tags:n}=ba.read(e,t,i,r,u);n.Thumbnail&&delete n.Thumbnail,p.brobExif=n}).catch(()=>{p.brobExif={}})),f.push({type:`mergeBrobExifDeferred`,deferredKey:`brobExif`})}if(q.USE_JXL&&q.USE_XMP&&M&&!sd(C)&&u.shouldParseGroup(`xmp`)&&n){let t=td(e,M);m.push(se(t,ae,void 0,`dataview`,l).then(e=>{p.brobXmp=ms.read(e,[{dataOffset:0,length:e.byteLength}],o)}).catch(()=>{p.brobXmp={}})),f.push({type:`mergeBrobXmpDeferred`,deferredKey:`brobXmp`})}if(q.USE_ICC&&cd(w)&&u.shouldParseGroup(`icc`)){let t=Rc.read(e,w,n,l);if(Uu(t)){if(!n)throw Error(`Promise is required when async mode is enabled.`);m.push(t.then(e=>{p.iccApp=e})),f.push({type:`mergeIccDeferred`,deferredKey:`iccApp`})}else{let e=$(`icc`,t,u);d.icc=e,u.shouldReturnGroup(`icc`)&&f.push({type:`mergeGroupAssign`,groupKey:`icc`,parsedTags:e})}}if(q.USE_MPF&&T!==void 0&&u.shouldParseGroup(`mpf`)){let t=$(`mpf`,wa.read(e,T,i,r,u),u);d.mpf=t,u.shouldReturnGroup(`mpf`)&&f.push({type:`mergeGroupAssign`,groupKey:`mpf`,parsedTags:t})}if(q.USE_PNG&&q.USE_PNG_FILE&&E!==void 0&&u.shouldParseGroup(`png`)){let t=$(`png`,Ol.read(e,E),u);d.pngFile=t,u.shouldReturnGroup(`png`)&&f.push({type:`mergePngFile`,parsedTags:t})}if(q.USE_PNG&&dd(D)&&(u.shouldParseGroup(`png`)||u.shouldParseGroup(`exif`)||u.shouldParseGroup(`iptc`))){let{readTags:t,readTagsPromise:a}=Pl.read(e,D,n,i,r,u,l);h=!!a,f.push({type:`processPngTextReadTags`,readTags:t}),a&&(m.push(a.then(e=>{p.pngTextTagList=e})),f.push({type:`processPngTextReadTagsDeferredList`,deferredKey:`pngTextTagList`}))}if(q.USE_PNG&&O!==void 0&&u.shouldParseGroup(`png`)){let t=$(`png`,nu.read(e,O),u);d.pngChunk=t,u.shouldReturnGroup(`png`)&&f.push({type:`mergePngChunk`,parsedTags:t})}if(q.USE_WEBP&&k!==void 0&&u.shouldParseGroup(`riff`)){let t=$(`riff`,uu.read(e,k),u);d.riff=t,u.shouldReturnGroup(`riff`)&&f.push({type:`mergeGroupMerge`,groupKey:`riff`,parsedTags:t})}if(q.USE_GIF&&A!==void 0&&u.shouldParseGroup(`gif`)){let t=$(`gif`,vu.read(e,A),u);d.gif=t,u.shouldReturnGroup(`gif`)&&f.push({type:`mergeGroupMerge`,groupKey:`gif`,parsedTags:t})}if(q.USE_JXL&&N!==void 0&&u.shouldParseGroup(`file`)){let t=$(`file`,Ga.read(e,N),u);d.file=t,u.shouldReturnGroup(`file`)&&f.push({type:`mergeGroupAssign`,groupKey:`file`,parsedTags:t})}if(q.USE_EXIF&&f.push({type:`gps`}),(q.USE_EXIF||q.USE_XMP)&&f.push({type:`composite`}),f.push({type:`thumbnail`}),f.push({type:`fileType`}),t&&a&&f.push({type:`metadataRange`,metadataBlocks:P,metadataTruncated:!!F}),!R)throw new Ku.MetadataMissingError;let z={objectAssign:V,hasPngTextData:dd,filterTagsForParse:$,filterTagsForReturn:rd,getGpsGroupFromExifTags:q.USE_EXIF?od:void 0,Composite:q.USE_EXIF||q.USE_XMP?ju:void 0,Thumbnail:wu};if(n)return B(),Promise.all(m).then(()=>Lu({mergeSteps:f,deferredResults:p,parsedGroups:d,expanded:t,tagFilter:u,dataView:e,tiffHeaderOffset:x,exifDataView:I,fileType:v,pngTextChunks:D,pngTextIsAsync:h,thumbnailIfdTags:g,deps:z}));return Lu({mergeSteps:f,deferredResults:p,parsedGroups:d,expanded:t,tagFilter:u,dataView:e,tiffHeaderOffset:x,exifDataView:I,fileType:v,pngTextChunks:D,pngTextIsAsync:h,thumbnailIfdTags:g,deps:z});function H(e){if(!e)return!0;let{composite:t,file:n}=e;return t===!0||Array.isArray(t)&&t.length>0?!0:!(Array.isArray(n)&&n.length===1&&n[0]===`FileType`)}}function Qu(e){return $u(e)?M(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):e}function $u(e){return ed(e)&&(e.byteOffset>0||e.byteLength<e.buffer.byteLength)}function ed(e){return!!e&&typeof e.getUint8==`function`&&typeof e.byteOffset==`number`&&typeof e.byteLength==`number`&&!!e.buffer&&typeof e.buffer.slice==`function`}function td(e,t){let n=Math.max(0,Math.min(t.length,e.byteLength-t.dataOffset));return new DataView(e.buffer,e.byteOffset+t.dataOffset,n)}function nd(e,t,n,r,i){try{return ba.read(e,t,n,r,i)}catch{return{tags:{},byteOrder:J.BIG_ENDIAN}}}function $(e,t,n){return n.isActive?id(e,t,n.shouldParseTag):t}function rd(e,t,n){return n.isActive?id(e,t,n.shouldReturnTag):t}function id(e,t,n){if(!t)return t;let r={};for(let a in t){let o=t[a];n(e,a,i(o))&&(r[a]=o)}return r;function i(e){if(e)return Array.isArray(e)?e.length===0?void 0:e[0].id:e.id}}function ad({fileType:e,fileDataOffset:t,jfifDataOffset:n,tiffHeaderOffset:r,iptcDataOffset:i,xmpChunks:a,iccChunks:o,mpfDataOffset:s,pngHeaderOffset:c,pngTextChunks:l,pngChunkOffsets:u,vp8xChunkOffset:d,gifHeaderOffset:f,jxlCodestreamOffset:p}){return!!e||q.USE_JPEG&&q.USE_FILE&&t!==void 0||q.USE_JPEG&&q.USE_JFIF&&n!==void 0||q.USE_EXIF&&r!==void 0||q.USE_JPEG&&q.USE_IPTC&&i!==void 0||q.USE_XMP&&sd(a)||q.USE_ICC&&cd(o)||q.USE_MPF&&s!==void 0||q.USE_PNG&&q.USE_PNG_FILE&&c!==void 0||q.USE_PNG&&dd(l)||q.USE_PNG&&u!==void 0||q.USE_WEBP&&d!==void 0||q.USE_GIF&&f!==void 0||q.USE_JXL&&p!==void 0}function od(e){let t;if(e.GPSLatitude&&e.GPSLatitudeRef){t||={};try{t.Latitude=Ke(e.GPSLatitude.value),e.GPSLatitudeRef.value.join(``)===`S`&&(t.Latitude=-t.Latitude)}catch{}}if(e.GPSLongitude&&e.GPSLongitudeRef){t||={};try{t.Longitude=Ke(e.GPSLongitude.value),e.GPSLongitudeRef.value.join(``)===`W`&&(t.Longitude=-t.Longitude)}catch{}}if(e.GPSAltitude&&e.GPSAltitudeRef){t||={};try{t.Altitude=e.GPSAltitude.value[0]/e.GPSAltitude.value[1],e.GPSAltitudeRef.value===1&&(t.Altitude=-t.Altitude)}catch{}}if(t)return t}function sd(e){return Array.isArray(e)&&e.length>0}function cd(e){return Array.isArray(e)&&e.length>0}function ld(e){return e.Make&&e.Make.value&&Array.isArray(e.Make.value)&&e.Make.value[0]===`Canon`&&e.MakerNote&&e.MakerNote.__offset}function ud(e){return Array.isArray(e.MakerNote.value)&&e.MakerNote.value.length>7&&L(e.MakerNote.value.slice(0,7))===`PENTAX `&&e.MakerNote.__offset}function dd(e){return Array.isArray(e)&&e.length>0}var fd=new Uint8Array([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,14,14,15,15,16,16,17,17,18,18]);new Uint32Array([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,32769,49153,65537,98305,131073,196609,262145,393217,524289,786433])[39]+(1<<fd[39])-1;var pd=new Uint8Array([24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112]);(()=>{let e=new Map;for(let t=0;t<120;t++)e.set(pd[t],t+1);return e})(),new Int32Array([17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15]);var md=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10]);new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073])[23]+(1<<md[23])-1;function hd(e){if(e.length<12)throw Error(`Invalid RIFF file: shorter than 12-byte container header`);let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(e[0]!==82||e[1]!==73||e[2]!==70||e[3]!==70)throw Error(`Invalid RIFF file: missing RIFF signature`);if(e[8]!==87||e[9]!==69||e[10]!==66||e[11]!==80)throw Error(`Invalid WebP file: missing WEBP signature`);let n=[],r=12;for(;r+8<=e.length;){let i=String.fromCharCode(e[r],e[r+1],e[r+2],e[r+3]),a=t.getUint32(r+4,!0),o=r+8,s=Math.min(o+a,e.length);n.push({fourCC:i,size:a,data:e.subarray(o,s),offset:o});let c=a+(a&1),l=r+8+c;if(l<=r)break;r=l}return n}function gd(e){let t=4;for(let n of e){let e=n.data.length+(n.data.length&1);t+=8+e}let n=new Uint8Array(8+t),r=new DataView(n.buffer);n[0]=82,n[1]=73,n[2]=70,n[3]=70,r.setUint32(4,t,!0),n[8]=87,n[9]=69,n[10]=66,n[11]=80;let i=12;for(let t of e){n[i]=t.fourCC.charCodeAt(0),n[i+1]=t.fourCC.charCodeAt(1),n[i+2]=t.fourCC.charCodeAt(2),n[i+3]=t.fourCC.charCodeAt(3),r.setUint32(i+4,t.data.length,!0),n.set(t.data,i+8);let e=t.data.length+(t.data.length&1);i+=8+e}return n}new Uint8Array([0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0]),new Uint8Array([0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15]),new Uint8Array([173,148,140,0]),new Uint8Array([176,155,140,135,0]),new Uint8Array([180,157,141,134,130,0]),new Uint8Array([254,254,243,230,196,177,153,140,133,130,129,0]),(()=>{let e=new Uint8Array(1056),t=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],n=0;for(let r=0;r<4;r++)for(let i=0;i<8;i++)for(let a=0;a<3;a++)for(let o=0;o<11;o++)e[n++]=t[r][i][a][o];return e})(),(()=>{let e=new Uint8Array(1056),t=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],n=0;for(let r=0;r<4;r++)for(let i=0;i<8;i++)for(let a=0;a<3;a++)for(let o=0;o<11;o++)e[n++]=t[r][i][a][o];return e})(),new Uint16Array([4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284]),new Uint16Array([4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157]),new Int8Array([-10,2,4,6,-0,-2,-3,-1]),new Uint8Array([145,156,163,128]),new Int8Array([-0,2,-2,4,-3,-1]),new Uint8Array([142,114,183]),new Int8Array([-0,2,-1,4,-2,6,8,12,-3,10,-4,-5,-6,14,-7,16,-8,-9]),(()=>{let e=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],t=new Uint8Array(900),n=0;for(let r=0;r<10;r++)for(let i=0;i<10;i++)for(let a=0;a<9;a++)t[n++]=e[r][i][a];return t})(),new Uint16Array([0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396]),new Uint8Array([7,6,6,5,5,5,5,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0]),new Uint8Array([127,127,191,127,159,191,223,127,143,159,175,191,207,223,239,127,135,143,151,159,167,175,183,191,199,207,215,223,231,239,247,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215,219,223,227,231,235,239,243,247,251,127,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,185,187,189,191,193,195,197,199,201,203,205,207,209,211,213,215,217,219,221,223,225,227,229,231,233,235,237,239,241,243,245,247,249,251,253,127]);var _d;(function(e){e[e.Literal=0]=`Literal`,e[e.Backref=1]=`Backref`,e[e.Cache=2]=`Cache`})(_d||={});var vd=t((e=>{(function(t){typeof DO_NOT_EXPORT_CRC>`u`?typeof e==`object`?t(e):typeof define==`function`&&define.amd?define(function(){var e={};return t(e),e}):t({}):t({})})(function(e){e.version=`0.3.0`;function t(){for(var e=0,t=Array(256),n=0;n!=256;++n)e=n,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,e=e&1?-306674912^e>>>1:e>>>1,t[n]=e;return typeof Int32Array<`u`?new Int32Array(t):t}var n=t(),r=typeof Buffer<`u`;function i(e){if(e.length>32768&&r)return o(new Buffer(e));for(var t=-1,i=e.length-1,a=0;a<i;)t=n[(t^e.charCodeAt(a++))&255]^t>>>8,t=n[(t^e.charCodeAt(a++))&255]^t>>>8;return a===i&&(t=t>>>8^n[(t^e.charCodeAt(a))&255]),t^-1}function a(e){if(e.length>1e4)return o(e);for(var t=-1,r=0,i=e.length-3;r<i;)t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255];for(;r<i+3;)t=t>>>8^n[(t^e[r++])&255];return t^-1}function o(e){for(var t=-1,r=0,i=e.length-7;r<i;)t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255],t=t>>>8^n[(t^e[r++])&255];for(;r<i+7;)t=t>>>8^n[(t^e[r++])&255];return t^-1}function s(e){for(var t=-1,r=0,i=e.length,a,o;r<i;)a=e.charCodeAt(r++),a<128?t=t>>>8^n[(t^a)&255]:a<2048?(t=t>>>8^n[(t^(192|a>>6&31))&255],t=t>>>8^n[(t^(128|a&63))&255]):a>=55296&&a<57344?(a=(a&1023)+64,o=e.charCodeAt(r++)&1023,t=t>>>8^n[(t^(240|a>>8&7))&255],t=t>>>8^n[(t^(128|a>>2&63))&255],t=t>>>8^n[(t^(128|o>>6&15|a&3))&255],t=t>>>8^n[(t^(128|o&63))&255]):(t=t>>>8^n[(t^(224|a>>12&15))&255],t=t>>>8^n[(t^(128|a>>6&63))&255],t=t>>>8^n[(t^(128|a&63))&255]);return t^-1}e.table=n,e.bstr=i,e.buf=a,e.str=s})})),yd=t(((e,t)=>{var n=vd();t.exports=o;var r=new Uint8Array(4),i=new Int32Array(r.buffer),a=new Uint32Array(r.buffer);function o(e){if(e[0]!==137||e[1]!==80||e[2]!==78||e[3]!==71)throw Error(`Invalid .png file header`);if(e[4]!==13||e[5]!==10)throw Error(`Invalid .png file header: possibly caused by DOS-Unix line ending conversion?`);if(e[6]!==26)throw Error(`Invalid .png file header`);if(e[7]!==10)throw Error(`Invalid .png file header: possibly caused by DOS-Unix line ending conversion?`);for(var t=!1,o=[],s=8;s<e.length;){r[3]=e[s++],r[2]=e[s++],r[1]=e[s++],r[0]=e[s++];var c=a[0]+4,l=new Uint8Array(c);l[0]=e[s++],l[1]=e[s++],l[2]=e[s++],l[3]=e[s++];var u=String.fromCharCode(l[0])+String.fromCharCode(l[1])+String.fromCharCode(l[2])+String.fromCharCode(l[3]);if(!o.length&&u!==`IHDR`)throw Error(`IHDR header missing`);if(u===`IEND`){t=!0,o.push({name:u,data:new Uint8Array});break}for(var d=4;d<c;d++)l[d]=e[s++];r[3]=e[s++],r[2]=e[s++],r[1]=e[s++],r[0]=e[s++];var f=i[0];if(n.buf(l)!==f)throw Error(`CRC values for `+u+` header do not match, PNG file is likely corrupted`);var p=new Uint8Array(l.buffer.slice(4));o.push({name:u,data:p})}if(!t)throw Error(`.png file ended prematurely: no IEND header was found`);return o}})),bd=t(((e,t)=>{t.exports=function(e,t,n){var r=[],i=e.length;if(i===0)return r;var a=t<0?Math.max(0,t+i):t||0;for(n!==void 0&&(i=n<0?n+i:n);i-->a;)r[i-a]=e[i];return r}})),xd=t(((e,t)=>{var n=bd(),r=vd();t.exports=s;var i=new Uint8Array(4),a=new Int32Array(i.buffer),o=new Uint32Array(i.buffer);function s(e){var t=8,s=t,c;for(c=0;c<e.length;c++)t+=e[c].data.length,t+=12;var l=new Uint8Array(t);for(l[0]=137,l[1]=80,l[2]=78,l[3]=71,l[4]=13,l[5]=10,l[6]=26,l[7]=10,c=0;c<e.length;c++){var u=e[c],d=u.name,f=u.data,p=f.length,m=[d.charCodeAt(0),d.charCodeAt(1),d.charCodeAt(2),d.charCodeAt(3)];o[0]=p,l[s++]=i[3],l[s++]=i[2],l[s++]=i[1],l[s++]=i[0],l[s++]=m[0],l[s++]=m[1],l[s++]=m[2],l[s++]=m[3];for(var h=0;h<p;)l[s++]=f[h++];var g=m.concat(n(f));a[0]=r.buf(g),l[s++]=i[3],l[s++]=i[2],l[s++]=i[1],l[s++]=i[0]}return l}})),Sd=e(yd(),1),Cd=e(xd(),1);function wd(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}function Td(e,t){let n=new TextEncoder().encode(t);return e.length>=n.length&&n.every((t,n)=>e[n]===t)}function Ed(e,t){let n=(0,Sd.default)(e),r=`XML:com.adobe.xmp\0`,i=n.filter(e=>!([`iTXt`,`tEXt`,`zTXt`].includes(e.name)&&Td(e.data,r))),a=i.findIndex(e=>e.name===`IDAT`);if(a<0)throw Error(`PNG has no image data`);return i.splice(a,0,{name:`iTXt`,data:wd([new TextEncoder().encode(r),new Uint8Array(4),new TextEncoder().encode(t)])}),(0,Cd.default)(i)}var Dd=`http://ns.adobe.com/xap/1.0/\0`,Od=`http://ns.adobe.com/xmp/extension/\0`;function kd(e,t){let n=e,r=new DataView(e.buffer,e.byteOffset,e.byteLength);if(n.length<4||r.getUint16(0)!==65496||r.getUint16(n.length-2)!==65497)throw Error(`Invalid JPEG envelope`);let i=new TextEncoder().encode(`${Dd}${t}`);if(i.length>65533)throw Error(`XMP exceeds one JPEG APP1 segment`);let a=new Uint8Array(4),o=new DataView(a.buffer);o.setUint16(0,65505),o.setUint16(2,i.length+2);let s=wd([a,i]),c=[n.subarray(0,2)],l=1,u=!0,d=!1,f=2;for(;f+4<=n.length;){let e=f;if(n[f]!==255)throw Error(`Invalid JPEG marker`);for(;n[f]===255;)f++;let t=n[f];if(t===void 0||t===0||t===216||t===217)throw Error(`JPEG ended before its scan`);if(t===1||t>=208&&t<=215){c.push(n.subarray(e,f+1)),f++,u=!1;continue}if(f+3>n.length)throw Error(`Truncated JPEG length`);let i=r.getUint16(f+1),a=f+1+i;if(i<2||a>n.length)throw Error(`Truncated JPEG segment`);if(t>=192&&t<=207&&![196,200,204].includes(t)&&(d=!0),t===218){if(!d)throw Error(`JPEG has no frame`);return c.splice(l,0,s),c.push(n.subarray(e)),wd(c)}let o=n.subarray(f+3,a);t===225&&[Dd,Od].some(e=>Td(o,e))||(c.push(n.subarray(e,a)),u&&(t===224||t===225&&Td(o,`Exif\0\0`))?l=c.length:u=!1),f=a}throw Error(`JPEG has no scan`)}function Ad(e){let t=new TextDecoder(`latin1`).decode(e);return t.includes(`c2pa`)||t.includes(`caBX`)}var jd=`https://fungi.computer/ns/provenance/1.0/`,Md=`http://iptc.org/std/Iptc4xmpExt/2008-02-29/`,Nd=`http://www.w3.org/1999/02/22-rdf-syntax-ns#`;function Pd(e){let t=new k.DOMParser({onError:()=>{throw Error(`Invalid provenance XML`)}}),n=e?t.parseFromString(e,`application/xml`):void 0,r=(e,t)=>{let r=n?.getElementsByTagNameNS(e,t).item(0);if(r?.textContent)return r.textContent;let i=n?.getElementsByTagNameNS(Nd,`Description`);if(i)for(let n=0;n<i.length;n++){let r=i.item(n)?.getAttributeNS(e,t);if(r)return r}},i=t.parseFromString(`<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about=""/></rdf:RDF></x:xmpmeta>`,`application/xml`),a=i.getElementsByTagNameNS(Nd,`Description`).item(0);if(!a)throw Error(`Missing provenance description`);let o=[{namespace:jd,name:`printId`,qualified:`fungi:printId`},{namespace:Md,name:`DigitalSourceType`,qualified:`Iptc4xmpExt:DigitalSourceType`}];for(let{namespace:e,name:t,qualified:n}of o){let o=r(e,t);if(o===void 0)continue;let s=i.createElementNS(e,n);s.textContent=o,a.appendChild(s)}return new k.XMLSerializer().serializeToString(i)}var Fd=33554432,Id=class extends Error{reason;name=`ProvenanceExportError`;constructor(e,t){super(`Print export refused: ${e}`,t),this.reason=e}};function Ld(e,t){let n=hd(e);if(n.some(e=>e.size!==e.data.length)||n.reduce((e,t)=>e+8+t.size+t.size%2,12)!==e.length)throw Error(`Incomplete extended WebP`);if(!n.some(e=>e.fourCC===`XMP `))return e;if(!n.some(e=>e.fourCC===`VP8X`))throw Error(`XMP without extended WebP header`);let r=!1;return gd(n.flatMap(e=>e.fourCC===`XMP `?r?[]:(r=!0,[{fourCC:`XMP `,data:new TextEncoder().encode(t)}]):[{fourCC:e.fourCC,data:e.data}]))}async function Rd(e){if(e.length>33554432)throw new Id(`too-large`);let t=Ad(e);try{let n=await qu.loadView(new DataView(e.buffer,e.byteOffset,e.byteLength),{expanded:!0,async:!0,domParser:new k.DOMParser,includeTags:{xmp:!0,png:!0,file:!0},decompress:{maxDecompressedSize:Fd}}),r=n.file?.FileType?.value;if(r!==`png`&&r!==`jpeg`&&r!==`webp`&&r!==`gif`)throw new Id(`unsupported-format`);let i={type:`image/${r}`,extension:r===`jpeg`?`jpg`:r};if(t||r===`gif`&&!n.xmp)return{bytes:e,...i};let a=Pd(n.xmp?._raw??n.pngText?.[`XML:com.adobe.xmp`]?.value),o=r===`png`?Ed(e,a):r===`jpeg`?kd(e,a):r===`webp`?Ld(e,a):void 0;if(!o)throw new Id(`unsupported-format`);if(o.length>33554432)throw new Id(`too-large`);return{bytes:o,...i}}catch(e){throw e instanceof Id?e:new Id(`invalid-image`,{cause:e})}}var zd={title:`Image too large`,message:`Download supports images up to 32 MiB. Choose a smaller image.`};async function Bd(e,t){let n=()=>{if(t.throwIfAborted(),e.kind===`computer`&&e.connection.app.context.get().computerId!==e.computerId)throw new a(`Print Computer changed`,{code:`SELECTION_CHANGED`,retryable:!1})};if(n(),e.file.size>33554432)throw new Id(`too-large`);let r=e.kind===`computer`?await _(e.connection.app.capabilities,{path:e.path},{signal:t}):e.file;if(n(),r.size>33554432)throw new Id(`too-large`);let i=e.kind===`computer`?e.path:r.name,o=(i.split(`/`).at(-1)??`print`).replace(/\.[^.]*$/,``)||`print`;if(h(i))return n(),new File([r],`${o}.mp4`,{type:`video/mp4`});if(d(i))return n(),new File([r],`${o}.mp3`,{type:`audio/mpeg`});let s=await Rd(new Uint8Array(await r.arrayBuffer()));return n(),new File([Uint8Array.from(s.bytes)],`${o}.${s.extension}`,{type:s.type})}function Vd(e){return e instanceof Id?{...{"too-large":zd,"invalid-image":{title:`Couldn't prepare the image`,message:`Prints couldn't remove this image's private details. Choose another image.`},"unsupported-format":{title:`Download unavailable`,message:`Prints cannot safely export this file format yet.`}}[e.reason],retryable:!1}:l(e,{FILE_TOO_LARGE:zd})}function Hd(e){return{...{"no-user-gesture":{title:`Click to download`,message:`Click Download in Prints to save this image.`},"too-large":zd,"invalid-request":{title:`Download unavailable`,message:`The prepared image could not be saved. Reopen its information and try again.`},unavailable:{title:`Download unavailable`,message:`The host cannot save files right now. Reopen Prints and try again.`},denied:{title:`Download denied`,message:`Your browser did not allow this download. Check its download settings and try again.`},busy:{title:`Download busy`,message:`Wait for the current browser action to finish, then try again.`}}[e.reason],retryable:!1}}var Ud=i();function Wd({source:e,app:t,presentation:r=`key`,menuItems:i}){let a=(0,O.useRef)(null),c=n({gcTime:0,mutationFn:async t=>{let n=await Bd(e,t.signal),r=new Uint8Array(await n.arrayBuffer());return t.signal.throwIfAborted(),{kind:`saveFile`,name:n.name,mime:n.type,bytes:r}},onError:(e,t)=>{t.signal.aborted||u(`prepare-print-download`,e)}}),{mutate:l,reset:d}=c;(0,O.useEffect)(()=>{let n=new AbortController;a.current=n;let r=()=>{n.abort(),d()},i=t?.context.subscribe(t=>{e.kind===`computer`&&t.computerId!==e.computerId&&r()}),o=t?.lifecycle.subscribe(e=>{(e===`disconnected`||e===`disposing`||e===`disposed`)&&r()});return l(n),()=>{i?.(),o?.(),n.abort(),a.current===n&&(a.current=null)}},[e,t,l,d]);let h=n({gcTime:0,mutationFn:e=>e,onError:e=>{u(`download-print`,e)}}),_=c.error??h.error,b=_?Vd(_):h.data?.kind===`refused`?Hd(h.data):null,x=c.isIdle||c.isPending,S=()=>{if(c.data&&!h.isPending&&!a.current?.signal.aborted){let e=t?t.ui.requestBrowserAction(c.data):Promise.resolve({kind:`refused`,reason:`unavailable`});h.mutate(e)}},C=x?`Preparing download…`:h.isPending?`Downloading…`:`Download`,w=!c.data||h.isPending;return(0,Ud.jsxs)(Ud.Fragment,{children:[r===`menu`?(0,Ud.jsxs)(v,{children:[(0,Ud.jsx)(m,{render:(0,Ud.jsx)(o,{size:`default`,iconSize:`md`,icon:(0,Ud.jsx)(p,{}),"aria-label":`More`,title:`More`})}),(0,Ud.jsxs)(f,{align:`end`,children:[(0,Ud.jsx)(g,{disabled:w,title:C,onSelect:S,children:`Download`}),i]})]}):(0,Ud.jsx)(s,{type:`button`,label:`Download`,title:C,disabled:w,"aria-busy":x||h.isPending,icon:(0,Ud.jsx)(y,{size:16,"aria-hidden":`true`}),onClick:S}),b?(0,Ud.jsxs)(`p`,{role:`alert`,className:`text-sm`,children:[b.title,`. `,b.message]}):null]})}export{Wd as PrintDownloadButton};