quasar-ui-danx 0.4.40 → 0.4.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/danx.es.js +1 -1
- package/dist/danx.umd.js +1 -1
- package/package.json +1 -1
package/dist/danx.es.js
CHANGED
@@ -26130,7 +26130,7 @@ function x9(t, e = "") {
|
|
26130
26130
|
function yh(t, e = "") {
|
26131
26131
|
return Object.entries(t).map(([n, r]) => typeof r == "object" ? yh(r, `${e}${n}-`) : `--${e}${n}: ${r}`).join(";");
|
26132
26132
|
}
|
26133
|
-
const eI = "0.4.
|
26133
|
+
const eI = "0.4.41", tI = {
|
26134
26134
|
version: eI
|
26135
26135
|
}, { version: nI } = tI;
|
26136
26136
|
function k9() {
|
package/dist/danx.umd.js
CHANGED
@@ -150,5 +150,5 @@ ${e}
|
|
150
150
|
|
151
151
|
Use Save As... to download, then click back to return to this page.`)&&(location.href=x),!0;var w=document.createElement("iframe");document.body.appendChild(w),y||(x="data:"+x.replace(/^data:([\w/\-+]+)/,o)),w.src=x,setTimeout(function(){document.body.removeChild(w)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(h,f);if(r.URL)g(r.URL.createObjectURL(h),!0);else{if(typeof h=="string"||h.constructor===u)try{return g("data:"+s+";base64,"+r.btoa(h))}catch{return g("data:"+s+","+encodeURIComponent(h))}_=new FileReader,_.onload=function(x){g(this.result)},_.readAsDataURL(h)}return!0}async function K1(t,e="",n=null){var l;let r;n&&(r={method:"POST",headers:{...(l=re.value.request)==null?void 0:l.headers},body:JSON.stringify(n)});const o=await fetch(t,r);if(!o.ok)throw Error("File download failed: invalid response from server");let s;try{const a=JSON.parse(new TextDecoder().decode(o.data));console.error("Error downloading file:",a),s=a.message,a.errors&&(s=a.errors[0].message)}catch{}if(s)throw new Error("Failed to download file: "+s);await Q1(o,e)}async function Q1(t,e=""){const n=la(t,"content-disposition",""),r=la(t,"content-type",""),o=n.match(/filename="([^"]+)"/);e=e||o&&o[1]||"download.pdf";let s=t.data;s||(s=await t.blob()),$i(s,e,r)}function la(t,e,n){if(t.headers)return typeof t.headers.get=="function"?t.headers.get(e)||n:t.headers[e]||n}let X1=class{constructor(e){if(yS(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function yS(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function J1(t,e,n){try{return new DataView(t,e,n)}catch{return new X1(t,e,n)}}function q(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o++)r.push(t.getUint8(e+o));return Cr(r)}function Sr(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const o=t.getUint8(e+r);if(o===0)break;n.push(o),r++}return Cr(n)}function bS(t,e,n){const r=[];for(let o=0;o<n&&e+o<t.byteLength;o+=2)r.push(t.getUint16(e+o));return r[r.length-1]===0&&r.pop(),Cr(r)}function eh(t,e){const n=t.getUint8(e),r=q(t,e+1,n);return[n,r]}function Cr(t){return t.map(e=>String.fromCharCode(e)).join("")}function U(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function th(t,e,n){let r=!1;Object.defineProperty(t,e,{get(){return r||(r=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function nh(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function wS(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function kS(t,e,n){return rh(n,e-t.length)+t}function xS(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function rh(t,e){return new Array(e+1).join(t)}const Fi=void 0,oh=0;function ih(t,e,n,r="string"){if(e===oh&&typeof DecompressionStream=="function"){const o=new DecompressionStream("deflate"),s=new Blob([t]).stream().pipeThrough(o);return r==="dataview"?new Response(s).arrayBuffer().then(l=>new DataView(l)):new Response(s).arrayBuffer().then(l=>new TextDecoder(n).decode(l))}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const sh={USE_EXIF:!0,USE_IPTC:!0};function me(t){return t.map(e=>String.fromCharCode(e)).join("")}function aa(t){if(t.length>=8){const e=me(t.slice(0,8));if(e==="ASCII\0\0\0")return me(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function Ai(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const ca=18761,ua=19789,An={BIG_ENDIAN:ua,LITTLE_ENDIAN:ca,getByteOrder:SS};function SS(t,e){if(t.getUint16(e)===ca)return ca;if(t.getUint16(e)===ua)return ua;throw new Error("Illegal byte order value. Faulty image.")}const lh={isTiffFile:CS,findTiffOffsets:ES};function CS(t){return!!t&&t.byteLength>=4&&TS(t)}function TS(t){const r=t.getUint16(0)===An.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function ES(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const ah={isJpegFile:US,findJpegOffsets:jS},BS=2,NS=65496,ch=2,rt=4,Ne=2,IS=2,$S=10,FS=18,uh=33,dh=79,fh=18,AS=8,da="ICC_PROFILE\0",hh=rt+da.length,OS=hh+1,_h="MPF\0",mh=65472,ph=65474,DS=65476,MS=65499,PS=65501,vS=65498,gh=65504,fa=65505,yh=65506,LS=65517,VS=65519,qS=65534,RS=65535,bh="JFIF",wh="Exif",kh="http://ns.adobe.com/xap/1.0/\0",xh="http://ns.adobe.com/xmp/extension/\0",Sh="Photoshop 3.0";function US(t){return!!t&&t.byteLength>=BS&&t.getUint16(0)===NS}function jS(t){let e=ch,n,r,o,s,l,a,c,u,d;for(;e+rt+5<=t.byteLength;){if(zS(t,e))n=t.getUint16(e+Ne),r=e+Ne;else if(HS(t,e))n=t.getUint16(e+Ne),o=e+Ne;else if(WS(t,e))n=t.getUint16(e+Ne),s=e+IS;else if(YS(t,e))n=t.getUint16(e+Ne),l=e+$S;else if(KS(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(eC(e,n));else if(XS(t,e))c||(c=[]),n=t.getUint16(e+Ne),c.push(tC(e,n));else if(nC(t,e))n=t.getUint16(e+Ne),a=e+FS;else if(GS(t,e)){n=t.getUint16(e+Ne);const f=e+fh,h=n-(fh-Ne),_=t.getUint8(e+hh),p=t.getUint8(e+OS);u||(u=[]),u.push({offset:f,length:h,chunkNumber:_,chunksTotal:p})}else if(ZS(t,e))n=t.getUint16(e+Ne),d=e+AS;else if(rC(t,e))n=t.getUint16(e+Ne);else if(oC(t,e)){e++;continue}else break;e+=Ne+n}return{hasAppMarkers:e>ch,fileDataOffset:r||o,jfifDataOffset:s,tiffHeaderOffset:l,iptcDataOffset:a,xmpChunks:c,iccChunks:u,mpfDataOffset:d}}function zS(t,e){return t.getUint16(e)===mh}function HS(t,e){return t.getUint16(e)===ph}function GS(t,e){const n=da.length;return t.getUint16(e)===yh&&q(t,e+rt,n)===da}function ZS(t,e){const n=_h.length;return t.getUint16(e)===yh&&q(t,e+rt,n)===_h}function WS(t,e){const n=bh.length;return t.getUint16(e)===gh&&q(t,e+rt,n)===bh&&t.getUint8(e+rt+n)===0}function YS(t,e){const n=wh.length;return t.getUint16(e)===fa&&q(t,e+rt,n)===wh&&t.getUint8(e+rt+n)===0}function KS(t,e){return t.getUint16(e)===fa&&QS(t,e)}function QS(t,e){const n=kh.length;return q(t,e+rt,n)===kh}function XS(t,e){return t.getUint16(e)===fa&&JS(t,e)}function JS(t,e){const n=xh.length;return q(t,e+rt,n)===xh}function eC(t,e){return{dataOffset:t+uh,length:e-(uh-Ne)}}function tC(t,e){return{dataOffset:t+dh,length:e-(dh-Ne)}}function nC(t,e){const n=Sh.length;return t.getUint16(e)===LS&&q(t,e+rt,n)===Sh&&t.getUint8(e+rt+n)===0}function rC(t,e){const n=t.getUint16(e);return n>=gh&&n<=VS||n===qS||n===mh||n===ph||n===DS||n===MS||n===PS||n===vS}function oC(t,e){return t.getUint16(e)===RS}const Ch={isPngFile:lC,findPngOffsets:aC},ha=`PNG\r
|
152
152
|
|
153
|
-
`,Oi=4,ut=4,Tr=0,tn=Oi,ke=Oi+ut,_a="XML:com.adobe.xmp\0",ma="tEXt",On="iTXt",Di="zTXt",Th="pHYs",Eh="tIME",iC="eXIf",sC="iCCP";function lC(t){return!!t&&q(t,0,ha.length)===ha}function aC(t,e){const r={hasAppMarkers:!1};let o=ha.length;for(;o+Oi+ut<=t.byteLength;){if(cC(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+ke;else if(uC(t,o)){const s=mC(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+Tr)-(s-(o+ke))}])}else if(dC(t,o,e)){r.hasAppMarkers=!0;const s=q(t,o+tn,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+Tr),type:s,offset:o+ke})}else if(fC(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+ke;else if(e&&hC(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+Tr),l=o+ke,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=pC(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else _C(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+Tr));o+=t.getUint32(o+Tr)+Oi+ut+4}return r}function cC(t,e){return q(t,e+tn,ut)==="IHDR"}function uC(t,e){return q(t,e+tn,ut)===On&&q(t,e+ke,_a.length)===_a}function dC(t,e,n){const r=q(t,e+tn,ut);return r===ma||r===On||r===Di&&n}function fC(t,e){return q(t,e+tn,ut)===iC}function hC(t,e){return q(t,e+tn,ut)===sC}function _C(t,e){const n=[Th,Eh],r=q(t,e+tn,ut);return n.includes(r)}function mC(t,e){e+=ke+_a.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function pC(t,e){const o=Sr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function gC(t,e){return t.getUint32(e+4)}function yC(t,e,n,r){const{offsets:s,sizes:l}=bC(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=wC(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=kC(t,s.itemCount,e);return{type:"iloc",items:xC(t,e,s,l,a,c,d,f),length:r}}function bC(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+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 wC(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function kC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function xC(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=SC(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Mi(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const _={};_.extentIndex=CC(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=Mi(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=Mi(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function SC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function CC(t,e,n,r){if((e===1||e===2)&&r>0)return Mi(t,n,r)}function Mi(t,e,n){return n===4?t.getUint32(e):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."),gC(t,e)):0}const TC=1718909296,EC=1768977008,BC=1835365473,NC=1768714083,IC=1768517222,$C=1768842853,FC=1768973167,AC=1668246642,Bh=1165519206,pa=1835625829,OC=1970432288;function Pi(t,e){const{length:s,contentOffset:l}=DC(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===TC)return HC(t,l,s);if(a===EC)return GC(t,e,l,s);if(a===FC)return ZC(t,e,l,s);if(a===AC)return WC(t,l,s);const c=t.getUint8(l);return a===BC?KC(t,e,l+1,s):a===NC?yC(t,c,l+1,s):a===IC?QC(t,e,c,l+1,s):a===$C?JC(t,e,c,l+1,s):{type:void 0,length:s}}function DC(t,e){const l=t.getUint32(e);return MC(l)?{length:t.byteLength-e,contentOffset:e+4+4}:PC(l)&&vC(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function MC(t){return t===0}function PC(t){return t===1}function vC(t,e){return t.getUint32(e+8)===0}function Nh(t){{const e={},n=LC(t);return n?(e.tiffHeaderOffset=VC(t,n),e.xmpChunks=UC(n),e.iccChunks=zC(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function LC(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Pi(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function VC(t,e){try{const n=qC(e).itemId,r=ga(e,n),o=r.baseOffset+r.extents[0].extentOffset;return RC(t,o)}catch{return}}function qC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===Bh)}function ga(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function RC(t,e){return e+4+t.getUint32(e)}function UC(t){try{const e=jC(t).itemId,n=ga(t,e),r=ga(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function jC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===pa&&e.contentType==="application/rdf+xml")}function zC(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function HC(t,e,n){return{type:"ftyp",majorBrand:q(t,e,4),length:n}}function GC(t,e,n,r){return{type:"iprp",subBoxes:vi(t,n,r-(n-e)),length:r}}function ZC(t,e,n,r){return{type:"ipco",properties:vi(t,n,r-(n-e)),length:r}}function WC(t,e,n){return{type:"colr",icc:YC(t,e),length:n}}function YC(t,e){const r=q(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function KC(t,e,n,r){return{type:"meta",subBoxes:vi(t,n+3,r-(n+3-e)),length:r}}function vi(t,e,n){const r=[Bh,pa],o=[];let s=e;for(;s<e+n;){const l=Pi(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function QC(t,e,n,r,o){const{offsets:s}=XC(n,r);return{type:"iinf",itemInfos:vi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function XC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function JC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=Sr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=Sr(t,r),r+=l.itemName.length+1,l.itemType===pa?(l.contentType=Sr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=Sr(t,r),r+=l.contentEncoding.length+1)):l.itemType===OC&&(l.itemUri=Sr(t,r),r+=l.itemUri.length+1)),l}const Ih={isHeicFile:e3,findHeicOffsets:t3};function e3(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Pi(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function t3(t){return Nh(t)}const $h={isAvifFile:n3,findAvifOffsets:r3};function n3(t){if(!t)return!1;try{const e=Pi(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function r3(t){return Nh(t)}const Fh={isWebpFile:o3,findOffsets:i3};function o3(t){const n="RIFF",o="WEBP";return!!t&&q(t,0,n.length)===n&&q(t,8,o.length)===o}function i3(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=q(t,s,4),h=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,q(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const Ah={isGifFile:a3,findOffsets:c3},s3=6,l3=["GIF87a","GIF89a"];function a3(t){return!!t&&l3.includes(q(t,0,s3))}function c3(){return{gifHeaderOffset:0}}const Oh={isXMLFile:u3,findOffsets:d3},Dh=0,Mh="<?xpacket begin";function u3(t){return!!t&&q(t,Dh,Mh.length)===Mh}function d3(t){const e=[];return e.push({dataOffset:Dh,length:t.byteLength}),{xmpChunks:e}}const f3={parseAppMarkers:h3};function h3(t,e){if(lh.isTiffFile(t))return nn(lh.findTiffOffsets(),"tiff","TIFF");if(ah.isJpegFile(t))return nn(ah.findJpegOffsets(t),"jpeg","JPEG");if(Ch.isPngFile(t))return nn(Ch.findPngOffsets(t,e),"png","PNG");if(Ih.isHeicFile(t))return nn(Ih.findHeicOffsets(t),"heic","HEIC");if($h.isAvifFile(t))return nn($h.findAvifOffsets(t),"avif","AVIF");if(Fh.isWebpFile(t))return nn(Fh.findOffsets(t),"webp","WebP");if(Ah.isGifFile(t))return nn(Ah.findOffsets(t),"gif","GIF");if(Oh.isXMLFile(t))return nn(Oh.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function nn(t,e,n){return U({},t,{fileType:{value:e,description:n}})}const R={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.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(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},Ph={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({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"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:R.XResolution},283:{name:"YResolution",description:R.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:R.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.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:go},40092:{name:"XPComment",description:go},40093:{name:"XPAuthor",description:go},40094:{name:"XPKeywords",description:go},40095:{name:"XPSubject",description:go},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:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:R.LightSource},50779:{name:"CalibrationIlluminant2",description:R.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:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"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:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function go(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const _3={33434:{name:"ExposureTime",description:R.ExposureTime},33437:{name:"FNumber",description:R.FNumber},34850:{name:"ExposureProgram",description:R.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({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"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>me(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:R.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:R.ShutterSpeedValue},37378:{name:"ApertureValue",description:R.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:R.MeteringMode},37384:{name:"LightSource",description:R.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:R.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:aa},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:R.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:R.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:R.CustomRendered},41986:{name:"ExposureMode",description:R.ExposureMode},41987:{name:"WhiteBalance",description:R.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:R.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:R.Contrast},41993:{name:"Saturation",description:R.Saturation},41994:{name:"Sharpness",description:R.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const o=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(o.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"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"},m3={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Ai},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Ai},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:aa},28:{name:"GPSAreaInformation",description:aa},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},p3={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>me(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},g3={45056:{name:"MPFVersion",description:t=>me(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},y3={4:{name:"ShotInfo",description:t=>t}},vh=U({},Ph,_3),ya="0th",Lh="1st",Vh="exif",qh="gps",Rh="interoperability",Uh="mpf",jh="canon",rn={[ya]:vh,[Lh]:Ph,[Vh]:vh,[qh]:m3,[Rh]:p3,[Uh]:g3,[jh]:y3},zh={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ba={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},F={getAsciiValue:b3,getByteAt:Hh,getAsciiAt:w3,getShortAt:k3,getLongAt:Li,getRationalAt:x3,getUndefinedAt:S3,getSlongAt:wa,getSrationalAt:C3,getIfdPointerAt:T3,typeSizes:zh,tagTypes:ba,getTypeSize:E3};function b3(t){return t.map(e=>String.fromCharCode(e))}function Hh(t,e){return t.getUint8(e)}function w3(t,e){return t.getUint8(e)}function k3(t,e,n){return t.getUint16(e,n===An.LITTLE_ENDIAN)}function Li(t,e,n){return t.getUint32(e,n===An.LITTLE_ENDIAN)}function x3(t,e,n){return[Li(t,e,n),Li(t,e+4,n)]}function S3(t,e){return Hh(t,e)}function wa(t,e,n){return t.getInt32(e,n===An.LITTLE_ENDIAN)}function C3(t,e,n){return[wa(t,e,n),wa(t,e+4,n)]}function T3(t,e,n){return Li(t,e,n)}function E3(t){if(ba[t]===void 0)throw new Error("No such type found.");return zh[ba[t]]}const B3={1:F.getByteAt,2:F.getAsciiAt,3:F.getShortAt,4:F.getLongAt,5:F.getRationalAt,7:F.getUndefinedAt,9:F.getSlongAt,10:F.getSrationalAt,13:F.getIfdPointerAt};function Gh(t,e,n){return e+F.getLongAt(t,e+4,n)}function Dn(t,e,n,r,o,s){const l=F.getTypeSize("SHORT"),a=12,c={},u=N3(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=I3(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description},f.name==="MakerNote"&&(c[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-F.getTypeSize("LONG")){const d=F.getLongAt(t,r,o);d!==0&&e===ya&&(c.Thumbnail=Dn(t,Lh,n,n+d,o,s))}return c}function N3(t,e,n){return e+F.getTypeSize("SHORT")<=t.byteLength?F.getShortAt(t,e,n):0}function I3(t,e,n,r,o,s){const a=F.getTypeSize("SHORT"),c=a+F.getTypeSize("SHORT"),u=c+F.getTypeSize("LONG"),d=F.getShortAt(t,r,o),f=F.getShortAt(t,r+a,o),h=F.getLongAt(t,r+c,o);let _,p;if(F.typeSizes[f]===void 0||!s&&rn[e][d]===void 0)return;if($3(f,h))p=r+u,_=Zh(t,p,f,h,o);else if(p=F.getLongAt(t,r+u,o),F3(t,n,p,f,h)){const x=d===33723;_=Zh(t,n+p,f,h,o,x)}else _="<faulty value>";f===F.tagTypes.ASCII&&(_=A3(_),_=O3(_));let m=`undefined-${d}`,g=_;if(rn[e][d]!==void 0)if(rn[e][d].name!==void 0&&rn[e][d].description!==void 0){m=rn[e][d].name;try{g=rn[e][d].description(_)}catch{g=Wh(_)}}else f===F.tagTypes.RATIONAL||f===F.tagTypes.SRATIONAL?(m=rn[e][d],g=""+_[0]/_[1]):(m=rn[e][d],g=Wh(_));return{id:d,name:m,value:_,description:g,__offset:p}}function $3(t,e){return F.typeSizes[t]*e<=F.getTypeSize("LONG")}function Zh(t,e,n,r,o,s=!1){let l=[];s&&(r=r*F.typeSizes[n],n=F.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(B3[n](t,e,o)),e+=F.typeSizes[n];return n===F.tagTypes.ASCII?l=F.getAsciiValue(l):l.length===1&&(l=l[0]),l}function F3(t,e,n,r,o){return e+n+F.typeSizes[r]*o<=t.byteLength}function A3(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function O3(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function Wh(t){return t instanceof Array?t.join(", "):t}const Yh="Exif IFD Pointer",Kh="GPS Info IFD Pointer",Qh="Interoperability IFD Pointer",Xh={read:D3};function D3(t,e,n){const r=An.getByteOrder(t,e);let o=M3(t,e,r,n);return o=P3(o,t,e,r,n),o=v3(o,t,e,r,n),o=L3(o,t,e,r,n),{tags:o,byteOrder:r}}function M3(t,e,n,r){return Dn(t,ya,e,Gh(t,e,n),n,r)}function P3(t,e,n,r,o){return t[Yh]!==void 0?U(t,Dn(e,Vh,n,n+t[Yh].value,r,o)):t}function v3(t,e,n,r,o){return t[Kh]!==void 0?U(t,Dn(e,qh,n,n+t[Kh].value,r,o)):t}function L3(t,e,n,r,o){return t[Qh]!==void 0?U(t,Dn(e,Rh,n,n+t[Qh].value,r,o)):t}const V3={read:q3},Er=16;function q3(t,e,n){const r=An.getByteOrder(t,e),o=Dn(t,Uh,e,Gh(t,e,r),r,n);return R3(t,e,o,r)}function R3(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/Er);s++){o[s]={};const l=yo(n.MPEntry.value,s*Er,F.getTypeSize("LONG"),r);o[s].ImageFlags=U3(l),o[s].ImageFormat=j3(l),o[s].ImageType=z3(l);const a=yo(n.MPEntry.value,s*Er+4,F.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=H3(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=yo(n.MPEntry.value,s*Er+12,F.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=yo(n.MPEntry.value,s*Er+14,F.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),th(o[s],"base64",function(){return nh(this.image)})}return n.Images=o,n}function yo(t,e,n,r){if(r===An.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function U3(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function j3(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function z3(t){const e=t&16777215;return{value:e,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"}[e]||"Unknown"}}function H3(t,e,n,r){return G3(t)?0:yo(e.value,t*Er+8,F.getTypeSize("LONG"),n)+r}function G3(t){return t===0}const Z3={read:W3};function W3(t,e){const n=Y3(t,e),r=J3(t,e,n);return{"Bits Per Sample":K3(t,e,n),"Image Height":Q3(t,e,n),"Image Width":X3(t,e,n),"Color Components":r,Subsampling:r&&e4(t,e,r.value,n)}}function Y3(t,e){return F.getShortAt(t,e)}function K3(t,e,n){if(3>n)return;const s=F.getByteAt(t,e+2);return{value:s,description:""+s}}function Q3(t,e,n){if(5>n)return;const s=F.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function X3(t,e,n){if(7>n)return;const s=F.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function J3(t,e,n){if(8>n)return;const s=F.getByteAt(t,e+7);return{value:s,description:""+s}}function e4(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([F.getByteAt(t,c),F.getByteAt(t,c+1),F.getByteAt(t,c+2)])}return{value:l,description:l.length>1?t4(l)+n4(l):""}}function t4(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function n4(t){const e={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 t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const r4={read:o4};function o4(t,e){const n=i4(t,e),r=d4(t,e,n),o=f4(t,e,n),s={"JFIF Version":s4(t,e,n),"Resolution Unit":l4(t,e,n),XResolution:c4(t,e,n),YResolution:u4(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=h4(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function i4(t,e){return F.getShortAt(t,e)}function s4(t,e,n){if(9>n)return;const s=F.getByteAt(t,e+7),l=F.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function l4(t,e,n){if(10>n)return;const s=F.getByteAt(t,e+9);return{value:s,description:a4(s)}}function a4(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function c4(t,e,n){if(12>n)return;const s=F.getShortAt(t,e+10);return{value:s,description:""+s}}function u4(t,e,n){if(14>n)return;const s=F.getShortAt(t,e+12);return{value:s,description:""+s}}function d4(t,e,n){if(15>n)return;const s=F.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function f4(t,e,n){if(16>n)return;const s=F.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function h4(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const on={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:ka},336:{name:"Time Sent",description:xa},346:{name:"Coded Character Set",description:Jh,encoding_name:Jh},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>me(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=me(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[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:t=>{const e=me(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="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:ka},572:{name:"Time Created",description:xa},574:{name:"Digital Creation Date",description:ka},575:{name:"Digital Creation Time",description:xa},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=me(t);return e==="a"?"morning":e==="p"?"evening":e==="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:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=me(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=me(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(me(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(me(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=me(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return me(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const 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=me(t);if(e["ObjectData Preview File Format"]){const o=me(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function ka(t){const e=me(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function xa(t){const e=me(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function Jh(t){const e=me(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const _4={get:m4};function m4(){if(typeof TextDecoder<"u")return TextDecoder}const e_={decode:p4,TAG_HEADER_SIZE:5};function p4(t,e){const n=_4.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(o=>String.fromCharCode(o)).join("");return g4(r)}function g4(t){try{return decodeURIComponent(escape(t))}catch{return t}}const y4=943868237,bo=4,Vi=2,b4=1,w4=2,t_=4,k4=bo+Vi+w4+t_,x4=1028,n_=5,Sa={read:S4};function S4(t,e,n){try{if(Array.isArray(t))return r_(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=C4(t,e);return r_(t,r,o,n)}catch{return{}}}function C4(t,e){for(;e+k4<=t.byteLength;){const n=T4(t,e);if(E4(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+B4(n)}throw new Error("No IPTC NAA resource block.")}function T4(t,e){if(t.getUint32(e,!1)!==y4)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+bo+Vi),r=(n%2===0?n+1:n)+b4;return{headerSize:bo+Vi+r+t_,type:t.getUint16(e+bo),size:t.getUint32(e+bo+Vi+r)}}function E4(t){return t.type===x4}function B4(t){return t.size%2!==0?1:0}function r_(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=N4(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=n_+c}return o}function N4(t,e,n,r,o){if(I4(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!on.iptc[a])return{tag:void 0,tagSize:c};const u=$4(t,e+n_,c),d={id:a,name:F4(on.iptc[a],a,u),value:u,description:D4(on.iptc[a],u,n,r)};return v4(a)&&(d.repeatable=!0),L4(a)&&(d.encoding=on.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function I4(t,e){return t.getUint8(e)!==28}function $4(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function F4(t,e,n){return t?A4(t)?t:O4(t)?t.name(n):t.name:`undefined-${e}`}function A4(t){return typeof t=="string"}function O4(t){return typeof t.name=="function"}function D4(t,e,n,r){if(P4(t))try{return t.description(e,n)}catch{}return M4(t,e)?e_.decode(r,e):e}function M4(t,e){return t&&e instanceof Array}function P4(t){return t&&t.description!==void 0}function v4(t){return on.iptc[t]&&on.iptc[t].repeatable}function L4(t){return on.iptc[t]&&on.iptc[t].encoding_name!==void 0}const qi={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>R.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Br(R.XResolution,t),"tiff:YResolution":t=>Br(R.YResolution,t),"exif:ApertureValue":t=>Br(R.ApertureValue,t),"exif:GPSLatitude":i_,"exif:GPSLongitude":i_,"exif:FNumber":t=>Br(R.FNumber,t),"exif:FocalLength":t=>Br(R.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>R.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>R.ColorSpace(V4(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return R.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>R.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>R.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>R.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>R.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return o_(t)?R.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>R.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>R.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>R.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>R.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Br(R.ShutterSpeedValue,t),"exif:WhiteBalance":t=>R.WhiteBalance(parseInt(t,10))};function Br(t,e){return o_(e)?t(e.split("/")):e}function V4(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function o_(t){return/^-?\d+\/-?\d+$/.test(t)}function i_(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const q4={get:R4};function R4(){if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:t,onErrorStopParsing:e}=__non_webpack_require__("@xmldom/xmldom");return new t({onError:e})}catch{return}}const s_={read:U4};function U4(t,e){const n={};if(typeof t=="string")return Ri(n,t),n;const[r,o]=j4(t,e),s=Ri(n,r);if(o){const l=Ri(n,o);!s&&!l&&(delete n._raw,Ri(n,Ca(t,e)))}return n}function j4(t,e){if(e.length===0)return[];const n=[Ca(t,e.slice(0,1))];return e.length>1&&n.push(Ca(t,e.slice(1))),n}function Ca(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function Ri(t,e){try{const{doc:n,raw:r}=z4(e);t._raw=(t._raw||"")+r;const o=l_(n);return U(t,c_(a_(o,!0))),!0}catch{return!1}}function z4(t){const e=q4.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:q(t,0,t.byteLength),r=e.parseFromString(H4(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function H4(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function l_(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return l_(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function a_(t,e=!1){const n=G4(t);return Z4(n)?e?{}:W4(n[0]):Y4(n)}function G4(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function Z4(t){return t.length===1&&t[0].nodeName==="#text"}function W4(t){return t.nodeValue}function Y4(t){const e={};return t.forEach(n=>{if(K4(n)){const r=Q4(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function K4(t){return t.nodeName&&t.nodeName!=="#text"}function Q4(t){return{attributes:X4(t),value:a_(t)}}function X4(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function c_(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(o=>{U(e,Ta(o.attributes)),typeof o.value=="object"&&U(e,u_(o.value))})}return e}function Ta(t){const e={};for(const n in t)try{J4(n)&&(e[ji(n)]={value:t[n],attributes:{},description:Mt(t[n],n)})}catch{}return e}function J4(t){return t!=="rdf:parseType"&&!Ui(t)}function Ui(t){return t.split(":")[0]==="xmlns"}function ji(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Mt(t,e=void 0){if(Array.isArray(t)){const n=eT(t);return e&&typeof qi[e]=="function"?qi[e](t,n):n}if(typeof t=="object")return tT(t);try{return e&&typeof qi[e]=="function"?qi[e](t):decodeURIComponent(escape(t))}catch{return t}}function eT(t){return t.map(e=>e.value!==void 0?Mt(e.value):Mt(e)).join(", ")}function tT(t){const e=[];for(const n in t)e.push(`${nT(n)}: ${Mt(t[n].value)}`);return e.join("; ")}function nT(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function u_(t){const e={};for(const n in t)try{Ui(n)||(e[ji(n)]=rT(t[n],n))}catch{}return e}function rT(t,e){return iT(t)?sT(t,e):oT(t)?{value:"",attributes:{},description:""}:d_(t)?f_(t,e):h_(t)?__(t,e):m_(t)?p_(t,e):cT(t)?uT(t,e):Ea(t,e)}function oT(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function iT(t){return Array.isArray(t)}function sT(t,e){return Ea(t[t.length-1],e)}function d_(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function f_(t,e){const n=wo(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),U(n,wo(t),lT(t));const r=aT(t);return{value:r,attributes:n,description:Mt(r,e)}}function wo(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Ui(n)&&(e[ji(n)]=t.attributes[n]);return e}function lT(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Ui(n)&&(e[ji(n)]=t.value[n].value);return e}function aT(t){return y_(t.value["rdf:value"])||t.value["rdf:value"].value}function h_(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function __(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(U(n.value,Ta(t.value["rdf:Description"].attributes)),U(n.attributes,wo(t)),t=t.value["rdf:Description"]),U(n.value,u_(t.value)),n.description=Mt(n.value,e),n}function m_(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function p_(t,e){const n=Ta(t.attributes);return{value:n,attributes:{},description:Mt(n,e)}}function cT(t){return g_(t.value)!==void 0}function g_(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function uT(t,e){let n=g_(t.value).value["rdf:li"];const r=wo(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(dT(s))}),{value:o,attributes:r,description:Mt(o,e)}}function dT(t){return d_(t)?f_(t):h_(t)?__(t).value:m_(t)?p_(t).value:Ea(t)}function Ea(t,e){const n=y_(t)||c_(t.value);return{value:n,attributes:wo(t),description:Mt(n,e)}}function y_(t){return t.attributes&&t.attributes["rdf:resource"]}const Pt={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},b_=24,Ba={2e3:{name:"PathInformation",description:fT},2999:{name:"ClippingPathName",description(t){const[,e]=eh(t,0);return e}}};function fT(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+b_){const s=F.getShortAt(t,o);Na[s]&&(n[s]||(n[s]=Na[s].description),r.push({type:s,path:Na[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const Na={[Pt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:zi},[Pt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:zi},[Pt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:zi},[Pt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:zi},[Pt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Pt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLIPBOARD]:{description:"Clipboard",path:_T}};function zi(t,e){const r=[];for(let o=0;o<b_;o+=8)r.push(hT(t,e+o));return r}function hT(t,e){const n=Mn(t,e,8);return[Mn(t,e+4,8),n]}function _T(t,e){return[[Mn(t,e,8),Mn(t,e+4,8),Mn(t,e+8,8),Mn(t,e+12,8)],Mn(t,e+16,8)]}function Mn(t,e,n){const r=F.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(rh("1",32-n),2);return o*xS(s.toString(2)+"."+kS(l.toString(2),32-n,"0"),2)}const mT={read:yT},w_="8BIM",pT=2,gT=4,k_=w_.length;function yT(t,e){const n=J1(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=q(n,o,k_);o+=k_;const l=F.getShortAt(n,o);o+=pT;const{tagName:a,tagNameSize:c}=bT(n,o);o+=c;const u=F.getLongAt(n,o);if(o+=gT,s===w_){const d=J1(n.buffer,o,u),f={id:l,value:q(d,0,u)};if(Ba[l]){try{f.description=Ba[l].description(d)}catch{f.description="<no description formatter>"}r[a||Ba[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function bT(t,e){const[n,r]=eh(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const x_={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"}},S_={4:{name:"Preferred CMM type",value:(t,e)=>q(t,e,4),description:t=>t!==null?Ia(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>q(t,e,4),description:t=>{switch(t.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 t}}},16:{name:"Color Space",value:(t,e)=>q(t,e,4)},20:{name:"Connection Space",value:(t,e)=>q(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>wT(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>kT(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},48:{name:"Device Manufacturer",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},52:{name:"Device Model Number",value:(t,e)=>q(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>q(t,e,4)}};function wT(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function kT(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ia(t){switch(t.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 t}}const C_={read:$T},xT=84,ST=128,CT="acsp",TT="desc",ET="mluc",BT="text",NT="sig ",IT=12;function $T(t,e,n){return n&&e[0].compressionMethod!==Fi?FT(t,e):OT(t,e)}function FT(t,e){if(!AT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return ih(n,e[0].compressionMethod,"utf-8","dataview").then(T_).catch(()=>({}))}function AT(t){return t===oh}function OT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=DT(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return T_(new DataView(r.buffer))}catch{return{}}}function DT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function MT(t){return t.length<ST+4}function PT(t,e){return t.length<e+IT}function T_(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<xT)throw new Error("ICC profile too short");const r={},o=Object.keys(S_);for(let c=0;c<o.length;c++){const u=o[c],d=S_[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Hi(e.slice(36,40))!==CT)throw new Error("ICC profile: missing signature");if(MT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(PT(e,a))return r;const u=q(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=q(t,d,4);if(h===TT){const _=t.getUint32(d+8);if(_>f)return r;const p=Hi(e.slice(d+12,d+_+11));ko(r,u,p)}else if(h===ET){const _=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let x=0;x<_;x++){const y=q(t,m+0,2),w=q(t,m+2,2),C=t.getUint32(m+4),T=t.getUint32(m+8),b=bS(t,d+T,C);g.push({languageCode:y,countryCode:w,text:b}),m+=p}if(_===1)ko(r,u,g[0].text);else{const x={};for(let y=0;y<g.length;y++)x[`${g[y].languageCode}-${g[y].countryCode}`]=g[y].text;ko(r,u,x)}}else if(h===BT){const _=Hi(e.slice(d+8,d+f-7));ko(r,u,_)}else if(h===NT){const _=Hi(e.slice(d+8,d+12));ko(r,u,_)}a=a+12}return r}function Hi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function ko(t,e,n){x_[e]?t[x_[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Gi=27,vT={read:LT,SHOT_INFO_AUTO_ROTATE:Gi};function LT(t,e,n,r,o){let s=Dn(t,jh,e,e+n,r,o);return s.ShotInfo&&(s=U({},s,VT(s.ShotInfo.value)),delete s.ShotInfo),s}function VT(t){const e={};return t[Gi]!==void 0&&(e.AutoRotate={value:t[Gi],description:qT(t[Gi])}),e}function qT(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const RT={read:UT};function UT(t,e){return{"Image Width":jT(t,e),"Image Height":zT(t,e),"Bit Depth":HT(t,e),"Color Type":GT(t,e),Compression:ZT(t,e),Filter:WT(t,e),Interlace:YT(t,e)}}function jT(t,e){if(e+0+4>t.byteLength)return;const o=F.getLongAt(t,e);return{value:o,description:`${o}px`}}function zT(t,e){if(e+4+4>t.byteLength)return;const o=F.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function HT(t,e){if(e+8+1>t.byteLength)return;const o=F.getByteAt(t,e+8);return{value:o,description:`${o}`}}function GT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=F.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function ZT(t,e){if(e+10+1>t.byteLength)return;const o=F.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function WT(t,e){if(e+11+1>t.byteLength)return;const o=F.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function YT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=F.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const KT={read:tE},$a="STATE_KEYWORD",Fa="STATE_COMPRESSION",Aa="STATE_LANG",QT="STATE_TRANSLATED_KEYWORD",Oa="STATE_TEXT",XT=1,JT=1,eE=6;function tE(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=nE(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:h,description:_})=>{try{if(sh.USE_EXIF&&B_(f,h))return{__exif:Xh.read(I_(h),eE,r).tags};if(sh.USE_IPTC&&N_(f,h))return{__iptc:Sa.read(I_(h),0,r)};if(f&&!B_(f,h)&&!N_(f,h))return{[f]:{value:h,description:_}}}catch{}return{}}));else{const{name:f,value:h,description:_}=d;f&&(o[f]={value:h,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function nE(t,e,n,r,o){const s=[],l=[];let a,c=$a,u=Fi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===Fa){u=rE({type:r,dataView:t,offset:e+f}),r===On&&(f+=XT),c=E_(r,c);continue}else if(c===Oa){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=E_(r,c):c===$a?s.push(h):c===Aa&&l.push(h)}if(u!==Fi&&!o)return{};const d=ih(a,u,oE(r));return d instanceof Promise?d.then(f=>Da(f,r,l,s)).catch(()=>Da("<text using unknown compression>".split(""),r,l,s)):Da(d,r,l,s)}function rE({type:t,dataView:e,offset:n}){if(t===On){if(e.getUint8(n)===JT)return e.getUint8(n+1)}else if(t===Di)return e.getUint8(n);return Fi}function E_(t,e){return e===$a&&[On,Di].includes(t)?Fa:e===Fa?t===On?Aa:Oa:e===Aa?QT:Oa}function oE(t){return t===ma||t===Di?"latin1":"utf-8"}function Da(t,e,n,r){const o=sE(t);return{name:iE(e,n,r),value:o,description:e===On?lE(t):o}}function iE(t,e,n){const r=Cr(n);if(t===ma||e.length===0)return r;const o=Cr(e);return`${r} (${o})`}function sE(t){return t instanceof DataView?q(t,0,t.byteLength):t}function lE(t){return e_.decode("UTF-8",t)}function B_(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function N_(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function I_(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return aE(e[2].replace(/\n/g,""))}function aE(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const cE={read:uE};function uE(t,e){const n={};for(let r=0;r<e.length;r++){const o=F.getLongAt(t,e[r]+Tr),s=q(t,e[r]+tn,ut);s===Th?(n["Pixels Per Unit X"]=dE(t,e[r],o),n["Pixels Per Unit Y"]=fE(t,e[r],o),n["Pixel Units"]=hE(t,e[r],o)):s===Eh&&(n["Modify Date"]=_E(t,e[r],o))}return n}function dE(t,e,n){if(!Zi(t,e,n,0,4))return;const s=F.getLongAt(t,e+ke+0);return{value:s,description:""+s}}function fE(t,e,n){if(!Zi(t,e,n,4,4))return;const s=F.getLongAt(t,e+ke+4);return{value:s,description:""+s}}function hE(t,e,n){if(!Zi(t,e,n,8,1))return;const s=F.getByteAt(t,e+ke+8);return{value:s,description:s===1?"meters":"Unknown"}}function _E(t,e,n){if(!Zi(t,e,n,0,7))return;const o=F.getShortAt(t,e+ke),s=F.getByteAt(t,e+ke+2),l=F.getByteAt(t,e+ke+3),a=F.getByteAt(t,e+ke+4),c=F.getByteAt(t,e+ke+5),u=F.getByteAt(t,e+ke+6);return{value:[o,s,l,a,c,u],description:`${Nr(o,4)}-${Nr(s,2)}-${Nr(l,2)} ${Nr(a,2)}:${Nr(c,2)}:${Nr(u,2)}`}}function Zi(t,e,n,r,o){return r+o<=n&&e+ke+r+o<=t.byteLength}function Nr(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const mE={read:yE},pE=4,gE=7;function yE(t,e){const n={},r=F.getByteAt(t,e);return n.Alpha=bE(r),n.Animation=wE(r),n.ImageWidth=$_(t,e+pE),n.ImageHeight=$_(t,e+gE),n}function bE(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function wE(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function $_(t,e){const n=F.getByteAt(t,e)+256*F.getByteAt(t,e+1)+65536*F.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const kE={read:xE};function xE(t){return{"GIF Version":SE(t),"Image Width":CE(t),"Image Height":TE(t),"Global Color Map":EE(t),"Bits Per Pixel":NE(t),"Color Resolution Depth":BE(t)}}function SE(t){if(6>t.byteLength)return;const r=q(t,3,3);return{value:r,description:r}}function CE(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function TE(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function EE(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function BE(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function NE(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const IE=[6,7,99],$E={get:FE};function FE(t,e,n){if(AE(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),th(e,"base64",function(){return nh(this.image)})}return e}function AE(t){return t&&(t.Compression===void 0||IE.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function F_(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}F_.prototype=new Error;const A_={MetadataMissingError:F_},OE={load:DE,loadView:O_,errors:A_};function DE(t,e={}){return ME(t)?(e.async=!0,PE(t,e).then(n=>Ma(n,e))):jE(t)?(e.async=!0,zE(t).then(n=>Ma(n,e))):Ma(t,e)}function ME(t){return typeof t=="string"}function PE(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?vE(t,e):LE(t,e):qE(t)?Promise.resolve(wS(t)):RE(t,e)}function vE(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function LE(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),VE(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function VE(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function qE(t){return/^data:[^;,]*(;base64)?,/.test(t)}function RE(t,{length:e}={}){return new Promise((n,r)=>{const o=UE();o.open(t,(s,l)=>{s?r(s):o.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};o.read(l,f,h=>{h?r(h):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function UE(){try{return __non_webpack_require__("fs")}catch{return}}function jE(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function zE(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ma(t,e){return HE(t)&&(t=new Uint8Array(t).buffer),O_(GE(t),e)}function HE(t){try{return Buffer.isBuffer(t)}catch{return!1}}function GE(t){try{return new DataView(t)}catch{return new X1(t)}}function O_(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:x,vp8xChunkOffset:y,gifHeaderOffset:w}=f3.parseAppMarkers(t,n);if(ZE(c)){o=!0;const k=Z3.read(t,c);e?s.file=k:s=U({},s,k)}if(WE(u)){o=!0;const k=r4.read(t,u);e?s.jfif=k:s=U({},s,k)}if(YE(d)){o=!0;const{tags:k,byteOrder:E}=Xh.read(t,d,r);if(k.Thumbnail&&(s.Thumbnail=k.Thumbnail,delete k.Thumbnail),e?(s.exif=k,KE(s)):s=U({},s,k),k["IPTC-NAA"]&&!D_(f)){const B=Sa.read(k["IPTC-NAA"].value,0,r);e?s.iptc=B:s=U({},s,B)}if(k.ApplicationNotes&&!M_(h)){const B=s_.read(Cr(k.ApplicationNotes.value));e?s.xmp=B:(delete B._raw,s=U({},s,B))}if(k.ImageSourceData){const B=mT.read(k.PhotoshopSettings.value,r);e?s.photoshop=B:s=U({},s,B)}if(k.ICC_Profile&&!P_(_)){const B=C_.read(k.ICC_Profile.value,[{offset:0,length:k.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=B:s=U({},s,B)}if(QE(k)){const B=vT.read(t,d,k.MakerNote.__offset,E,r);e?s.makerNotes=B:s=U({},s,B)}k.MakerNote&&delete k.MakerNote.__offset}if(D_(f)){o=!0;const k=Sa.read(t,f,r);e?s.iptc=k:s=U({},s,k)}if(M_(h)){o=!0;const k=s_.read(t,h);e?s.xmp=k:(delete k._raw,s=U({},s,k))}if(P_(_)){o=!0;const k=C_.read(t,_,n);k instanceof Promise?l.push(k.then(T)):T(k)}if(XE(p)){o=!0;const k=V3.read(t,p,r);e?s.mpf=k:s=U({},s,k)}if(JE(m)){o=!0;const k=RT.read(t,m);e?(s.png=s.png?U({},s.png,k):k,s.pngFile=k):s=U({},s,k)}if(e8(g)){o=!0;const{readTags:k,readTagsPromise:E}=KT.read(t,g,n,r);b(k),E&&l.push(E.then(B=>B.forEach(b)))}if(t8(x)){o=!0;const k=cE.read(t,x);e?s.png=s.png?U({},s.png,k):k:s=U({},s,k)}if(n8(y)){o=!0;const k=mE.read(t,y);e?s.riff=s.riff?U({},s.riff,k):k:s=U({},s,k)}if(r8(w)){o=!0;const k=kE.read(t,w);e?s.gif=s.gif?U({},s.gif,k):k:s=U({},s,k)}const C=$E.get(t,s.Thumbnail,d);if(C?(o=!0,s.Thumbnail=C):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new A_.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(k){e?s.icc=k:s=U({},s,k)}function b(k){if(e){for(const E of["exif","iptc"]){const B=`__${E}`;k[B]&&(s[E]=s[E]?U({},s.exif,k[B]):k[B],delete k[B])}s.png=s.png?U({},s.png,k):k,s.pngText=s.pngText?U({},s.png,k):k}else s=U({},s,k.__exif?k.__exif:{},k.__iptc?k.__iptc:{},k),delete s.__exif,delete s.__iptc}}function ZE(t){return t!==void 0}function WE(t){return t!==void 0}function YE(t){return t!==void 0}function KE(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Ai(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Ai(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function D_(t){return t!==void 0}function M_(t){return Array.isArray(t)&&t.length>0}function P_(t){return Array.isArray(t)&&t.length>0}function QE(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function XE(t){return t!==void 0}function JE(t){return t!==void 0}function e8(t){return t!==void 0}function t8(t){return t!==void 0}function n8(t){return t!==void 0}function r8(t){return t!==void 0}async function v_(t,e=null){if(t.location)return t.location;try{const n=await OE.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=yd();if(e&&setTimeout(()=>{!r.value&&e&&qe.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class xo{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...re.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=ee.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await v_(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=ge(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ge(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Gr(1e3),n=await this.refreshFile(n)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){qe.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const Wi=i.ref([]),Yi=i.ref([]);function o8(t){Wi.value=[...Wi.value,t]}function i8(t,e,n){Yi.value.push({id:n,name:t,callback:e})}function s8(t){Yi.value=Yi.value.filter(e=>e.id!==t)}function L_(t,e,n){for(let r of Wi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Yi.value)o.name===r.name&&o.callback(n)}function V_(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function l8(t){Wi.value=t,window.addEventListener("keydown",e=>{L_("keydown",V_(e),e)}),window.addEventListener("keyup",e=>{L_("keyup",V_(e),e)})}function q_(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new xo(f.target.files,t).prepare().onProgress(({file:h})=>{h&&s(h)}).onComplete(({file:h,uploadedFile:_})=>{h&&s(h,_)}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),qe.error(`Failed to upload ${h.name}: ${_}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,h=null){const _=e.value.findIndex(p=>p.id===f.id);_!==-1&&e.value.splice(_,1,h||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const h=e.value.findIndex(_=>_.id===f.id);h!==-1&&e.value.splice(h,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var h;o({target:{files:(h=f.dataTransfer)==null?void 0:h.files}})},onFilesSelected:o,uploadedFiles:e}}const Ie={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=re.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=Ie.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),Ie.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}if(e.params){for(const[a,c]of Object.entries(e.params))typeof c=="object"&&c!==null&&(e.params[a]=JSON.stringify(c));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}const o=await fetch(Ie.url(t),e);if(a8(o),n){if(r<Ie.abortControllers[n].timestamp)return{abort:!0};delete Ie.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=re.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await Ie.call(t,e),await Gr(n);while(!r(o));return o},async get(t,e){var n;return await Ie.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=re.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await Ie.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=re.value.request)==null?void 0:r.headers},...n})}};function a8(t){const e=re.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function c8(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function R_(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function u8(t,e){return{list(n,r){return Ie.post(`${t}/list`,n,r)},summary(n,r){return Ie.post(`${t}/summary`,{filter:n},r)},details(n,r,o){return o=o||{},r&&(o.params={fields:r}),Ie.get(`${t}/${n.id}/details`,o)},async detailsAndStore(n,r,o){o=o||{},r&&(o.params={fields:r});const s=await Ie.get(`${t}/${n.id}/details`,o);return ge(s)},fieldOptions(n){return Ie.get(`${t}/field-options`,n)},applyAction(n,r,o,s){return Ie.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o},s)},batchAction(n,r,o,s){return Ie.post(`${t}/batch-action`,{action:n,filter:{id:r.map(l=>l.id)},data:o},s)},export(n,r){return K1(`${t}/export`,r||"export.csv",{filter:n})},...e}}function U_(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new xo((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,r.value&&r.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),qe.error(`Failed to upload ${h.name}: ${_}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:s,onFileSelected:o,uploadedFile:e}}function vt(t,e){localStorage.setItem(t,JSON.stringify(e))}function Ct(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function d8(t,e=""){const n=Pa(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Pa(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Pa(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const f8={version:"0.4.40"},{version:j_}=f8;function h8(){console.log(`Installing Danx UI ${j_}... Nothing to do really.`)}S.ActionForm=wc,S.ActionFormDialog=M0,S.ActionMenu=Xs,S.ActionTable=ld,S.ActionTableColumn=ju,S.ActionTableHeaderColumn=Zu,S.ActionTableLayout=gw,S.ActionToolbar=ad,S.ActionVnode=Xg,S.AddressFormat=Ug,S.AuditHistoryItem=Nw,S.AuditHistoryItemValue=nl,S.AutoHeightTransition=cy,S.BadgeTab=ry,S.BooleanField=rs,S.CaretDownIcon=Ha,S.CollapsableFiltersSidebar=ed,S.CollapsableSidebar=xc,S.ColumnListItem=el,S.ColumnSettingsDialog=Ob,S.ConfirmActionDialog=rc,S.ConfirmDialog=Et,S.ConfirmPasswordField=tp,S.ContentDrawer=us,S.CreateNewWithNameDialog=oc,S.DateField=is,S.DateRangeField=ss,S.DateTime=D,S.DateTimeField=fp,S.DateTimePicker=ls,S.DragAndDrop=Js,S.DragHandleDotsIcon=Ga,S.DragHandleIcon=Za,S.EditOnClickTextField=gp,S.EditableDiv=lc,S.EmptyTableState=id,S.ExportButton=ja,S.FieldLabel=ht,S.FilePreview=$r,S.FileUpload=xo,S.FileUploadButton=bp,S.FilterIcon=Wa,S.FilterItem=Xu,S.FilterList=Ju,S.FilterListToggle=td,S.FilterToolbarLayout=Yb,S.FilterableField=tl,S.FlashMessages=qe,S.FlatListFormat=jg,S.FullScreenCarouselDialog=ic,S.FullScreenDialog=H0,S.GpsCoordinatesFormat=Gg,S.HandleDraggable=zu,S.IconWithTextFormat=Wg,S.ImageIcon=ts,S.IndicatorTab=sy,S.InfoDialog=sc,S.InlineDateTimeField=xp,S.InputDialog=Z0,S.IntegerField=cc,S.InteractiveTooltip=ey,S.LabelValueBlock=Np,S.LabelValueFormat=Kg,S.LabeledInput=os,S.ListDragAndDrop=Hu,S.ListItemDraggable=Gu,S.ListTransition=Ec,S.MaxHeightTransition=uy,S.MaxLengthCounter=ac,S.MultiFileField=uc,S.MultiKeywordField=dc,S.NavigationMenu=Fw,S.NewPasswordField=Fp,S.NumberField=Ir,S.NumberRangeField=Bo,S.PanelsDrawer=od,S.PanelsDrawerPanels=nd,S.PanelsDrawerTabs=rd,S.PdfIcon=Ya,S.PercentIcon=Ka,S.PopoverMenu=Tc,S.PreviousNextControls=ec,S.RefreshButton=za,S.RenderComponent=Cc,S.RenderVnode=un,S.RenderedForm=cs,S.RenderedFormDialog=Cg,S.SERVER_TZ=na,S.SaveStateIndicator=bc,S.SelectDrawer=Pp,S.SelectField=Ln,S.SelectOrCreateField=Gp,S.SelectWithChildrenField=fc,S.SelectionMenuField=zp,S.ShowHideButton=Co,S.SingleFileField=hc,S.SkipNextIcon=Qa,S.SkipPreviousIcon=Xa,S.SlideTransition=dy,S.SliderNumberField=Jp,S.StaggeredListTransition=Eb,S.SvgImg=kc,S.TableSummaryRow=sd,S.TextField=an,S.TitleColumnFormat=Wu,S.TrashIcon=To,S.VisibleColumnsToggleButtons=Lb,S.WarningIcon=Ja,S.WysiwygField=yc,S.XIcon=Eo,S.activeActionVnode=kn,S.addHotkey=o8,S.applyCssVars=d8,S.autoRefreshObject=ud,S.buildCssVars=Pa,S.centerTruncate=fS,S.cloneDeep=qw,S.configure=W_,S.danxOptions=re,S.dbDateTime=oa,S.diffInDays=gS,S.download=$i,S.downloadFile=K1,S.downloadFileResponse=Q1,S.fBoolean=G1,S.fCurrency=Ni,S.fCurrencyNoCents=cS,S.fDate=St,S.fDateTime=Bi,S.fDuration=aS,S.fJSON=Y1,S.fLocalizedDateTime=xr,S.fMarkdownCode=pS,S.fNameOrCount=W1,S.fNumber=Dt,S.fPercent=Z1,S.fPhone=hS,S.fQDate=iS,S.fSecondsToDuration=z1,S.fSecondsToTime=lS,S.fShortCurrency=uS,S.fShortNumber=H1,S.fShortSize=dS,S.fetchResourceListWithSelected=c8,S.getFilterFromUrl=Qu,S.getItem=Ct,S.getResponseHeader=la,S.getUrlParam=R_,S.incrementName=_d,S.install=h8,S.isJSON=md,S.latestCallOnly=sl,S.listen=i8,S.localizedDateTime=ra,S.mapSortBy=Ku,S.metersToMiles=jw,S.milesToMeters=zw,S.minmax=Uw,S.notify=Aw,S.parseCoords=Hw,S.parseDateTime=Ot,S.parseGenericDateTime=j1,S.parseMarkdownCode=Ii,S.parseMarkdownJSON=_S,S.parseMarkdownYAML=mS,S.parseQDate=ia,S.parseQDateTime=sa,S.parseSqlDateTime=sS,S.pollUntil=Rw,S.refreshApplication=Lw,S.registerHotkeys=l8,S.registerStickyScrolling=Yu,S.remoteDateTime=U1,S.remove=Hr,S.replace=ol,S.request=Ie,S.resolveFileLocation=v_,S.setItem=vt,S.sleep=Gr,S.stopAutoRefreshObject=Mw,S.storeObject=ge,S.storeObjects=Ow,S.uniqueBy=Vw,S.unlisten=s8,S.useActionRoutes=u8,S.useActions=Pw,S.useCompatibility=yd,S.useControls=Vb,S.useDebounceFn=ln,S.useMultiFileUpload=q_,S.useSingleFileUpload=U_,S.useTableColumns=yw,S.version=j_,S.waitForRef=il,S.withDefaultActions=vw,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
153
|
+
`,Oi=4,ut=4,Tr=0,tn=Oi,ke=Oi+ut,_a="XML:com.adobe.xmp\0",ma="tEXt",On="iTXt",Di="zTXt",Th="pHYs",Eh="tIME",iC="eXIf",sC="iCCP";function lC(t){return!!t&&q(t,0,ha.length)===ha}function aC(t,e){const r={hasAppMarkers:!1};let o=ha.length;for(;o+Oi+ut<=t.byteLength;){if(cC(t,o))r.hasAppMarkers=!0,r.pngHeaderOffset=o+ke;else if(uC(t,o)){const s=mC(t,o);s!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:s,length:t.getUint32(o+Tr)-(s-(o+ke))}])}else if(dC(t,o,e)){r.hasAppMarkers=!0;const s=q(t,o+tn,ut);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(o+Tr),type:s,offset:o+ke})}else if(fC(t,o))r.hasAppMarkers=!0,r.tiffHeaderOffset=o+ke;else if(e&&hC(t,o)){r.hasAppMarkers=!0;const s=t.getUint32(o+Tr),l=o+ke,{profileName:a,compressionMethod:c,compressedProfileOffset:u}=pC(t,l);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:s-(u-l),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:c})}else _C(t,o)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(o+Tr));o+=t.getUint32(o+Tr)+Oi+ut+4}return r}function cC(t,e){return q(t,e+tn,ut)==="IHDR"}function uC(t,e){return q(t,e+tn,ut)===On&&q(t,e+ke,_a.length)===_a}function dC(t,e,n){const r=q(t,e+tn,ut);return r===ma||r===On||r===Di&&n}function fC(t,e){return q(t,e+tn,ut)===iC}function hC(t,e){return q(t,e+tn,ut)===sC}function _C(t,e){const n=[Th,Eh],r=q(t,e+tn,ut);return n.includes(r)}function mC(t,e){e+=ke+_a.length+1+1;let o=0;for(;o<2&&e<t.byteLength;)t.getUint8(e)===0&&o++,e++;if(!(o<2))return e}function pC(t,e){const o=Sr(t,e);e+=o.length+1;const s=t.getUint8(e);return e+=1,{profileName:o,compressionMethod:s,compressedProfileOffset:e}}function gC(t,e){return t.getUint32(e+4)}function yC(t,e,n,r){const{offsets:s,sizes:l}=bC(e,n+3),a=t.getUint8(s.offsetSize)>>4;l.item.extent.extentOffset=a;const c=t.getUint8(s.lengthSize)&15;l.item.extent.extentLength=c;const u=t.getUint8(s.baseOffsetSize)>>4;l.item.baseOffset=u;const d=wC(t,s.indexSize,e);l.item.extent.extentIndex=d!==void 0?d:0;const f=kC(t,s.itemCount,e);return{type:"iloc",items:xC(t,e,s,l,a,c,d,f),length:r}}function bC(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+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 wC(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function kC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function xC(t,e,n,r,o,s,l,a){if(a===void 0)return[];const c=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=SC(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=Mi(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const _={};_.extentIndex=CC(t,e,u,l),u+=r.item.extent.extentIndex,_.extentOffset=Mi(t,u,o),u+=r.item.extent.extentOffset,_.extentLength=Mi(t,u,s),u+=r.item.extent.extentLength,f.extents.push(_)}c.push(f)}return c}function SC(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function CC(t,e,n,r){if((e===1||e===2)&&r>0)return Mi(t,n,r)}function Mi(t,e,n){return n===4?t.getUint32(e):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."),gC(t,e)):0}const TC=1718909296,EC=1768977008,BC=1835365473,NC=1768714083,IC=1768517222,$C=1768842853,FC=1768973167,AC=1668246642,Bh=1165519206,pa=1835625829,OC=1970432288;function Pi(t,e){const{length:s,contentOffset:l}=DC(t,e);if(s<8)return;const a=t.getUint32(e+4);if(a===TC)return HC(t,l,s);if(a===EC)return GC(t,e,l,s);if(a===FC)return ZC(t,e,l,s);if(a===AC)return WC(t,l,s);const c=t.getUint8(l);return a===BC?KC(t,e,l+1,s):a===NC?yC(t,c,l+1,s):a===IC?QC(t,e,c,l+1,s):a===$C?JC(t,e,c,l+1,s):{type:void 0,length:s}}function DC(t,e){const l=t.getUint32(e);return MC(l)?{length:t.byteLength-e,contentOffset:e+4+4}:PC(l)&&vC(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:l,contentOffset:e+4+4}}function MC(t){return t===0}function PC(t){return t===1}function vC(t,e){return t.getUint32(e+8)===0}function Nh(t){{const e={},n=LC(t);return n?(e.tiffHeaderOffset=VC(t,n),e.xmpChunks=UC(n),e.iccChunks=zC(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function LC(t){let r=0;for(;r+4+4<=t.byteLength;){const o=Pi(t,r);if(o===void 0)break;if(o.type==="meta")return o;r+=o.length}}function VC(t,e){try{const n=qC(e).itemId,r=ga(e,n),o=r.baseOffset+r.extents[0].extentOffset;return RC(t,o)}catch{return}}function qC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===Bh)}function ga(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function RC(t,e){return e+4+t.getUint32(e)}function UC(t){try{const e=jC(t).itemId,n=ga(t,e),r=ga(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function jC(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===pa&&e.contentType==="application/rdf+xml")}function zC(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function HC(t,e,n){return{type:"ftyp",majorBrand:q(t,e,4),length:n}}function GC(t,e,n,r){return{type:"iprp",subBoxes:vi(t,n,r-(n-e)),length:r}}function ZC(t,e,n,r){return{type:"ipco",properties:vi(t,n,r-(n-e)),length:r}}function WC(t,e,n){return{type:"colr",icc:YC(t,e),length:n}}function YC(t,e){const r=q(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function KC(t,e,n,r){return{type:"meta",subBoxes:vi(t,n+3,r-(n+3-e)),length:r}}function vi(t,e,n){const r=[Bh,pa],o=[];let s=e;for(;s<e+n;){const l=Pi(t,s);if(l===void 0)break;l.type!==void 0&&(l.itemType===void 0||r.indexOf(l.itemType)!==-1)&&o.push(l),s+=l.length}return o}function QC(t,e,n,r,o){const{offsets:s}=XC(n,r);return{type:"iinf",itemInfos:vi(t,s.itemInfos,o-(s.itemInfos-e)),length:o}}function XC(t,e){const r={entryCount:e+3},o={};return t===0?o.entryCount=2:o.entryCount=4,r.itemInfos=r.entryCount+o.entryCount,{offsets:r}}function JC(t,e,n,r,o){r+=3;const l={type:"infe",length:o};return(n===0||n===1)&&(l.itemId=t.getUint16(r),r+=2,l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemName=Sr(t,r),r+=l.itemName.length+1),n>=2&&(n===2?(l.itemId=t.getUint16(r),r+=2):n===3&&(l.itemId=t.getUint32(r),r+=4),l.itemProtectionIndex=t.getUint16(r),r+=2,l.itemType=t.getUint32(r),r+=4,l.itemName=Sr(t,r),r+=l.itemName.length+1,l.itemType===pa?(l.contentType=Sr(t,r),r+=l.contentType.length+1,e+o>r&&(l.contentEncoding=Sr(t,r),r+=l.contentEncoding.length+1)):l.itemType===OC&&(l.itemUri=Sr(t,r),r+=l.itemUri.length+1)),l}const Ih={isHeicFile:e3,findHeicOffsets:t3};function e3(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=Pi(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function t3(t){return Nh(t)}const $h={isAvifFile:n3,findAvifOffsets:r3};function n3(t){if(!t)return!1;try{const e=Pi(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function r3(t){return Nh(t)}const Fh={isWebpFile:o3,findOffsets:i3};function o3(t){const n="RIFF",o="WEBP";return!!t&&q(t,0,n.length)===n&&q(t,8,o.length)===o}function i3(t){const r="Exif\0\0";let s=12,l=!1,a,c,u,d;for(;s+8<t.byteLength;){const f=q(t,s,4),h=t.getUint32(s+4,!0);f==="EXIF"?(l=!0,q(t,s+8,r.length)===r?a=s+8+r.length:a=s+8):f==="XMP "?(l=!0,c=[{dataOffset:s+8,length:h}]):f==="ICCP"?(l=!0,u=[{offset:s+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(l=!0,d=s+8),s+=8+(h%2===0?h:h+1)}return{hasAppMarkers:l,tiffHeaderOffset:a,xmpChunks:c,iccChunks:u,vp8xChunkOffset:d}}const Ah={isGifFile:a3,findOffsets:c3},s3=6,l3=["GIF87a","GIF89a"];function a3(t){return!!t&&l3.includes(q(t,0,s3))}function c3(){return{gifHeaderOffset:0}}const Oh={isXMLFile:u3,findOffsets:d3},Dh=0,Mh="<?xpacket begin";function u3(t){return!!t&&q(t,Dh,Mh.length)===Mh}function d3(t){const e=[];return e.push({dataOffset:Dh,length:t.byteLength}),{xmpChunks:e}}const f3={parseAppMarkers:h3};function h3(t,e){if(lh.isTiffFile(t))return nn(lh.findTiffOffsets(),"tiff","TIFF");if(ah.isJpegFile(t))return nn(ah.findJpegOffsets(t),"jpeg","JPEG");if(Ch.isPngFile(t))return nn(Ch.findPngOffsets(t,e),"png","PNG");if(Ih.isHeicFile(t))return nn(Ih.findHeicOffsets(t),"heic","HEIC");if($h.isAvifFile(t))return nn($h.findAvifOffsets(t),"avif","AVIF");if(Fh.isWebpFile(t))return nn(Fh.findOffsets(t),"webp","WebP");if(Ah.isGifFile(t))return nn(Ah.findOffsets(t),"gif","GIF");if(Oh.isXMLFile(t))return nn(Oh.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function nn(t,e,n){return U({},t,{fileType:{value:e,description:n}})}const R={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.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(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${t[0]/t[1]}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},Ph={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({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"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:R.XResolution},283:{name:"YResolution",description:R.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:R.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.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:go},40092:{name:"XPComment",description:go},40093:{name:"XPAuthor",description:go},40094:{name:"XPKeywords",description:go},40095:{name:"XPSubject",description:go},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:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:R.LightSource},50779:{name:"CalibrationIlluminant2",description:R.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:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"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:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function go(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const _3={33434:{name:"ExposureTime",description:R.ExposureTime},33437:{name:"FNumber",description:R.FNumber},34850:{name:"ExposureProgram",description:R.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({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"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>me(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:R.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:R.ShutterSpeedValue},37378:{name:"ApertureValue",description:R.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:R.MeteringMode},37384:{name:"LightSource",description:R.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:R.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:aa},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:R.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:R.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:R.CustomRendered},41986:{name:"ExposureMode",description:R.ExposureMode},41987:{name:"WhiteBalance",description:R.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:t=>t===0?"Unknown":t},41990:{name:"SceneCaptureType",description:R.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:R.Contrast},41993:{name:"Saturation",description:R.Saturation},41994:{name:"Sharpness",description:R.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const o=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(o.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"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"},m3={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:Ai},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:Ai},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:aa},28:{name:"GPSAreaInformation",description:aa},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},p3={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>me(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},g3={45056:{name:"MPFVersion",description:t=>me(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},y3={4:{name:"ShotInfo",description:t=>t}},vh=U({},Ph,_3),ya="0th",Lh="1st",Vh="exif",qh="gps",Rh="interoperability",Uh="mpf",jh="canon",rn={[ya]:vh,[Lh]:Ph,[Vh]:vh,[qh]:m3,[Rh]:p3,[Uh]:g3,[jh]:y3},zh={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ba={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},F={getAsciiValue:b3,getByteAt:Hh,getAsciiAt:w3,getShortAt:k3,getLongAt:Li,getRationalAt:x3,getUndefinedAt:S3,getSlongAt:wa,getSrationalAt:C3,getIfdPointerAt:T3,typeSizes:zh,tagTypes:ba,getTypeSize:E3};function b3(t){return t.map(e=>String.fromCharCode(e))}function Hh(t,e){return t.getUint8(e)}function w3(t,e){return t.getUint8(e)}function k3(t,e,n){return t.getUint16(e,n===An.LITTLE_ENDIAN)}function Li(t,e,n){return t.getUint32(e,n===An.LITTLE_ENDIAN)}function x3(t,e,n){return[Li(t,e,n),Li(t,e+4,n)]}function S3(t,e){return Hh(t,e)}function wa(t,e,n){return t.getInt32(e,n===An.LITTLE_ENDIAN)}function C3(t,e,n){return[wa(t,e,n),wa(t,e+4,n)]}function T3(t,e,n){return Li(t,e,n)}function E3(t){if(ba[t]===void 0)throw new Error("No such type found.");return zh[ba[t]]}const B3={1:F.getByteAt,2:F.getAsciiAt,3:F.getShortAt,4:F.getLongAt,5:F.getRationalAt,7:F.getUndefinedAt,9:F.getSlongAt,10:F.getSrationalAt,13:F.getIfdPointerAt};function Gh(t,e,n){return e+F.getLongAt(t,e+4,n)}function Dn(t,e,n,r,o,s){const l=F.getTypeSize("SHORT"),a=12,c={},u=N3(t,r,o);r+=l;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=I3(t,e,n,r,o,s);f!==void 0&&(c[f.name]={id:f.id,value:f.value,description:f.description},f.name==="MakerNote"&&(c[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-F.getTypeSize("LONG")){const d=F.getLongAt(t,r,o);d!==0&&e===ya&&(c.Thumbnail=Dn(t,Lh,n,n+d,o,s))}return c}function N3(t,e,n){return e+F.getTypeSize("SHORT")<=t.byteLength?F.getShortAt(t,e,n):0}function I3(t,e,n,r,o,s){const a=F.getTypeSize("SHORT"),c=a+F.getTypeSize("SHORT"),u=c+F.getTypeSize("LONG"),d=F.getShortAt(t,r,o),f=F.getShortAt(t,r+a,o),h=F.getLongAt(t,r+c,o);let _,p;if(F.typeSizes[f]===void 0||!s&&rn[e][d]===void 0)return;if($3(f,h))p=r+u,_=Zh(t,p,f,h,o);else if(p=F.getLongAt(t,r+u,o),F3(t,n,p,f,h)){const x=d===33723;_=Zh(t,n+p,f,h,o,x)}else _="<faulty value>";f===F.tagTypes.ASCII&&(_=A3(_),_=O3(_));let m=`undefined-${d}`,g=_;if(rn[e][d]!==void 0)if(rn[e][d].name!==void 0&&rn[e][d].description!==void 0){m=rn[e][d].name;try{g=rn[e][d].description(_)}catch{g=Wh(_)}}else f===F.tagTypes.RATIONAL||f===F.tagTypes.SRATIONAL?(m=rn[e][d],g=""+_[0]/_[1]):(m=rn[e][d],g=Wh(_));return{id:d,name:m,value:_,description:g,__offset:p}}function $3(t,e){return F.typeSizes[t]*e<=F.getTypeSize("LONG")}function Zh(t,e,n,r,o,s=!1){let l=[];s&&(r=r*F.typeSizes[n],n=F.tagTypes.BYTE);for(let a=0;a<r;a++)l.push(B3[n](t,e,o)),e+=F.typeSizes[n];return n===F.tagTypes.ASCII?l=F.getAsciiValue(l):l.length===1&&(l=l[0]),l}function F3(t,e,n,r,o){return e+n+F.typeSizes[r]*o<=t.byteLength}function A3(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function O3(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function Wh(t){return t instanceof Array?t.join(", "):t}const Yh="Exif IFD Pointer",Kh="GPS Info IFD Pointer",Qh="Interoperability IFD Pointer",Xh={read:D3};function D3(t,e,n){const r=An.getByteOrder(t,e);let o=M3(t,e,r,n);return o=P3(o,t,e,r,n),o=v3(o,t,e,r,n),o=L3(o,t,e,r,n),{tags:o,byteOrder:r}}function M3(t,e,n,r){return Dn(t,ya,e,Gh(t,e,n),n,r)}function P3(t,e,n,r,o){return t[Yh]!==void 0?U(t,Dn(e,Vh,n,n+t[Yh].value,r,o)):t}function v3(t,e,n,r,o){return t[Kh]!==void 0?U(t,Dn(e,qh,n,n+t[Kh].value,r,o)):t}function L3(t,e,n,r,o){return t[Qh]!==void 0?U(t,Dn(e,Rh,n,n+t[Qh].value,r,o)):t}const V3={read:q3},Er=16;function q3(t,e,n){const r=An.getByteOrder(t,e),o=Dn(t,Uh,e,Gh(t,e,r),r,n);return R3(t,e,o,r)}function R3(t,e,n,r){if(!n.MPEntry)return n;const o=[];for(let s=0;s<Math.ceil(n.MPEntry.value.length/Er);s++){o[s]={};const l=yo(n.MPEntry.value,s*Er,F.getTypeSize("LONG"),r);o[s].ImageFlags=U3(l),o[s].ImageFormat=j3(l),o[s].ImageType=z3(l);const a=yo(n.MPEntry.value,s*Er+4,F.getTypeSize("LONG"),r);o[s].ImageSize={value:a,description:""+a};const c=H3(s,n.MPEntry,r,e);o[s].ImageOffset={value:c,description:""+c};const u=yo(n.MPEntry.value,s*Er+12,F.getTypeSize("SHORT"),r);o[s].DependentImage1EntryNumber={value:u,description:""+u};const d=yo(n.MPEntry.value,s*Er+14,F.getTypeSize("SHORT"),r);o[s].DependentImage2EntryNumber={value:d,description:""+d},o[s].image=t.buffer.slice(c,c+a),th(o[s],"base64",function(){return nh(this.image)})}return n.Images=o,n}function yo(t,e,n,r){if(r===An.LITTLE_ENDIAN){let s=0;for(let l=0;l<n;l++)s+=t[e+l]<<8*l;return s}let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*(n-1-s);return o}function U3(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function j3(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function z3(t){const e=t&16777215;return{value:e,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"}[e]||"Unknown"}}function H3(t,e,n,r){return G3(t)?0:yo(e.value,t*Er+8,F.getTypeSize("LONG"),n)+r}function G3(t){return t===0}const Z3={read:W3};function W3(t,e){const n=Y3(t,e),r=J3(t,e,n);return{"Bits Per Sample":K3(t,e,n),"Image Height":Q3(t,e,n),"Image Width":X3(t,e,n),"Color Components":r,Subsampling:r&&e4(t,e,r.value,n)}}function Y3(t,e){return F.getShortAt(t,e)}function K3(t,e,n){if(3>n)return;const s=F.getByteAt(t,e+2);return{value:s,description:""+s}}function Q3(t,e,n){if(5>n)return;const s=F.getShortAt(t,e+3);return{value:s,description:`${s}px`}}function X3(t,e,n){if(7>n)return;const s=F.getShortAt(t,e+5);return{value:s,description:`${s}px`}}function J3(t,e,n){if(8>n)return;const s=F.getByteAt(t,e+7);return{value:s,description:""+s}}function e4(t,e,n,r){if(8+3*n>r)return;const l=[];for(let a=0;a<n;a++){const c=e+8+a*3;l.push([F.getByteAt(t,c),F.getByteAt(t,c+1),F.getByteAt(t,c+2)])}return{value:l,description:l.length>1?t4(l)+n4(l):""}}function t4(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function n4(t){const e={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 t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const r4={read:o4};function o4(t,e){const n=i4(t,e),r=d4(t,e,n),o=f4(t,e,n),s={"JFIF Version":s4(t,e,n),"Resolution Unit":l4(t,e,n),XResolution:c4(t,e,n),YResolution:u4(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":o};if(r!==void 0&&o!==void 0){const l=h4(t,e,3*r.value*o.value,n);l&&(s["JFIF Thumbnail"]=l)}for(const l in s)s[l]===void 0&&delete s[l];return s}function i4(t,e){return F.getShortAt(t,e)}function s4(t,e,n){if(9>n)return;const s=F.getByteAt(t,e+7),l=F.getByteAt(t,e+7+1);return{value:s*256+l,description:s+"."+l}}function l4(t,e,n){if(10>n)return;const s=F.getByteAt(t,e+9);return{value:s,description:a4(s)}}function a4(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function c4(t,e,n){if(12>n)return;const s=F.getShortAt(t,e+10);return{value:s,description:""+s}}function u4(t,e,n){if(14>n)return;const s=F.getShortAt(t,e+12);return{value:s,description:""+s}}function d4(t,e,n){if(15>n)return;const s=F.getByteAt(t,e+14);return{value:s,description:`${s}px`}}function f4(t,e,n){if(16>n)return;const s=F.getByteAt(t,e+15);return{value:s,description:`${s}px`}}function h4(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const on={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:ka},336:{name:"Time Sent",description:xa},346:{name:"Coded Character Set",description:Jh,encoding_name:Jh},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>me(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=me(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[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:t=>{const e=me(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="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:ka},572:{name:"Time Created",description:xa},574:{name:"Digital Creation Date",description:ka},575:{name:"Digital Creation Time",description:xa},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=me(t);return e==="a"?"morning":e==="p"?"evening":e==="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:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=me(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=me(t),n=e.charAt(0),r=e.charAt(1);let o="";return n==="1"?o+="Mono":n==="2"&&(o+="Stereo"),r==="A"?o+=", actuality":r==="C"?o+=", question and answer session":r==="M"?o+=", music, transmitted by itself":r==="Q"?o+=", response to a question":r==="R"?o+=", raw sound":r==="S"?o+=", scener":r==="V"?o+=", voicer":r==="W"&&(o+=", wrap"),o!==""?o:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(me(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(me(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=me(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return me(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const 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=me(t);if(e["ObjectData Preview File Format"]){const o=me(e["ObjectData Preview File Format"].value);if(n[o]&&n[o][r])return n[o][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function ka(t){const e=me(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function xa(t){const e=me(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function Jh(t){const e=me(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const _4={get:m4};function m4(){if(typeof TextDecoder<"u")return TextDecoder}const e_={decode:p4,TAG_HEADER_SIZE:5};function p4(t,e){const n=_4.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(o=>String.fromCharCode(o)).join("");return g4(r)}function g4(t){try{return decodeURIComponent(escape(t))}catch{return t}}const y4=943868237,bo=4,Vi=2,b4=1,w4=2,t_=4,k4=bo+Vi+w4+t_,x4=1028,n_=5,Sa={read:S4};function S4(t,e,n){try{if(Array.isArray(t))return r_(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:o}=C4(t,e);return r_(t,r,o,n)}catch{return{}}}function C4(t,e){for(;e+k4<=t.byteLength;){const n=T4(t,e);if(E4(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+B4(n)}throw new Error("No IPTC NAA resource block.")}function T4(t,e){if(t.getUint32(e,!1)!==y4)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+bo+Vi),r=(n%2===0?n+1:n)+b4;return{headerSize:bo+Vi+r+t_,type:t.getUint16(e+bo),size:t.getUint32(e+bo+Vi+r)}}function E4(t){return t.type===x4}function B4(t){return t.size%2!==0?1:0}function r_(t,e,n,r){const o={};let s;const l=n+e.size;for(;n<l&&n<t.byteLength;){const{tag:a,tagSize:c}=N4(t,n,o,s,r);if(a===null)break;a&&("encoding"in a&&(s=a.encoding),o[a.name]===void 0||a.repeatable===void 0?o[a.name]={id:a.id,value:a.value,description:a.description}:(o[a.name]instanceof Array||(o[a.name]=[{id:o[a.name].id,value:o[a.name].value,description:o[a.name].description}]),o[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=n_+c}return o}function N4(t,e,n,r,o){if(I4(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),c=t.getUint16(e+3);if(!o&&!on.iptc[a])return{tag:void 0,tagSize:c};const u=$4(t,e+n_,c),d={id:a,name:F4(on.iptc[a],a,u),value:u,description:D4(on.iptc[a],u,n,r)};return v4(a)&&(d.repeatable=!0),L4(a)&&(d.encoding=on.iptc[a].encoding_name(u)),{tag:d,tagSize:c}}function I4(t,e){return t.getUint8(e)!==28}function $4(t,e,n){const r=[];for(let o=0;o<n;o++)r.push(t.getUint8(e+o));return r}function F4(t,e,n){return t?A4(t)?t:O4(t)?t.name(n):t.name:`undefined-${e}`}function A4(t){return typeof t=="string"}function O4(t){return typeof t.name=="function"}function D4(t,e,n,r){if(P4(t))try{return t.description(e,n)}catch{}return M4(t,e)?e_.decode(r,e):e}function M4(t,e){return t&&e instanceof Array}function P4(t){return t&&t.description!==void 0}function v4(t){return on.iptc[t]&&on.iptc[t].repeatable}function L4(t){return on.iptc[t]&&on.iptc[t].encoding_name!==void 0}const qi={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>R.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Br(R.XResolution,t),"tiff:YResolution":t=>Br(R.YResolution,t),"exif:ApertureValue":t=>Br(R.ApertureValue,t),"exif:GPSLatitude":i_,"exif:GPSLongitude":i_,"exif:FNumber":t=>Br(R.FNumber,t),"exif:FocalLength":t=>Br(R.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>R.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>R.ColorSpace(V4(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return R.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>R.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>R.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>R.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>R.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return o_(t)?R.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>R.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>R.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>R.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>R.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Br(R.ShutterSpeedValue,t),"exif:WhiteBalance":t=>R.WhiteBalance(parseInt(t,10))};function Br(t,e){return o_(e)?t(e.split("/")):e}function V4(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function o_(t){return/^-?\d+\/-?\d+$/.test(t)}function i_(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),o=parseFloat(n),s=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(o))return""+(r+o/60)+s}return t}const q4={get:R4};function R4(){if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:t,onErrorStopParsing:e}=__non_webpack_require__("@xmldom/xmldom");return new t({onError:e})}catch{return}}const s_={read:U4};function U4(t,e){const n={};if(typeof t=="string")return Ri(n,t),n;const[r,o]=j4(t,e),s=Ri(n,r);if(o){const l=Ri(n,o);!s&&!l&&(delete n._raw,Ri(n,Ca(t,e)))}return n}function j4(t,e){if(e.length===0)return[];const n=[Ca(t,e.slice(0,1))];return e.length>1&&n.push(Ca(t,e.slice(1))),n}function Ca(t,e){const n=e.reduce((s,l)=>s+l.length,0),r=new Uint8Array(n);let o=0;for(let s=0;s<e.length;s++){const l=e[s],a=t.buffer.slice(l.dataOffset,l.dataOffset+l.length);r.set(new Uint8Array(a),o),o+=l.length}return new DataView(r.buffer)}function Ri(t,e){try{const{doc:n,raw:r}=z4(e);t._raw=(t._raw||"")+r;const o=l_(n);return U(t,c_(a_(o,!0))),!0}catch{return!1}}function z4(t){const e=q4.get();if(!e)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const n=typeof t=="string"?t:q(t,0,t.byteLength),r=e.parseFromString(H4(n),"application/xml");if(r.documentElement.nodeName==="parsererror")throw new Error(r.documentElement.textContent);return{doc:r,raw:n}}function H4(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function l_(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return l_(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function a_(t,e=!1){const n=G4(t);return Z4(n)?e?{}:W4(n[0]):Y4(n)}function G4(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function Z4(t){return t.length===1&&t[0].nodeName==="#text"}function W4(t){return t.nodeValue}function Y4(t){const e={};return t.forEach(n=>{if(K4(n)){const r=Q4(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function K4(t){return t.nodeName&&t.nodeName!=="#text"}function Q4(t){return{attributes:X4(t),value:a_(t)}}function X4(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function c_(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(o=>{U(e,Ta(o.attributes)),typeof o.value=="object"&&U(e,u_(o.value))})}return e}function Ta(t){const e={};for(const n in t)try{J4(n)&&(e[ji(n)]={value:t[n],attributes:{},description:Mt(t[n],n)})}catch{}return e}function J4(t){return t!=="rdf:parseType"&&!Ui(t)}function Ui(t){return t.split(":")[0]==="xmlns"}function ji(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function Mt(t,e=void 0){if(Array.isArray(t)){const n=eT(t);return e&&typeof qi[e]=="function"?qi[e](t,n):n}if(typeof t=="object")return tT(t);try{return e&&typeof qi[e]=="function"?qi[e](t):decodeURIComponent(escape(t))}catch{return t}}function eT(t){return t.map(e=>e.value!==void 0?Mt(e.value):Mt(e)).join(", ")}function tT(t){const e=[];for(const n in t)e.push(`${nT(n)}: ${Mt(t[n].value)}`);return e.join("; ")}function nT(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function u_(t){const e={};for(const n in t)try{Ui(n)||(e[ji(n)]=rT(t[n],n))}catch{}return e}function rT(t,e){return iT(t)?sT(t,e):oT(t)?{value:"",attributes:{},description:""}:d_(t)?f_(t,e):h_(t)?__(t,e):m_(t)?p_(t,e):cT(t)?uT(t,e):Ea(t,e)}function oT(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function iT(t){return Array.isArray(t)}function sT(t,e){return Ea(t[t.length-1],e)}function d_(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function f_(t,e){const n=wo(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),U(n,wo(t),lT(t));const r=aT(t);return{value:r,attributes:n,description:Mt(r,e)}}function wo(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Ui(n)&&(e[ji(n)]=t.attributes[n]);return e}function lT(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Ui(n)&&(e[ji(n)]=t.value[n].value);return e}function aT(t){return y_(t.value["rdf:value"])||t.value["rdf:value"].value}function h_(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function __(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(U(n.value,Ta(t.value["rdf:Description"].attributes)),U(n.attributes,wo(t)),t=t.value["rdf:Description"]),U(n.value,u_(t.value)),n.description=Mt(n.value,e),n}function m_(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function p_(t,e){const n=Ta(t.attributes);return{value:n,attributes:{},description:Mt(n,e)}}function cT(t){return g_(t.value)!==void 0}function g_(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function uT(t,e){let n=g_(t.value).value["rdf:li"];const r=wo(t),o=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(s=>{o.push(dT(s))}),{value:o,attributes:r,description:Mt(o,e)}}function dT(t){return d_(t)?f_(t):h_(t)?__(t).value:m_(t)?p_(t).value:Ea(t)}function Ea(t,e){const n=y_(t)||c_(t.value);return{value:n,attributes:wo(t),description:Mt(n,e)}}function y_(t){return t.attributes&&t.attributes["rdf:resource"]}const Pt={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},b_=24,Ba={2e3:{name:"PathInformation",description:fT},2999:{name:"ClippingPathName",description(t){const[,e]=eh(t,0);return e}}};function fT(t){const n={},r=[];for(let o=0;o<t.byteLength;o+=2+b_){const s=F.getShortAt(t,o);Na[s]&&(n[s]||(n[s]=Na[s].description),r.push({type:s,path:Na[s].path(t,o+2)}))}return JSON.stringify({types:n,paths:r})}const Na={[Pt.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:zi},[Pt.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:zi},[Pt.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:zi},[Pt.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:zi},[Pt.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Pt.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[F.getShortAt(t,e)]},[Pt.CLIPBOARD]:{description:"Clipboard",path:_T}};function zi(t,e){const r=[];for(let o=0;o<b_;o+=8)r.push(hT(t,e+o));return r}function hT(t,e){const n=Mn(t,e,8);return[Mn(t,e+4,8),n]}function _T(t,e){return[[Mn(t,e,8),Mn(t,e+4,8),Mn(t,e+8,8),Mn(t,e+12,8)],Mn(t,e+16,8)]}function Mn(t,e,n){const r=F.getLongAt(t,e),o=r>>>31?-1:1,s=(r&2130706432)>>>32-n,l=r&parseInt(rh("1",32-n),2);return o*xS(s.toString(2)+"."+kS(l.toString(2),32-n,"0"),2)}const mT={read:yT},w_="8BIM",pT=2,gT=4,k_=w_.length;function yT(t,e){const n=J1(new Uint8Array(t).buffer),r={};let o=0;for(;o<t.length;){const s=q(n,o,k_);o+=k_;const l=F.getShortAt(n,o);o+=pT;const{tagName:a,tagNameSize:c}=bT(n,o);o+=c;const u=F.getLongAt(n,o);if(o+=gT,s===w_){const d=J1(n.buffer,o,u),f={id:l,value:q(d,0,u)};if(Ba[l]){try{f.description=Ba[l].description(d)}catch{f.description="<no description formatter>"}r[a||Ba[l].name]=f}else e&&(r[`undefined-${l}`]=f)}o+=u+u%2}return r}function bT(t,e){const[n,r]=eh(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const x_={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"}},S_={4:{name:"Preferred CMM type",value:(t,e)=>q(t,e,4),description:t=>t!==null?Ia(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>q(t,e,4),description:t=>{switch(t.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 t}}},16:{name:"Color Space",value:(t,e)=>q(t,e,4)},20:{name:"Connection Space",value:(t,e)=>q(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>wT(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>kT(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},48:{name:"Device Manufacturer",value:(t,e)=>q(t,e,4),description:t=>Ia(t)},52:{name:"Device Model Number",value:(t,e)=>q(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>q(t,e,4)}};function wT(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,o=t.getUint16(e+4),s=t.getUint16(e+6),l=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,o,s,l,a))}function kT(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ia(t){switch(t.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 t}}const C_={read:$T},xT=84,ST=128,CT="acsp",TT="desc",ET="mluc",BT="text",NT="sig ",IT=12;function $T(t,e,n){return n&&e[0].compressionMethod!==Fi?FT(t,e):OT(t,e)}function FT(t,e){if(!AT(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return ih(n,e[0].compressionMethod,"utf-8","dataview").then(T_).catch(()=>({}))}function AT(t){return t===oh}function OT(t,e){try{const n=e.reduce((l,a)=>l+a.length,0),r=new Uint8Array(n);let o=0;const s=DT(t);for(let l=1;l<=e.length;l++){const a=e.find(d=>d.chunkNumber===l);if(!a)throw new Error(`ICC chunk ${l} not found`);const c=s.slice(a.offset,a.offset+a.length),u=new Uint8Array(c);r.set(u,o),o+=u.length}return T_(new DataView(r.buffer))}catch{return{}}}function DT(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function MT(t){return t.length<ST+4}function PT(t,e){return t.length<e+IT}function T_(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.length<xT)throw new Error("ICC profile too short");const r={},o=Object.keys(S_);for(let c=0;c<o.length;c++){const u=o[c],d=S_[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Hi(e.slice(36,40))!==CT)throw new Error("ICC profile: missing signature");if(MT(e))return r;const l=t.getUint32(128);let a=132;for(let c=0;c<l;c++){if(PT(e,a))return r;const u=q(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=q(t,d,4);if(h===TT){const _=t.getUint32(d+8);if(_>f)return r;const p=Hi(e.slice(d+12,d+_+11));ko(r,u,p)}else if(h===ET){const _=t.getUint32(d+8),p=t.getUint32(d+12);let m=d+16;const g=[];for(let x=0;x<_;x++){const y=q(t,m+0,2),w=q(t,m+2,2),C=t.getUint32(m+4),T=t.getUint32(m+8),b=bS(t,d+T,C);g.push({languageCode:y,countryCode:w,text:b}),m+=p}if(_===1)ko(r,u,g[0].text);else{const x={};for(let y=0;y<g.length;y++)x[`${g[y].languageCode}-${g[y].countryCode}`]=g[y].text;ko(r,u,x)}}else if(h===BT){const _=Hi(e.slice(d+8,d+f-7));ko(r,u,_)}else if(h===NT){const _=Hi(e.slice(d+8,d+12));ko(r,u,_)}a=a+12}return r}function Hi(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function ko(t,e,n){x_[e]?t[x_[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Gi=27,vT={read:LT,SHOT_INFO_AUTO_ROTATE:Gi};function LT(t,e,n,r,o){let s=Dn(t,jh,e,e+n,r,o);return s.ShotInfo&&(s=U({},s,VT(s.ShotInfo.value)),delete s.ShotInfo),s}function VT(t){const e={};return t[Gi]!==void 0&&(e.AutoRotate={value:t[Gi],description:qT(t[Gi])}),e}function qT(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const RT={read:UT};function UT(t,e){return{"Image Width":jT(t,e),"Image Height":zT(t,e),"Bit Depth":HT(t,e),"Color Type":GT(t,e),Compression:ZT(t,e),Filter:WT(t,e),Interlace:YT(t,e)}}function jT(t,e){if(e+0+4>t.byteLength)return;const o=F.getLongAt(t,e);return{value:o,description:`${o}px`}}function zT(t,e){if(e+4+4>t.byteLength)return;const o=F.getLongAt(t,e+4);return{value:o,description:`${o}px`}}function HT(t,e){if(e+8+1>t.byteLength)return;const o=F.getByteAt(t,e+8);return{value:o,description:`${o}`}}function GT(t,e){const o={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const s=F.getByteAt(t,e+9);return{value:s,description:o[s]||"Unknown"}}function ZT(t,e){if(e+10+1>t.byteLength)return;const o=F.getByteAt(t,e+10);return{value:o,description:o===0?"Deflate/Inflate":"Unknown"}}function WT(t,e){if(e+11+1>t.byteLength)return;const o=F.getByteAt(t,e+11);return{value:o,description:o===0?"Adaptive":"Unknown"}}function YT(t,e){const o={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const s=F.getByteAt(t,e+12);return{value:s,description:o[s]||"Unknown"}}const KT={read:tE},$a="STATE_KEYWORD",Fa="STATE_COMPRESSION",Aa="STATE_LANG",QT="STATE_TRANSLATED_KEYWORD",Oa="STATE_TEXT",XT=1,JT=1,eE=6;function tE(t,e,n,r){const o={},s=[];for(let l=0;l<e.length;l++){const{offset:a,length:c,type:u}=e[l],d=nE(t,a,c,u,n);if(d instanceof Promise)s.push(d.then(({name:f,value:h,description:_})=>{try{if(sh.USE_EXIF&&B_(f,h))return{__exif:Xh.read(I_(h),eE,r).tags};if(sh.USE_IPTC&&N_(f,h))return{__iptc:Sa.read(I_(h),0,r)};if(f&&!B_(f,h)&&!N_(f,h))return{[f]:{value:h,description:_}}}catch{}return{}}));else{const{name:f,value:h,description:_}=d;f&&(o[f]={value:h,description:_})}}return{readTags:o,readTagsPromise:s.length>0?Promise.all(s):void 0}}function nE(t,e,n,r,o){const s=[],l=[];let a,c=$a,u=Fi;for(let f=0;f<n&&e+f<t.byteLength;f++){if(c===Fa){u=rE({type:r,dataView:t,offset:e+f}),r===On&&(f+=XT),c=E_(r,c);continue}else if(c===Oa){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?c=E_(r,c):c===$a?s.push(h):c===Aa&&l.push(h)}if(u!==Fi&&!o)return{};const d=ih(a,u,oE(r));return d instanceof Promise?d.then(f=>Da(f,r,l,s)).catch(()=>Da("<text using unknown compression>".split(""),r,l,s)):Da(d,r,l,s)}function rE({type:t,dataView:e,offset:n}){if(t===On){if(e.getUint8(n)===JT)return e.getUint8(n+1)}else if(t===Di)return e.getUint8(n);return Fi}function E_(t,e){return e===$a&&[On,Di].includes(t)?Fa:e===Fa?t===On?Aa:Oa:e===Aa?QT:Oa}function oE(t){return t===ma||t===Di?"latin1":"utf-8"}function Da(t,e,n,r){const o=sE(t);return{name:iE(e,n,r),value:o,description:e===On?lE(t):o}}function iE(t,e,n){const r=Cr(n);if(t===ma||e.length===0)return r;const o=Cr(e);return`${r} (${o})`}function sE(t){return t instanceof DataView?q(t,0,t.byteLength):t}function lE(t){return e_.decode("UTF-8",t)}function B_(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function N_(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function I_(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return aE(e[2].replace(/\n/g,""))}function aE(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const cE={read:uE};function uE(t,e){const n={};for(let r=0;r<e.length;r++){const o=F.getLongAt(t,e[r]+Tr),s=q(t,e[r]+tn,ut);s===Th?(n["Pixels Per Unit X"]=dE(t,e[r],o),n["Pixels Per Unit Y"]=fE(t,e[r],o),n["Pixel Units"]=hE(t,e[r],o)):s===Eh&&(n["Modify Date"]=_E(t,e[r],o))}return n}function dE(t,e,n){if(!Zi(t,e,n,0,4))return;const s=F.getLongAt(t,e+ke+0);return{value:s,description:""+s}}function fE(t,e,n){if(!Zi(t,e,n,4,4))return;const s=F.getLongAt(t,e+ke+4);return{value:s,description:""+s}}function hE(t,e,n){if(!Zi(t,e,n,8,1))return;const s=F.getByteAt(t,e+ke+8);return{value:s,description:s===1?"meters":"Unknown"}}function _E(t,e,n){if(!Zi(t,e,n,0,7))return;const o=F.getShortAt(t,e+ke),s=F.getByteAt(t,e+ke+2),l=F.getByteAt(t,e+ke+3),a=F.getByteAt(t,e+ke+4),c=F.getByteAt(t,e+ke+5),u=F.getByteAt(t,e+ke+6);return{value:[o,s,l,a,c,u],description:`${Nr(o,4)}-${Nr(s,2)}-${Nr(l,2)} ${Nr(a,2)}:${Nr(c,2)}:${Nr(u,2)}`}}function Zi(t,e,n,r,o){return r+o<=n&&e+ke+r+o<=t.byteLength}function Nr(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const mE={read:yE},pE=4,gE=7;function yE(t,e){const n={},r=F.getByteAt(t,e);return n.Alpha=bE(r),n.Animation=wE(r),n.ImageWidth=$_(t,e+pE),n.ImageHeight=$_(t,e+gE),n}function bE(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function wE(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function $_(t,e){const n=F.getByteAt(t,e)+256*F.getByteAt(t,e+1)+65536*F.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const kE={read:xE};function xE(t){return{"GIF Version":SE(t),"Image Width":CE(t),"Image Height":TE(t),"Global Color Map":EE(t),"Bits Per Pixel":NE(t),"Color Resolution Depth":BE(t)}}function SE(t){if(6>t.byteLength)return;const r=q(t,3,3);return{value:r,description:r}}function CE(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function TE(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function EE(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&128)>>>7;return{value:o,description:o===1?"Yes":"No"}}function BE(t){if(11>t.byteLength)return;const o=((t.getUint8(10)&112)>>>4)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}function NE(t){if(11>t.byteLength)return;const o=(t.getUint8(10)&7)+1;return{value:o,description:`${o} ${o===1?"bit":"bits"}`}}const IE=[6,7,99],$E={get:FE};function FE(t,e,n){if(AE(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),th(e,"base64",function(){return nh(this.image)})}return e}function AE(t){return t&&(t.Compression===void 0||IE.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}function F_(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}F_.prototype=new Error;const A_={MetadataMissingError:F_},OE={load:DE,loadView:O_,errors:A_};function DE(t,e={}){return ME(t)?(e.async=!0,PE(t,e).then(n=>Ma(n,e))):jE(t)?(e.async=!0,zE(t).then(n=>Ma(n,e))):Ma(t,e)}function ME(t){return typeof t=="string"}function PE(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?vE(t,e):LE(t,e):qE(t)?Promise.resolve(wS(t)):RE(t,e)}function vE(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function LE(t,{length:e}={}){return new Promise((n,r)=>{const o={};Number.isInteger(e)&&e>=0&&(o.headers={range:`bytes=0-${e-1}`}),VE(t)(t,o,l=>{if(l.statusCode>=200&&l.statusCode<=299){const a=[];l.on("data",c=>a.push(Buffer.from(c))),l.on("error",c=>r(c)),l.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${l.statusCode} ${l.statusMessage}`),l.resume()}).on("error",l=>r(l))})}function VE(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function qE(t){return/^data:[^;,]*(;base64)?,/.test(t)}function RE(t,{length:e}={}){return new Promise((n,r)=>{const o=UE();o.open(t,(s,l)=>{s?r(s):o.stat(t,(a,c)=>{if(a)r(a);else{const u=Math.min(c.size,e!==void 0?e:c.size),d=Buffer.alloc(u),f={buffer:d,length:u};o.read(l,f,h=>{h?r(h):o.close(l,_=>{_&&console.warn(`Could not close file ${t}:`,_),n(d)})})}})})})}function UE(){try{return __non_webpack_require__("fs")}catch{return}}function jE(t){return typeof window<"u"&&typeof File<"u"&&t instanceof File}function zE(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(o.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function Ma(t,e){return HE(t)&&(t=new Uint8Array(t).buffer),O_(GE(t),e)}function HE(t){try{return Buffer.isBuffer(t)}catch{return!1}}function GE(t){try{return new DataView(t)}catch{return new X1(t)}}function O_(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1}={expanded:!1,async:!1,includeUnknown:!1}){let o=!1,s={};const l=[],{fileType:a,fileDataOffset:c,jfifDataOffset:u,tiffHeaderOffset:d,iptcDataOffset:f,xmpChunks:h,iccChunks:_,mpfDataOffset:p,pngHeaderOffset:m,pngTextChunks:g,pngChunkOffsets:x,vp8xChunkOffset:y,gifHeaderOffset:w}=f3.parseAppMarkers(t,n);if(ZE(c)){o=!0;const k=Z3.read(t,c);e?s.file=k:s=U({},s,k)}if(WE(u)){o=!0;const k=r4.read(t,u);e?s.jfif=k:s=U({},s,k)}if(YE(d)){o=!0;const{tags:k,byteOrder:E}=Xh.read(t,d,r);if(k.Thumbnail&&(s.Thumbnail=k.Thumbnail,delete k.Thumbnail),e?(s.exif=k,KE(s)):s=U({},s,k),k["IPTC-NAA"]&&!D_(f)){const B=Sa.read(k["IPTC-NAA"].value,0,r);e?s.iptc=B:s=U({},s,B)}if(k.ApplicationNotes&&!M_(h)){const B=s_.read(Cr(k.ApplicationNotes.value));e?s.xmp=B:(delete B._raw,s=U({},s,B))}if(k.ImageSourceData){const B=mT.read(k.PhotoshopSettings.value,r);e?s.photoshop=B:s=U({},s,B)}if(k.ICC_Profile&&!P_(_)){const B=C_.read(k.ICC_Profile.value,[{offset:0,length:k.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=B:s=U({},s,B)}if(QE(k)){const B=vT.read(t,d,k.MakerNote.__offset,E,r);e?s.makerNotes=B:s=U({},s,B)}k.MakerNote&&delete k.MakerNote.__offset}if(D_(f)){o=!0;const k=Sa.read(t,f,r);e?s.iptc=k:s=U({},s,k)}if(M_(h)){o=!0;const k=s_.read(t,h);e?s.xmp=k:(delete k._raw,s=U({},s,k))}if(P_(_)){o=!0;const k=C_.read(t,_,n);k instanceof Promise?l.push(k.then(T)):T(k)}if(XE(p)){o=!0;const k=V3.read(t,p,r);e?s.mpf=k:s=U({},s,k)}if(JE(m)){o=!0;const k=RT.read(t,m);e?(s.png=s.png?U({},s.png,k):k,s.pngFile=k):s=U({},s,k)}if(e8(g)){o=!0;const{readTags:k,readTagsPromise:E}=KT.read(t,g,n,r);b(k),E&&l.push(E.then(B=>B.forEach(b)))}if(t8(x)){o=!0;const k=cE.read(t,x);e?s.png=s.png?U({},s.png,k):k:s=U({},s,k)}if(n8(y)){o=!0;const k=mE.read(t,y);e?s.riff=s.riff?U({},s.riff,k):k:s=U({},s,k)}if(r8(w)){o=!0;const k=kE.read(t,w);e?s.gif=s.gif?U({},s.gif,k):k:s=U({},s,k)}const C=$E.get(t,s.Thumbnail,d);if(C?(o=!0,s.Thumbnail=C):delete s.Thumbnail,a&&(e?(s.file||(s.file={}),s.file.FileType=a):s.FileType=a,o=!0),!o)throw new A_.MetadataMissingError;if(n)return Promise.all(l).then(()=>s);return s;function T(k){e?s.icc=k:s=U({},s,k)}function b(k){if(e){for(const E of["exif","iptc"]){const B=`__${E}`;k[B]&&(s[E]=s[E]?U({},s.exif,k[B]):k[B],delete k[B])}s.png=s.png?U({},s.png,k):k,s.pngText=s.pngText?U({},s.png,k):k}else s=U({},s,k.__exif?k.__exif:{},k.__iptc?k.__iptc:{},k),delete s.__exif,delete s.__iptc}}function ZE(t){return t!==void 0}function WE(t){return t!==void 0}function YE(t){return t!==void 0}function KE(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=Ai(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=Ai(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function D_(t){return t!==void 0}function M_(t){return Array.isArray(t)&&t.length>0}function P_(t){return Array.isArray(t)&&t.length>0}function QE(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function XE(t){return t!==void 0}function JE(t){return t!==void 0}function e8(t){return t!==void 0}function t8(t){return t!==void 0}function n8(t){return t!==void 0}function r8(t){return t!==void 0}async function v_(t,e=null){if(t.location)return t.location;try{const n=await OE.load(t.blobUrl||t.url||"",{expanded:!0});if(n.gps)return{latitude:n.gps.Latitude,longitude:n.gps.Longitude}}catch(n){console.error("Failed to load EXIF data from file:",n)}try{const{waitForLocation:n,location:r}=yd();if(e&&setTimeout(()=>{!r.value&&e&&qe.warning(e)},1e3),window.location.protocol==="https:")await n();else if(window.location.href.match("localhost"))return{latitude:37.7749,longitude:-122.4194,accuracy:1,altitude:0,altitudeAccuracy:0};return r.value?{latitude:r.value.latitude,longitude:r.value.longitude,accuracy:r.value.accuracy,altitude:r.value.altitude,altitudeAccuracy:r.value.altitudeAccuracy}:null}catch(n){return console.error(n),null}}class xo{constructor(e,n){G(this,"files",[]);G(this,"fileUploads",[]);G(this,"onErrorCb",null);G(this,"onProgressCb",null);G(this,"onCompleteCb",null);G(this,"onAllCompleteCb",null);G(this,"options");if(this.files=!Array.isArray(e)&&!(e instanceof FileList)?[e]:e,this.fileUploads=[],this.onErrorCb=null,this.onProgressCb=null,this.onCompleteCb=null,this.onAllCompleteCb=null,this.options={createPresignedUpload:null,completePresignedUpload:null,refreshFile:null,...re.value.fileUpload,...n},!this.options.createPresignedUpload||!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';")}prepare(){for(const e of this.files){if(!(e instanceof File))throw Error("FileUpload constructor requires a File object or a list of File objects");e.id=ee.uid(),e.blobUrl=URL.createObjectURL(e);const n=new FormData;n.append("file",e),this.fileUploads.push({file:e,xhr:null,formData:n,isComplete:!1})}return this}onAllComplete(e){return this.onAllCompleteCb=e,this}onComplete(e){return this.onCompleteCb=e,this}onProgress(e){return this.onProgressCb=e,this}onError(e){return this.onErrorCb=e,this}errorHandler(e,n,r=null){this.onErrorCb&&this.onErrorCb({e,file:n,error:r})}async resolveLocation(e=null){for(const n of this.fileUploads)n.file.location=await v_(n.file,e),n.formData.append("meta",JSON.stringify(n.file.location));return this}fireProgressCallback(e,n){e.file.progress=n,this.onProgressCb&&this.onProgressCb({file:this.wrapFile(e.file),progress:n})}fireCompleteCallback(e,n){e.isComplete=!0,e.file.progress=1,this.onCompleteCb&&this.onCompleteCb({file:this.wrapFile(e.file),uploadedFile:n})}checkAllComplete(){this.onAllCompleteCb&&this.fileUploads.every(e=>e.isComplete)&&this.onAllCompleteCb({files:this.fileUploads})}wrapFile(e){return{id:e.id,name:e.name,size:e.size,type:e.type,progress:e.progress,location:e.location,blobUrl:e.blobUrl,url:"",__type:"BrowserFile"}}setXhrCallbacks(){var e,n,r;for(const o of this.fileUploads)(e=o.xhr)==null||e.addEventListener("error",s=>this.errorHandler(s,o.file),!1);if(this.onProgressCb)for(const o of this.fileUploads)(n=o.xhr)==null||n.upload.addEventListener("progress",s=>{const l=Math.min(.95,s.loaded/s.total);this.fireProgressCallback(o,l)},!1);for(const o of this.fileUploads)(r=o.xhr)==null||r.addEventListener("load",async s=>{try{let l=await this.completePresignedUpload(o);l=ge(l),this.fireCompleteCallback(o,l),this.checkAllComplete(),await this.waitForTranscode(l)}catch(l){this.errorHandler(s,o.file,l)}},!1)}async completePresignedUpload(e){if(this.fireProgressCallback(e,.95),!e.file.resource_id)throw new Error("File resource ID is required to complete presigned upload");if(!this.options.completePresignedUpload)throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");return await this.options.completePresignedUpload(e.file.resource_id,e)}async refreshFile(e){if(!this.options.refreshFile)return null;const n=await this.options.refreshFile(e.id);return n&&ge(n)}isTranscoding(e){var r;const n=((r=e==null?void 0:e.meta)==null?void 0:r.transcodes)||[];for(const o of Object.keys(n)){const s=n[o];if(s.status==="Pending"||s.status==="In Progress")return!0}return!1}async waitForTranscode(e){if(!e.meta||e.meta.is_waiting_transcode)return;e.meta.is_waiting_transcode=!0;let n=e;for(;n&&this.isTranscoding(n);)await Gr(1e3),n=await this.refreshFile(n)}async upload(){var e;for(const n of this.fileUploads){const r=n.file.mimeType||n.file.type;if(!this.options.createPresignedUpload)throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");const o=await this.options.createPresignedUpload(this.options.directory||"",n.file.name,r);if(!o.url){qe.error("Could not fetch presigned upload URL for file "+n.file.name);continue}const s=!o.url.match("upload-presigned-url-contents");n.file.resource_id=o.id;const l=new XMLHttpRequest;s?(l.open("PUT",o.url),l.setRequestHeader("Content-Type",r),n.body=n.file):(l.open("POST",o.url),n.body=n.formData),n.xhr=l}this.setXhrCallbacks();for(const n of this.fileUploads)(e=n.xhr)==null||e.send(n.body)}}const Wi=i.ref([]),Yi=i.ref([]);function o8(t){Wi.value=[...Wi.value,t]}function i8(t,e,n){Yi.value.push({id:n,name:t,callback:e})}function s8(t){Yi.value=Yi.value.filter(e=>e.id!==t)}function L_(t,e,n){for(let r of Wi.value)if(r.type===t&&r.key===e&&n.ctrlKey===!!r.ctrl&&n.altKey===!!r.alt&&n.shiftKey===!!r.shift)for(let o of Yi.value)o.name===r.name&&o.callback(n)}function V_(t){return t.key?(""+t.key).toLowerCase():t.keyCode}function l8(t){Wi.value=t,window.addEventListener("keydown",e=>{L_("keydown",V_(e),e)}),window.addEventListener("keyup",e=>{L_("keyup",V_(e),e)})}function q_(t){const e=i.ref([]),n=i.ref(null),r=i.ref(null),o=f=>{e.value=[...e.value,...f.target.files],new xo(f.target.files,t).prepare().onProgress(({file:h})=>{h&&s(h)}).onComplete(({file:h,uploadedFile:_})=>{h&&s(h,_)}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),qe.error(`Failed to upload ${h.name}: ${_}`)}).onAllComplete(()=>{n.value&&n.value({file:e.value[0],uploadedFile:e.value[0]}),r.value&&r.value(e.value)}).upload()};function s(f,h=null){const _=e.value.findIndex(p=>p.id===f.id);_!==-1&&e.value.splice(_,1,h||f),r.value&&r.value(e.value)}return{clearUploadedFiles:()=>{e.value=[],r.value&&r.value(e.value),n.value&&n.value({file:null,uploadedFile:null})},onRemove:f=>{const h=e.value.findIndex(_=>_.id===f.id);h!==-1&&e.value.splice(h,1),r.value&&r.value(e.value),n.value&&n.value({file:f,uploadedFile:f})},onComplete:f=>{n.value=f},onFilesChange:f=>{r.value=f},onDrop:f=>{var h;o({target:{files:(h=f.dataTransfer)==null?void 0:h.files}})},onFilesSelected:o,uploadedFiles:e}}const Ie={abortControllers:{},url(t){var e;return t.startsWith("http")?t:(((e=re.value.request)==null?void 0:e.baseUrl)||"").replace(/\/$/,"")+"/"+t},async call(t,e){var l;e=e||{};const n=(e==null?void 0:e.abortOn)!==void 0?e.abortOn:t,r=new Date().getTime();if(n){const a=new AbortController,c=Ie.abortControllers[n];c&&c.abort.abort("Request was aborted due to a newer request being made"),Ie.abortControllers[n]={abort:a,timestamp:r},e.signal=a.signal}if(e.params){for(const[a,c]of Object.entries(e.params))typeof c=="object"&&c!==null&&(e.params[a]=JSON.stringify(c));t+=(t.match(/\?/)?"&":"?")+new URLSearchParams(e.params).toString(),delete e.params}const o=await fetch(Ie.url(t),e);if(a8(o),n){if(r<Ie.abortControllers[n].timestamp)return{abort:!0};delete Ie.abortControllers[n]}const s=await o.json();if(o.status===401){const a=(l=re.value.request)==null?void 0:l.onUnauthorized;return a?a(s,o):{error:!0,message:"Unauthorized",...s}}return o.status>400&&s.exception&&!s.error&&(s.error=!0),s},async poll(t,e,n,r){let o;do o=await Ie.call(t,e),await Gr(n);while(!r(o));return o},async get(t,e){var n;return await Ie.call(t,{method:"get",headers:{Accept:"application/json","Content-Type":"application/json",...(n=re.value.request)==null?void 0:n.headers},...e})},async post(t,e,n){var r;return await Ie.call(t,{method:"post",body:e&&JSON.stringify(e),headers:{Accept:"application/json","Content-Type":"application/json",...(r=re.value.request)==null?void 0:r.headers},...n})}};function a8(t){const e=re.value.request;if(!e||!e.headers||!e.onAppVersionMismatch)return;const n=e.headers["X-App-Version"]||"",r=t.headers.get("X-App-Version");n&&n!==r&&e.onAppVersionMismatch(r)}async function c8(t,e,n,r){let o;n&&(o=e.value.find(s=>s.id===n)||(await t({id:n}))[0]),e.value=await t(r),o&&!e.value.find(s=>s.id===n)&&e.value.push(o)}function R_(t,e){return new URLSearchParams((e==null?void 0:e.replace(/.*\?/,""))||window.location.search).get(t)}function u8(t,e){return{list(n,r){return Ie.post(`${t}/list`,n,r)},summary(n,r){return Ie.post(`${t}/summary`,{filter:n},r)},details(n,r,o){return o=o||{},r&&(o.params={fields:r}),Ie.get(`${t}/${n.id}/details`,o)},async detailsAndStore(n,r,o){o=o||{},r&&(o.params={fields:r});const s=await Ie.get(`${t}/${n.id}/details`,o);return ge(s)},fieldOptions(n){return Ie.get(`${t}/field-options`,n)},applyAction(n,r,o,s){return Ie.post(`${t}/${r?r.id:"new"}/apply-action`,{action:n,data:o},s)},batchAction(n,r,o,s){return Ie.post(`${t}/batch-action`,{action:n,filter:{id:r.map(l=>l.id)},data:o},s)},export(n,r){return K1(`${t}/export`,r||"export.csv",{filter:n})},...e}}function U_(t=null){const e=i.ref(null),n=i.ref(null),r=i.ref(null),o=d=>{var f;e.value=null,new xo((f=d.target)==null?void 0:f.files[0],t).prepare().onProgress(({file:h})=>{h&&(e.value=h,r.value&&r.value(e.value))}).onComplete(({uploadedFile:h})=>{h&&(e.value=h,n.value&&n.value(e.value),r.value&&r.value(e.value))}).onError(({file:h,error:_})=>{console.error("Failed to upload",h,_),qe.error(`Failed to upload ${h.name}: ${_}`)}).upload()},s=d=>{var f;o({target:{files:(f=d.dataTransfer)==null?void 0:f.files}})};return{isFileUploaded:i.computed(()=>e.value&&e.value.url),clearUploadedFile:()=>{e.value=null,r.value&&r.value(e.value),n.value&&n.value(e.value)},onComplete:d=>{n.value=d},onFileChange:d=>{r.value=d},onDrop:s,onFileSelected:o,uploadedFile:e}}function vt(t,e){localStorage.setItem(t,JSON.stringify(e))}function Ct(t,e=null){const n=localStorage.getItem(t);try{return n?JSON.parse(n):e}catch{return}}function d8(t,e=""){const n=Pa(t,e),r=document.createElement("style");r.innerHTML=`:root {${n}}`,document.head.appendChild(r)}function Pa(t,e=""){return Object.entries(t).map(([n,r])=>typeof r=="object"?Pa(r,`${e}${n}-`):`--${e}${n}: ${r}`).join(";")}const f8={version:"0.4.41"},{version:j_}=f8;function h8(){console.log(`Installing Danx UI ${j_}... Nothing to do really.`)}S.ActionForm=wc,S.ActionFormDialog=M0,S.ActionMenu=Xs,S.ActionTable=ld,S.ActionTableColumn=ju,S.ActionTableHeaderColumn=Zu,S.ActionTableLayout=gw,S.ActionToolbar=ad,S.ActionVnode=Xg,S.AddressFormat=Ug,S.AuditHistoryItem=Nw,S.AuditHistoryItemValue=nl,S.AutoHeightTransition=cy,S.BadgeTab=ry,S.BooleanField=rs,S.CaretDownIcon=Ha,S.CollapsableFiltersSidebar=ed,S.CollapsableSidebar=xc,S.ColumnListItem=el,S.ColumnSettingsDialog=Ob,S.ConfirmActionDialog=rc,S.ConfirmDialog=Et,S.ConfirmPasswordField=tp,S.ContentDrawer=us,S.CreateNewWithNameDialog=oc,S.DateField=is,S.DateRangeField=ss,S.DateTime=D,S.DateTimeField=fp,S.DateTimePicker=ls,S.DragAndDrop=Js,S.DragHandleDotsIcon=Ga,S.DragHandleIcon=Za,S.EditOnClickTextField=gp,S.EditableDiv=lc,S.EmptyTableState=id,S.ExportButton=ja,S.FieldLabel=ht,S.FilePreview=$r,S.FileUpload=xo,S.FileUploadButton=bp,S.FilterIcon=Wa,S.FilterItem=Xu,S.FilterList=Ju,S.FilterListToggle=td,S.FilterToolbarLayout=Yb,S.FilterableField=tl,S.FlashMessages=qe,S.FlatListFormat=jg,S.FullScreenCarouselDialog=ic,S.FullScreenDialog=H0,S.GpsCoordinatesFormat=Gg,S.HandleDraggable=zu,S.IconWithTextFormat=Wg,S.ImageIcon=ts,S.IndicatorTab=sy,S.InfoDialog=sc,S.InlineDateTimeField=xp,S.InputDialog=Z0,S.IntegerField=cc,S.InteractiveTooltip=ey,S.LabelValueBlock=Np,S.LabelValueFormat=Kg,S.LabeledInput=os,S.ListDragAndDrop=Hu,S.ListItemDraggable=Gu,S.ListTransition=Ec,S.MaxHeightTransition=uy,S.MaxLengthCounter=ac,S.MultiFileField=uc,S.MultiKeywordField=dc,S.NavigationMenu=Fw,S.NewPasswordField=Fp,S.NumberField=Ir,S.NumberRangeField=Bo,S.PanelsDrawer=od,S.PanelsDrawerPanels=nd,S.PanelsDrawerTabs=rd,S.PdfIcon=Ya,S.PercentIcon=Ka,S.PopoverMenu=Tc,S.PreviousNextControls=ec,S.RefreshButton=za,S.RenderComponent=Cc,S.RenderVnode=un,S.RenderedForm=cs,S.RenderedFormDialog=Cg,S.SERVER_TZ=na,S.SaveStateIndicator=bc,S.SelectDrawer=Pp,S.SelectField=Ln,S.SelectOrCreateField=Gp,S.SelectWithChildrenField=fc,S.SelectionMenuField=zp,S.ShowHideButton=Co,S.SingleFileField=hc,S.SkipNextIcon=Qa,S.SkipPreviousIcon=Xa,S.SlideTransition=dy,S.SliderNumberField=Jp,S.StaggeredListTransition=Eb,S.SvgImg=kc,S.TableSummaryRow=sd,S.TextField=an,S.TitleColumnFormat=Wu,S.TrashIcon=To,S.VisibleColumnsToggleButtons=Lb,S.WarningIcon=Ja,S.WysiwygField=yc,S.XIcon=Eo,S.activeActionVnode=kn,S.addHotkey=o8,S.applyCssVars=d8,S.autoRefreshObject=ud,S.buildCssVars=Pa,S.centerTruncate=fS,S.cloneDeep=qw,S.configure=W_,S.danxOptions=re,S.dbDateTime=oa,S.diffInDays=gS,S.download=$i,S.downloadFile=K1,S.downloadFileResponse=Q1,S.fBoolean=G1,S.fCurrency=Ni,S.fCurrencyNoCents=cS,S.fDate=St,S.fDateTime=Bi,S.fDuration=aS,S.fJSON=Y1,S.fLocalizedDateTime=xr,S.fMarkdownCode=pS,S.fNameOrCount=W1,S.fNumber=Dt,S.fPercent=Z1,S.fPhone=hS,S.fQDate=iS,S.fSecondsToDuration=z1,S.fSecondsToTime=lS,S.fShortCurrency=uS,S.fShortNumber=H1,S.fShortSize=dS,S.fetchResourceListWithSelected=c8,S.getFilterFromUrl=Qu,S.getItem=Ct,S.getResponseHeader=la,S.getUrlParam=R_,S.incrementName=_d,S.install=h8,S.isJSON=md,S.latestCallOnly=sl,S.listen=i8,S.localizedDateTime=ra,S.mapSortBy=Ku,S.metersToMiles=jw,S.milesToMeters=zw,S.minmax=Uw,S.notify=Aw,S.parseCoords=Hw,S.parseDateTime=Ot,S.parseGenericDateTime=j1,S.parseMarkdownCode=Ii,S.parseMarkdownJSON=_S,S.parseMarkdownYAML=mS,S.parseQDate=ia,S.parseQDateTime=sa,S.parseSqlDateTime=sS,S.pollUntil=Rw,S.refreshApplication=Lw,S.registerHotkeys=l8,S.registerStickyScrolling=Yu,S.remoteDateTime=U1,S.remove=Hr,S.replace=ol,S.request=Ie,S.resolveFileLocation=v_,S.setItem=vt,S.sleep=Gr,S.stopAutoRefreshObject=Mw,S.storeObject=ge,S.storeObjects=Ow,S.uniqueBy=Vw,S.unlisten=s8,S.useActionRoutes=u8,S.useActions=Pw,S.useCompatibility=yd,S.useControls=Vb,S.useDebounceFn=ln,S.useMultiFileUpload=q_,S.useSingleFileUpload=U_,S.useTableColumns=yw,S.version=j_,S.waitForRef=il,S.withDefaultActions=vw,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
154
154
|
//# sourceMappingURL=danx.umd.js.map
|