exifreader
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ExifReader=t():e.ExifReader=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return e.map((function(e){return String.fromCharCode(e)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringFromDataView=function(e,n,r){for(var i=[],o=0;o<r&&n+o<e.byteLength;o++)i.push(e.getUint8(n+o,!1));return t(i).join("")},e.getUnicodeStringFromDataView=function(e,n,r){for(var i=[],o=0;o<r&&n+o<e.byteLength;o+=2)i.push(e.getUint16(n+o));return t(i).join("")},e.objectAssign=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n.length;i<o;i++){var a=n[i];for(var u in a)e[u]=a[u]}return e}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringValue=t,e.getEncodedString=function(e){if(e.length>=8){var n=t(e.slice(0,8));if("ASCII\0\0\0"===n)return t(e.slice(8));if("JIS\0\0\0\0\0"===n)return"[JIS encoded text]";if("UNICODE\0"===n)return"[Unicode encoded text]";if("\0\0\0\0\0\0\0\0"===n)return"[Undefined encoding]"}return"Undefined"},e.getCharacterArray=function(e){return e.split("").map((function(e){return e.charCodeAt(0)}))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={BIG_ENDIAN:19789,LITTLE_ENDIAN:18761,getByteOrder:function(e,t){if(18761===e.getUint16(t))return 18761;if(19789===e.getUint16(t))return 19789;throw new Error("Illegal byte order value. Faulty image.")}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n},i={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},o={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13};function a(e,t){return e.getUint8(t)}function u(e,t,n){return e.getUint32(t,n===r.default.LITTLE_ENDIAN)}function c(e,t,n){return e.getInt32(t,n===r.default.LITTLE_ENDIAN)}e.default={getAsciiValue:function(e){return e.map((function(e){return String.fromCharCode(e)}))},getByteAt:a,getAsciiAt:function(e,t){return e.getUint8(t)},getShortAt:function(e,t,n){return e.getUint16(t,n===r.default.LITTLE_ENDIAN)},getLongAt:u,getRationalAt:function(e,t,n){return[u(e,t,n),u(e,t+4,n)]},getUndefinedAt:function(e,t){return a(e,t)},getSlongAt:c,getSrationalAt:function(e,t,n){return[c(e,t,n),c(e,t+4,n)]},getIfdPointerAt:function(e,t,n){return u(e,t,n)},typeSizes:i,tagTypes:o,getTypeSize:function(e){if(void 0===o[e])throw new Error("No such type found.");return i[o[e]]}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={LightSource:function(e){return 1===e?"Daylight":2===e?"Fluorescent":3===e?"Tungsten (incandescent light)":4===e?"Flash":9===e?"Fine weather":10===e?"Cloudy weather":11===e?"Shade":12===e?"Daylight fluorescent (D 5700 – 7100K)":13===e?"Day white fluorescent (N 4600 – 5400K)":14===e?"Cool white fluorescent (W 3900 – 4500K)":15===e?"White fluorescent (WW 3200 – 3700K)":17===e?"Standard light A":18===e?"Standard light B":19===e?"Standard light C":20===e?"D55":21===e?"D65":22===e?"D75":23===e?"D50":24===e?"ISO studio tungsten":255===e?"Other light source":"Unknown"}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(6),n(7),n(8),n(14),n(15),n(19),n(22),n(24)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,u,c,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errors=void 0,e.load=y,e.loadView=C;var d=S(n),s=S(r),l=S(i),p=S(o),m=S(a),g=S(u),v=S(c),h=S(f);function S(e){return e&&e.__esModule?e:{default:e}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1};return C(b(e),t)}function b(e){try{return new DataView(e)}catch(t){return new d.default(e)}}function C(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1},r=!1,i={},o=s.default.parseAppMarkers(e),a=o.fileDataOffset,u=o.tiffHeaderOffset,c=o.iptcDataOffset,f=o.xmpChunks,d=o.iccChunks;if(A(a)){r=!0;var S=p.default.read(e,a);n.expanded?i.file=S:i=(0,t.objectAssign)({},i,S)}if(P(u)){r=!0;var y=l.default.read(e,u);n.expanded?i.exif=y:i=(0,t.objectAssign)({},i,y)}if(I(c)){r=!0;var b=m.default.read(e,c);n.expanded?i.iptc=b:i=(0,t.objectAssign)({},i,b)}if(w(f)){r=!0;var C=g.default.read(e,f);n.expanded?i.xmp=C:i=(0,t.objectAssign)({},i,C)}if(D(d)){r=!0;var U=v.default.read(e,d);n.expanded?i.icc=U:i=(0,t.objectAssign)({},i,U)}if(!r)throw new h.default.MetadataMissingError;return i}function A(e){return void 0!==e}function P(e){return void 0!==e}function I(e){return void 0!==e}function w(e){return Array.isArray(e)&&e.length>0}function D(e){return Array.isArray(e)&&e.length>0}e.default={load:y,loadView:C,errors:h.default},e.errors=h.default})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(){function e(n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e){return"object"!==(void 0===e?"undefined":t(e))||void 0===e.length||void 0===e.readUInt8||void 0===e.readUInt16LE||void 0===e.readUInt16BE||void 0===e.readUInt32LE||void 0===e.readUInt32BE||void 0===e.readInt32LE||void 0===e.readInt32BE}(n))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=n,this.byteLength=this.buffer.length}return n(e,[{key:"getUint8",value:function(e){return this.buffer.readUInt8(e)}},{key:"getUint16",value:function(e,t){return t?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}},{key:"getUint32",value:function(e,t){return t?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}},{key:"getInt32",value:function(e,t){return t?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}}]),e}();e.default=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(2)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n)&&r.__esModule?r:{default:r},o=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"],a=4+"ICC_PROFILE\0".length,u=a+1;function c(e,t){return 65472===e.getUint16(t,!1)}function f(e,t){return 65474===e.getUint16(t,!1)}function d(e,n){var r="ICC_PROFILE\0".length;return 65506===e.getUint16(n,!1)&&"ICC_PROFILE\0"===(0,t.getStringFromDataView)(e,n+4,r)}function s(e,n){var r="Exif".length;return 65505===e.getUint16(n,!1)&&"Exif"===(0,t.getStringFromDataView)(e,n+4,r)&&0===e.getUint8(n+4+r,!1)}function l(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){var r="http://ns.adobe.com/xap/1.0/\0".length;return"http://ns.adobe.com/xap/1.0/\0"===(0,t.getStringFromDataView)(e,n+4,r)}(e,n)}function p(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){var r="http://ns.adobe.com/xmp/extension/\0".length;return"http://ns.adobe.com/xmp/extension/\0"===(0,t.getStringFromDataView)(e,n+4,r)}(e,n)}function m(e,t){return{dataOffset:e+33,length:t-31}}function g(e,t){return{dataOffset:e+79,length:t-77}}function v(e,n){var r="Photoshop 3.0".length;return 65517===e.getUint16(n,!1)&&"Photoshop 3.0"===(0,t.getStringFromDataView)(e,n+4,r)&&0===e.getUint8(n+4+r,!1)}function h(e,t){var n=e.getUint16(t,!1);return n>=65504&&n<=65519||65534===n||65472===n||65474===n||65476===n||65499===n||65501===n||65498===n}e.default={parseAppMarkers:function(e){if(function(e){return e.byteLength>=4&&function(e){var t=e.getUint16(0)===i.default.LITTLE_ENDIAN;return 42===e.getUint16(2,t)}(e)}(e))return{hasAppMarkers:!0,tiffHeaderOffset:0};if(function(e){return e.byteLength>=2&&65496===e.getUint16(0,!1)}(e))return function(e){for(var t=2,n=void 0,r=void 0,i=void 0,o=void 0,S=void 0,y=void 0,b=void 0;t+4+5<=e.byteLength;){if(c(e,t))r=t+2;else if(f(e,t))i=t+2;else if(s(e,t))n=e.getUint16(t+2,!1),o=t+10;else if(l(e,t))y||(y=[]),n=e.getUint16(t+2,!1),y.push(m(t,n));else if(p(e,t))y||(y=[]),n=e.getUint16(t+2,!1),y.push(g(t,n));else if(v(e,t))n=e.getUint16(t+2,!1),S=t+18;else if(d(e,t)){n=e.getUint16(t+2,!1);var C=t+18,A=n-16,P=e.getUint8(t+a,!1),I=e.getUint8(t+u,!1);b||(b=[]),b.push({offset:C,length:A,chunkNumber:P,chunksTotal:I})}else{if(!h(e,t))break;n=e.getUint16(t+2,!1)}t+=2+n}return{hasAppMarkers:t>2,fileDataOffset:r||i,tiffHeaderOffset:o,iptcDataOffset:S,xmpChunks:y,iccChunks:b}}(e);if(function(e){var n=(0,t.getStringFromDataView)(e,4+"ftyp".length,4);return"ftyp"===(0,t.getStringFromDataView)(e,4,"ftyp".length)&&-1!==o.indexOf(n)}(e))return function(e){for(var n="Exif".length,r=4+"ftyp".length+4;r+n+2+2<=e.byteLength;){var o=e.getUint16(r+n+2,!1);if("Exif"===(0,t.getStringFromDataView)(e,r,n)&&0===e.getUint8(r+n,!1)&&(o===i.default.LITTLE_ENDIAN||o===i.default.BIG_ENDIAN))return{hasAppMarkers:!0,tiffHeaderOffset:r+n+2};r++}return{hasAppMarkers:!1}}(e);throw new Error("Invalid image format")}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(2),n(3),n(9)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=c(n),a=c(r),u=c(i);function c(e){return e&&e.__esModule?e:{default:e}}var f={1:a.default.getByteAt,2:a.default.getAsciiAt,3:a.default.getShortAt,4:a.default.getLongAt,5:a.default.getRationalAt,7:a.default.getUndefinedAt,9:a.default.getSlongAt,10:a.default.getSrationalAt,13:a.default.getIfdPointerAt};function d(e,t,n,r,i){var o=a.default.getTypeSize("SHORT"),u={},c=a.default.getShortAt(e,r,i);r+=o;for(var f=0;f<c;f++){var d=s(e,t,n,r,i);void 0!==d&&(u[d.name]={id:d.id,value:d.value,description:d.description}),r+=12}return u}function s(e,t,n,r,i){var o=a.default.getTypeSize("SHORT"),c=o+a.default.getTypeSize("SHORT"),f=c+a.default.getTypeSize("LONG"),d=a.default.getShortAt(e,r,i),s=a.default.getShortAt(e,r+o,i),m=a.default.getLongAt(e,r+c,i),g=void 0;if(void 0!==a.default.typeSizes[s]){if(function(e,t){return a.default.typeSizes[e]*t<=a.default.getTypeSize("LONG")}(s,m))g=l(e,r+f,s,m,i);else{var v=a.default.getLongAt(e,r+f,i);g=function(e,t,n,r,i){return t+n+a.default.typeSizes[r]*i<=e.byteLength}(e,n,v,s,m)?l(e,n+v,s,m,i):"<faulty value>"}if(s===a.default.tagTypes.ASCII&&(g=function(e){try{return e.map((function(e){return decodeURIComponent(escape(e))}))}catch(t){return e}}(g=function(e){for(var t=[],n=0,r=0,i=e.length;r<i;r++){var o=e[r];"\0"!==o?(void 0===t[n]&&(t[n]=""),t[n]+=o):n++}return t}(g))),void 0!==u.default[t][d]){var h=void 0,S=void 0;if(void 0!==u.default[t][d].name&&void 0!==u.default[t][d].description){h=u.default[t][d].name;try{S=u.default[t][d].description(g)}catch(e){S=p(g)}}else s===a.default.tagTypes.RATIONAL||s===a.default.tagTypes.SRATIONAL?(h=u.default[t][d],S=""+g[0]/g[1]):(h=u.default[t][d],S=p(g));return{id:d,name:h,value:g,description:S}}return{id:d,name:"undefined-"+d,value:g,description:g}}}function l(e,t,n,r,i){for(var o=[],u=0;u<r;u++)o.push(f[n](e,t,i)),t+=a.default.typeSizes[n];return n===a.default.tagTypes.ASCII?o=a.default.getAsciiValue(o):1===o.length&&(o=o[0]),o}function p(e){return e instanceof Array?e.join(", "):e}e.default={read:function(e,n){var r=o.default.getByteOrder(e,n),i=function(e,t,n){return d(e,"0th",t,function(e,t,n){return t+a.default.getLongAt(e,t+4,n)}(e,t,n),n)}(e,n,r);return i=function(e,n,r,i){return void 0!==e["Interoperability IFD Pointer"]?(0,t.objectAssign)(e,d(n,"interoperability",r,r+e["Interoperability IFD Pointer"].value,i)):e}(i=function(e,n,r,i){return void 0!==e["GPS Info IFD Pointer"]?(0,t.objectAssign)(e,d(n,"gps",r,r+e["GPS Info IFD Pointer"].value,i)):e}(i=function(e,n,r,i){return void 0!==e["Exif IFD Pointer"]?(0,t.objectAssign)(e,d(n,"exif",r,r+e["Exif IFD Pointer"].value,i)):e}(i,e,n,r),e,n,r),e,n,r)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(10),n(11),n(12),n(13)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=d(n),u=d(r),c=d(i),f=d(o);function d(e){return e&&e.__esModule?e:{default:e}}var s=(0,t.objectAssign)({},a.default,u.default);e.default={"0th":s,exif:s,gps:c.default,interoperability:f.default}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};e.default={11:"ProcessingSoftware",254:{name:"SubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"}[e]||"Unknown"}},255:{name:"OldSubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"}[e]||"Unknown"}},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:function(e){return{1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"}[e]||"Unknown"}},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:function(e){return{1:"Normal",2:"Reversed"}[e]||"Unknown"}},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:function(e){return 1===e?"top-left":2===e?"top-right":3===e?"bottom-right":4===e?"bottom-left":5===e?"left-top":6===e?"right-top":7===e?"right-bottom":8===e?"left-bottom":"Undefined"}},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:function(e){return""+Math.round(e[0]/e[1])}},283:{name:"YResolution",description:function(e){return""+Math.round(e[0]/e[1])}},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:function(e){return""+Math.round(e[0]/e[1])}},287:{name:"YPosition",description:function(e){return""+Math.round(e[0]/e[1])}},290:{name:"GrayResponseUnit",description:function(e){return{1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"}[e]||"Unknown"}},296:{name:"ResolutionUnit",description:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:function(e){return e.map((function(e){return e[0]+"/"+e[1]})).join(", ")}},319:{name:"PrimaryChromaticities",description:function(e){return e.map((function(e){return e[0]+"/"+e[1]})).join(", ")}},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:function(e){return{1:"CMYK",2:"Not CMYK"}[e]||"Unknown"}},337:"TargetPrinter",338:{name:"ExtraSamples",description:function(e){return{0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"}[e]||"Unknown"}},339:{name:"SampleFormat",description:function(e){var t={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(e)?e.map((function(e){return t[e]||"Unknown"})).join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join("/")}},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:function(e){return 1===e?"centered":2===e?"co-sited":"undefined "+e}},532:{name:"ReferenceBlackWhite",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join(", ")}},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:function(e){return e.join("; ")}},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",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:function(e){return{0:"Unsafe",1:"Safe"}[e]||"Unknown"}},50778:{name:"CalibrationIlluminant1",description:r.default.LightSource},50779:{name:"CalibrationIlluminant2",description:r.default.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:function(e){return{0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"}[e]||"Unknown"}},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:function(e){return{1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"}[e]||"Unknown"}},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51108:{name:"ProfileLookTableEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:function(e){return{0:"Auto",1:"None"}[e]||"Unknown"}},51111:"NewRawImageDigest",51112:"RawToPreviewGain"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1),n(4)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n)&&r.__esModule?r:{default:r},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default={33434:{name:"ExposureTime",description:function(e){return 0!==e[0]?"1/"+Math.round(e[1]/e[0]):"0/"+e[1]}},33437:{name:"FNumber",description:function(e){return"f/"+e[0]/e[1]}},34850:{name:"ExposureProgram",description:function(e){return 0===e?"Undefined":1===e?"Manual":2===e?"Normal program":3===e?"Aperture priority":4===e?"Shutter priority":5===e?"Creative program":6===e?"Action program":7===e?"Portrait mode":8===e?"Landscape mode":9===e?"Bulb":"Unknown"}},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:function(){return"[Raw OECF table data]"}},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:function(e){return{1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"}[e]||"Unknown"}},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:function(e){return(0,t.getStringValue)(e)}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:function(e){return e.map((function(e){return 49===e?"Y":50===e?"Cb":51===e?"Cr":52===e?"R":53===e?"G":54===e?"B":void 0})).join("")}},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:function(e){return"1/"+Math.round(Math.pow(2,e[0]/e[1]))}},37378:{name:"ApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},37382:{name:"SubjectDistance",description:function(e){return e[0]/e[1]+" m"}},37383:{name:"MeteringMode",description:function(e){return 1===e?"Average":2===e?"CenterWeightedAverage":3===e?"Spot":4===e?"MultiSpot":5===e?"Pattern":6===e?"Partial":255===e?"Other":"Unknown"}},37384:{name:"LightSource",description:i.default.LightSource},37385:{name:"Flash",description:function(e){return 0===e?"Flash did not fire":1===e?"Flash fired":5===e?"Strobe return light not detected":7===e?"Strobe return light detected":9===e?"Flash fired, compulsory flash mode":13===e?"Flash fired, compulsory flash mode, return light not detected":15===e?"Flash fired, compulsory flash mode, return light detected":16===e?"Flash did not fire, compulsory flash mode":24===e?"Flash did not fire, auto mode":25===e?"Flash fired, auto mode":29===e?"Flash fired, auto mode, return light not detected":31===e?"Flash fired, auto mode, return light detected":32===e?"No flash function":65===e?"Flash fired, red-eye reduction mode":69===e?"Flash fired, red-eye reduction mode, return light not detected":71===e?"Flash fired, red-eye reduction mode, return light detected":73===e?"Flash fired, compulsory flash mode, red-eye reduction mode":77===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":79===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":89===e?"Flash fired, auto mode, red-eye reduction mode":93===e?"Flash fired, auto mode, return light not detected, red-eye reduction mode":95===e?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"}},37386:{name:"FocalLength",description:function(e){return e[0]/e[1]+" mm"}},37393:"ImageNumber",37394:{name:"SecurityClassification",description:function(e){return{C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"}[e]||"Unknown"}},37395:"ImageHistory",37396:{name:"SubjectArea",description:function(e){return 2===e.length?"Location; X: "+e[0]+", Y: "+e[1]:3===e.length?"Circle; X: "+e[0]+", Y: "+e[1]+", diameter: "+e[2]:4===e.length?"Rectangle; X: "+e[0]+", Y: "+e[1]+", width: "+e[2]+", height: "+e[3]:"Unknown"}},37500:{name:"MakerNote",description:function(){return"[Raw maker note data]"}},37510:{name:"UserComment",description:t.getEncodedString},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37888:{name:"AmbientTemperature",description:function(e){return e[0]/e[1]+" °C"}},37889:{name:"Humidity",description:function(e){return e[0]/e[1]+" %"}},37890:{name:"Pressure",description:function(e){return e[0]/e[1]+" hPa"}},37891:{name:"WaterDepth",description:function(e){return e[0]/e[1]+" m"}},37892:{name:"Acceleration",description:function(e){return e[0]/e[1]+" mGal"}},37893:{name:"CameraElevationAngle",description:function(e){return e[0]/e[1]+" °"}},40960:{name:"FlashpixVersion",description:function(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}},40961:{name:"ColorSpace",description:function(e){return 1===e?"sRGB":65535===e?"Uncalibrated":"Unknown"}},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:function(){return"[Raw SFR table data]"}},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},41492:{name:"SubjectLocation",description:function(e){var t=o(e,2);return"X: "+t[0]+", Y: "+t[1]}},41493:"ExposureIndex",41495:{name:"SensingMethod",description:function(e){return 1===e?"Undefined":2===e?"One-chip color area sensor":3===e?"Two-chip color area sensor":4===e?"Three-chip color area sensor":5===e?"Color sequential area sensor":7===e?"Trilinear sensor":8===e?"Color sequential linear sensor":"Unknown"}},41728:{name:"FileSource",description:function(e){return 3===e?"DSC":"Unknown"}},41729:{name:"SceneType",description:function(e){return 1===e?"A directly photographed image":"Unknown"}},41730:{name:"CFAPattern",description:function(){return"[Raw CFA pattern table data]"}},41985:{name:"CustomRendered",description:function(e){return 0===e?"Normal process":1===e?"Custom process":"Unknown"}},41986:{name:"ExposureMode",description:function(e){return 0===e?"Auto exposure":1===e?"Manual exposure":2===e?"Auto bracket":"Unknown"}},41987:{name:"WhiteBalance",description:function(e){return 0===e?"Auto white balance":1===e?"Manual white balance":"Unknown"}},41988:{name:"DigitalZoomRatio",description:function(e){return 0===e[0]?"Digital zoom was not used":""+e[0]/e[1]}},41989:{name:"FocalLengthIn35mmFilm",description:function(e){return 0===e?"Unknown":e}},41990:{name:"SceneCaptureType",description:function(e){return 0===e?"Standard":1===e?"Landscape":2===e?"Portrait":3===e?"Night scene":"Unknown"}},41991:{name:"GainControl",description:function(e){return 0===e?"None":1===e?"Low gain up":2===e?"High gain up":3===e?"Low gain down":4===e?"High gain down":"Unknown"}},41992:{name:"Contrast",description:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},41993:{name:"Saturation",description:function(e){return 0===e?"Normal":1===e?"Low saturation":2===e?"High saturation":"Unknown"}},41994:{name:"Sharpness",description:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},41995:{name:"DeviceSettingDescription",description:function(){return"[Raw device settings table data]"}},41996:{name:"SubjectDistanceRange",description:function(e){return 1===e?"Macro":2===e?"Close view":3===e?"Distant view":"Unknown"}},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:function(e){var t=e[0][0]/e[0][1]+"-"+e[1][0]/e[1][1]+" mm";return 0===e[3][1]?t+" f/?":t+" f/"+1/(e[2][1]/e[2][1]/(e[3][0]/e[3][1]))}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:function(e){return{1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}[e]||"Unknown"}},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default={0:{name:"GPSVersionID",description:function(e){return 2===e[0]&&2===e[1]&&0===e[2]&&0===e[3]?"Version 2.2":"Unknown"}},1:{name:"GPSLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},3:{name:"GPSLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},5:{name:"GPSAltitudeRef",description:function(e){return 0===e?"Sea level":1===e?"Sea level reference (negative value)":"Unknown"}},6:{name:"GPSAltitude",description:function(e){return e[0]/e[1]+" m"}},7:{name:"GPSTimeStamp",description:function(e){return e.map((function(e){var t=n(e,2),r=t[0]/t[1];return/^\d(\.|$)/.test(""+r)?"0"+r:r})).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(e){var t=e.join("");return"A"===t?"Measurement in progress":"V"===t?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:function(e){var t=e.join("");return"2"===t?"2-dimensional measurement":"3"===t?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers per hour":"M"===t?"Miles per hour":"N"===t?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},21:{name:"GPSDestLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},23:{name:"GPSDestBearingRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers":"M"===t?"Miles":"N"===t?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:t.getEncodedString},28:{name:"GPSAreaInformation",description:t.getEncodedString},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){return 0===e?"Measurement without differential correction":1===e?"Differential correction applied":"Unknown"}},31:"GPSHPositioningError"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:function(e){return(0,t.getStringValue)(e)}},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(3)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};function i(e,t,n){if(!(3>n)){var i=r.default.getByteAt(e,t+2);return{value:i,description:""+i}}}function o(e,t,n){if(!(5>n)){var i=r.default.getShortAt(e,t+3);return{value:i,description:i+"px"}}}function a(e,t,n){if(!(7>n)){var i=r.default.getShortAt(e,t+5);return{value:i,description:i+"px"}}}function u(e,t,n,i){if(!(8+3*n>i)){for(var o=[],a=0;a<n;a++){var u=t+8+3*a;o.push([r.default.getByteAt(e,u),r.default.getByteAt(e,u+1),r.default.getByteAt(e,u+2)])}return{value:o,description:o.length>1?c(o)+f(o):""}}}function c(e){var t={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return e.map((function(e){return t[e[0]]})).join("")}function f(e){var t={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return 0===e.length||void 0===e[0][1]||void 0===t[e[0][1]]?"":t[e[0][1]]}e.default={read:function(e,t){var n=function(e,t){return r.default.getShortAt(e,t)}(e,t),c=function(e,t,n){if(!(8>n)){var i=r.default.getByteAt(e,t+7);return{value:i,description:""+i}}}(e,t,n);return{"Bits Per Sample":i(e,t,n),"Image Height":o(e,t,n),"Image Width":a(e,t,n),"Color Components":c,Subsampling:c&&u(e,t,c.value,n)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(16),n(17)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(t),i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(943868237!==e.getUint32(t,!1))throw new Error("Not an IPTC resource block.");return{type:e.getUint16(t+4,!1),size:e.getUint16(t+10,!1)}}function u(e){return 1028===e.type}function c(e){return e.size%2!=0?1:0}function f(e,t,n,i){if(function(e,t){return 28!==e.getUint8(t)}(e,t))return{tag:null,tagSize:0};var o=e.getUint16(t+1,!1),a=e.getUint16(t+3,!1),u=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e.getUint8(t+i));return r}(e,t+5,a),c={id:o,name:d(r.default.iptc[o],o,u),value:u,description:s(r.default.iptc[o],u,n,i)};return function(e){return r.default.iptc[e]&&r.default.iptc[e].repeatable}(o)&&(c.repeatable=!0),function(e){return r.default.iptc[e]&&void 0!==r.default.iptc[e].encoding_name}(o)&&(c.encoding=r.default.iptc[o].encoding_name(u)),{tag:c,tagSize:a}}function d(e,t,n){return e?function(e){return"string"==typeof e}(e)?e:function(e){return"function"==typeof e.name}(e)?e.name(n):e.name:"undefined-"+t}function s(e,t,n,r){if(function(e){return e&&void 0!==e.description}(e))try{return e.description(t,n)}catch(e){}return function(e,t){return e&&t instanceof Array}(e,t)?i.default.decode(r,t):t}e.default={read:function(e,t){try{var n=function(e,t){for(;t+12<=e.byteLength;){var n=a(e,t);if(u(n))return{naaBlock:n,dataOffset:t};t+=12+n.size+c(n)}throw new Error("No IPTC NAA resource block.")}(e,t);return function(e,t,n){for(var r={},i=void 0,o=(n+=12)+t.size;n<o&&n<e.byteLength;){var a=f(e,n,r,i),u=a.tag,c=a.tagSize;if(null===u)break;"encoding"in u&&(i=u.encoding),void 0===r[u.name]||void 0===u.repeatable?r[u.name]={id:u.id,value:u.value,description:u.description}:(r[u.name]instanceof Array||(r[u.name]=[{id:r[u.name].id,value:r[u.name].value,description:r[u.name].description}]),r[u.name].push({id:u.id,value:u.value,description:u.description})),n+=5+c}return r}(e,n.naaBlock,n.dataOffset)}catch(e){return{}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){var n=(0,t.getStringValue)(e);return n.length>=8?n.substr(0,4)+"-"+n.substr(4,2)+"-"+n.substr(6,2):n}function r(e){var n=(0,t.getStringValue)(e),r=n;return n.length>=6&&(r=n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2),11===n.length&&(r+=n.substr(6,1)+n.substr(7,2)+":"+n.substr(9,2))),r}function i(e){var n=(0,t.getStringValue)(e);return"%G"===n?"UTF-8":"%5"===n?"Windows-1252":"%/G"===n?"UTF-8 Level 1":"%/H"===n?"UTF-8 Level 2":"%/I"===n?"UTF-8 Level 3":"/A"===n?"ISO-8859-1":"/B"===n?"ISO-8859-2":"/C"===n?"ISO-8859-3":"/D"===n?"ISO-8859-4":"/@"===n?"ISO-8859-5":"/G"===n?"ISO-8859-6":"/F"===n?"ISO-8859-7":"/H"===n?"ISO-8859-8":"Unknown"}Object.defineProperty(e,"__esModule",{value:!0}),e.default={iptc:{256:{name:"Model Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:function(e){return((e[0]<<8)+e[1]).toString()}},278:{name:"File Format Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:n},336:{name:"Time Sent",description:r},346:{name:"Coded Character Set",description:i,encoding_name:i},356:"UNO",376:{name:"ARM Identifier",description:function(e){return((e[0]<<8)+e[1]).toString()}},378:{name:"ARM Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},512:{name:"Record Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:function(e){return"01"===(0,t.getStringValue)(e)?"Additional Language":"Unknown"}},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:function(e){var n=(0,t.getStringValue)(e).split(":");return n[2]+(n[3]?"/"+n[3]:"")+(n[4]?"/"+n[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:function(e){var n=(0,t.getStringValue)(e);return"01"===n?"Object Kill":"02"===n?"Object Replace":"03"===n?"Object Append":"04"===n?"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:n},572:{name:"Time Created",description:r},574:{name:"Digital Creation Date",description:n},575:{name:"Digital Creation Time",description:r},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:function(e){var n=(0,t.getStringValue)(e);return"a"===n?"morning":"p"===n?"evening":"b"===n?"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:function(e){return e}},642:"Image Type",643:{name:"Image Orientation",description:function(e){var n=(0,t.getStringValue)(e);return"P"===n?"Portrait":"L"===n?"Landscape":"S"===n?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:function(e){var n=(0,t.getStringValue)(e),r=n.charAt(0),i=n.charAt(1),o="";return"1"===r?o+="Mono":"2"===r&&(o+="Stereo"),"A"===i?o+=", actuality":"C"===i?o+=", question and answer session":"M"===i?o+=", music, transmitted by itself":"Q"===i?o+=", response to a question":"R"===i?o+=", raw sound":"S"===i?o+=", scener":"V"===i?o+=", voicer":"W"===i&&(o+=", wrap"),""!==o?o:n}},663:{name:"Audio Sampling Rate",description:function(e){return parseInt((0,t.getStringValue)(e),10)+" Hz"}},664:{name:"Audio Sampling Resolution",description:function(e){var n=parseInt((0,t.getStringValue)(e),10);return n+(1===n?" bit":" bits")}},665:{name:"Audio Duration",description:function(e){var n=(0,t.getStringValue)(e);return n.length>=6?n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2):n}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:function(e){return 2===e.length?"ObjectData Preview File Format":"Record 2 destination"},description:function(e){if(2===e.length){var n=(e[0]<<8)+e[1];return 0===n?"No ObjectData":1===n?"IPTC-NAA Digital Newsphoto Parameter Record":2===n?"IPTC7901 Recommended Message Format":3===n?"Tagged Image File Format (Adobe/Aldus Image data)":4===n?"Illustrator (Adobe Graphics data)":5===n?"AppleSingle (Apple Computer Inc)":6===n?"NAA 89-3 (ANPA 1312)":7===n?"MacBinary II":8===n?"IPTC Unstructured Character Oriented File Format (UCOFF)":9===n?"United Press International ANPA 1312 variant":10===n?"United Press International Down-Load Message":11===n?"JPEG File Interchange (JFIF)":12===n?"Photo-CD Image-Pac (Eastman Kodak)":13===n?"Microsoft Bit Mapped Graphics File [*.BMP]":14===n?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":15===n?"Audio plus Moving Video [*.AVI] (Microsoft)":16===n?"PC DOS/Windows Executable Files [*.COM][*.EXE]":17===n?"Compressed Binary File [*.ZIP] (PKWare Inc)":18===n?"Audio Interchange File Format AIFF (Apple Computer Inc)":19===n?"RIFF Wave (Microsoft Corporation)":20===n?"Freehand (Macromedia/Aldus)":21===n?'Hypertext Markup Language "HTML" (The Internet Society)':22===n?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":23===n?"MPEG 2 Audio Layer 3, ISO/IEC":24===n?"Portable Document File (*.PDF) Adobe":25===n?"News Industry Text Format (NITF)":26===n?"Tape Archive (*.TAR)":27===n?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":28===n?"Ritzaus Bureau NITF version (RBNITF DTD)":29===n?"Corel Draw [*.CDR]":"Unknown format "+n}return(0,t.getStringValue)(e)}},713:{name:"ObjectData Preview File Format Version",description:function(e,n){var r={"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"}},i=(0,t.getStringValue)(e);if(n["ObjectData Preview File Format"]){var o=(0,t.getStringValue)(n["ObjectData Preview File Format"].value);if(r[o]&&r[o][i])return r[o][i]}return i}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:function(e){return e[0].toString()}},1812:{name:"Max Subfile Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1882:{name:"ObjectData Size Announced",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1887:{name:"Maximum ObjectData Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(18)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};e.default={decode:function(e,t){var n=r.default.get();if(void 0!==n&&void 0!==e)try{return new n(e).decode(Uint8Array.from(t))}catch(e){}return function(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}(t.map((function(e){return String.fromCharCode(e)})).join(""))},TAG_HEADER_SIZE:5}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={get:function(){if("undefined"!=typeof TextDecoder)return TextDecoder}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(20),n(21)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(n),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function c(e,t){for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),i=0,o=0,a=t.length;o<a;o++){var u=t[o],c=e.buffer.slice(u.dataOffset,u.dataOffset+u.length);r.set(new Uint8Array(c),i),i+=u.length}return new DataView(r.buffer)}function f(e,n){try{var r=function e(t){for(var n=0;n<t.childNodes.length;n++){if("x:xmpmeta"===t.childNodes[n].tagName)return e(t.childNodes[n]);if("rdf:RDF"===t.childNodes[n].tagName)return t.childNodes[n]}throw new Error}(function(e){var n=o.default.get();if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;var r=new n,i=(0,t.getStringFromDataView)(e,0,e.byteLength),a=r.parseFromString(i,"application/xml");if("parsererror"===a.documentElement.nodeName)throw new Error(a.documentElement.textContent);return a}(n));return(0,t.objectAssign)(e,v(d(r,!0)))}catch(t){return e}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=s(e);return l(n)?t?{}:p(n[0]):m(n)}function s(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t}function l(e){return 1===e.length&&"#text"===e[0].nodeName}function p(e){return e.nodeValue}function m(e){var t={};return e.forEach((function(e){if(function(e){return e.nodeName&&"#text"!==e.nodeName}(e)){var n=function(e){return{attributes:g(e),value:d(e)}}(e);void 0!==t[e.nodeName]?(Array.isArray(t[e.nodeName])||(t[e.nodeName]=[t[e.nodeName]]),t[e.nodeName].push(n)):t[e.nodeName]=n}})),t}function g(e){for(var t={},n=0;n<e.attributes.length;n++)t[e.attributes[n].nodeName]=decodeURIComponent(escape(e.attributes[n].value));return t}function v(e){var n={};if("string"==typeof e)return e;for(var r in e){var i=e[r];Array.isArray(i)||(i=[i]),i.forEach((function(e){(0,t.objectAssign)(n,h(e.attributes)),"object"===u(e.value)&&(0,t.objectAssign)(n,w(e.value))}))}return n}function h(e){var t={};for(var n in e)S(n)&&(t[b(n)]={value:e[n],attributes:{},description:C(e[n],n)});return t}function S(e){return"rdf:parseType"!==e&&!y(e)}function y(e){return"xmlns"===e.split(":")[0]}function b(e){return e.split(":")[1]}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(Array.isArray(e))return A(e);if("object"===(void 0===e?"undefined":u(e)))return P(e);try{return t&&"function"==typeof i.default[t]?i.default[t](e):decodeURIComponent(escape(e))}catch(t){return e}}function A(e){return e.map((function(e){return void 0!==e.value?C(e.value):C(e)})).join(", ")}function P(e){var t=[];for(var n in e)t.push(I(n)+": "+e[n].value);return t.join("; ")}function I(e){return"CiAdrCity"===e?"CreatorCity":"CiAdrCtry"===e?"CreatorCountry":"CiAdrExtadr"===e?"CreatorAddress":"CiAdrPcode"===e?"CreatorPostalCode":"CiAdrRegion"===e?"CreatorRegion":"CiEmailWork"===e?"CreatorWorkEmail":"CiTelWork"===e?"CreatorWorkPhone":"CiUrlWork"===e?"CreatorWorkUrl":e}function w(e){var t={};for(var n in e)y(n)||(t[b(n)]=D(e[n],n));return t}function D(e,n){return U(e)?M(e,n):function(e){return"Resource"===e.attributes["rdf:parseType"]||void 0!==e.value["rdf:Description"]&&void 0===e.value["rdf:Description"].value["rdf:value"]}(e)?function(e,n){var r={value:{},attributes:{}};return void 0!==e.value["rdf:Description"]&&((0,t.objectAssign)(r.value,h(e.value["rdf:Description"].attributes)),(0,t.objectAssign)(r.attributes,_(e)),e=e.value["rdf:Description"]),(0,t.objectAssign)(r.value,w(e.value)),r.description=C(r.value,n),r}(e,n):function(e){return 0===Object.keys(e.value).length&&void 0===e.attributes["rdf:resource"]}(e)?function(e,t){var n=h(e.attributes);return{value:n,attributes:{},description:C(n,t)}}(e,n):function(e){return void 0!==F(e.value)}(e)?function(e,t){var n=F(e.value).value["rdf:li"],r=_(e),i=[];return void 0===n?n=[]:Array.isArray(n)||(n=[n]),n.forEach((function(e){i.push(function(e){return U(e)?M(e):function(e){return"Resource"===e.attributes["rdf:parseType"]}(e)?w(e.value):{value:e.value,attributes:_(e),description:C(e.value)}}(e))})),{value:i,attributes:r,description:C(i,t)}}(e,n):function(e,t){var n=E(e)||v(e.value);return{value:n,attributes:_(e),description:C(n,t)}}(e,n)}function U(e){return"Resource"===e.attributes["rdf:parseType"]&&void 0!==e.value["rdf:value"]||void 0!==e.value["rdf:Description"]&&void 0!==e.value["rdf:Description"].value["rdf:value"]}function M(e,n){var r=_(e);void 0!==e.value["rdf:Description"]&&(e=e.value["rdf:Description"]),(0,t.objectAssign)(r,_(e),function(e){var t={};for(var n in e.value)"rdf:value"===n||y(n)||(t[b(n)]=e.value[n].value);return t}(e));var i=function(e){return E(e.value["rdf:value"])||e.value["rdf:value"].value}(e);return{value:i,attributes:r,description:C(i,n)}}function _(e){var t={};for(var n in e.attributes)"rdf:parseType"===n||"rdf:resource"===n||y(n)||(t[b(n)]=e.attributes[n]);return t}function F(e){return e["rdf:Bag"]||e["rdf:Seq"]||e["rdf:Alt"]}function E(e){return e.attributes&&e.attributes["rdf:resource"]}e.default={read:function(e,t){return function(e,t){if(0===t.length)return[];var n=[c(e,t.slice(0,1))];return t.length>1&&n.push(c(e,t.slice(1))),n}(e,t).reduce(f,{})}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function n(e){var n=e.split(","),r=t(n,2),i=r[0],o=r[1];if(void 0!==i&&void 0!==o){var a=parseFloat(i),u=parseFloat(o),c=o.charAt(o.length-1);if(!Number.isNaN(a)&&!Number.isNaN(u))return""+(a+u/60)+c}return e}e.default={"tiff:Orientation":function(e){return"1"===e?"Horizontal (normal)":"2"===e?"Mirror horizontal":"3"===e?"Rotate 180":"4"===e?"Mirror vertical":"5"===e?"Mirror horizontal and rotate 270 CW":"6"===e?"Rotate 90 CW":"7"===e?"Mirror horizontal and rotate 90 CW":"8"===e?"Rotate 270 CW":e},"exif:GPSLatitude":n,"exif:GPSLongitude":n}})?r.apply(t,i):r)||(e.exports=o)},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(exports){"use strict";function get(){if("undefined"!=typeof DOMParser)return DOMParser;try{return eval("require")("xmldom").DOMParser}catch(e){return}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={get:get}},__WEBPACK_AMD_DEFINE_ARRAY__=[exports],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t,n){var r,i,o;i=[t,n(23),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t){return e.length<t+12}function i(e){var i=e.buffer,u=e.getUint32();if(e.byteLength!==u)throw new Error("ICC profile length not matching");if(e.length<84)throw new Error("ICC profile too short");for(var c={},f=0,d=Object.keys(t.iccProfile),s=d.length;f<s;f++){var l=d[f],p=t.iccProfile[l],m=p.value(e,parseInt(l,10)),g=m;p.description&&(g=p.description(m)),c[p.name]={value:m,description:g}}if("acsp"!==o(i.slice(36,40)))throw new Error("ICC profile: missing signature");if(function(e){return e.length<132}(i))return c;for(var v=e.getUint32(128),h=132,S=0;S<v;S++){if(r(i,h))return c;var y=(0,n.getStringFromDataView)(e,h,4),b=e.getUint32(h+4),C=e.getUint32(h+8);if(b>i.length)return c;var A=(0,n.getStringFromDataView)(e,b,4);if("desc"===A){var P=e.getUint32(b+8);if(P>C)return c;a(c,y,o(i.slice(b+12,b+P+11)))}else if("mluc"===A){for(var I=e.getUint32(b+8),w=e.getUint32(b+12),D=b+16,U=[],M=0;M<I;M++){var _=(0,n.getStringFromDataView)(e,D+0,2),F=(0,n.getStringFromDataView)(e,D+2,2),E=e.getUint32(D+4),O=e.getUint32(D+8),T=(0,n.getUnicodeStringFromDataView)(e,b+O,E);U.push({languageCode:_,countryCode:F,text:T}),D+=w}if(1===I)a(c,y,U[0].text);else{for(var x={},R=0;R<U.length;R++)x[U[R].languageCode+"-"+U[R].countryCode]=U[R].text;a(c,y,x)}}else"text"===A?a(c,y,o(i.slice(b+8,b+C-7))):"sig "===A&&a(c,y,o(i.slice(b+8,b+12)));h+=12}return c}function o(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function a(e,n,r){t.iccTags[n]?e[t.iccTags[n].name]={value:r,description:r}:e[n]={value:r,description:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.parseTags=i,e.default={read:function(e,t){try{for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),o=0,a=e.buffer,u=function(e){var n=t.find((function(t){return t.chunkNumber===e}));if(!n)throw new Error("ICC chunk "+e+" not found");var i=a.slice(n.offset,n.offset+n.length),u=new Uint8Array(i);r.set(u,o),o+=u.length},c=1;c<=t.length;c++)u(c);return i(new DataView(r.buffer))}catch(e){return{}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){switch(e.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.iccProfile=e.iccTags=void 0,e.iccTags={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"}},e.iccProfile={4:{name:"Preferred CMM type",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return null!==e?n(e):""}},8:{name:"Profile Version",value:function(e,t){return e.getUint8(t).toString(10)+"."+(e.getUint8(t+1)>>4).toString(10)+"."+(e.getUint8(t+1)%16).toString(10)}},12:{name:"Profile/Device class",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){switch(e.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return e}}},16:{name:"Color Space",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}},20:{name:"Connection Space",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}},24:{name:"ICC Profile Date",value:function(e,t){return function(e,t){var n=e.getUint16(t),r=e.getUint16(t+2)-1,i=e.getUint16(t+4),o=e.getUint16(t+6),a=e.getUint16(t+8),u=e.getUint16(t+10);return new Date(Date.UTC(n,r,i,o,a,u))}(e,t).toISOString()}},36:{name:"ICC Signature",value:function(e,t){return n=e.buffer.slice(t,t+4),String.fromCharCode.apply(null,new Uint8Array(n));var n}},40:{name:"Primary Platform",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return n(e)}},48:{name:"Device Manufacturer",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return n(e)}},52:{name:"Device Model Number",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}},64:{name:"Rendering Intent",value:function(e,t){return e.getUint32(t)},description:function(e){switch(e){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return e}}},80:{name:"Profile Creator",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){this.name="MetadataMissingError",this.message=e||"No Exif data",this.stack=(new Error).stack}Object.defineProperty(e,"__esModule",{value:!0}),t.prototype=new Error,e.default={MetadataMissingError:t}})?r.apply(t,i):r)||(e.exports=o)}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ExifReader=t():e.ExifReader=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return e.map((function(e){return String.fromCharCode(e)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringFromDataView=function(e,n,r){for(var i=[],o=0;o<r&&n+o<e.byteLength;o++)i.push(e.getUint8(n+o,!1));return t(i).join("")},e.getUnicodeStringFromDataView=function(e,n,r){for(var i=[],o=0;o<r&&n+o<e.byteLength;o+=2)i.push(e.getUint16(n+o));return t(i).join("")},e.objectAssign=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n.length;i<o;i++){var a=n[i];for(var u in a)e[u]=a[u]}return e}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}Object.defineProperty(e,"__esModule",{value:!0}),e.getStringValue=t,e.getEncodedString=function(e){if(e.length>=8){var n=t(e.slice(0,8));if("ASCII\0\0\0"===n)return t(e.slice(8));if("JIS\0\0\0\0\0"===n)return"[JIS encoded text]";if("UNICODE\0"===n)return"[Unicode encoded text]";if("\0\0\0\0\0\0\0\0"===n)return"[Undefined encoding]"}return"Undefined"},e.getCharacterArray=function(e){return e.split("").map((function(e){return e.charCodeAt(0)}))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={BIG_ENDIAN:19789,LITTLE_ENDIAN:18761,getByteOrder:function(e,t){if(18761===e.getUint16(t))return 18761;if(19789===e.getUint16(t))return 19789;throw new Error("Illegal byte order value. Faulty image.")}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n},i={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},o={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13};function a(e,t){return e.getUint8(t)}function u(e,t,n){return e.getUint32(t,n===r.default.LITTLE_ENDIAN)}function c(e,t,n){return e.getInt32(t,n===r.default.LITTLE_ENDIAN)}e.default={getAsciiValue:function(e){return e.map((function(e){return String.fromCharCode(e)}))},getByteAt:a,getAsciiAt:function(e,t){return e.getUint8(t)},getShortAt:function(e,t,n){return e.getUint16(t,n===r.default.LITTLE_ENDIAN)},getLongAt:u,getRationalAt:function(e,t,n){return[u(e,t,n),u(e,t+4,n)]},getUndefinedAt:function(e,t){return a(e,t)},getSlongAt:c,getSrationalAt:function(e,t,n){return[c(e,t,n),c(e,t+4,n)]},getIfdPointerAt:function(e,t,n){return u(e,t,n)},typeSizes:i,tagTypes:o,getTypeSize:function(e){if(void 0===o[e])throw new Error("No such type found.");return i[o[e]]}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={LightSource:function(e){return 1===e?"Daylight":2===e?"Fluorescent":3===e?"Tungsten (incandescent light)":4===e?"Flash":9===e?"Fine weather":10===e?"Cloudy weather":11===e?"Shade":12===e?"Daylight fluorescent (D 5700 – 7100K)":13===e?"Day white fluorescent (N 4600 – 5400K)":14===e?"Cool white fluorescent (W 3900 – 4500K)":15===e?"White fluorescent (WW 3200 – 3700K)":17===e?"Standard light A":18===e?"Standard light B":19===e?"Standard light C":20===e?"D55":21===e?"D65":22===e?"D75":23===e?"D50":24===e?"ISO studio tungsten":255===e?"Other light source":"Unknown"}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(6),n(7),n(8),n(14),n(15),n(19),n(22),n(24),n(25)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,u,c,f,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errors=void 0,e.load=A,e.loadView=P;var s=b(n),l=b(r),p=b(i),g=b(o),m=b(a),v=b(u),h=b(c),y=b(f),S=b(d);function b(e){return e&&e.__esModule?e:{default:e}}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1};return P(C(e),t)}function C(e){try{return new DataView(e)}catch(t){return new s.default(e)}}function P(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1},r=!1,i={},o=l.default.parseAppMarkers(e),a=o.fileDataOffset,u=o.tiffHeaderOffset,c=o.iptcDataOffset,f=o.xmpChunks,d=o.iccChunks,s=o.pngHeaderOffset;if(w(a)){r=!0;var b=g.default.read(e,a);n.expanded?i.file=b:i=(0,t.objectAssign)({},i,b)}if(I(u)){r=!0;var A=p.default.read(e,u);n.expanded?i.exif=A:i=(0,t.objectAssign)({},i,A)}if(D(c)){r=!0;var C=m.default.read(e,c);n.expanded?i.iptc=C:i=(0,t.objectAssign)({},i,C)}if(U(f)){r=!0;var P=v.default.read(e,f);n.expanded?i.xmp=P:i=(0,t.objectAssign)({},i,P)}if(M(d)){r=!0;var F=h.default.read(e,d);n.expanded?i.icc=F:i=(0,t.objectAssign)({},i,F)}if(_(s)){r=!0;var O=y.default.read(e,s);n.expanded?i.pngFile=O:i=(0,t.objectAssign)({},i,O)}if(!r)throw new S.default.MetadataMissingError;return i}function w(e){return void 0!==e}function I(e){return void 0!==e}function D(e){return void 0!==e}function U(e){return Array.isArray(e)&&e.length>0}function M(e){return Array.isArray(e)&&e.length>0}function _(e){return void 0!==e}e.default={load:A,loadView:P,errors:S.default},e.errors=S.default})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(){function e(n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e){return"object"!==(void 0===e?"undefined":t(e))||void 0===e.length||void 0===e.readUInt8||void 0===e.readUInt16LE||void 0===e.readUInt16BE||void 0===e.readUInt32LE||void 0===e.readUInt32BE||void 0===e.readInt32LE||void 0===e.readInt32BE}(n))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=n,this.byteLength=this.buffer.length}return n(e,[{key:"getUint8",value:function(e){return this.buffer.readUInt8(e)}},{key:"getUint16",value:function(e,t){return t?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}},{key:"getUint32",value:function(e,t){return t?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}},{key:"getInt32",value:function(e,t){return t?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}}]),e}();e.default=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(2)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n)&&r.__esModule?r:{default:r},o=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"],a=4+"ICC_PROFILE\0".length,u=a+1;function c(e,t){return 65472===e.getUint16(t,!1)}function f(e,t){return 65474===e.getUint16(t,!1)}function d(e,n){var r="ICC_PROFILE\0".length;return 65506===e.getUint16(n,!1)&&"ICC_PROFILE\0"===(0,t.getStringFromDataView)(e,n+4,r)}function s(e,n){var r="Exif".length;return 65505===e.getUint16(n,!1)&&"Exif"===(0,t.getStringFromDataView)(e,n+4,r)&&0===e.getUint8(n+4+r,!1)}function l(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){var r="http://ns.adobe.com/xap/1.0/\0".length;return"http://ns.adobe.com/xap/1.0/\0"===(0,t.getStringFromDataView)(e,n+4,r)}(e,n)}function p(e,n){return 65505===e.getUint16(n,!1)&&function(e,n){var r="http://ns.adobe.com/xmp/extension/\0".length;return"http://ns.adobe.com/xmp/extension/\0"===(0,t.getStringFromDataView)(e,n+4,r)}(e,n)}function g(e,t){return{dataOffset:e+33,length:t-31}}function m(e,t){return{dataOffset:e+79,length:t-77}}function v(e,n){var r="Photoshop 3.0".length;return 65517===e.getUint16(n,!1)&&"Photoshop 3.0"===(0,t.getStringFromDataView)(e,n+4,r)&&0===e.getUint8(n+4+r,!1)}function h(e,t){var n=e.getUint16(t,!1);return n>=65504&&n<=65519||65534===n||65472===n||65474===n||65476===n||65499===n||65501===n||65498===n}function y(e,n){return"IHDR"===(0,t.getStringFromDataView)(e,n+4,4)}function S(e,n){return"iTXt"===(0,t.getStringFromDataView)(e,n+4,4)&&"XML:com.adobe.xmp"===(0,t.getStringFromDataView)(e,n+8,"XML:com.adobe.xmp".length)}e.default={parseAppMarkers:function(e){if(function(e){return e.byteLength>=4&&function(e){var t=e.getUint16(0)===i.default.LITTLE_ENDIAN;return 42===e.getUint16(2,t)}(e)}(e))return{hasAppMarkers:!0,tiffHeaderOffset:0};if(function(e){return e.byteLength>=2&&65496===e.getUint16(0,!1)}(e))return function(e){for(var t=2,n=void 0,r=void 0,i=void 0,o=void 0,y=void 0,S=void 0,b=void 0;t+4+5<=e.byteLength;){if(c(e,t))r=t+2;else if(f(e,t))i=t+2;else if(s(e,t))n=e.getUint16(t+2,!1),o=t+10;else if(l(e,t))S||(S=[]),n=e.getUint16(t+2,!1),S.push(g(t,n));else if(p(e,t))S||(S=[]),n=e.getUint16(t+2,!1),S.push(m(t,n));else if(v(e,t))n=e.getUint16(t+2,!1),y=t+18;else if(d(e,t)){n=e.getUint16(t+2,!1);var A=t+18,C=n-16,P=e.getUint8(t+a,!1),w=e.getUint8(t+u,!1);b||(b=[]),b.push({offset:A,length:C,chunkNumber:P,chunksTotal:w})}else{if(!h(e,t))break;n=e.getUint16(t+2,!1)}t+=2+n}return{hasAppMarkers:t>2,fileDataOffset:r||i,tiffHeaderOffset:o,iptcDataOffset:y,xmpChunks:S,iccChunks:b}}(e);if(function(e){return"PNG\r\n\n"===(0,t.getStringFromDataView)(e,0,"PNG\r\n\n".length)}(e))return function(e){for(var t={hasAppMarkers:!1},n="PNG\r\n\n".length;n+4+4<=e.byteLength;)y(e,n)?(t.hasAppMarkers=!0,t.pngHeaderOffset=n+8):S(e,n)&&(t.hasAppMarkers=!0,t.xmpChunks=[{dataOffset:n+8+"XML:com.adobe.xmp".length,length:e.getUint32(n+0)-"XML:com.adobe.xmp".length}]),n+=e.getUint32(n+0)+4+4+4;return t}(e);if(function(e){var n=(0,t.getStringFromDataView)(e,4+"ftyp".length,4);return"ftyp"===(0,t.getStringFromDataView)(e,4,"ftyp".length)&&-1!==o.indexOf(n)}(e))return function(e){for(var n="Exif".length,r=4+"ftyp".length+4;r+n+2+2<=e.byteLength;){var o=e.getUint16(r+n+2,!1);if("Exif"===(0,t.getStringFromDataView)(e,r,n)&&0===e.getUint8(r+n,!1)&&(o===i.default.LITTLE_ENDIAN||o===i.default.BIG_ENDIAN))return{hasAppMarkers:!0,tiffHeaderOffset:r+n+2};r++}return{hasAppMarkers:!1}}(e);throw new Error("Invalid image format")}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(2),n(3),n(9)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=c(n),a=c(r),u=c(i);function c(e){return e&&e.__esModule?e:{default:e}}var f={1:a.default.getByteAt,2:a.default.getAsciiAt,3:a.default.getShortAt,4:a.default.getLongAt,5:a.default.getRationalAt,7:a.default.getUndefinedAt,9:a.default.getSlongAt,10:a.default.getSrationalAt,13:a.default.getIfdPointerAt};function d(e,t,n,r,i){var o=a.default.getTypeSize("SHORT"),u={},c=a.default.getShortAt(e,r,i);r+=o;for(var f=0;f<c;f++){var d=s(e,t,n,r,i);void 0!==d&&(u[d.name]={id:d.id,value:d.value,description:d.description}),r+=12}return u}function s(e,t,n,r,i){var o=a.default.getTypeSize("SHORT"),c=o+a.default.getTypeSize("SHORT"),f=c+a.default.getTypeSize("LONG"),d=a.default.getShortAt(e,r,i),s=a.default.getShortAt(e,r+o,i),g=a.default.getLongAt(e,r+c,i),m=void 0;if(void 0!==a.default.typeSizes[s]){if(function(e,t){return a.default.typeSizes[e]*t<=a.default.getTypeSize("LONG")}(s,g))m=l(e,r+f,s,g,i);else{var v=a.default.getLongAt(e,r+f,i);m=function(e,t,n,r,i){return t+n+a.default.typeSizes[r]*i<=e.byteLength}(e,n,v,s,g)?l(e,n+v,s,g,i):"<faulty value>"}if(s===a.default.tagTypes.ASCII&&(m=function(e){try{return e.map((function(e){return decodeURIComponent(escape(e))}))}catch(t){return e}}(m=function(e){for(var t=[],n=0,r=0,i=e.length;r<i;r++){var o=e[r];"\0"!==o?(void 0===t[n]&&(t[n]=""),t[n]+=o):n++}return t}(m))),void 0!==u.default[t][d]){var h=void 0,y=void 0;if(void 0!==u.default[t][d].name&&void 0!==u.default[t][d].description){h=u.default[t][d].name;try{y=u.default[t][d].description(m)}catch(e){y=p(m)}}else s===a.default.tagTypes.RATIONAL||s===a.default.tagTypes.SRATIONAL?(h=u.default[t][d],y=""+m[0]/m[1]):(h=u.default[t][d],y=p(m));return{id:d,name:h,value:m,description:y}}return{id:d,name:"undefined-"+d,value:m,description:m}}}function l(e,t,n,r,i){for(var o=[],u=0;u<r;u++)o.push(f[n](e,t,i)),t+=a.default.typeSizes[n];return n===a.default.tagTypes.ASCII?o=a.default.getAsciiValue(o):1===o.length&&(o=o[0]),o}function p(e){return e instanceof Array?e.join(", "):e}e.default={read:function(e,n){var r=o.default.getByteOrder(e,n),i=function(e,t,n){return d(e,"0th",t,function(e,t,n){return t+a.default.getLongAt(e,t+4,n)}(e,t,n),n)}(e,n,r);return i=function(e,n,r,i){return void 0!==e["Interoperability IFD Pointer"]?(0,t.objectAssign)(e,d(n,"interoperability",r,r+e["Interoperability IFD Pointer"].value,i)):e}(i=function(e,n,r,i){return void 0!==e["GPS Info IFD Pointer"]?(0,t.objectAssign)(e,d(n,"gps",r,r+e["GPS Info IFD Pointer"].value,i)):e}(i=function(e,n,r,i){return void 0!==e["Exif IFD Pointer"]?(0,t.objectAssign)(e,d(n,"exif",r,r+e["Exif IFD Pointer"].value,i)):e}(i,e,n,r),e,n,r),e,n,r)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(10),n(11),n(12),n(13)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=d(n),u=d(r),c=d(i),f=d(o);function d(e){return e&&e.__esModule?e:{default:e}}var s=(0,t.objectAssign)({},a.default,u.default);e.default={"0th":s,exif:s,gps:c.default,interoperability:f.default}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};e.default={11:"ProcessingSoftware",254:{name:"SubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"}[e]||"Unknown"}},255:{name:"OldSubfileType",description:function(e){return{0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"}[e]||"Unknown"}},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:function(e){return{1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"}[e]||"Unknown"}},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:function(e){return{1:"Normal",2:"Reversed"}[e]||"Unknown"}},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:function(e){return 1===e?"top-left":2===e?"top-right":3===e?"bottom-right":4===e?"bottom-left":5===e?"left-top":6===e?"right-top":7===e?"right-bottom":8===e?"left-bottom":"Undefined"}},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:function(e){return""+Math.round(e[0]/e[1])}},283:{name:"YResolution",description:function(e){return""+Math.round(e[0]/e[1])}},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:function(e){return""+Math.round(e[0]/e[1])}},287:{name:"YPosition",description:function(e){return""+Math.round(e[0]/e[1])}},290:{name:"GrayResponseUnit",description:function(e){return{1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"}[e]||"Unknown"}},296:{name:"ResolutionUnit",description:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:function(e){return e.map((function(e){return e[0]+"/"+e[1]})).join(", ")}},319:{name:"PrimaryChromaticities",description:function(e){return e.map((function(e){return e[0]+"/"+e[1]})).join(", ")}},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:function(e){return{1:"CMYK",2:"Not CMYK"}[e]||"Unknown"}},337:"TargetPrinter",338:{name:"ExtraSamples",description:function(e){return{0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"}[e]||"Unknown"}},339:{name:"SampleFormat",description:function(e){var t={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(e)?e.map((function(e){return t[e]||"Unknown"})).join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join("/")}},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:function(e){return 1===e?"centered":2===e?"co-sited":"undefined "+e}},532:{name:"ReferenceBlackWhite",description:function(e){return e.map((function(e){return""+e[0]/e[1]})).join(", ")}},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:function(e){return e.join("; ")}},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",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:function(e){return{0:"Unsafe",1:"Safe"}[e]||"Unknown"}},50778:{name:"CalibrationIlluminant1",description:r.default.LightSource},50779:{name:"CalibrationIlluminant2",description:r.default.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:function(e){return{0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"}[e]||"Unknown"}},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:function(e){return{1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"}[e]||"Unknown"}},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51108:{name:"ProfileLookTableEncoding",description:function(e){return{0:"Linear",1:"sRGB"}[e]||"Unknown"}},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:function(e){return{0:"Auto",1:"None"}[e]||"Unknown"}},51111:"NewRawImageDigest",51112:"RawToPreviewGain"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1),n(4)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n)&&r.__esModule?r:{default:r},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default={33434:{name:"ExposureTime",description:function(e){return 0!==e[0]?"1/"+Math.round(e[1]/e[0]):"0/"+e[1]}},33437:{name:"FNumber",description:function(e){return"f/"+e[0]/e[1]}},34850:{name:"ExposureProgram",description:function(e){return 0===e?"Undefined":1===e?"Manual":2===e?"Normal program":3===e?"Aperture priority":4===e?"Shutter priority":5===e?"Creative program":6===e?"Action program":7===e?"Portrait mode":8===e?"Landscape mode":9===e?"Bulb":"Unknown"}},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:function(){return"[Raw OECF table data]"}},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:function(e){return{1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"}[e]||"Unknown"}},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:function(e){return(0,t.getStringValue)(e)}},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:function(e){return e.map((function(e){return 49===e?"Y":50===e?"Cb":51===e?"Cr":52===e?"R":53===e?"G":54===e?"B":void 0})).join("")}},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:function(e){return"1/"+Math.round(Math.pow(2,e[0]/e[1]))}},37378:{name:"ApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:function(e){return Math.pow(Math.sqrt(2),e[0]/e[1]).toFixed(2)}},37382:{name:"SubjectDistance",description:function(e){return e[0]/e[1]+" m"}},37383:{name:"MeteringMode",description:function(e){return 1===e?"Average":2===e?"CenterWeightedAverage":3===e?"Spot":4===e?"MultiSpot":5===e?"Pattern":6===e?"Partial":255===e?"Other":"Unknown"}},37384:{name:"LightSource",description:i.default.LightSource},37385:{name:"Flash",description:function(e){return 0===e?"Flash did not fire":1===e?"Flash fired":5===e?"Strobe return light not detected":7===e?"Strobe return light detected":9===e?"Flash fired, compulsory flash mode":13===e?"Flash fired, compulsory flash mode, return light not detected":15===e?"Flash fired, compulsory flash mode, return light detected":16===e?"Flash did not fire, compulsory flash mode":24===e?"Flash did not fire, auto mode":25===e?"Flash fired, auto mode":29===e?"Flash fired, auto mode, return light not detected":31===e?"Flash fired, auto mode, return light detected":32===e?"No flash function":65===e?"Flash fired, red-eye reduction mode":69===e?"Flash fired, red-eye reduction mode, return light not detected":71===e?"Flash fired, red-eye reduction mode, return light detected":73===e?"Flash fired, compulsory flash mode, red-eye reduction mode":77===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":79===e?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":89===e?"Flash fired, auto mode, red-eye reduction mode":93===e?"Flash fired, auto mode, return light not detected, red-eye reduction mode":95===e?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"}},37386:{name:"FocalLength",description:function(e){return e[0]/e[1]+" mm"}},37393:"ImageNumber",37394:{name:"SecurityClassification",description:function(e){return{C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"}[e]||"Unknown"}},37395:"ImageHistory",37396:{name:"SubjectArea",description:function(e){return 2===e.length?"Location; X: "+e[0]+", Y: "+e[1]:3===e.length?"Circle; X: "+e[0]+", Y: "+e[1]+", diameter: "+e[2]:4===e.length?"Rectangle; X: "+e[0]+", Y: "+e[1]+", width: "+e[2]+", height: "+e[3]:"Unknown"}},37500:{name:"MakerNote",description:function(){return"[Raw maker note data]"}},37510:{name:"UserComment",description:t.getEncodedString},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37888:{name:"AmbientTemperature",description:function(e){return e[0]/e[1]+" °C"}},37889:{name:"Humidity",description:function(e){return e[0]/e[1]+" %"}},37890:{name:"Pressure",description:function(e){return e[0]/e[1]+" hPa"}},37891:{name:"WaterDepth",description:function(e){return e[0]/e[1]+" m"}},37892:{name:"Acceleration",description:function(e){return e[0]/e[1]+" mGal"}},37893:{name:"CameraElevationAngle",description:function(e){return e[0]/e[1]+" °"}},40960:{name:"FlashpixVersion",description:function(e){return e.map((function(e){return String.fromCharCode(e)})).join("")}},40961:{name:"ColorSpace",description:function(e){return 1===e?"sRGB":65535===e?"Uncalibrated":"Unknown"}},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:function(){return"[Raw SFR table data]"}},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:function(e){return 2===e?"inches":3===e?"centimeters":"Unknown"}},41492:{name:"SubjectLocation",description:function(e){var t=o(e,2);return"X: "+t[0]+", Y: "+t[1]}},41493:"ExposureIndex",41495:{name:"SensingMethod",description:function(e){return 1===e?"Undefined":2===e?"One-chip color area sensor":3===e?"Two-chip color area sensor":4===e?"Three-chip color area sensor":5===e?"Color sequential area sensor":7===e?"Trilinear sensor":8===e?"Color sequential linear sensor":"Unknown"}},41728:{name:"FileSource",description:function(e){return 3===e?"DSC":"Unknown"}},41729:{name:"SceneType",description:function(e){return 1===e?"A directly photographed image":"Unknown"}},41730:{name:"CFAPattern",description:function(){return"[Raw CFA pattern table data]"}},41985:{name:"CustomRendered",description:function(e){return 0===e?"Normal process":1===e?"Custom process":"Unknown"}},41986:{name:"ExposureMode",description:function(e){return 0===e?"Auto exposure":1===e?"Manual exposure":2===e?"Auto bracket":"Unknown"}},41987:{name:"WhiteBalance",description:function(e){return 0===e?"Auto white balance":1===e?"Manual white balance":"Unknown"}},41988:{name:"DigitalZoomRatio",description:function(e){return 0===e[0]?"Digital zoom was not used":""+e[0]/e[1]}},41989:{name:"FocalLengthIn35mmFilm",description:function(e){return 0===e?"Unknown":e}},41990:{name:"SceneCaptureType",description:function(e){return 0===e?"Standard":1===e?"Landscape":2===e?"Portrait":3===e?"Night scene":"Unknown"}},41991:{name:"GainControl",description:function(e){return 0===e?"None":1===e?"Low gain up":2===e?"High gain up":3===e?"Low gain down":4===e?"High gain down":"Unknown"}},41992:{name:"Contrast",description:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},41993:{name:"Saturation",description:function(e){return 0===e?"Normal":1===e?"Low saturation":2===e?"High saturation":"Unknown"}},41994:{name:"Sharpness",description:function(e){return 0===e?"Normal":1===e?"Soft":2===e?"Hard":"Unknown"}},41995:{name:"DeviceSettingDescription",description:function(){return"[Raw device settings table data]"}},41996:{name:"SubjectDistanceRange",description:function(e){return 1===e?"Macro":2===e?"Close view":3===e?"Distant view":"Unknown"}},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:function(e){var t=e[0][0]/e[0][1]+"-"+e[1][0]/e[1][1]+" mm";return 0===e[3][1]?t+" f/?":t+" f/"+1/(e[2][1]/e[2][1]/(e[3][0]/e[3][1]))}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:function(e){return{1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}[e]||"Unknown"}},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.default={0:{name:"GPSVersionID",description:function(e){return 2===e[0]&&2===e[1]&&0===e[2]&&0===e[3]?"Version 2.2":"Unknown"}},1:{name:"GPSLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},3:{name:"GPSLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},5:{name:"GPSAltitudeRef",description:function(e){return 0===e?"Sea level":1===e?"Sea level reference (negative value)":"Unknown"}},6:{name:"GPSAltitude",description:function(e){return e[0]/e[1]+" m"}},7:{name:"GPSTimeStamp",description:function(e){return e.map((function(e){var t=n(e,2),r=t[0]/t[1];return/^\d(\.|$)/.test(""+r)?"0"+r:r})).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(e){var t=e.join("");return"A"===t?"Measurement in progress":"V"===t?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:function(e){var t=e.join("");return"2"===t?"2-dimensional measurement":"3"===t?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers per hour":"M"===t?"Miles per hour":"N"===t?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(e){var t=e.join("");return"N"===t?"North latitude":"S"===t?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},21:{name:"GPSDestLongitudeRef",description:function(e){var t=e.join("");return"E"===t?"East longitude":"W"===t?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:function(e){return e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600}},23:{name:"GPSDestBearingRef",description:function(e){var t=e.join("");return"T"===t?"True direction":"M"===t?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(e){var t=e.join("");return"K"===t?"Kilometers":"M"===t?"Miles":"N"===t?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:t.getEncodedString},28:{name:"GPSAreaInformation",description:t.getEncodedString},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){return 0===e?"Measurement without differential correction":1===e?"Differential correction applied":"Unknown"}},31:"GPSHPositioningError"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:function(e){return(0,t.getStringValue)(e)}},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(3)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};function i(e,t,n){if(!(3>n)){var i=r.default.getByteAt(e,t+2);return{value:i,description:""+i}}}function o(e,t,n){if(!(5>n)){var i=r.default.getShortAt(e,t+3);return{value:i,description:i+"px"}}}function a(e,t,n){if(!(7>n)){var i=r.default.getShortAt(e,t+5);return{value:i,description:i+"px"}}}function u(e,t,n,i){if(!(8+3*n>i)){for(var o=[],a=0;a<n;a++){var u=t+8+3*a;o.push([r.default.getByteAt(e,u),r.default.getByteAt(e,u+1),r.default.getByteAt(e,u+2)])}return{value:o,description:o.length>1?c(o)+f(o):""}}}function c(e){var t={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return e.map((function(e){return t[e[0]]})).join("")}function f(e){var t={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return 0===e.length||void 0===e[0][1]||void 0===t[e[0][1]]?"":t[e[0][1]]}e.default={read:function(e,t){var n=function(e,t){return r.default.getShortAt(e,t)}(e,t),c=function(e,t,n){if(!(8>n)){var i=r.default.getByteAt(e,t+7);return{value:i,description:""+i}}}(e,t,n);return{"Bits Per Sample":i(e,t,n),"Image Height":o(e,t,n),"Image Width":a(e,t,n),"Color Components":c,Subsampling:c&&u(e,t,c.value,n)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(16),n(17)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(t),i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(943868237!==e.getUint32(t,!1))throw new Error("Not an IPTC resource block.");return{type:e.getUint16(t+4,!1),size:e.getUint16(t+10,!1)}}function u(e){return 1028===e.type}function c(e){return e.size%2!=0?1:0}function f(e,t,n,i){if(function(e,t){return 28!==e.getUint8(t)}(e,t))return{tag:null,tagSize:0};var o=e.getUint16(t+1,!1),a=e.getUint16(t+3,!1),u=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(e.getUint8(t+i));return r}(e,t+5,a),c={id:o,name:d(r.default.iptc[o],o,u),value:u,description:s(r.default.iptc[o],u,n,i)};return function(e){return r.default.iptc[e]&&r.default.iptc[e].repeatable}(o)&&(c.repeatable=!0),function(e){return r.default.iptc[e]&&void 0!==r.default.iptc[e].encoding_name}(o)&&(c.encoding=r.default.iptc[o].encoding_name(u)),{tag:c,tagSize:a}}function d(e,t,n){return e?function(e){return"string"==typeof e}(e)?e:function(e){return"function"==typeof e.name}(e)?e.name(n):e.name:"undefined-"+t}function s(e,t,n,r){if(function(e){return e&&void 0!==e.description}(e))try{return e.description(t,n)}catch(e){}return function(e,t){return e&&t instanceof Array}(e,t)?i.default.decode(r,t):t}e.default={read:function(e,t){try{var n=function(e,t){for(;t+12<=e.byteLength;){var n=a(e,t);if(u(n))return{naaBlock:n,dataOffset:t};t+=12+n.size+c(n)}throw new Error("No IPTC NAA resource block.")}(e,t);return function(e,t,n){for(var r={},i=void 0,o=(n+=12)+t.size;n<o&&n<e.byteLength;){var a=f(e,n,r,i),u=a.tag,c=a.tagSize;if(null===u)break;"encoding"in u&&(i=u.encoding),void 0===r[u.name]||void 0===u.repeatable?r[u.name]={id:u.id,value:u.value,description:u.description}:(r[u.name]instanceof Array||(r[u.name]=[{id:r[u.name].id,value:r[u.name].value,description:r[u.name].description}]),r[u.name].push({id:u.id,value:u.value,description:u.description})),n+=5+c}return r}(e,n.naaBlock,n.dataOffset)}catch(e){return{}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){var n=(0,t.getStringValue)(e);return n.length>=8?n.substr(0,4)+"-"+n.substr(4,2)+"-"+n.substr(6,2):n}function r(e){var n=(0,t.getStringValue)(e),r=n;return n.length>=6&&(r=n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2),11===n.length&&(r+=n.substr(6,1)+n.substr(7,2)+":"+n.substr(9,2))),r}function i(e){var n=(0,t.getStringValue)(e);return"%G"===n?"UTF-8":"%5"===n?"Windows-1252":"%/G"===n?"UTF-8 Level 1":"%/H"===n?"UTF-8 Level 2":"%/I"===n?"UTF-8 Level 3":"/A"===n?"ISO-8859-1":"/B"===n?"ISO-8859-2":"/C"===n?"ISO-8859-3":"/D"===n?"ISO-8859-4":"/@"===n?"ISO-8859-5":"/G"===n?"ISO-8859-6":"/F"===n?"ISO-8859-7":"/H"===n?"ISO-8859-8":"Unknown"}Object.defineProperty(e,"__esModule",{value:!0}),e.default={iptc:{256:{name:"Model Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:function(e){return((e[0]<<8)+e[1]).toString()}},278:{name:"File Format Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:n},336:{name:"Time Sent",description:r},346:{name:"Coded Character Set",description:i,encoding_name:i},356:"UNO",376:{name:"ARM Identifier",description:function(e){return((e[0]<<8)+e[1]).toString()}},378:{name:"ARM Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},512:{name:"Record Version",description:function(e){return((e[0]<<8)+e[1]).toString()}},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:function(e){return"01"===(0,t.getStringValue)(e)?"Additional Language":"Unknown"}},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:function(e){var n=(0,t.getStringValue)(e).split(":");return n[2]+(n[3]?"/"+n[3]:"")+(n[4]?"/"+n[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:function(e){var n=(0,t.getStringValue)(e);return"01"===n?"Object Kill":"02"===n?"Object Replace":"03"===n?"Object Append":"04"===n?"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:n},572:{name:"Time Created",description:r},574:{name:"Digital Creation Date",description:n},575:{name:"Digital Creation Time",description:r},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:function(e){var n=(0,t.getStringValue)(e);return"a"===n?"morning":"p"===n?"evening":"b"===n?"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:function(e){return e}},642:"Image Type",643:{name:"Image Orientation",description:function(e){var n=(0,t.getStringValue)(e);return"P"===n?"Portrait":"L"===n?"Landscape":"S"===n?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:function(e){var n=(0,t.getStringValue)(e),r=n.charAt(0),i=n.charAt(1),o="";return"1"===r?o+="Mono":"2"===r&&(o+="Stereo"),"A"===i?o+=", actuality":"C"===i?o+=", question and answer session":"M"===i?o+=", music, transmitted by itself":"Q"===i?o+=", response to a question":"R"===i?o+=", raw sound":"S"===i?o+=", scener":"V"===i?o+=", voicer":"W"===i&&(o+=", wrap"),""!==o?o:n}},663:{name:"Audio Sampling Rate",description:function(e){return parseInt((0,t.getStringValue)(e),10)+" Hz"}},664:{name:"Audio Sampling Resolution",description:function(e){var n=parseInt((0,t.getStringValue)(e),10);return n+(1===n?" bit":" bits")}},665:{name:"Audio Duration",description:function(e){var n=(0,t.getStringValue)(e);return n.length>=6?n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2):n}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:function(e){return 2===e.length?"ObjectData Preview File Format":"Record 2 destination"},description:function(e){if(2===e.length){var n=(e[0]<<8)+e[1];return 0===n?"No ObjectData":1===n?"IPTC-NAA Digital Newsphoto Parameter Record":2===n?"IPTC7901 Recommended Message Format":3===n?"Tagged Image File Format (Adobe/Aldus Image data)":4===n?"Illustrator (Adobe Graphics data)":5===n?"AppleSingle (Apple Computer Inc)":6===n?"NAA 89-3 (ANPA 1312)":7===n?"MacBinary II":8===n?"IPTC Unstructured Character Oriented File Format (UCOFF)":9===n?"United Press International ANPA 1312 variant":10===n?"United Press International Down-Load Message":11===n?"JPEG File Interchange (JFIF)":12===n?"Photo-CD Image-Pac (Eastman Kodak)":13===n?"Microsoft Bit Mapped Graphics File [*.BMP]":14===n?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":15===n?"Audio plus Moving Video [*.AVI] (Microsoft)":16===n?"PC DOS/Windows Executable Files [*.COM][*.EXE]":17===n?"Compressed Binary File [*.ZIP] (PKWare Inc)":18===n?"Audio Interchange File Format AIFF (Apple Computer Inc)":19===n?"RIFF Wave (Microsoft Corporation)":20===n?"Freehand (Macromedia/Aldus)":21===n?'Hypertext Markup Language "HTML" (The Internet Society)':22===n?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":23===n?"MPEG 2 Audio Layer 3, ISO/IEC":24===n?"Portable Document File (*.PDF) Adobe":25===n?"News Industry Text Format (NITF)":26===n?"Tape Archive (*.TAR)":27===n?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":28===n?"Ritzaus Bureau NITF version (RBNITF DTD)":29===n?"Corel Draw [*.CDR]":"Unknown format "+n}return(0,t.getStringValue)(e)}},713:{name:"ObjectData Preview File Format Version",description:function(e,n){var r={"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"}},i=(0,t.getStringValue)(e);if(n["ObjectData Preview File Format"]){var o=(0,t.getStringValue)(n["ObjectData Preview File Format"].value);if(r[o]&&r[o][i])return r[o][i]}return i}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:function(e){return e[0].toString()}},1812:{name:"Max Subfile Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1882:{name:"ObjectData Size Announced",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}},1887:{name:"Maximum ObjectData Size",description:function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<8)+e[n];return t.toString()}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(18)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};e.default={decode:function(e,t){var n=r.default.get();if(void 0!==n&&void 0!==e)try{return new n(e).decode(Uint8Array.from(t))}catch(e){}return function(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}(t.map((function(e){return String.fromCharCode(e)})).join(""))},TAG_HEADER_SIZE:5}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={get:function(){if("undefined"!=typeof TextDecoder)return TextDecoder}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0),n(20),n(21)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(n),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function c(e,t){for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),i=0,o=0,a=t.length;o<a;o++){var u=t[o],c=e.buffer.slice(u.dataOffset,u.dataOffset+u.length);r.set(new Uint8Array(c),i),i+=u.length}return new DataView(r.buffer)}function f(e,n){try{var r=function e(t){for(var n=0;n<t.childNodes.length;n++){if("x:xmpmeta"===t.childNodes[n].tagName)return e(t.childNodes[n]);if("rdf:RDF"===t.childNodes[n].tagName)return t.childNodes[n]}throw new Error}(function(e){var n=o.default.get();if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;var r=new n,i=(0,t.getStringFromDataView)(e,0,e.byteLength),a=r.parseFromString(i,"application/xml");if("parsererror"===a.documentElement.nodeName)throw new Error(a.documentElement.textContent);return a}(n));return(0,t.objectAssign)(e,v(d(r,!0)))}catch(t){return e}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=s(e);return l(n)?t?{}:p(n[0]):g(n)}function s(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t}function l(e){return 1===e.length&&"#text"===e[0].nodeName}function p(e){return e.nodeValue}function g(e){var t={};return e.forEach((function(e){if(function(e){return e.nodeName&&"#text"!==e.nodeName}(e)){var n=function(e){return{attributes:m(e),value:d(e)}}(e);void 0!==t[e.nodeName]?(Array.isArray(t[e.nodeName])||(t[e.nodeName]=[t[e.nodeName]]),t[e.nodeName].push(n)):t[e.nodeName]=n}})),t}function m(e){for(var t={},n=0;n<e.attributes.length;n++)t[e.attributes[n].nodeName]=decodeURIComponent(escape(e.attributes[n].value));return t}function v(e){var n={};if("string"==typeof e)return e;for(var r in e){var i=e[r];Array.isArray(i)||(i=[i]),i.forEach((function(e){(0,t.objectAssign)(n,h(e.attributes)),"object"===u(e.value)&&(0,t.objectAssign)(n,I(e.value))}))}return n}function h(e){var t={};for(var n in e)y(n)&&(t[b(n)]={value:e[n],attributes:{},description:A(e[n],n)});return t}function y(e){return"rdf:parseType"!==e&&!S(e)}function S(e){return"xmlns"===e.split(":")[0]}function b(e){return e.split(":")[1]}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(Array.isArray(e))return C(e);if("object"===(void 0===e?"undefined":u(e)))return P(e);try{return t&&"function"==typeof i.default[t]?i.default[t](e):decodeURIComponent(escape(e))}catch(t){return e}}function C(e){return e.map((function(e){return void 0!==e.value?A(e.value):A(e)})).join(", ")}function P(e){var t=[];for(var n in e)t.push(w(n)+": "+e[n].value);return t.join("; ")}function w(e){return"CiAdrCity"===e?"CreatorCity":"CiAdrCtry"===e?"CreatorCountry":"CiAdrExtadr"===e?"CreatorAddress":"CiAdrPcode"===e?"CreatorPostalCode":"CiAdrRegion"===e?"CreatorRegion":"CiEmailWork"===e?"CreatorWorkEmail":"CiTelWork"===e?"CreatorWorkPhone":"CiUrlWork"===e?"CreatorWorkUrl":e}function I(e){var t={};for(var n in e)S(n)||(t[b(n)]=D(e[n],n));return t}function D(e,n){return U(e)?M(e,n):function(e){return"Resource"===e.attributes["rdf:parseType"]||void 0!==e.value["rdf:Description"]&&void 0===e.value["rdf:Description"].value["rdf:value"]}(e)?function(e,n){var r={value:{},attributes:{}};return void 0!==e.value["rdf:Description"]&&((0,t.objectAssign)(r.value,h(e.value["rdf:Description"].attributes)),(0,t.objectAssign)(r.attributes,_(e)),e=e.value["rdf:Description"]),(0,t.objectAssign)(r.value,I(e.value)),r.description=A(r.value,n),r}(e,n):function(e){return 0===Object.keys(e.value).length&&void 0===e.attributes["rdf:resource"]}(e)?function(e,t){var n=h(e.attributes);return{value:n,attributes:{},description:A(n,t)}}(e,n):function(e){return void 0!==F(e.value)}(e)?function(e,t){var n=F(e.value).value["rdf:li"],r=_(e),i=[];return void 0===n?n=[]:Array.isArray(n)||(n=[n]),n.forEach((function(e){i.push(function(e){return U(e)?M(e):function(e){return"Resource"===e.attributes["rdf:parseType"]}(e)?I(e.value):{value:e.value,attributes:_(e),description:A(e.value)}}(e))})),{value:i,attributes:r,description:A(i,t)}}(e,n):function(e,t){var n=O(e)||v(e.value);return{value:n,attributes:_(e),description:A(n,t)}}(e,n)}function U(e){return"Resource"===e.attributes["rdf:parseType"]&&void 0!==e.value["rdf:value"]||void 0!==e.value["rdf:Description"]&&void 0!==e.value["rdf:Description"].value["rdf:value"]}function M(e,n){var r=_(e);void 0!==e.value["rdf:Description"]&&(e=e.value["rdf:Description"]),(0,t.objectAssign)(r,_(e),function(e){var t={};for(var n in e.value)"rdf:value"===n||S(n)||(t[b(n)]=e.value[n].value);return t}(e));var i=function(e){return O(e.value["rdf:value"])||e.value["rdf:value"].value}(e);return{value:i,attributes:r,description:A(i,n)}}function _(e){var t={};for(var n in e.attributes)"rdf:parseType"===n||"rdf:resource"===n||S(n)||(t[b(n)]=e.attributes[n]);return t}function F(e){return e["rdf:Bag"]||e["rdf:Seq"]||e["rdf:Alt"]}function O(e){return e.attributes&&e.attributes["rdf:resource"]}e.default={read:function(e,t){return function(e,t){if(0===t.length)return[];var n=[c(e,t.slice(0,1))];return t.length>1&&n.push(c(e,t.slice(1))),n}(e,t).reduce(f,{})}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function n(e){var n=e.split(","),r=t(n,2),i=r[0],o=r[1];if(void 0!==i&&void 0!==o){var a=parseFloat(i),u=parseFloat(o),c=o.charAt(o.length-1);if(!Number.isNaN(a)&&!Number.isNaN(u))return""+(a+u/60)+c}return e}e.default={"tiff:Orientation":function(e){return"1"===e?"Horizontal (normal)":"2"===e?"Mirror horizontal":"3"===e?"Rotate 180":"4"===e?"Mirror vertical":"5"===e?"Mirror horizontal and rotate 270 CW":"6"===e?"Rotate 90 CW":"7"===e?"Mirror horizontal and rotate 90 CW":"8"===e?"Rotate 270 CW":e},"exif:GPSLatitude":n,"exif:GPSLongitude":n}})?r.apply(t,i):r)||(e.exports=o)},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(exports){"use strict";function get(){if("undefined"!=typeof DOMParser)return DOMParser;try{return eval("require")("xmldom").DOMParser}catch(e){return}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={get:get}},__WEBPACK_AMD_DEFINE_ARRAY__=[exports],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t,n){var r,i,o;i=[t,n(23),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t){return e.length<t+12}function i(e){var i=e.buffer,u=e.getUint32();if(e.byteLength!==u)throw new Error("ICC profile length not matching");if(e.length<84)throw new Error("ICC profile too short");for(var c={},f=0,d=Object.keys(t.iccProfile),s=d.length;f<s;f++){var l=d[f],p=t.iccProfile[l],g=p.value(e,parseInt(l,10)),m=g;p.description&&(m=p.description(g)),c[p.name]={value:g,description:m}}if("acsp"!==o(i.slice(36,40)))throw new Error("ICC profile: missing signature");if(function(e){return e.length<132}(i))return c;for(var v=e.getUint32(128),h=132,y=0;y<v;y++){if(r(i,h))return c;var S=(0,n.getStringFromDataView)(e,h,4),b=e.getUint32(h+4),A=e.getUint32(h+8);if(b>i.length)return c;var C=(0,n.getStringFromDataView)(e,b,4);if("desc"===C){var P=e.getUint32(b+8);if(P>A)return c;a(c,S,o(i.slice(b+12,b+P+11)))}else if("mluc"===C){for(var w=e.getUint32(b+8),I=e.getUint32(b+12),D=b+16,U=[],M=0;M<w;M++){var _=(0,n.getStringFromDataView)(e,D+0,2),F=(0,n.getStringFromDataView)(e,D+2,2),O=e.getUint32(D+4),E=e.getUint32(D+8),x=(0,n.getUnicodeStringFromDataView)(e,b+E,O);U.push({languageCode:_,countryCode:F,text:x}),D+=I}if(1===w)a(c,S,U[0].text);else{for(var T={},N=0;N<U.length;N++)T[U[N].languageCode+"-"+U[N].countryCode]=U[N].text;a(c,S,T)}}else"text"===C?a(c,S,o(i.slice(b+8,b+A-7))):"sig "===C&&a(c,S,o(i.slice(b+8,b+12)));h+=12}return c}function o(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function a(e,n,r){t.iccTags[n]?e[t.iccTags[n].name]={value:r,description:r}:e[n]={value:r,description:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.parseTags=i,e.default={read:function(e,t){try{for(var n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n),o=0,a=e.buffer,u=function(e){var n=t.find((function(t){return t.chunkNumber===e}));if(!n)throw new Error("ICC chunk "+e+" not found");var i=a.slice(n.offset,n.offset+n.length),u=new Uint8Array(i);r.set(u,o),o+=u.length},c=1;c<=t.length;c++)u(c);return i(new DataView(r.buffer))}catch(e){return console.log(e),{}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){switch(e.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.iccProfile=e.iccTags=void 0,e.iccTags={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"}},e.iccProfile={4:{name:"Preferred CMM type",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return null!==e?n(e):""}},8:{name:"Profile Version",value:function(e,t){return e.getUint8(t).toString(10)+"."+(e.getUint8(t+1)>>4).toString(10)+"."+(e.getUint8(t+1)%16).toString(10)}},12:{name:"Profile/Device class",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){switch(e.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return e}}},16:{name:"Color Space",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}},20:{name:"Connection Space",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}},24:{name:"ICC Profile Date",value:function(e,t){return function(e,t){var n=e.getUint16(t),r=e.getUint16(t+2)-1,i=e.getUint16(t+4),o=e.getUint16(t+6),a=e.getUint16(t+8),u=e.getUint16(t+10);return new Date(Date.UTC(n,r,i,o,a,u))}(e,t).toISOString()}},36:{name:"ICC Signature",value:function(e,t){return n=e.buffer.slice(t,t+4),String.fromCharCode.apply(null,new Uint8Array(n));var n}},40:{name:"Primary Platform",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return n(e)}},48:{name:"Device Manufacturer",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)},description:function(e){return n(e)}},52:{name:"Device Model Number",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}},64:{name:"Rendering Intent",value:function(e,t){return e.getUint32(t)},description:function(e){switch(e){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return e}}},80:{name:"Profile Creator",value:function(e,n){return(0,t.getStringFromDataView)(e,n,4)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t,n(3)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=(n=t)&&n.__esModule?n:{default:n};function i(e,t){if(!(t+0+4>e.byteLength)){var n=r.default.getLongAt(e,t);return{value:n,description:n+"px"}}}function o(e,t){if(!(t+4+4>e.byteLength)){var n=r.default.getLongAt(e,t+4);return{value:n,description:n+"px"}}}function a(e,t){if(!(t+8+1>e.byteLength)){var n=r.default.getByteAt(e,t+8);return{value:n,description:""+n}}}function u(e,t){if(!(t+9+1>e.byteLength)){var n=r.default.getByteAt(e,t+9);return{value:n,description:{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"}[n]||"Unknown"}}}function c(e,t){if(!(t+10+1>e.byteLength)){var n=r.default.getByteAt(e,t+10);return{value:n,description:0===n?"Deflate/Inflate":"Unknown"}}}function f(e,t){if(!(t+11+1>e.byteLength)){var n=r.default.getByteAt(e,t+11);return{value:n,description:0===n?"Adaptive":"Unknown"}}}function d(e,t){if(!(t+12+1>e.byteLength)){var n=r.default.getByteAt(e,t+12);return{value:n,description:{0:"Noninterlaced",1:"Adam7 Interlace"}[n]||"Unknown"}}}e.default={read:function(e,t){return{"Image Width":i(e,t),"Image Height":o(e,t),"Bit Depth":a(e,t),"Color Type":u(e,t),Compression:c(e,t),Filter:f(e,t),Interlace:d(e,t)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){this.name="MetadataMissingError",this.message=e||"No Exif data",this.stack=(new Error).stack}Object.defineProperty(e,"__esModule",{value:!0}),t.prototype=new Error,e.default={MetadataMissingError:t}})?r.apply(t,i):r)||(e.exports=o)}])})); | ||
//# sourceMappingURL=exif-reader.js.map |
{ | ||
"name": "exifreader", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Library that parses Exif metadata in images.", | ||
@@ -5,0 +5,0 @@ "author": "Mattias Wallander <mattias@wallander.eu>", |
@@ -6,4 +6,4 @@ ExifReader | ||
metadata. It can be used either in a browser or from Node. Supports JPEG, TIFF, | ||
and HEIC files with tags encoded using Exif, IPTC, and XMP (the latter two only | ||
for JPEG). | ||
PNG, and HEIC files with tags encoded using Exif, IPTC, and XMP (depending on | ||
file type). | ||
@@ -120,5 +120,2 @@ ExifReader supports module formats AMD, CommonJS and globals and can therefore | ||
- The `description` property of tags can change in a minor update. If you | ||
want to process a tag's value somehow, use the `value` property to be sure | ||
nothing breaks between updates. | ||
- In Exif data, the full GPS information is split into two different tags for | ||
@@ -133,2 +130,6 @@ each direction: the coordinate value (`GPSLatitude`, `GPSLongitude`) and the | ||
(negative). | ||
- For PNG files, only XMP tags are currently supported. If you are missing | ||
tags in a PNG file, please open a new issue and supply an example image. | ||
(Tags in PNGs can be compressed though which will probably be hard to | ||
support in browsers without the size of the library getting too big.) | ||
- Some XMP tags have processed values as descriptions. That means that e.g. an | ||
@@ -142,2 +143,5 @@ `Orientation` value of `3` will have `Rotate 180` in the `description` | ||
compiled with support for the specific encoding](https://nodejs.org/api/util.html#util_whatwg_supported_encodings). | ||
- The `description` property of tags can change in a minor update. If you | ||
want to process a tag's value somehow, use the `value` property to be sure | ||
nothing breaks between updates. | ||
@@ -224,2 +228,3 @@ Client/Browser Support | ||
- **March 2020**: | ||
- Add support for PNG images. | ||
- Major update to version 3.0. However, the actual change is quite small, | ||
@@ -226,0 +231,0 @@ albeit a breaking one if you use that functionality (`.value` on |
@@ -18,2 +18,3 @@ /** | ||
import IccTags from './icc-tags'; | ||
import PngFileTags from './png-file-tags'; | ||
import exifErrors from './errors'; | ||
@@ -45,3 +46,3 @@ | ||
const {fileDataOffset, tiffHeaderOffset, iptcDataOffset, xmpChunks, iccChunks} = ImageHeader.parseAppMarkers(dataView); | ||
const {fileDataOffset, tiffHeaderOffset, iptcDataOffset, xmpChunks, iccChunks, pngHeaderOffset} = ImageHeader.parseAppMarkers(dataView); | ||
@@ -93,2 +94,11 @@ if (hasFileData(fileDataOffset)) { | ||
} | ||
if (hasPngFileData(pngHeaderOffset)) { | ||
foundMetaData = true; | ||
const readTags = PngFileTags.read(dataView, pngHeaderOffset); | ||
if (options.expanded) { | ||
tags.pngFile = readTags; | ||
} else { | ||
tags = objectAssign({}, tags, readTags); | ||
} | ||
} | ||
if (!foundMetaData) { | ||
@@ -120,1 +130,5 @@ throw new exifErrors.MetadataMissingError(); | ||
} | ||
function hasPngFileData(pngFileDataOffset) { | ||
return pngFileDataOffset !== undefined; | ||
} |
@@ -13,2 +13,14 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
const TIFF_FILE_HEADER_OFFSET = 0; | ||
const PNG_ID = '\x89\x50\x4e\x47\x0d\x0a\x1a\x0a'; | ||
const PNG_CHUNK_LENGTH_SIZE = 4; | ||
const PNG_CHUNK_TYPE_SIZE = 4; | ||
const PNG_CRC_SIZE = 4; | ||
const PNG_CHUNK_LENGTH_OFFSET = 0; | ||
const PNG_CHUNK_TYPE_OFFSET = PNG_CHUNK_LENGTH_SIZE; | ||
const PNG_CHUNK_DATA_OFFSET = PNG_CHUNK_LENGTH_SIZE + PNG_CHUNK_TYPE_SIZE; | ||
const PNG_CHUNK_TYPE_IMAGE_HEADER = 'IHDR'; | ||
const PNG_CHUNK_TYPE_INTERNATIONAL_TEXT = 'iTXt'; | ||
const PNG_XMP_PREFIX = 'XML:com.adobe.xmp'; | ||
const HEIC_ID = 'ftyp'; | ||
@@ -18,2 +30,3 @@ const HEIC_ID_OFFSET = 4; | ||
const HEIC_MAJOR_BRAND_LENGTH = 4; | ||
const JPEG_ID = 0xffd8; | ||
@@ -65,2 +78,6 @@ const JPEG_ID_SIZE = 2; | ||
if (isPngFile(dataView)) { | ||
return findPngOffsets(dataView); | ||
} | ||
if (isHeicFile(dataView)) { | ||
@@ -232,2 +249,42 @@ return findHeicOffsets(dataView); | ||
function isPngFile(dataView) { | ||
return getStringFromDataView(dataView, 0, PNG_ID.length) === PNG_ID; | ||
} | ||
function findPngOffsets(dataView) { | ||
const offsets = { | ||
hasAppMarkers: false | ||
}; | ||
let offset = PNG_ID.length; | ||
while (offset + PNG_CHUNK_LENGTH_SIZE + PNG_CHUNK_TYPE_SIZE <= dataView.byteLength) { | ||
if (isPngImageHeaderChunk(dataView, offset)) { | ||
offsets.hasAppMarkers = true; | ||
offsets.pngHeaderOffset = offset + PNG_CHUNK_DATA_OFFSET; | ||
} else if (isPngXmpChunk(dataView, offset)) { | ||
offsets.hasAppMarkers = true; | ||
offsets.xmpChunks = [{ | ||
dataOffset: offset + PNG_CHUNK_DATA_OFFSET + PNG_XMP_PREFIX.length, | ||
length: dataView.getUint32(offset + PNG_CHUNK_LENGTH_OFFSET) - PNG_XMP_PREFIX.length | ||
}]; | ||
} | ||
offset += dataView.getUint32(offset + PNG_CHUNK_LENGTH_OFFSET) | ||
+ PNG_CHUNK_LENGTH_SIZE | ||
+ PNG_CHUNK_TYPE_SIZE | ||
+ PNG_CRC_SIZE; | ||
} | ||
return offsets; | ||
} | ||
function isPngImageHeaderChunk(dataView, offset) { | ||
return getStringFromDataView(dataView, offset + PNG_CHUNK_TYPE_OFFSET, PNG_CHUNK_TYPE_SIZE) === PNG_CHUNK_TYPE_IMAGE_HEADER; | ||
} | ||
function isPngXmpChunk(dataView, offset) { | ||
return (getStringFromDataView(dataView, offset + PNG_CHUNK_TYPE_OFFSET, PNG_CHUNK_TYPE_SIZE) === PNG_CHUNK_TYPE_INTERNATIONAL_TEXT) | ||
&& (getStringFromDataView(dataView, offset + PNG_CHUNK_DATA_OFFSET, PNG_XMP_PREFIX.length) === PNG_XMP_PREFIX); | ||
} | ||
function isHeicFile(dataView) { | ||
@@ -234,0 +291,0 @@ const heicMajorBrand = getStringFromDataView(dataView, HEIC_ID_OFFSET + HEIC_ID.length, HEIC_MAJOR_BRAND_LENGTH); |
Sorry, the diff of this file is not supported yet
442141
33
4892
275