(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppDetail"],{2347:function(e,t,a){},2558:function(e,t,a){"use strict";var r=a("f0da"),n=a.n(r);n.a},3908:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("433b");var r=a("d399");function n(e){e?r["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):r["a"].clear()}},"69b0":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"appDetail"},[e.headerStatus?a("m-header"):e._e(),a("van-cell-group",[a("van-field",{attrs:{disabled:"",label:"考级名称"},model:{value:e.form.examBaseName,callback:function(t){e.$set(e.form,"examBaseName",t)},expression:"form.examBaseName"}}),a("van-cell",{attrs:{disabled:"",title:"缴费状态"}},[e.form.status?a("div",["PAY_WAIT"===e.form.status?a("p",{staticClass:"noPass"},[e._v("未缴费")]):a("p",{staticClass:"pass"},[e._v("已缴费")])]):e._e()]),a("van-field",{attrs:{disabled:"",label:"考试日期"},model:{value:e.form.examStartTime,callback:function(t){e.$set(e.form,"examStartTime",t)},expression:"form.examStartTime"}}),a("van-cell",{attrs:{title:"专业等级"}},[e._v("\n "+e._s(e.form.subjectName)),e.form.level||0==e.form.level?a("span",[e._v("("+e._s(e._f("formatLevel")(e.form.level))+")")]):e._e()]),e._l(e.practiceInfo,(function(t,r){return a("van-cell",{key:r,attrs:{title:"练习曲"+e.numberToCN(r),"is-link":""},on:{click:function(t){return e.onOpen("practice",r)}}},[e._v("\n "+e._s(t.songName)+" "+e._s(t.songAuthor?"-"+t.songAuthor:t.songAuthor)+"\n ")])})),e._l(e.performInfo,(function(t,r){return a("van-cell",{key:r,attrs:{title:"演奏曲"+e.numberToCN(r),"is-link":""},on:{click:function(t){return e.onOpen("perform",r)}}},[e._v("\n "+e._s(t.songName)+" "+e._s(t.songAuthor?"-"+t.songAuthor:t.songAuthor)+"\n ")])})),a("van-field",{attrs:{disabled:"",label:"考级证书"},scopedSlots:e._u([{key:"input",fn:function(){return[a("van-uploader",{attrs:{name:"certificate","before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,accept:"image/*",disabled:!e.form.editStatus,deletable:e.form.editStatus,"max-count":1},model:{value:e.uploadCertificate,callback:function(t){e.uploadCertificate=t},expression:"uploadCertificate"}})]},proxy:!0}]),model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}}),a("van-cell",{attrs:{disabled:"",title:"乐理等级"}},[e._v("\n "+e._s(e._f("formatLevel")(e.form.lastMusicTheoryLevel))+"\n ")]),a("van-field",{attrs:{disabled:"",label:"乐理证书"},scopedSlots:e._u([{key:"input",fn:function(){return[a("van-uploader",{attrs:{name:"certificate2","before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,accept:"image/*",disabled:!e.form.editStatus,deletable:e.form.editStatus,"max-count":1},model:{value:e.uploadCertificate2,callback:function(t){e.uploadCertificate2=t},expression:"uploadCertificate2"}})]},proxy:!0}]),model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],2),a("van-cell-group",{staticClass:"memos"},[a("van-cell",{attrs:{disabled:"",title:"报名审核"}},[e.form.status?a("div",["AUDIT_PASS"===e.form.status?a("p",{staticClass:"pass"},[e._v("已通过")]):"AUDIT_WAIT"===e.form.status?a("p",[e._v("等待审核")]):a("p",{staticClass:"noPass"},[e._v("未通过")])]):e._e()]),a("van-cell",{attrs:{title:"备注"}},[e._v("\n "+e._s(e.form.memo)+"\n ")])],1),e.form.editStatus?a("van-button",{attrs:{type:"primary",round:"",block:""},on:{click:e.onSubmit}},[e._v("重新提交")]):e._e(),a("van-popup",{staticClass:"van-popup-song",attrs:{"close-on-click-overlay":!1},model:{value:e.songUpload.songStatus,callback:function(t){e.$set(e.songUpload,"songStatus",t)},expression:"songUpload.songStatus"}},[a("div",{staticClass:"song-popup"},[a("div",{staticClass:"title"},[e._v("自定义曲目")]),a("van-field",{attrs:{name:"songName",disabled:!e.form.editStatus,label:"曲名",placeholder:"请输入曲名"},scopedSlots:e._u([{key:"label",fn:function(){return[a("i",{staticStyle:{color:"#ee0a24"}},[e._v("*")]),e._v("曲名")]},proxy:!0}]),model:{value:e.songUpload.songName,callback:function(t){e.$set(e.songUpload,"songName",t)},expression:"songUpload.songName"}}),a("van-field",{attrs:{name:"songAuthor",disabled:!e.form.editStatus,label:"作者",placeholder:"请输入作者"},scopedSlots:e._u([{key:"label",fn:function(){return[a("i",{staticStyle:{color:"#ffffff"}},[e._v("*")]),e._v("作者")]},proxy:!0}]),model:{value:e.songUpload.songAuthor,callback:function(t){e.$set(e.songUpload,"songAuthor",t)},expression:"songUpload.songAuthor"}}),a("van-field",{attrs:{readonly:"",clearable:""},scopedSlots:e._u([{key:"input",fn:function(){return["practice"==e.songUpload.indexName?a("van-uploader",{attrs:{name:e.songUpload.indexName+"-"+e.songUpload.index,"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,multiple:"",disabled:!e.form.editStatus,deletable:e.form.editStatus,accept:"image/*","max-count":5},model:{value:e.practiceUpload[e.songUpload.index],callback:function(t){e.$set(e.practiceUpload,e.songUpload.index,"string"===typeof t?t.trim():t)},expression:"practiceUpload[songUpload.index]"}}):e._e(),"perform"==e.songUpload.indexName?a("van-uploader",{attrs:{name:e.songUpload.indexName+"-"+e.songUpload.index,"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,multiple:"",disabled:!e.form.editStatus,deletable:e.form.editStatus,accept:"image/*","max-count":5},model:{value:e.performUpload[e.songUpload.index],callback:function(t){e.$set(e.performUpload,e.songUpload.index,"string"===typeof t?t.trim():t)},expression:"performUpload[songUpload.index]"}}):e._e()]},proxy:!0}])}),a("p",{staticClass:"song-popup-tips"},[a("i",{staticStyle:{color:"#ee0a24"}},[e._v("*")]),e._v("支持格式:png,jpg,bmp")]),a("div",{staticClass:"popup-group"},[a("span",{on:{click:e.onSaveCancel}},[e._v("取消")]),a("span",{staticClass:"popup-sure",on:{click:e.onSaveUpload}},[e._v("确定")])])],1)])],1)},n=[],o=a("a34a"),i=a.n(o),s=a("6e6e"),l=a("cf45"),u=a("3908"),c=(a("6f45"),a("8900")),d=a("736c");function f(e,t,a,r,n,o,i){try{var s=e[o](i),l=s.value}catch(u){return void a(u)}s.done?t(l):Promise.resolve(l).then(r,n)}function p(e){return function(){var t=this,a=arguments;return new Promise((function(r,n){var o=e.apply(t,a);function i(e){f(o,r,n,i,s,"next",e)}function s(e){f(o,r,n,i,s,"throw",e)}i(void 0)}))}}var m={name:"appDetail",components:{MHeader:s["a"]},data:function(){var e=this.$route.query;return{headerStatus:!1,examRegistrationId:e.examRegistrationId,form:{id:null,paymentOrderNo:null,examBaseName:null,subjectName:null,level:null,status:null,examStartTime:null,lastExamCertificateUrl:null,lastMusicTheoryLevel:null,lastMusicTheoryCertificateUrl:null,memo:null,practiceSongIdList:null,performSongIdList:null,editStatus:!1},uploadCertificate:[],uploadCertificate2:[],songUpload:{songStatus:!1,indexName:null,index:null,songName:null,songAuthor:null},practiceNum:null,performUpload:[],performUploadTemp:[],performInfo:[],performNum:null,practiceUpload:[],practiceUploadTemp:[],practiceInfo:[]}},mounted:function(){var e=this.$route.query;e.Authorization&&localStorage.setItem("Authorization",decodeURI(e.Authorization)),Object(l["a"])().android||Object(l["a"])().iPhone?document.title="报考详情":this.headerStatus=!0,this.__init()},methods:{__init:function(){var e=p(i.a.mark((function e(){var t,a,r,n,o=this;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(u["a"])(!0),e.prev=1,e.next=4,Object(d["a"])({page:1,rows:20,examRegistrationId:this.examRegistrationId});case 4:t=e.sent,Object(u["a"])(!1),a=t.data,200==a.code&&(r=a.data.rows?a.data.rows[0]:{},this.form={id:r.id,paymentOrderNo:r.paymentOrderNo,examBaseName:r.examBaseName,subjectName:r.subjectName,level:r.level,status:r.status,examStartTime:r.examStartTime,lastExamCertificateUrl:r.lastExamCertificateUrl,lastMusicTheoryLevel:r.lastMusicTheoryLevel,lastMusicTheoryCertificateUrl:r.lastMusicTheoryCertificateUrl,memo:r.memo,practiceSongIdList:r.practiceSongIdList,performSongIdList:r.performSongIdList,editStatus:"AUDIT_PASS"!==r.status&&"AUDIT_WAIT"!==r.status},r.lastExamCertificateUrl&&(this.uploadCertificate=[{url:r.lastExamCertificateUrl}]),r.lastMusicTheoryCertificateUrl&&(this.uploadCertificate2=[{url:r.lastMusicTheoryCertificateUrl}]),n=r.songJson?JSON.parse(r.songJson):[],n.forEach((function(e){var t=e.uploadUrl?e.uploadUrl.split(","):[],a=[];t.forEach((function(e){a.push({url:e})})),"PRACTICE"===e.type?(o.practiceUpload.push(a),o.practiceUploadTemp.push(a),o.practiceInfo.push(e)):"PERFORM"===e.type&&(o.performUpload.push(a),o.performUploadTemp.push(a),o.performInfo.push(e))})),this.practiceNum=this.practiceUpload.length,this.performNum=this.performUpload.length),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](1),Object(u["a"])(!1);case 13:case"end":return e.stop()}}),e,this,[[1,10]])})));function t(){return e.apply(this,arguments)}return t}(),onOpen:function(e,t){var a=this.songUpload,r=this.practiceInfo[t],n=this.performInfo[t],o=this.form.practiceSongIdList,i=this.form.performSongIdList;if("perform"==e){if(i)return;a.songName=n?n.songName:null,a.songAuthor=n?n.songAuthor:null}else if("practice"==e){if(o)return;a.songName=r?r.songName:null,a.songAuthor=r?r.songAuthor:null}a.indexName=e,a.index=t,a.songStatus=!0},beforeRead:function(e){var t=e.size/1024/1024<5;return!!t||(this.$toast("上传图片大小不能超过 5MB"),!1)},beforeDelete:function(e,t){var a=t.name.split("-"),r=this.form;return"certificate2"==a[0]?r.lastMusicTheoryCertificateUrl="":"certificate"==a[0]&&(r.lastExamCertificateUrl=""),!0},afterRead:function(){var e=p(i.a.mark((function e(t,a){var r,n,o,s,l;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=a.name.split("-"),e.prev=1,t.status="uploading",t.message="上传中...",n=new FormData,n.append("file",t.file),e.next=8,Object(c["r"])(n);case 8:if(o=e.sent,s=o.data,200!=s.code){e.next=16;break}t.status="done",l=this.form,"certificate2"==r[0]?l.lastMusicTheoryCertificateUrl=s.data.url:"certificate"==r[0]?l.lastExamCertificateUrl=s.data.url:("practice"==r[0]||"perform"==r[0])&&(t.url=s.data.url),e.next=20;break;case 16:return t.status="failed",t.message="上传失败",this.$toast(s.msg),e.abrupt("return",!1);case 20:e.next=25;break;case 22:return e.prev=22,e.t0=e["catch"](1),e.abrupt("return",!1);case 25:case"end":return e.stop()}}),e,this,[[1,22]])})));function t(t,a){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=p(i.a.mark((function e(){var t,a,r,n,o,s,l;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.onCheckFields()){e.next=2;break}return e.abrupt("return");case 2:return t=[],a=this.practiceUpload,this.practiceInfo.forEach((function(e){var r=[];a[e.index].forEach((function(e){r.push(e.url)})),t.push({songName:e.songName,songAuthor:e.songAuthor,index:e.index,type:"PRACTICE",uploadUrl:r.join(",")})})),r=this.performNumUpload,this.performInfo.forEach((function(e){var a=[];r[e.index].forEach((function(e){a.push(e.url)})),t.push({songName:e.songName,songAuthor:e.songAuthor,index:e.index,type:"PERFORM",uploadUrl:a.join(",")})})),n=this.form,o={id:n.id,lastExamCertificateUrl:n.lastExamCertificateUrl,lastMusicTheoryCertificateUrl:n.lastMusicTheoryCertificateUrl,songJson:JSON.stringify(t),status:"AUDIT_WAIT"},Object(u["a"])(!0),e.prev=10,e.next=13,Object(c["c"])(o);case 13:s=e.sent,Object(u["a"])(!1),l=s.data,200==l.code?(this.practiceUpload=[],this.practiceUploadTemp=[],this.practiceInfo=[],this.performUpload=[],this.performUploadTemp=[],this.performInfo=[],this.__init()):this.$toast(l.msg),e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](10),Object(u["a"])(!1);case 22:case"end":return e.stop()}}),e,this,[[10,19]])})));function t(){return e.apply(this,arguments)}return t}(),onCheckFields:function(){var e=this.form;return this.practiceUpload.length!=this.practiceNum?(this.$toast("请上传练习曲"),!1):this.performUpload.length!=this.performNum?(this.$toast("请上传演奏曲"),!1):!(e.level>2&&0==e.lastMusicTheoryLevel&&!e.lastMusicTheoryCertificateUrl)||(this.$toast("请上传乐理证书"),!1)},onSaveCancel:function(){this.songUpload.songStatus=!1,this.performUpload=JSON.parse(JSON.stringify(this.performUploadTemp)),this.practiceUpload=JSON.parse(JSON.stringify(this.practiceUploadTemp))},onSaveUpload:function(){var e=this.songUpload;if(e.songName){if("practice"==e.indexName){var t=this.practiceUpload[e.index],a=t?t.length:0;if(!(t&&a>0&&t[0].url))return void this.$toast("请上传文件");if(!t[a-1].url)return void this.$toast("上传曲谱中,请稍等");this.practiceInfo[e.index]=JSON.parse(JSON.stringify(e)),this.practiceUploadTemp=JSON.parse(JSON.stringify(this.practiceUpload))}else if("perform"==e.indexName){var r=this.performUpload[e.index],n=r?r.length:0;if(!(r&&n>0))return void this.$toast("请上传文件");if(!r[n-1].url)return void this.$toast("上传曲谱中,请稍等");this.performInfo[e.index]=JSON.parse(JSON.stringify(e)),this.performUploadTemp=JSON.parse(JSON.stringify(this.performUpload))}e.songName=null,e.songAuthor=null,e.songStatus=!1}else this.$toast("请输入曲名")},numberToCN:function(e){var t={0:"一",1:"二",2:"三",3:"四",4:"五"};return t[e]}},filters:{filterStatus:function(e){var t={PAY_WAIT:"未缴费",AUDIT_WAIT:"等待审核",AUDIT_PASS:"通过",AUDIT_REJECT:"拒绝",REFUNDED:"已退款"};return t[e]}}},g=m,h=(a("75bf"),a("2877")),v=Object(h["a"])(g,r,n,!1,null,"2de31f86",null);t["default"]=v.exports},"6e6e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mheader"},[a("header",{staticClass:"m-nav-header",class:[{fixed:e.isFixed},{headerColor:e.isColor}]},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[e._t("default",[e._v(e._s(e.name?e.name:e.$route.meta.description))])],2),a("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},n=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},isColor:{type:Boolean,default:!1},backUrl:{type:Object,default:function(){return{callBack:null,status:!1,path:"",params:{}}}}},data:function(){return{title:this.name,backUrlParams:this.backUrl}},methods:{goBack:function(){var e=this.backUrlParams;"function"==typeof e.callBack?e.callBack():e.status?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},i=o,s=(a("2558"),a("2877")),l=Object(s["a"])(i,r,n,!1,null,"9865a7b0",null);t["a"]=l.exports},"6f45":function(e,t,a){var r,o;(function(){var a=!1,i=function(e){return e instanceof i?e:this instanceof i?void(this.EXIFwrapped=e):new i(e)};e.exports&&(t=e.exports=i),t.EXIF=i;var s=i.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},l=i.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},u=i.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},c=i.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},d=i.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function f(e){return!!e.exifdata}function p(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var a=atob(e),r=a.length,n=new ArrayBuffer(r),o=new Uint8Array(n),i=0;i4?p:t+8,i=[],l=0;l4?p:t+8,I(e,o,f-1);case 3:if(1==f)return e.getUint16(t+8,!n);for(o=f>2?p:t+8,i=[],l=0;le.byteLength)return{};var o=x(e,t,t+n,c,r);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var i=t+o.JpegIFOffset,s=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(e.buffer,i,s)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function I(e,t,a){var r="";for(n=t;n")+8;l=l.substring(l.indexOf("0){t["@attributes"]={};for(var a=0;a0)for(var a=0;a