@zhijiancloud/bpm 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bpmAudit.umd.js +1 -1
- package/dist/bpmDateTime.umd.js +1 -1
- package/dist/bpmField.umd.js +7 -1
- package/dist/bpmField.umd.js.LICENSE.txt +2 -0
- package/dist/bpmFieldsFilter.umd.js +8 -0
- package/dist/bpmFieldsFilter.umd.js.LICENSE.txt +1 -0
- package/dist/bpmFormField.umd.js +8 -0
- package/dist/bpmFormField.umd.js.LICENSE.txt +11 -0
- package/dist/bpmMulFile.umd.js +1 -1
- package/dist/bpmMulImage.umd.js +1 -1
- package/dist/bpmNumber.umd.js +1 -1
- package/dist/bpmSelect.umd.js +1 -1
- package/dist/bpmSelectCheckItem.umd.js +1 -1
- package/dist/bpmSelectEntranceForm.umd.js +8 -0
- package/dist/bpmSelectEntranceForm.umd.js.LICENSE.txt +1 -0
- package/dist/bpmSelectFromField.umd.js +1 -1
- package/dist/bpmSelectFromForm.umd.js +1 -1
- package/dist/bpmSelectHouseOwner.umd.js +1 -0
- package/dist/bpmSelectIssue.umd.js +1 -0
- package/dist/bpmSignature.umd.js +2 -0
- package/dist/bpmSignature.umd.js.LICENSE.txt +9 -0
- package/dist/bpmSubForm.umd.js +1 -1
- package/dist/bpmText.umd.js +1 -1
- package/dist/bpmTime.umd.js +1 -1
- package/dist/css/bpmAudit.css +1 -0
- package/dist/css/bpmMulFile.css +1 -1
- package/dist/css/bpmSelectEntranceForm.css +1 -0
- package/dist/css/bpmSelectHouseOwner.css +1 -0
- package/dist/css/bpmSignature.css +1 -0
- package/dist/css/bpmText.css +1 -1
- package/dist/css/common.css +1 -0
- package/dist/css/index.css +1 -1
- package/dist/demo.umd.js +1 -1
- package/dist/demo2.umd.js +1 -1
- package/dist/index.umd.js +7 -1
- package/dist/index.umd.js.LICENSE.txt +2 -0
- package/package.json +26 -20
- package/CHANGELOG.md +0 -27
- package/components/.DS_Store +0 -0
- package/components/css/bpmMulFile.less +0 -58
- package/components/css/bpmSelectCheckItem.less +0 -4
- package/components/css/bpmSelectFromForm.less +0 -10
- package/components/css/bpmSelectFromId.less +0 -33
- package/components/css/bpmText.less +0 -49
- package/components/css/demo.less +0 -3
- package/components/css/demo2.less +0 -3
- package/components/css/index.less +0 -3
- package/components/lib/bpmAudit/index.js +0 -7
- package/components/lib/bpmAudit/src/main.vue +0 -86
- package/components/lib/bpmAudit/src/part/editor.vue +0 -316
- package/components/lib/bpmAudit/src/part/reader.vue +0 -217
- package/components/lib/bpmDateTime/index.js +0 -7
- package/components/lib/bpmDateTime/src/main.vue +0 -82
- package/components/lib/bpmDateTime/src/part/editor.vue +0 -124
- package/components/lib/bpmDateTime/src/part/reader.vue +0 -55
- package/components/lib/bpmField/index.js +0 -7
- package/components/lib/bpmField/src/main.vue +0 -176
- package/components/lib/bpmMulFile/index.js +0 -7
- package/components/lib/bpmMulFile/src/main.vue +0 -86
- package/components/lib/bpmMulFile/src/part/editor.vue +0 -433
- package/components/lib/bpmMulFile/src/part/lib/compressImageUtils.js +0 -226
- package/components/lib/bpmMulFile/src/part/lib/utils.js +0 -281
- package/components/lib/bpmMulFile/src/part/reader.vue +0 -303
- package/components/lib/bpmMulImage/index.js +0 -7
- package/components/lib/bpmMulImage/src/main.vue +0 -87
- package/components/lib/bpmMulImage/src/part/editor.vue +0 -445
- package/components/lib/bpmMulImage/src/part/lib/compressImageUtils.js +0 -226
- package/components/lib/bpmMulImage/src/part/lib/utils.js +0 -281
- package/components/lib/bpmMulImage/src/part/reader.vue +0 -171
- package/components/lib/bpmNumber/index.js +0 -7
- package/components/lib/bpmNumber/src/main.vue +0 -83
- package/components/lib/bpmNumber/src/part/editor.vue +0 -48
- package/components/lib/bpmNumber/src/part/reader.vue +0 -7
- package/components/lib/bpmSelect/index.js +0 -7
- package/components/lib/bpmSelect/src/main.vue +0 -90
- package/components/lib/bpmSelect/src/part/editor.vue +0 -75
- package/components/lib/bpmSelect/src/part/reader.vue +0 -44
- package/components/lib/bpmSelectCheckItem/index.js +0 -7
- package/components/lib/bpmSelectCheckItem/src/main.vue +0 -101
- package/components/lib/bpmSelectCheckItem/src/part/editor.vue +0 -107
- package/components/lib/bpmSelectCheckItem/src/part/reader.vue +0 -7
- package/components/lib/bpmSelectFromField/index.js +0 -7
- package/components/lib/bpmSelectFromField/src/main.vue +0 -97
- package/components/lib/bpmSelectFromField/src/part/editor.vue +0 -82
- package/components/lib/bpmSelectFromField/src/part/reader.vue +0 -7
- package/components/lib/bpmSelectFromForm/index.js +0 -7
- package/components/lib/bpmSelectFromForm/src/main.vue +0 -103
- package/components/lib/bpmSelectFromForm/src/part/editor.vue +0 -181
- package/components/lib/bpmSelectFromForm/src/part/reader.vue +0 -7
- package/components/lib/bpmSelectFromId/index.js +0 -7
- package/components/lib/bpmSelectFromId/src/main.vue +0 -102
- package/components/lib/bpmSelectFromId/src/part/editor.vue +0 -260
- package/components/lib/bpmSelectFromId/src/part/reader.vue +0 -7
- package/components/lib/bpmSubForm/index.js +0 -7
- package/components/lib/bpmSubForm/src/main.vue +0 -181
- package/components/lib/bpmText/index.ts +0 -13
- package/components/lib/bpmText/src/main.vue +0 -87
- package/components/lib/bpmText/src/part/editor.vue +0 -104
- package/components/lib/bpmText/src/part/reader.vue +0 -7
- package/components/lib/bpmTime/index.js +0 -7
- package/components/lib/bpmTime/src/main.vue +0 -83
- package/components/lib/bpmTime/src/part/editor.vue +0 -54
- package/components/lib/bpmTime/src/part/reader.vue +0 -24
- package/components/lib/demo/index.js +0 -7
- package/components/lib/demo/src/main.vue +0 -11
- package/components/lib/demo2/index.js +0 -7
- package/components/lib/demo2/src/main.vue +0 -11
- package/components/lib/field-const.js +0 -469
- package/components/lib/index.ts +0 -72
- package/components/lib/mixins/RemoteSelectReader.vue +0 -55
- package/components/lib/mixins/TextReader.vue +0 -22
- package/components/lib/net.js +0 -21
- package/components/lib/utils.js +0 -89
- package/components/sfc.d.ts +0 -27
- package/dist/bpmDateTime.umd.js.LICENSE.txt +0 -38
- package/dist/bpmNumber.umd.js.LICENSE.txt +0 -38
- package/dist/bpmSelect.umd.js.LICENSE.txt +0 -38
- package/dist/bpmSelectUser.umd.js +0 -1
- package/dist/bpmText.umd.js.LICENSE.txt +0 -38
- package/dist/bpmTime.umd.js.LICENSE.txt +0 -38
package/dist/bpmAudit.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see bpmAudit.umd.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs"),require("fecha")):"function"==typeof define&&define.amd?define(["lodash","qs","fecha"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs"),require("fecha")):e.bpm2=t(e.lodash,e.qs,e.fecha)}(self,(function(e,t,o){return function(){var i={5887:function(e,t,n){"use strict";n.d(t,{default:function(){return $}});var o=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-mul-image",attrs:{fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1),e.$listeners))};o._withStripped=!0;var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-mul-image-edit"},[n("el-upload",e._g(e._b({ref:"uploader",attrs:{action:e.url,name:"userfile","show-file-list":!1,multiple:"",limit:e.maxCount,accept:e.extensions,"before-upload":e.handleAdd,"on-success":e.onUploaded,"on-error":e.onFail,"file-list":e.fileList}},"el-upload",e.$attrs,!1),e.$listeners),[n("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:e.disabled},slot:"trigger"},[e._v("点击上传")])],1),e._v(" "),n("div",{staticClass:"row gutter-sm q-my-sm file-list"},[e.curVal&&e.curVal.length?[n("viewer",{staticClass:"row gutter-sm q-my-sm file-list",staticStyle:{width:"100%"},attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,(function(t){return n("div",{key:t.md5,staticClass:"col-12 file-box"},[e.isImageFile(t)?n("span",{staticClass:"file-content",on:{click:function(n){return e.previewImg(t)}}},[n("img",{staticClass:"preview-img",attrs:{src:e.fileLink(t)}})]):n("span",{staticClass:"file-content q-mb-xs",on:{click:function(n){return e.preview(t)}}},[n("div",{staticClass:"text-left text-faded"},[n("i",{staticClass:"q-icon fa fa-file-pdf-o",class:e.getFileTypeClass(t),attrs:{"aria-hidden":"true"}})])]),e._v(" "),n("div",{staticClass:"relative-position file-link ellipsis",attrs:{title:t.name}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),n("div",{staticClass:"file-remove",on:{click:function(n){return e.remove(t.md5,t)}}},[e._v("删除")])])})),0)]:[n("div",{staticClass:"col-auto",staticStyle:{"padding-top":"0px","font-size":"12px"}},[e._v("\n 未发现上传文件\n ")])]],2),e._v(" "),n("img",{staticStyle:{display:"none"},attrs:{id:"image",src:""}}),e._v(" "),n("div",{staticStyle:{height:"100px",width:"109px",display:"none"},attrs:{id:"container"}})],1)};i._withStripped=!0;var a=n(467),r=n.n(a),f=n(6981),s=n(4239),l=n(3371),c=n.n(l),u=n(5273),d=n.n(u),h=(n(7770),n(5403),n(2918)),p=n.n(h);var m={insertEXIF:function(e,t,n){if(e instanceof Blob){var o=this,i=new FileReader;i.onload=function(){o.insertEXIF(i.result,t,n)},i.readAsArrayBuffer(e)}else{var a=[].slice.call(new Uint8Array(e),0);if(255!==a[2]||224!==a[3])return e;var r=256*a[4]+a[5],f=[255,216].concat(t,a.slice(4+r));n(new Uint8Array(f))}},getEXIF:function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++){var o=e[n];255===o[0]&&225===o[1]&&(t=t.concat(o))}return t},getSegments:function(e,t){if(e instanceof Blob){var n=this,o=new FileReader;o.onload=function(){n.getSegments(o.result,t)},o.readAsArrayBuffer(e)}else{if(!e.length&&!e.byteLength)return[];var i,a,r=0,f=[],s=[].slice.call(new Uint8Array(e),0);let n=1;for(;n&&(255!==s[r]||218!==s[r+1])&&(255===s[r]&&216===s[r+1]?r+=2:(i=r+(256*s[r+2]+s[r+3])+2,a=s.slice(r,i),r=i,f.push(a)),!(r>s.length)););t(f)}},decode64:function(e){var t="data:image/jpeg;base64,";if(e.slice(0,23)!==t)return[];for(var n=window.atob(e.replace(t,"")),o=new Uint8Array(n.length),i=0,a=n.length;i<a;i++)o[i]=n.charCodeAt(i);return o},encode64:function(e){for(var t="",n=0,o=e.length;n<o;n++)t+=String.fromCharCode(e[n]);return"data:image/jpeg;base64,"+window.btoa(t)}},b=n(5475),g=n.n(b);function v(e){let t="";g()(".viewer-in .address").length?(e&&(t='<i class="fa fa-map-marker"></i>'+e),g()(".viewer-in .address").html(t)):(e&&(t='<div class="address"><i class="fa fa-map-marker"></i>'+e+"</div>"),g()(".viewer-in .viewer-footer").append(t))}async function y(e){if(v(""),!function(e){return r().startsWith(e.type,"image")}(e))return;let t=await zj.net.w.noapi({url:`/platform/v1/papi/app_file/download/?file_md5=${e.md5}&webp=0`}),n=r().get(t,"url_list.0.path.0");v("定位信息加载中...");let o=document.createElement("img");o.src=n;let i=this;setTimeout((()=>{try{g().ajax({url:`${n}?exif`,success:e=>{e&&e.GPSLatitude?i.setPs(e):p().getData(o,(function(){var e=p().getAllTags(this);console.log("info",e),i.setPs(e)}))},error:()=>{p().getData(o,(function(){var e=p().getAllTags(this);console.log("info",e),i.setPs(e)}))}})}catch(e){p().getData(o,(function(){var e=p().getAllTags(this);i.setPs(e)}))}}),600)}function w(e){console.log("filePath",e);var t=e.lastIndexOf(".");return-1!=t?e.substring(t+1,e.length).toLowerCase():""}c().use(f.Upload),c().use(f.Button),c().use(f.Dialog);const S=n(8);c().use(d()),d().setDefaults({Options:{inline:!0,button:!0,navbar:!0,title:!0,toolbar:!0,tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,url:"data-source"}});var x=null,C={props:{value:{},fieldConf:{},row:{},extensions:{type:String,default(){return"jpg,.jpeg,.png,.dwg"}}},data(){return{curVal:[],fileList:[],opened:!1,officeUrl:"",windowH:0}},watch:{value(){this.curVal=this.isSign&&r().isString(this.value)&&this.value?[{md5:this.value,name:"",type:"image/png"}]:this.value}},computed:{url(){return"/platform/v1/papi/app_file/upload/"},isSign(){return"Signature"==this.fieldConf.type},photo(){let e=[];return r().each(this.curVal,(t=>{if(this.isImageFile(t)){let n=this.fileLink(t,600);e.push(n)}})),e},photoMd5s(){let e=[];return r().each(this.curVal,(t=>{this.isImageFile(t)&&e.push(t.md5)})),e},maxCountConf(){return r().get(this.fieldConf,"check.max_count")},maxCount(){return this.maxCountConf-this.curVal&&this.curVal.length},disabled(){return(this.curVal?this.curVal:[]).length>=this.maxCountConf}},created(){},mounted(){this.curVal=this.isSign&&r().isString(this.value)&&this.value?[{md5:this.value,name:"签名",type:"image/png"}]:this.value,this.windowH=document.body.clientHeight/100*99-50,this.appendJs("https://webapi.amap.com/maps?v=1.4.15&key=c2195d5de1c163ebfb118bad93c8bbd3",(()=>{var e=new x.Map("container",{resizeEnable:!0});e.plugin("AMap.Geolocation",(()=>{let t=new x.Geolocation({enableHighAccuracy:!0,timeout:1e4,maximumAge:0,convert:!0,showButton:!0,buttonPosition:"LB",buttonOffset:new x.Pixel(10,20),showMarker:!0,showCircle:!0,panToLocation:!0,zoomToAccuracy:!0});e.addControl(t),t.getCurrentPosition(),x.event.addListener(t,"complete",(e=>{this.position=e.position})),x.event.addListener(t,"error",(e=>{console.log("定位出错-error",e)}))}))}))},methods:{appendJs(e){let t=document.createElement("script"),n={type:"text/javascript",async:/^http/.test(e)?"async":"",src:e};for(var o in n)t[o]=n[o];document.head.appendChild(t)},inited(e){e.options.view=this.view,this.$viewer=e},view(e){let t=e.detail.index,n=r().filter(this.curVal,(e=>this.isImageFile(e)));y(r().get(n,t))},previewImg(e){let t=r().indexOf(this.photoMd5s,e.md5);this.$viewer.view(t)},isDwg(e){return r().endsWith(e.name,".dwg")},getFileTypeClass(e){let t=w(e.type);return t=t||w(e.name),r().endsWith(e.name,".dwg")&&(t="dwg"),r().get({document:"fa-file-word-o",sheet:"fa-file-excel-o",doc:"fa-file-word-o",docx:"fa-file-word-o",xlsx:"fa-file-excel-o","ms-excel":"fa-file-excel-o",dwg:"fa-file-image-o",png:"fa-file-image-o",jpg:"fa-file-image-o"},t)},handleAdd(){let e=this.fileList;r().each(e,((e,t)=>{!function(e,t){if(-1==e.type.indexOf("image"))t(null);else{let n=new FileReader,o=new Image;n.readAsDataURL(e),n.onload=function(){e.src=this.result,o.onload=function(){let t=o.width,n=o.height;e.width=t,e.height=n},o.src=e.src,function(e,t,n,o){var i=new Image;i.src=e.src,i.onload=function(){var e=this,i=e.width,a=e.height,r=i/a;i=t.width||i,a=t.height||i/r;var f=.7,s=document.createElement("canvas"),l=s.getContext("2d"),c=document.createAttribute("width");c.nodeValue=i;var u=document.createAttribute("height");u.nodeValue=a,s.setAttributeNode(c),s.setAttributeNode(u);try{p().getData(n,(function(){let n=p().getTag(this,"GPSLatitude");l.drawImage(e,0,0,i,a),t.quality&&t.quality<=1&&t.quality>0&&(f=t.quality);var r=s.toDataURL("image/jpeg",f);o(r,n)}))}catch(n){l.drawImage(e,0,0,i,a),t.quality&&t.quality<=1&&t.quality>0&&(f=t.quality);var d=s.toDataURL("image/jpeg",f);o(d,null)}}}(e,{quality:.4},e,t)}}}(e,((n,o)=>{n&&m.getSegments(new Blob([e]),(i=>{let a=this.dataURLtoFile(n,e.name),f=m.getEXIF(i);if(!r().isEmpty(f)&&o)m.insertEXIF(a,f,(n=>{let o=new Blob([n],{type:e.type});o.name=e.name,o.lastModifiedDate=new Date,this.fileList[t]=o}));else{let o={},i={},a={};o[S.ImageIFD.Make]="lse";let r=this.position.lat,f=this.position.lng;a[S.GPSIFD.GPSLatitudeRef]=r<0?"S":"N",a[S.GPSIFD.GPSLatitude]=S.GPSHelper.degToDmsRational(r),a[S.GPSIFD.GPSLongitudeRef]=f<0?"W":"E",a[S.GPSIFD.GPSLongitude]=S.GPSHelper.degToDmsRational(f),a[S.GPSIFD.GPSImgDirection]=[123456,100];let s={"0th":o,Exif:i,GPS:a},l=S.dump(s),c=S.insert(l,n),u=this.dataURLtoFile(c,e.name);this.fileList[t]=u}}))}))}))},dataURLtoFile(e,t){let n=e.split(","),o=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,r=new Uint8Array(a);for(;a--;)r[a]=i.charCodeAt(a);return new File([r],t,{type:o})},isImageFile(e){return r().startsWith(e.type,"image")},itemSideImageAttr(e){let t={};return this.isImageFile(e)?t.image=this.fileLink(e):t.icon="fa fa-file",t},fileLink(e){if(!e||!e.md5)return;let t=this.isImageFile(e),n={file_md5:e.md5};return t||(n.is_file=1),(0,s.QE)("/platform/v1/papi/web_file/image_view/",n)},async preview(e){if("dwg/dwg"==e.type)return;let t=await zj.net.w.noapi({url:`/platform/v1/papi/app_file/download/?file_md5=${e.md5}&webp=0`}),n=r().get(t,"url_list.0.path.0"),o=w(n);"application/pdf"==e.type&&(o="pdf"),"application/vnd.ms-excel"==e.type&&(o="ms-excel");let i=function(){let e=(new Date).valueOf();return function(e){let t=0,n=e.length;for(let o=0;o<n;o++)t=31*t+e.charCodeAt(o),t>2147483647&&(t%=2147483648);return t}(function(e,t,n){let o="",i=6,a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];for(let e=0;e<i;e++)o+=a[Math.round(Math.random()*(a.length-1))];return o}()+e.toString())}(),a=`https://${window.location.host}/zj_of/v1/papi/file/read_only/?md5=${e.md5}&type=${{document:"Word.Document",docx:"Word.Document",doc:"Word.Document",sheet:"Excel.Sheet",pdf:"pdf",xlsx:"Excel.Sheet","ms-excel":"Excel.Sheet"}[o]}&sign=${i}`;if("wps"!=(await zj.net.w.noapi({url:"/zj_of/v1/papi/file/using_engine/"})).engine&&(a="https://view.officeapps.live.com/op/embed.aspx?src="+encodeURIComponent(n)),"pdf"==o){let e=n.lastIndexOf(".com");n=n.substring(e+4,n.length),n=encodeURIComponent(n),a=(0,s.tq)()?`/public/app3/bpm/view_pdf.html?url=${n}`:`/public/bpm/app/view_pdf.html?url=${n}`}this.officeUrl=a,this.opened=!0},onFail(e,t){let n=`${t.name}上传失败`;console.log("err:",n)},onUploaded(e,t){console.log("file",t);let n=r().isArray(this.curVal)?this.curVal:[];n.push({name:t.name,type:r().get(t,"raw.type"),md5:r().get(e,"data.file_md5")}),this.curVal=r().cloneDeep(n);let o=this.isSign?r().get(this.curVal,"0.md5",""):this.curVal;this.$emit("input",o)},remove(e){this.curVal=r().filter(this.curVal,(t=>t.md5!=e)),this.$refs.uploader.queue=[];let t=this.isSign?r().get(this.curVal,"0.md5",""):this.curVal;this.$emit("input",t)},onHide(){this.opened=!1},onOpen(){this.opened=!0}}},P=C,k=n(1900),D=(0,k.Z)(P,i,[],!1,null,null,null);D.options.__file="components/lib/bpmMulImage/src/part/editor.vue";var I=D.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-mul-image-reader"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.curVal||0==e.curVal.length,expression:"!curVal || curVal.length == 0"}]},[e._v("暂无图片")]),e._v(" "),n("viewer",{ref:"viewer",attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,(function(t){return n("span",{key:t.md5},[e.isImageFile(t)?n("div",{staticClass:"file-box"},[n("div",{staticClass:"file-icon",staticStyle:{height:"20px",border:"1px dashed #ececec"}},[n("img",{attrs:{src:e.fileLink(t,600),alt:""}})]),e._v(" "),n("div",{staticClass:"relative-position tc file-link ellipsis",attrs:{title:t.name}},[e._v("\n "+e._s(t.name)+"\n ")])]):e._e()])})),0),e._v(" "),n("img",{staticStyle:{display:"none"},attrs:{id:"image",src:""}})],1)};A._withStripped=!0,c().use(d()),d().setDefaults({Options:{inline:!0,button:!0,navbar:!0,title:!0,toolbar:!0,tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!1,fullscreen:!1,keyboard:!0}});var L={props:["value","fieldConf","row"],data(){return{vueLightId1:null,photo:[],curVal:[],officeUrl:"",opened:!1,windowH:0,type:"small"}},computed:{is_mobile(){return(0,s.tq)()}},watch:{value(){this.curVal=r().isString(this.value)?[{md5:this.value,name:"",type:"image/png"}]:this.value,this.setPhoto()}},created(){},mounted(){let e=(new Date).getTime();this.vueLightId1=e+1,this.curVal=r().isString(this.value)?[{md5:this.value,name:"",type:"image/png"}]:this.value,this.setPhoto(),this.windowH=document.body.clientHeight/100*99-50},methods:{isDwg(e){return r().endsWith(e.name,".dwg")},inited(e){e.options.view=this.view,this.$viewer=e},view(e){let t=e.detail.index,n=r().filter(this.curVal,(e=>this.isImageFile(e)));y(r().get(n,t))},setPhoto(){let e=[];r().each(this.curVal,(t=>{if(this.isImageFile(t)){let n=this.fileLink(t,600);e.push(n)}})),this.photo=e},getFileTypeClass(e){let t=w(e.type);return"application/pdf"==e.type&&(t="fa-file-pdf-o"),r().get({document:"fa-file-word-o",sheet:"fa-file-excel-o",doc:"fa-file-word-o",docx:"fa-file-word-o",xlsx:"fa-file-excel-o","ms-excel":"fa-file-excel-o",dwg:"fa-file-image-o",png:"fa-file-image-o",jpg:"fa-file-image-o"},t)},isImageFile(e){return r().startsWith(e.type,"image")},fileLink(e){if(!e||!e.md5)return;let t=this.isImageFile(e),n={file_md5:e.md5};return t||(n.is_file=1),(0,s.QE)("/platform/v1/papi/web_file/image_view/",n)},onHide(){this.opened=!1},onOpen(){this.opened=!0}}},R=(0,k.Z)(L,A,[],!1,null,null,null);R.options.__file="components/lib/bpmMulImage/src/part/reader.vue";var F=R.exports,T={name:"BpmMulImage",components:{editorComponent:I,readerComponent:F},props:{value:{type:String},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}}},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?F:I}},watch:{curVal(e){this.$emit("input",e),this.$emit("change",e)},value(){this.curVal=this.value}},mounted(){this.curVal=this.value}},E=n(3379),_=n.n(E),M=n(7795),O=n.n(M),G=n(569),V=n.n(G),z=n(3565),j=n.n(z),B=n(9216),U=n.n(B),q=n(4589),N=n.n(q),X=n(3864),H={};H.styleTagTransform=N(),H.setAttributes=j(),H.insert=V().bind(null,"head"),H.domAPI=O(),H.insertStyleElement=U(),_()(X.Z,H),X.Z&&X.Z.locals&&X.Z.locals;var W=(0,k.Z)(T,o,[],!1,null,null,null);W.options.__file="components/lib/bpmMulImage/src/main.vue";var Y=W.exports;Y.install=function(e){e.component(Y.name,Y)};var $=Y},4239:function(e,t,n){"use strict";n.d(t,{QE:function(){return f},tq:function(){return s}});var o=n(467),i=n.n(o),a=n(6656),r=n.n(a);function f(e,t={}){i().isFunction(e)&&(e=e(t));let n=i().get(e.match(/\?([^#]+)/),"1");if(n){let o=r().parse(n);o=function(...e){return i().assignIn({},...e)}(o,t),e=i().replace(e,n,r().stringify(o))}else e=e+"?"+r().stringify(t);return e}function s(){for(var e=["iphone","ipod","ipad","android","mobile","blackberry","webos","incognito","webmate","bada","nokia","lg","ucweb","skyfire"],t=navigator.userAgent.toLowerCase(),n=!1,o=0,i=e.length;o<i;o++)-1!=t.indexOf(e[o])&&(n=!0);return n}},8534:function(e,t,n){"use strict";var o=n(8081),i=n.n(o),a=n(3645),r=n.n(a)()(i());r.push([e.id,".bpm-mul-file-reader, .bpm-mul-file-edit, .bpm-mul-image-reader, .bpm-mul-image-edit{\n .file-box{\n overflow: hidden;\n margin-top: 10px;\n max-width: 360px;\n padding: 0 6px;\n display: flex;\n &:hover{\n background: #EFF2F7;\n border-radius: 4px;\n }\n &>*{\n float: left;\n }\n .file-content{\n height: 20px;\n margin-top: 5px;\n \n }\n .file-link{\n margin-top: 5px;\n margin-left: 5px;\n max-width: 266px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n .file-remove, .operation-box{\n float: right;\n font-weight: 400;\n font-size: 12px;\n color: #246AE3;\n line-height: 14px;\n margin: 10px 0 0 20px;\n cursor: pointer;\n \n }\n\n}\n.bpm-mul-file-reader, .bpm-mul-image-reader{\n .text-faded{\n margin-top: 4px;\n }\n .file-icon{\n height: 20px;\n margin-top: 4px;\n }\n}\nimg{\n display: block;\n height: 100%;\n width: auto;\n}\n\n.viewer-container{\n z-index: 10000!important;\n}\n",""]),t.Z=r},1203:function(e,t,n){"use strict";var o=n(8081),i=n.n(o),a=n(3645),r=n.n(a),f=n(1667),s=n.n(f),l=new URL(n(1087),n.b),c=new URL(n(1866),n.b),u=new URL(n(206),n.b),d=new URL(n(6589),n.b),h=new URL(n(137),n.b),p=new URL(n(2493),n.b),m=r()(i()),b=s()(l),g=s()(c,{hash:"?#iefix&v=4.7.0"}),v=s()(u),y=s()(d),w=s()(h),S=s()(p,{hash:"#fontawesomeregular"});m.push([e.id,"/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:'FontAwesome';src:url("+b+");src:url("+g+") format('embedded-opentype'),url("+v+") format('woff2'),url("+y+") format('woff'),url("+w+") format('truetype'),url("+S+') format(\'svg\');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\f000"}.fa-music:before{content:"\\f001"}.fa-search:before{content:"\\f002"}.fa-envelope-o:before{content:"\\f003"}.fa-heart:before{content:"\\f004"}.fa-star:before{content:"\\f005"}.fa-star-o:before{content:"\\f006"}.fa-user:before{content:"\\f007"}.fa-film:before{content:"\\f008"}.fa-th-large:before{content:"\\f009"}.fa-th:before{content:"\\f00a"}.fa-th-list:before{content:"\\f00b"}.fa-check:before{content:"\\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\\f00d"}.fa-search-plus:before{content:"\\f00e"}.fa-search-minus:before{content:"\\f010"}.fa-power-off:before{content:"\\f011"}.fa-signal:before{content:"\\f012"}.fa-gear:before,.fa-cog:before{content:"\\f013"}.fa-trash-o:before{content:"\\f014"}.fa-home:before{content:"\\f015"}.fa-file-o:before{content:"\\f016"}.fa-clock-o:before{content:"\\f017"}.fa-road:before{content:"\\f018"}.fa-download:before{content:"\\f019"}.fa-arrow-circle-o-down:before{content:"\\f01a"}.fa-arrow-circle-o-up:before{content:"\\f01b"}.fa-inbox:before{content:"\\f01c"}.fa-play-circle-o:before{content:"\\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\\f01e"}.fa-refresh:before{content:"\\f021"}.fa-list-alt:before{content:"\\f022"}.fa-lock:before{content:"\\f023"}.fa-flag:before{content:"\\f024"}.fa-headphones:before{content:"\\f025"}.fa-volume-off:before{content:"\\f026"}.fa-volume-down:before{content:"\\f027"}.fa-volume-up:before{content:"\\f028"}.fa-qrcode:before{content:"\\f029"}.fa-barcode:before{content:"\\f02a"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-book:before{content:"\\f02d"}.fa-bookmark:before{content:"\\f02e"}.fa-print:before{content:"\\f02f"}.fa-camera:before{content:"\\f030"}.fa-font:before{content:"\\f031"}.fa-bold:before{content:"\\f032"}.fa-italic:before{content:"\\f033"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-align-left:before{content:"\\f036"}.fa-align-center:before{content:"\\f037"}.fa-align-right:before{content:"\\f038"}.fa-align-justify:before{content:"\\f039"}.fa-list:before{content:"\\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\\f03b"}.fa-indent:before{content:"\\f03c"}.fa-video-camera:before{content:"\\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\\f03e"}.fa-pencil:before{content:"\\f040"}.fa-map-marker:before{content:"\\f041"}.fa-adjust:before{content:"\\f042"}.fa-tint:before{content:"\\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\f044"}.fa-share-square-o:before{content:"\\f045"}.fa-check-square-o:before{content:"\\f046"}.fa-arrows:before{content:"\\f047"}.fa-step-backward:before{content:"\\f048"}.fa-fast-backward:before{content:"\\f049"}.fa-backward:before{content:"\\f04a"}.fa-play:before{content:"\\f04b"}.fa-pause:before{content:"\\f04c"}.fa-stop:before{content:"\\f04d"}.fa-forward:before{content:"\\f04e"}.fa-fast-forward:before{content:"\\f050"}.fa-step-forward:before{content:"\\f051"}.fa-eject:before{content:"\\f052"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-plus-circle:before{content:"\\f055"}.fa-minus-circle:before{content:"\\f056"}.fa-times-circle:before{content:"\\f057"}.fa-check-circle:before{content:"\\f058"}.fa-question-circle:before{content:"\\f059"}.fa-info-circle:before{content:"\\f05a"}.fa-crosshairs:before{content:"\\f05b"}.fa-times-circle-o:before{content:"\\f05c"}.fa-check-circle-o:before{content:"\\f05d"}.fa-ban:before{content:"\\f05e"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrow-down:before{content:"\\f063"}.fa-mail-forward:before,.fa-share:before{content:"\\f064"}.fa-expand:before{content:"\\f065"}.fa-compress:before{content:"\\f066"}.fa-plus:before{content:"\\f067"}.fa-minus:before{content:"\\f068"}.fa-asterisk:before{content:"\\f069"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-gift:before{content:"\\f06b"}.fa-leaf:before{content:"\\f06c"}.fa-fire:before{content:"\\f06d"}.fa-eye:before{content:"\\f06e"}.fa-eye-slash:before{content:"\\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\\f071"}.fa-plane:before{content:"\\f072"}.fa-calendar:before{content:"\\f073"}.fa-random:before{content:"\\f074"}.fa-comment:before{content:"\\f075"}.fa-magnet:before{content:"\\f076"}.fa-chevron-up:before{content:"\\f077"}.fa-chevron-down:before{content:"\\f078"}.fa-retweet:before{content:"\\f079"}.fa-shopping-cart:before{content:"\\f07a"}.fa-folder:before{content:"\\f07b"}.fa-folder-open:before{content:"\\f07c"}.fa-arrows-v:before{content:"\\f07d"}.fa-arrows-h:before{content:"\\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\f080"}.fa-twitter-square:before{content:"\\f081"}.fa-facebook-square:before{content:"\\f082"}.fa-camera-retro:before{content:"\\f083"}.fa-key:before{content:"\\f084"}.fa-gears:before,.fa-cogs:before{content:"\\f085"}.fa-comments:before{content:"\\f086"}.fa-thumbs-o-up:before{content:"\\f087"}.fa-thumbs-o-down:before{content:"\\f088"}.fa-star-half:before{content:"\\f089"}.fa-heart-o:before{content:"\\f08a"}.fa-sign-out:before{content:"\\f08b"}.fa-linkedin-square:before{content:"\\f08c"}.fa-thumb-tack:before{content:"\\f08d"}.fa-external-link:before{content:"\\f08e"}.fa-sign-in:before{content:"\\f090"}.fa-trophy:before{content:"\\f091"}.fa-github-square:before{content:"\\f092"}.fa-upload:before{content:"\\f093"}.fa-lemon-o:before{content:"\\f094"}.fa-phone:before{content:"\\f095"}.fa-square-o:before{content:"\\f096"}.fa-bookmark-o:before{content:"\\f097"}.fa-phone-square:before{content:"\\f098"}.fa-twitter:before{content:"\\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\f09a"}.fa-github:before{content:"\\f09b"}.fa-unlock:before{content:"\\f09c"}.fa-credit-card:before{content:"\\f09d"}.fa-feed:before,.fa-rss:before{content:"\\f09e"}.fa-hdd-o:before{content:"\\f0a0"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bell:before{content:"\\f0f3"}.fa-certificate:before{content:"\\f0a3"}.fa-hand-o-right:before{content:"\\f0a4"}.fa-hand-o-left:before{content:"\\f0a5"}.fa-hand-o-up:before{content:"\\f0a6"}.fa-hand-o-down:before{content:"\\f0a7"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-globe:before{content:"\\f0ac"}.fa-wrench:before{content:"\\f0ad"}.fa-tasks:before{content:"\\f0ae"}.fa-filter:before{content:"\\f0b0"}.fa-briefcase:before{content:"\\f0b1"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-group:before,.fa-users:before{content:"\\f0c0"}.fa-chain:before,.fa-link:before{content:"\\f0c1"}.fa-cloud:before{content:"\\f0c2"}.fa-flask:before{content:"\\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\\f0c5"}.fa-paperclip:before{content:"\\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\\f0c7"}.fa-square:before{content:"\\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\\f0c9"}.fa-list-ul:before{content:"\\f0ca"}.fa-list-ol:before{content:"\\f0cb"}.fa-strikethrough:before{content:"\\f0cc"}.fa-underline:before{content:"\\f0cd"}.fa-table:before{content:"\\f0ce"}.fa-magic:before{content:"\\f0d0"}.fa-truck:before{content:"\\f0d1"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-plus:before{content:"\\f0d5"}.fa-money:before{content:"\\f0d6"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-up:before{content:"\\f0d8"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-columns:before{content:"\\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\\f0de"}.fa-envelope:before{content:"\\f0e0"}.fa-linkedin:before{content:"\\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\f0e4"}.fa-comment-o:before{content:"\\f0e5"}.fa-comments-o:before{content:"\\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\\f0e7"}.fa-sitemap:before{content:"\\f0e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\\f0ea"}.fa-lightbulb-o:before{content:"\\f0eb"}.fa-exchange:before{content:"\\f0ec"}.fa-cloud-download:before{content:"\\f0ed"}.fa-cloud-upload:before{content:"\\f0ee"}.fa-user-md:before{content:"\\f0f0"}.fa-stethoscope:before{content:"\\f0f1"}.fa-suitcase:before{content:"\\f0f2"}.fa-bell-o:before{content:"\\f0a2"}.fa-coffee:before{content:"\\f0f4"}.fa-cutlery:before{content:"\\f0f5"}.fa-file-text-o:before{content:"\\f0f6"}.fa-building-o:before{content:"\\f0f7"}.fa-hospital-o:before{content:"\\f0f8"}.fa-ambulance:before{content:"\\f0f9"}.fa-medkit:before{content:"\\f0fa"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-beer:before{content:"\\f0fc"}.fa-h-square:before{content:"\\f0fd"}.fa-plus-square:before{content:"\\f0fe"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angle-down:before{content:"\\f107"}.fa-desktop:before{content:"\\f108"}.fa-laptop:before{content:"\\f109"}.fa-tablet:before{content:"\\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\f10b"}.fa-circle-o:before{content:"\\f10c"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-spinner:before{content:"\\f110"}.fa-circle:before{content:"\\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\\f112"}.fa-github-alt:before{content:"\\f113"}.fa-folder-o:before{content:"\\f114"}.fa-folder-open-o:before{content:"\\f115"}.fa-smile-o:before{content:"\\f118"}.fa-frown-o:before{content:"\\f119"}.fa-meh-o:before{content:"\\f11a"}.fa-gamepad:before{content:"\\f11b"}.fa-keyboard-o:before{content:"\\f11c"}.fa-flag-o:before{content:"\\f11d"}.fa-flag-checkered:before{content:"\\f11e"}.fa-terminal:before{content:"\\f120"}.fa-code:before{content:"\\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\f123"}.fa-location-arrow:before{content:"\\f124"}.fa-crop:before{content:"\\f125"}.fa-code-fork:before{content:"\\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\\f127"}.fa-question:before{content:"\\f128"}.fa-info:before{content:"\\f129"}.fa-exclamation:before{content:"\\f12a"}.fa-superscript:before{content:"\\f12b"}.fa-subscript:before{content:"\\f12c"}.fa-eraser:before{content:"\\f12d"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-microphone:before{content:"\\f130"}.fa-microphone-slash:before{content:"\\f131"}.fa-shield:before{content:"\\f132"}.fa-calendar-o:before{content:"\\f133"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-rocket:before{content:"\\f135"}.fa-maxcdn:before{content:"\\f136"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-html5:before{content:"\\f13b"}.fa-css3:before{content:"\\f13c"}.fa-anchor:before{content:"\\f13d"}.fa-unlock-alt:before{content:"\\f13e"}.fa-bullseye:before{content:"\\f140"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-rss-square:before{content:"\\f143"}.fa-play-circle:before{content:"\\f144"}.fa-ticket:before{content:"\\f145"}.fa-minus-square:before{content:"\\f146"}.fa-minus-square-o:before{content:"\\f147"}.fa-level-up:before{content:"\\f148"}.fa-level-down:before{content:"\\f149"}.fa-check-square:before{content:"\\f14a"}.fa-pencil-square:before{content:"\\f14b"}.fa-external-link-square:before{content:"\\f14c"}.fa-share-square:before{content:"\\f14d"}.fa-compass:before{content:"\\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\\f152"}.fa-euro:before,.fa-eur:before{content:"\\f153"}.fa-gbp:before{content:"\\f154"}.fa-dollar:before,.fa-usd:before{content:"\\f155"}.fa-rupee:before,.fa-inr:before{content:"\\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\\f158"}.fa-won:before,.fa-krw:before{content:"\\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\\f15a"}.fa-file:before{content:"\\f15b"}.fa-file-text:before{content:"\\f15c"}.fa-sort-alpha-asc:before{content:"\\f15d"}.fa-sort-alpha-desc:before{content:"\\f15e"}.fa-sort-amount-asc:before{content:"\\f160"}.fa-sort-amount-desc:before{content:"\\f161"}.fa-sort-numeric-asc:before{content:"\\f162"}.fa-sort-numeric-desc:before{content:"\\f163"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbs-down:before{content:"\\f165"}.fa-youtube-square:before{content:"\\f166"}.fa-youtube:before{content:"\\f167"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-youtube-play:before{content:"\\f16a"}.fa-dropbox:before{content:"\\f16b"}.fa-stack-overflow:before{content:"\\f16c"}.fa-instagram:before{content:"\\f16d"}.fa-flickr:before{content:"\\f16e"}.fa-adn:before{content:"\\f170"}.fa-bitbucket:before{content:"\\f171"}.fa-bitbucket-square:before{content:"\\f172"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-long-arrow-down:before{content:"\\f175"}.fa-long-arrow-up:before{content:"\\f176"}.fa-long-arrow-left:before{content:"\\f177"}.fa-long-arrow-right:before{content:"\\f178"}.fa-apple:before{content:"\\f179"}.fa-windows:before{content:"\\f17a"}.fa-android:before{content:"\\f17b"}.fa-linux:before{content:"\\f17c"}.fa-dribbble:before{content:"\\f17d"}.fa-skype:before{content:"\\f17e"}.fa-foursquare:before{content:"\\f180"}.fa-trello:before{content:"\\f181"}.fa-female:before{content:"\\f182"}.fa-male:before{content:"\\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\\f184"}.fa-sun-o:before{content:"\\f185"}.fa-moon-o:before{content:"\\f186"}.fa-archive:before{content:"\\f187"}.fa-bug:before{content:"\\f188"}.fa-vk:before{content:"\\f189"}.fa-weibo:before{content:"\\f18a"}.fa-renren:before{content:"\\f18b"}.fa-pagelines:before{content:"\\f18c"}.fa-stack-exchange:before{content:"\\f18d"}.fa-arrow-circle-o-right:before{content:"\\f18e"}.fa-arrow-circle-o-left:before{content:"\\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\\f191"}.fa-dot-circle-o:before{content:"\\f192"}.fa-wheelchair:before{content:"\\f193"}.fa-vimeo-square:before{content:"\\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\\f195"}.fa-plus-square-o:before{content:"\\f196"}.fa-space-shuttle:before{content:"\\f197"}.fa-slack:before{content:"\\f198"}.fa-envelope-square:before{content:"\\f199"}.fa-wordpress:before{content:"\\f19a"}.fa-openid:before{content:"\\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\\f19d"}.fa-yahoo:before{content:"\\f19e"}.fa-google:before{content:"\\f1a0"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-square:before{content:"\\f1a2"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-delicious:before{content:"\\f1a5"}.fa-digg:before{content:"\\f1a6"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-drupal:before{content:"\\f1a9"}.fa-joomla:before{content:"\\f1aa"}.fa-language:before{content:"\\f1ab"}.fa-fax:before{content:"\\f1ac"}.fa-building:before{content:"\\f1ad"}.fa-child:before{content:"\\f1ae"}.fa-paw:before{content:"\\f1b0"}.fa-spoon:before{content:"\\f1b1"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-recycle:before{content:"\\f1b8"}.fa-automobile:before,.fa-car:before{content:"\\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\\f1ba"}.fa-tree:before{content:"\\f1bb"}.fa-spotify:before{content:"\\f1bc"}.fa-deviantart:before{content:"\\f1bd"}.fa-soundcloud:before{content:"\\f1be"}.fa-database:before{content:"\\f1c0"}.fa-file-pdf-o:before{content:"\\f1c1"}.fa-file-word-o:before{content:"\\f1c2"}.fa-file-excel-o:before{content:"\\f1c3"}.fa-file-powerpoint-o:before{content:"\\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\f1c8"}.fa-file-code-o:before{content:"\\f1c9"}.fa-vine:before{content:"\\f1ca"}.fa-codepen:before{content:"\\f1cb"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\\f1cd"}.fa-circle-o-notch:before{content:"\\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\\f1d0"}.fa-ge:before,.fa-empire:before{content:"\\f1d1"}.fa-git-square:before{content:"\\f1d2"}.fa-git:before{content:"\\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\\f1d4"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-qq:before{content:"\\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\\f1d9"}.fa-history:before{content:"\\f1da"}.fa-circle-thin:before{content:"\\f1db"}.fa-header:before{content:"\\f1dc"}.fa-paragraph:before{content:"\\f1dd"}.fa-sliders:before{content:"\\f1de"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-bomb:before{content:"\\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\\f1e3"}.fa-tty:before{content:"\\f1e4"}.fa-binoculars:before{content:"\\f1e5"}.fa-plug:before{content:"\\f1e6"}.fa-slideshare:before{content:"\\f1e7"}.fa-twitch:before{content:"\\f1e8"}.fa-yelp:before{content:"\\f1e9"}.fa-newspaper-o:before{content:"\\f1ea"}.fa-wifi:before{content:"\\f1eb"}.fa-calculator:before{content:"\\f1ec"}.fa-paypal:before{content:"\\f1ed"}.fa-google-wallet:before{content:"\\f1ee"}.fa-cc-visa:before{content:"\\f1f0"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bell-slash-o:before{content:"\\f1f7"}.fa-trash:before{content:"\\f1f8"}.fa-copyright:before{content:"\\f1f9"}.fa-at:before{content:"\\f1fa"}.fa-eyedropper:before{content:"\\f1fb"}.fa-paint-brush:before{content:"\\f1fc"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-area-chart:before{content:"\\f1fe"}.fa-pie-chart:before{content:"\\f200"}.fa-line-chart:before{content:"\\f201"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-bicycle:before{content:"\\f206"}.fa-bus:before{content:"\\f207"}.fa-ioxhost:before{content:"\\f208"}.fa-angellist:before{content:"\\f209"}.fa-cc:before{content:"\\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\\f20b"}.fa-meanpath:before{content:"\\f20c"}.fa-buysellads:before{content:"\\f20d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-dashcube:before{content:"\\f210"}.fa-forumbee:before{content:"\\f211"}.fa-leanpub:before{content:"\\f212"}.fa-sellsy:before{content:"\\f213"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-simplybuilt:before{content:"\\f215"}.fa-skyatlas:before{content:"\\f216"}.fa-cart-plus:before{content:"\\f217"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-diamond:before{content:"\\f219"}.fa-ship:before{content:"\\f21a"}.fa-user-secret:before{content:"\\f21b"}.fa-motorcycle:before{content:"\\f21c"}.fa-street-view:before{content:"\\f21d"}.fa-heartbeat:before{content:"\\f21e"}.fa-venus:before{content:"\\f221"}.fa-mars:before{content:"\\f222"}.fa-mercury:before{content:"\\f223"}.fa-intersex:before,.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-venus-double:before{content:"\\f226"}.fa-mars-double:before{content:"\\f227"}.fa-venus-mars:before{content:"\\f228"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-neuter:before{content:"\\f22c"}.fa-genderless:before{content:"\\f22d"}.fa-facebook-official:before{content:"\\f230"}.fa-pinterest-p:before{content:"\\f231"}.fa-whatsapp:before{content:"\\f232"}.fa-server:before{content:"\\f233"}.fa-user-plus:before{content:"\\f234"}.fa-user-times:before{content:"\\f235"}.fa-hotel:before,.fa-bed:before{content:"\\f236"}.fa-viacoin:before{content:"\\f237"}.fa-train:before{content:"\\f238"}.fa-subway:before{content:"\\f239"}.fa-medium:before{content:"\\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\\f23b"}.fa-optin-monster:before{content:"\\f23c"}.fa-opencart:before{content:"\\f23d"}.fa-expeditedssl:before{content:"\\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\\f244"}.fa-mouse-pointer:before{content:"\\f245"}.fa-i-cursor:before{content:"\\f246"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-sticky-note:before{content:"\\f249"}.fa-sticky-note-o:before{content:"\\f24a"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-clone:before{content:"\\f24d"}.fa-balance-scale:before{content:"\\f24e"}.fa-hourglass-o:before{content:"\\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass:before{content:"\\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\\f256"}.fa-hand-scissors-o:before{content:"\\f257"}.fa-hand-lizard-o:before{content:"\\f258"}.fa-hand-spock-o:before{content:"\\f259"}.fa-hand-pointer-o:before{content:"\\f25a"}.fa-hand-peace-o:before{content:"\\f25b"}.fa-trademark:before{content:"\\f25c"}.fa-registered:before{content:"\\f25d"}.fa-creative-commons:before{content:"\\f25e"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-tripadvisor:before{content:"\\f262"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-get-pocket:before{content:"\\f265"}.fa-wikipedia-w:before{content:"\\f266"}.fa-safari:before{content:"\\f267"}.fa-chrome:before{content:"\\f268"}.fa-firefox:before{content:"\\f269"}.fa-opera:before{content:"\\f26a"}.fa-internet-explorer:before{content:"\\f26b"}.fa-tv:before,.fa-television:before{content:"\\f26c"}.fa-contao:before{content:"\\f26d"}.fa-500px:before{content:"\\f26e"}.fa-amazon:before{content:"\\f270"}.fa-calendar-plus-o:before{content:"\\f271"}.fa-calendar-minus-o:before{content:"\\f272"}.fa-calendar-times-o:before{content:"\\f273"}.fa-calendar-check-o:before{content:"\\f274"}.fa-industry:before{content:"\\f275"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-map-o:before{content:"\\f278"}.fa-map:before{content:"\\f279"}.fa-commenting:before{content:"\\f27a"}.fa-commenting-o:before{content:"\\f27b"}.fa-houzz:before{content:"\\f27c"}.fa-vimeo:before{content:"\\f27d"}.fa-black-tie:before{content:"\\f27e"}.fa-fonticons:before{content:"\\f280"}.fa-reddit-alien:before{content:"\\f281"}.fa-edge:before{content:"\\f282"}.fa-credit-card-alt:before{content:"\\f283"}.fa-codiepie:before{content:"\\f284"}.fa-modx:before{content:"\\f285"}.fa-fort-awesome:before{content:"\\f286"}.fa-usb:before{content:"\\f287"}.fa-product-hunt:before{content:"\\f288"}.fa-mixcloud:before{content:"\\f289"}.fa-scribd:before{content:"\\f28a"}.fa-pause-circle:before{content:"\\f28b"}.fa-pause-circle-o:before{content:"\\f28c"}.fa-stop-circle:before{content:"\\f28d"}.fa-stop-circle-o:before{content:"\\f28e"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-hashtag:before{content:"\\f292"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-percent:before{content:"\\f295"}.fa-gitlab:before{content:"\\f296"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpforms:before{content:"\\f298"}.fa-envira:before{content:"\\f299"}.fa-universal-access:before{content:"\\f29a"}.fa-wheelchair-alt:before{content:"\\f29b"}.fa-question-circle-o:before{content:"\\f29c"}.fa-blind:before{content:"\\f29d"}.fa-audio-description:before{content:"\\f29e"}.fa-volume-control-phone:before{content:"\\f2a0"}.fa-braille:before{content:"\\f2a1"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\\f2a4"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\\f2a7"}.fa-low-vision:before{content:"\\f2a8"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-pied-piper:before{content:"\\f2ae"}.fa-first-order:before{content:"\\f2b0"}.fa-yoast:before{content:"\\f2b1"}.fa-themeisle:before{content:"\\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\\f2b4"}.fa-handshake-o:before{content:"\\f2b5"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-o:before{content:"\\f2b7"}.fa-linode:before{content:"\\f2b8"}.fa-address-book:before{content:"\\f2b9"}.fa-address-book-o:before{content:"\\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\\f2bc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-circle-o:before{content:"\\f2be"}.fa-user-o:before{content:"\\f2c0"}.fa-id-badge:before{content:"\\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\\f2c3"}.fa-quora:before{content:"\\f2c4"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-telegram:before{content:"\\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\\f2cb"}.fa-shower:before{content:"\\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\\f2cd"}.fa-podcast:before{content:"\\f2ce"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\\f2d4"}.fa-bandcamp:before{content:"\\f2d5"}.fa-grav:before{content:"\\f2d6"}.fa-etsy:before{content:"\\f2d7"}.fa-imdb:before{content:"\\f2d8"}.fa-ravelry:before{content:"\\f2d9"}.fa-eercast:before{content:"\\f2da"}.fa-microchip:before{content:"\\f2db"}.fa-snowflake-o:before{content:"\\f2dc"}.fa-superpowers:before{content:"\\f2dd"}.fa-wpexplorer:before{content:"\\f2de"}.fa-meetup:before{content:"\\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}\n',""]),t.Z=m},6127:function(e,t,n){"use strict";var o=n(8081),i=n.n(o),a=n(3645),r=n.n(a),f=n(1667),s=n.n(f),l=new URL(n(6527),n.b),c=r()(i()),u=s()(l);c.push([e.id,"/*!\n * Viewer.js v1.11.6\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2023-09-17T03:16:35.830Z\n */\n\n.viewer-zoom-in::before, .viewer-zoom-out::before, .viewer-one-to-one::before, .viewer-reset::before, .viewer-prev::before, .viewer-play::before, .viewer-next::before, .viewer-rotate-left::before, .viewer-rotate-right::before, .viewer-flip-horizontal::before, .viewer-flip-vertical::before, .viewer-fullscreen::before, .viewer-fullscreen-exit::before, .viewer-close::before {\n background-image: url("+u+");\n background-repeat: no-repeat;\n background-size: 280px;\n color: transparent;\n display: block;\n font-size: 0;\n height: 20px;\n line-height: 0;\n width: 20px;\n }\n\n.viewer-zoom-in::before {\n background-position: 0 0;\n content: 'Zoom In';\n}\n\n.viewer-zoom-out::before {\n background-position: -20px 0;\n content: 'Zoom Out';\n}\n\n.viewer-one-to-one::before {\n background-position: -40px 0;\n content: 'One to One';\n}\n\n.viewer-reset::before {\n background-position: -60px 0;\n content: 'Reset';\n}\n\n.viewer-prev::before {\n background-position: -80px 0;\n content: 'Previous';\n}\n\n.viewer-play::before {\n background-position: -100px 0;\n content: 'Play';\n}\n\n.viewer-next::before {\n background-position: -120px 0;\n content: 'Next';\n}\n\n.viewer-rotate-left::before {\n background-position: -140px 0;\n content: 'Rotate Left';\n}\n\n.viewer-rotate-right::before {\n background-position: -160px 0;\n content: 'Rotate Right';\n}\n\n.viewer-flip-horizontal::before {\n background-position: -180px 0;\n content: 'Flip Horizontal';\n}\n\n.viewer-flip-vertical::before {\n background-position: -200px 0;\n content: 'Flip Vertical';\n}\n\n.viewer-fullscreen::before {\n background-position: -220px 0;\n content: 'Enter Full Screen';\n}\n\n.viewer-fullscreen-exit::before {\n background-position: -240px 0;\n content: 'Exit Full Screen';\n}\n\n.viewer-close::before {\n background-position: -260px 0;\n content: 'Close';\n}\n\n.viewer-container {\n bottom: 0;\n direction: ltr;\n font-size: 0;\n left: 0;\n line-height: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n -webkit-tap-highlight-color: transparent;\n top: 0;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.viewer-container::-moz-selection, .viewer-container *::-moz-selection {\n background-color: transparent;\n }\n\n.viewer-container::selection,\n .viewer-container *::selection {\n background-color: transparent;\n }\n\n.viewer-container:focus {\n outline: 0;\n }\n\n.viewer-container img {\n display: block;\n height: auto;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n }\n\n.viewer-canvas {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.viewer-canvas > img {\n height: auto;\n margin: 15px auto;\n max-width: 90% !important;\n width: auto;\n }\n\n.viewer-footer {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n text-align: center;\n}\n\n.viewer-navbar {\n background-color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.viewer-list {\n box-sizing: content-box;\n height: 50px;\n margin: 0;\n overflow: hidden;\n padding: 1px 0;\n}\n\n.viewer-list > li {\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n height: 50px;\n line-height: 0;\n opacity: 0.5;\n overflow: hidden;\n transition: opacity 0.15s;\n width: 30px;\n }\n\n.viewer-list > li:focus,\n .viewer-list > li:hover {\n opacity: 0.75;\n }\n\n.viewer-list > li:focus {\n outline: 0;\n }\n\n.viewer-list > li + li {\n margin-left: 1px;\n }\n\n.viewer-list > .viewer-loading {\n position: relative;\n }\n\n.viewer-list > .viewer-loading::after {\n border-width: 2px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n width: 20px;\n }\n\n.viewer-list > .viewer-active,\n .viewer-list > .viewer-active:focus,\n .viewer-list > .viewer-active:hover {\n opacity: 1;\n }\n\n.viewer-player {\n background-color: #000;\n bottom: 0;\n cursor: none;\n display: none;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n\n.viewer-player > img {\n left: 0;\n position: absolute;\n top: 0;\n }\n\n.viewer-toolbar > ul {\n display: inline-block;\n margin: 0 auto 5px;\n overflow: hidden;\n padding: 6px 3px;\n }\n\n.viewer-toolbar > ul > li {\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 24px;\n overflow: hidden;\n transition: background-color 0.15s;\n width: 24px;\n }\n\n.viewer-toolbar > ul > li:focus,\n .viewer-toolbar > ul > li:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-toolbar > ul > li:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n position: relative;\n z-index: 1;\n }\n\n.viewer-toolbar > ul > li::before {\n margin: 2px;\n }\n\n.viewer-toolbar > ul > li + li {\n margin-left: 1px;\n }\n\n.viewer-toolbar > ul > .viewer-small {\n height: 18px;\n margin-bottom: 3px;\n margin-top: 3px;\n width: 18px;\n }\n\n.viewer-toolbar > ul > .viewer-small::before {\n margin: -1px;\n }\n\n.viewer-toolbar > ul > .viewer-large {\n height: 30px;\n margin-bottom: -3px;\n margin-top: -3px;\n width: 30px;\n }\n\n.viewer-toolbar > ul > .viewer-large::before {\n margin: 5px;\n }\n\n.viewer-tooltip {\n background-color: rgba(0, 0, 0, 0.8);\n border-radius: 10px;\n color: #fff;\n display: none;\n font-size: 12px;\n height: 20px;\n left: 50%;\n line-height: 20px;\n margin-left: -25px;\n margin-top: -10px;\n position: absolute;\n text-align: center;\n top: 50%;\n width: 50px;\n}\n\n.viewer-title {\n color: #ccc;\n display: inline-block;\n font-size: 12px;\n line-height: 1.2;\n margin: 5px 5%;\n max-width: 90%;\n min-height: 14px;\n opacity: 0.8;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: opacity 0.15s;\n white-space: nowrap;\n}\n\n.viewer-title:hover {\n opacity: 1;\n }\n\n.viewer-button {\n -webkit-app-region: no-drag;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n height: 80px;\n overflow: hidden;\n position: absolute;\n right: -40px;\n top: -40px;\n transition: background-color 0.15s;\n width: 80px;\n}\n\n.viewer-button:focus,\n .viewer-button:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-button:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n }\n\n.viewer-button::before {\n bottom: 15px;\n left: 15px;\n position: absolute;\n }\n\n.viewer-fixed {\n position: fixed;\n}\n\n.viewer-open {\n overflow: hidden;\n}\n\n.viewer-show {\n display: block;\n}\n\n.viewer-hide {\n display: none;\n}\n\n.viewer-backdrop {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.viewer-invisible {\n visibility: hidden;\n}\n\n.viewer-move {\n cursor: move;\n cursor: grab;\n}\n\n.viewer-fade {\n opacity: 0;\n}\n\n.viewer-in {\n opacity: 1;\n}\n\n.viewer-transition {\n transition: all 0.3s;\n}\n\n@keyframes viewer-spinner {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.viewer-loading::after {\n animation: viewer-spinner 1s linear infinite;\n border: 4px solid rgba(255, 255, 255, 0.1);\n border-left-color: rgba(255, 255, 255, 0.5);\n border-radius: 50%;\n content: '';\n display: inline-block;\n height: 40px;\n left: 50%;\n margin-left: -20px;\n margin-top: -20px;\n position: absolute;\n top: 50%;\n width: 40px;\n z-index: 1;\n }\n\n@media (max-width: 767px) {\n .viewer-hide-xs-down {\n display: none;\n }\n}\n\n@media (max-width: 991px) {\n .viewer-hide-sm-down {\n display: none;\n }\n}\n\n@media (max-width: 1199px) {\n .viewer-hide-md-down {\n display: none;\n }\n}\n",""]),t.Z=c},3864:function(e,t,n){"use strict";var o=n(8081),i=n.n(o),a=n(3645),r=n.n(a),f=n(8534),s=r()(i());s.i(f.Z),s.push([e.id,"\n",""]),t.Z=s},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(o)for(var f=0;f<this.length;f++){var s=this[f][0];null!=s&&(r[s]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);o&&r[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},1667:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},2918:function(e,t){var o;(function(){var i=!1,a=function(e){return e instanceof a?e:this instanceof a?void(this.EXIFwrapped=e):new a(e)};e.exports&&(t=e.exports=a),t.EXIF=a;var r=a.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"},f=a.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"},s=a.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"},l=a.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"},c=a.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 u(e){return!!e.exifdata}function d(e,t){function n(n){var o=h(n);e.exifdata=o||{};var r=function(e){var t=new DataView(e);if(i&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return i&&console.log("Not a valid JPEG"),!1;for(var n=2,o=e.byteLength,a=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<o;){if(a(t,n)){var r=t.getUint8(n+7);return r%2!=0&&(r+=1),0===r&&(r=4),m(e,n+8+r,t.getUint16(n+6+r))}n++}}(n);if(e.iptcdata=r||{},a.isXmpEnabled){var f=function(e){if("DOMParser"in self){var t=new DataView(e);if(i&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return i&&console.log("Not a valid JPEG"),!1;for(var n=2,o=e.byteLength,a=new DOMParser;n<o-4;){if("http"==v(t,n,4)){var r=n-1,f=t.getUint16(n-2)-1,s=v(t,r,f),l=s.indexOf("xmpmeta>")+8,c=(s=s.substring(s.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return s=s.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(c),S(a.parseFromString(s,"text/xml"))}n++}}}(n);e.xmpdata=f||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),o=n.length,i=new ArrayBuffer(o),a=new Uint8Array(i),r=0;r<o;r++)a[r]=n.charCodeAt(r);return i}(e.src));else if(/^blob\:/i.test(e.src))(r=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){var t;200!=this.status&&0!==this.status||(t=this.response,r.readAsArrayBuffer(t))},n.send()}(e.src);else{var o=new XMLHttpRequest;o.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(o.response),o=null},o.open("GET",e.src,!0),o.responseType="arraybuffer",o.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var r;(r=new FileReader).onload=function(e){i&&console.log("Got file of length "+e.target.result.byteLength),n(e.target.result)},r.readAsArrayBuffer(e)}}function h(e){var t=new DataView(e);if(i&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return i&&console.log("Not a valid JPEG"),!1;for(var n,o=2,a=e.byteLength;o<a;){if(255!=t.getUint8(o))return i&&console.log("Not a valid marker at offset "+o+", found: "+t.getUint8(o)),!1;if(n=t.getUint8(o+1),i&&console.log(n),225==n)return i&&console.log("Found 0xFFE1 marker"),y(t,o+4,t.getUint16(o+2));o+=2+t.getUint16(o+2)}}var p={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function m(e,t,n){for(var o,i,a,r,f=new DataView(e),s={},l=t;l<t+n;)28===f.getUint8(l)&&2===f.getUint8(l+1)&&(r=f.getUint8(l+2))in p&&(a=f.getInt16(l+3),i=p[r],o=v(f,l+5,a),s.hasOwnProperty(i)?s[i]instanceof Array?s[i].push(o):s[i]=[s[i],o]:s[i]=o),l++;return s}function b(e,t,n,o,a){var r,f,s,l=e.getUint16(n,!a),c={};for(s=0;s<l;s++)r=n+12*s+2,!(f=o[e.getUint16(r,!a)])&&i&&console.log("Unknown tag: "+e.getUint16(r,!a)),c[f]=g(e,r,t,0,a);return c}function g(e,t,n,o,i){var a,r,f,s,l,c,u=e.getUint16(t+2,!i),d=e.getUint32(t+4,!i),h=e.getUint32(t+8,!i)+n;switch(u){case 1:case 7:if(1==d)return e.getUint8(t+8,!i);for(a=d>4?h:t+8,r=[],s=0;s<d;s++)r[s]=e.getUint8(a+s);return r;case 2:return v(e,a=d>4?h:t+8,d-1);case 3:if(1==d)return e.getUint16(t+8,!i);for(a=d>2?h:t+8,r=[],s=0;s<d;s++)r[s]=e.getUint16(a+2*s,!i);return r;case 4:if(1==d)return e.getUint32(t+8,!i);for(r=[],s=0;s<d;s++)r[s]=e.getUint32(h+4*s,!i);return r;case 5:if(1==d)return l=e.getUint32(h,!i),c=e.getUint32(h+4,!i),(f=new Number(l/c)).numerator=l,f.denominator=c,f;for(r=[],s=0;s<d;s++)l=e.getUint32(h+8*s,!i),c=e.getUint32(h+4+8*s,!i),r[s]=new Number(l/c),r[s].numerator=l,r[s].denominator=c;return r;case 9:if(1==d)return e.getInt32(t+8,!i);for(r=[],s=0;s<d;s++)r[s]=e.getInt32(h+4*s,!i);return r;case 10:if(1==d)return e.getInt32(h,!i)/e.getInt32(h+4,!i);for(r=[],s=0;s<d;s++)r[s]=e.getInt32(h+8*s,!i)/e.getInt32(h+4+8*s,!i);return r}}function v(e,t,o){var i="";for(n=t;n<t+o;n++)i+=String.fromCharCode(e.getUint8(n));return i}function y(e,t){if("Exif"!=v(e,t,4))return i&&console.log("Not valid EXIF data! "+v(e,t,4)),!1;var n,o,a,u,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return i&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;n=!0}if(42!=e.getUint16(h+2,!n))return i&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var p=e.getUint32(h+4,!n);if(p<8)return i&&console.log("Not valid TIFF data! (First offset less than 8)",e.getUint32(h+4,!n)),!1;if((o=b(e,h,h+p,f,n)).ExifIFDPointer)for(a in u=b(e,h,h+o.ExifIFDPointer,r,n)){switch(a){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":u[a]=c[a][u[a]];break;case"ExifVersion":case"FlashpixVersion":u[a]=String.fromCharCode(u[a][0],u[a][1],u[a][2],u[a][3]);break;case"ComponentsConfiguration":u[a]=c.Components[u[a][0]]+c.Components[u[a][1]]+c.Components[u[a][2]]+c.Components[u[a][3]]}o[a]=u[a]}if(o.GPSInfoIFDPointer)for(a in d=b(e,h,h+o.GPSInfoIFDPointer,s,n))"GPSVersionID"===a&&(d[a]=d[a][0]+"."+d[a][1]+"."+d[a][2]+"."+d[a][3]),o[a]=d[a];return o.thumbnail=function(e,t,n,o){var i=function(e,t,n){var o=e.getUint16(t,!n);return e.getUint32(t+2+12*o,!n)}(e,t+n,o);if(!i)return{};if(i>e.byteLength)return{};var a=b(e,t,t+i,l,o);if(a.Compression)switch(a.Compression){case 6:if(a.JpegIFOffset&&a.JpegIFByteCount){var r=t+a.JpegIFOffset,f=a.JpegIFByteCount;a.blob=new Blob([new Uint8Array(e.buffer,r,f)],{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'",a.Compression)}else 2==a.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return a}(e,h,p,n),o}function w(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var o=e.attributes.item(n);t["@attributes"][o.nodeName]=o.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var i=0;i<e.childNodes.length;i++){var a=e.childNodes.item(i),r=a.nodeName;if(null==t[r])t[r]=w(a);else{if(null==t[r].push){var f=t[r];t[r]=[],t[r].push(f)}t[r].push(w(a))}}return t}function S(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var o=e.children.item(n),i=o.attributes;for(var a in i){var r=i[a],f=r.nodeName,s=r.nodeValue;void 0!==f&&(t[f]=s)}var l=o.nodeName;if(void 0===t[l])t[l]=w(o);else{if(void 0===t[l].push){var c=t[l];t[l]=[],t[l].push(c)}t[l].push(w(o))}}else t=e.textContent;return t}catch(e){console.log(e.message)}}a.enableXmp=function(){a.isXmpEnabled=!0},a.disableXmp=function(){a.isXmpEnabled=!1},a.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(u(e)?t&&t.call(e):d(e,t),0))},a.getTag=function(e,t){if(u(e))return e.exifdata[t]},a.getIptcTag=function(e,t){if(u(e))return e.iptcdata[t]},a.getAllTags=function(e){if(!u(e))return{};var t,n=e.exifdata,o={};for(t in n)n.hasOwnProperty(t)&&(o[t]=n[t]);return o},a.getAllIptcTags=function(e){if(!u(e))return{};var t,n=e.iptcdata,o={};for(t in n)n.hasOwnProperty(t)&&(o[t]=n[t]);return o},a.pretty=function(e){if(!u(e))return"";var t,n=e.exifdata,o="";for(t in n)n.hasOwnProperty(t)&&("object"==typeof n[t]?n[t]instanceof Number?o+=t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":o+=t+" : ["+n[t].length+" values]\r\n":o+=t+" : "+n[t]+"\r\n");return o},a.readFromBinaryFile=function(e){return h(e)},void 0===(o=function(){return a}.apply(t,[]))||(e.exports=o)}).call(this)},8:function(e,t){!function(){"use strict";var n={};function o(e){return u(">"+h("B",e.length),e)}function i(e){return u(">"+h("H",e.length),e)}function a(e){return u(">"+h("L",e.length),e)}function r(e,t,n){var r,f,s,l,c="",d="";if("Byte"==t)(r=e.length)<=4?d=o(e)+h("\0",4-r):(d=u(">L",[n]),c=o(e));else if("Short"==t)(r=e.length)<=2?d=i(e)+h("\0\0",2-r):(d=u(">L",[n]),c=i(e));else if("Long"==t)(r=e.length)<=1?d=a(e):(d=u(">L",[n]),c=a(e));else if("Ascii"==t)(r=(f=e+"\0").length)>4?(d=u(">L",[n]),c=f):d=f+h("\0",4-r);else if("Rational"==t){if("number"==typeof e[0])r=1,s=e[0],l=e[1],f=u(">L",[s])+u(">L",[l]);else{r=e.length,f="";for(var p=0;p<r;p++)s=e[p][0],l=e[p][1],f+=u(">L",[s])+u(">L",[l])}d=u(">L",[n]),c=f}else if("SRational"==t){if("number"==typeof e[0])r=1,s=e[0],l=e[1],f=u(">l",[s])+u(">l",[l]);else for(r=e.length,f="",p=0;p<r;p++)s=e[p][0],l=e[p][1],f+=u(">l",[s])+u(">l",[l]);d=u(">L",[n]),c=f}else"Undefined"==t&&((r=e.length)>4?(d=u(">L",[n]),c=e):d=e+h("\0",4-r));return[u(">L",[r]),d,c]}function f(e,t,n){var o,i=Object.keys(e).length,a=u(">H",[i]);o=["0th","1st"].indexOf(t)>-1?2+12*i+4:2+12*i;var f="",s="";for(var l in e)if("string"==typeof l&&(l=parseInt(l)),!("0th"==t&&[34665,34853].indexOf(l)>-1||"Exif"==t&&40965==l||"1st"==t&&[513,514].indexOf(l)>-1)){var c=e[l],d=u(">H",[l]),h=b[t][l].type,p=u(">H",[m[h]]);"number"==typeof c&&(c=[c]);var g=r(c,h,8+o+n+s.length);f+=d+p+g[0]+g[1],s+=g[2]}return[a+f,s]}function s(e){var t;if("ÿØ"==e.slice(0,2))t=function(e){for(var t,n=0;n<e.length;n++)if("ÿá"==(t=e[n]).slice(0,2)&&"Exif\0\0"==t.slice(4,10))return t;return null}(p(e)),this.tiftag=t?t.slice(10):null;else if(["II","MM"].indexOf(e.slice(0,2))>-1)this.tiftag=e;else{if("Exif"!=e.slice(0,4))throw new Error("Given file is neither JPEG nor TIFF.");this.tiftag=e.slice(6)}}if(n.version="1.0.4",n.remove=function(e){var t=!1;if("ÿØ"==e.slice(0,2));else{if("data:image/jpeg;base64,"!=e.slice(0,23)&&"data:image/jpg;base64,"!=e.slice(0,22))throw new Error("Given data is not jpeg.");e=c(e.split(",")[1]),t=!0}var n=p(e).filter((function(e){return!("ÿá"==e.slice(0,2)&&"Exif\0\0"==e.slice(4,10))})).join("");return t&&(n="data:image/jpeg;base64,"+l(n)),n},n.insert=function(e,t){var n=!1;if("Exif\0\0"!=e.slice(0,6))throw new Error("Given data is not exif.");if("ÿØ"==t.slice(0,2));else{if("data:image/jpeg;base64,"!=t.slice(0,23)&&"data:image/jpg;base64,"!=t.slice(0,22))throw new Error("Given data is not jpeg.");t=c(t.split(",")[1]),n=!0}var o="ÿá"+u(">H",[e.length+2])+e,i=function(e,t){var n=!1,o=[];return e.forEach((function(i,a){"ÿá"==i.slice(0,2)&&"Exif\0\0"==i.slice(4,10)&&(n?o.unshift(a):(e[a]=t,n=!0))})),o.forEach((function(t){e.splice(t,1)})),!n&&t&&(e=[e[0],t].concat(e.slice(1))),e.join("")}(p(t),o);return n&&(i="data:image/jpeg;base64,"+l(i)),i},n.load=function(e){var t;if("string"!=typeof e)throw new Error("'load' gots invalid type argument.");if("ÿØ"==e.slice(0,2))t=e;else if("data:image/jpeg;base64,"==e.slice(0,23)||"data:image/jpg;base64,"==e.slice(0,22))t=c(e.split(",")[1]);else{if("Exif"!=e.slice(0,4))throw new Error("'load' gots invalid file data.");t=e.slice(6)}var n={"0th":{},Exif:{},GPS:{},Interop:{},"1st":{},thumbnail:null},o=new s(t);if(null===o.tiftag)return n;"II"==o.tiftag.slice(0,2)?o.endian_mark="<":o.endian_mark=">";var i=d(o.endian_mark+"L",o.tiftag.slice(4,8))[0];n["0th"]=o.get_ifd(i,"0th");var a=n["0th"].first_ifd_pointer;if(delete n["0th"].first_ifd_pointer,34665 in n["0th"]&&(i=n["0th"][34665],n.Exif=o.get_ifd(i,"Exif")),34853 in n["0th"]&&(i=n["0th"][34853],n.GPS=o.get_ifd(i,"GPS")),40965 in n.Exif&&(i=n.Exif[40965],n.Interop=o.get_ifd(i,"Interop")),"\0\0\0\0"!=a&&(i=d(o.endian_mark+"L",a)[0],n["1st"]=o.get_ifd(i,"1st"),513 in n["1st"]&&514 in n["1st"])){var r=n["1st"][513]+n["1st"][514],f=o.tiftag.slice(n["1st"][513],r);n.thumbnail=f}return n},n.dump=function(e){var t,o,i,a,r,s,l=(t=e,JSON.parse(JSON.stringify(t))),c=!1,d=!1,h=!1,b=!1;o="0th"in l?l["0th"]:{},"Exif"in l&&Object.keys(l.Exif).length||"Interop"in l&&Object.keys(l.Interop).length?(o[34665]=1,c=!0,i=l.Exif,"Interop"in l&&Object.keys(l.Interop).length?(i[40965]=1,h=!0,a=l.Interop):Object.keys(i).indexOf(n.ExifIFD.InteroperabilityTag.toString())>-1&&delete i[40965]):Object.keys(o).indexOf(n.ImageIFD.ExifTag.toString())>-1&&delete o[34665],"GPS"in l&&Object.keys(l.GPS).length?(o[n.ImageIFD.GPSTag]=1,d=!0,r=l.GPS):Object.keys(o).indexOf(n.ImageIFD.GPSTag.toString())>-1&&delete o[n.ImageIFD.GPSTag],"1st"in l&&"thumbnail"in l&&null!=l.thumbnail&&(b=!0,l["1st"][513]=1,l["1st"][514]=1,s=l["1st"]);var g,v,y,w=f(o,"0th",0),S=w[0].length+12*c+12*d+4+w[1].length,x="",C=0,P="",k=0,D="",I=0,A="";if(c&&(C=(g=f(i,"Exif",S))[0].length+12*h+g[1].length),d&&(k=(P=f(r,"GPS",S+C).join("")).length),h&&(I=(D=f(a,"Interop",S+C+k).join("")).length),b&&(v=f(s,"1st",S+C+k+I),(y=function(e){for(var t=p(e);"ÿà"<=t[1].slice(0,2)&&t[1].slice(0,2)<="ÿï";)t=[t[0]].concat(t.slice(2));return t.join("")}(l.thumbnail)).length>64e3))throw new Error("Given thumbnail is too large. max 64kB");var L="",R="",F="",T="\0\0\0\0";if(c){var E=u(">L",[_=8+S]);L=u(">H",[34665])+u(">H",[m.Long])+u(">L",[1])+E}if(d&&(E=u(">L",[_=8+S+C]),R=u(">H",[34853])+u(">H",[m.Long])+u(">L",[1])+E),h&&(E=u(">L",[_=8+S+C+k]),F=u(">H",[40965])+u(">H",[m.Long])+u(">L",[1])+E),b){var _;T=u(">L",[_=8+S+C+k+I]);var M="\0\0\0\0"+u(">L",[_+v[0].length+24+4+v[1].length]),O="\0\0\0\0"+u(">L",[y.length]);A=v[0]+M+O+"\0\0\0\0"+v[1]+y}var G=w[0]+L+R+T+w[1];return c&&(x=g[0]+F+g[1]),"Exif\0\0MM\0*\0\0\0\b"+G+x+P+D+A},s.prototype={get_ifd:function(e,t){var n,o={},i=d(this.endian_mark+"H",this.tiftag.slice(e,e+2))[0],a=e+2;n=["0th","1st"].indexOf(t)>-1?"Image":t;for(var r=0;r<i;r++){e=a+12*r;var f=d(this.endian_mark+"H",this.tiftag.slice(e,e+2))[0],s=[d(this.endian_mark+"H",this.tiftag.slice(e+2,e+4))[0],d(this.endian_mark+"L",this.tiftag.slice(e+4,e+8))[0],this.tiftag.slice(e+8,e+12)];f in b[n]&&(o[f]=this.convert_value(s))}return"0th"==t&&(e=a+12*i,o.first_ifd_pointer=this.tiftag.slice(e,e+4)),o},convert_value:function(e){var t,n=null,o=e[0],i=e[1],a=e[2];if(1==o)i>4?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("B",i),this.tiftag.slice(t,t+i))):n=d(this.endian_mark+h("B",i),a.slice(0,i));else if(2==o)i>4?(t=d(this.endian_mark+"L",a)[0],n=this.tiftag.slice(t,t+i-1)):n=a.slice(0,i-1);else if(3==o)i>2?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("H",i),this.tiftag.slice(t,t+2*i))):n=d(this.endian_mark+h("H",i),a.slice(0,2*i));else if(4==o)i>1?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("L",i),this.tiftag.slice(t,t+4*i))):n=d(this.endian_mark+h("L",i),a);else if(5==o)if(t=d(this.endian_mark+"L",a)[0],i>1){n=[];for(var r=0;r<i;r++)n.push([d(this.endian_mark+"L",this.tiftag.slice(t+8*r,t+4+8*r))[0],d(this.endian_mark+"L",this.tiftag.slice(t+4+8*r,t+8+8*r))[0]])}else n=[d(this.endian_mark+"L",this.tiftag.slice(t,t+4))[0],d(this.endian_mark+"L",this.tiftag.slice(t+4,t+8))[0]];else if(7==o)i>4?(t=d(this.endian_mark+"L",a)[0],n=this.tiftag.slice(t,t+i)):n=a.slice(0,i);else if(9==o)i>1?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("l",i),this.tiftag.slice(t,t+4*i))):n=d(this.endian_mark+h("l",i),a);else{if(10!=o)throw new Error("Exif might be wrong. Got incorrect value type to decode. type:"+o);if(t=d(this.endian_mark+"L",a)[0],i>1)for(n=[],r=0;r<i;r++)n.push([d(this.endian_mark+"l",this.tiftag.slice(t+8*r,t+4+8*r))[0],d(this.endian_mark+"l",this.tiftag.slice(t+4+8*r,t+8+8*r))[0]]);else n=[d(this.endian_mark+"l",this.tiftag.slice(t,t+4))[0],d(this.endian_mark+"l",this.tiftag.slice(t+4,t+8))[0]]}return n instanceof Array&&1==n.length?n[0]:n}},"undefined"!=typeof window&&"function"==typeof window.btoa)var l=window.btoa;if(void 0===l&&(l=function(e){for(var t,n,o,i,a,r,f,s="",l=0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";l<e.length;)i=(t=e.charCodeAt(l++))>>2,a=(3&t)<<4|(n=e.charCodeAt(l++))>>4,r=(15&n)<<2|(o=e.charCodeAt(l++))>>6,f=63&o,isNaN(n)?r=f=64:isNaN(o)&&(f=64),s=s+c.charAt(i)+c.charAt(a)+c.charAt(r)+c.charAt(f);return s}),"undefined"!=typeof window&&"function"==typeof window.atob)var c=window.atob;function u(e,t){if(!(t instanceof Array))throw new Error("'pack' error. Got invalid type argument.");if(e.length-1!=t.length)throw new Error("'pack' error. "+(e.length-1)+" marks, "+t.length+" elements.");var n;if("<"==e[0])n=!0;else{if(">"!=e[0])throw new Error("");n=!1}for(var o="",i=1,a=null,r=null,f=null;r=e[i];){if("b"==r.toLowerCase()){if(a=t[i-1],"b"==r&&a<0&&(a+=256),a>255||a<0)throw new Error("'pack' error.");f=String.fromCharCode(a)}else if("H"==r){if((a=t[i-1])>65535||a<0)throw new Error("'pack' error.");f=String.fromCharCode(Math.floor(a%65536/256))+String.fromCharCode(a%256),n&&(f=f.split("").reverse().join(""))}else{if("l"!=r.toLowerCase())throw new Error("'pack' error.");if(a=t[i-1],"l"==r&&a<0&&(a+=4294967296),a>4294967295||a<0)throw new Error("'pack' error.");f=String.fromCharCode(Math.floor(a/16777216))+String.fromCharCode(Math.floor(a%16777216/65536))+String.fromCharCode(Math.floor(a%65536/256))+String.fromCharCode(a%256),n&&(f=f.split("").reverse().join(""))}o+=f,i+=1}return o}function d(e,t){if("string"!=typeof t)throw new Error("'unpack' error. Got invalid type argument.");for(var n,o=0,i=1;i<e.length;i++)if("b"==e[i].toLowerCase())o+=1;else if("h"==e[i].toLowerCase())o+=2;else{if("l"!=e[i].toLowerCase())throw new Error("'unpack' error. Got invalid mark.");o+=4}if(o!=t.length)throw new Error("'unpack' error. Mismatch between symbol and string length. "+o+":"+t.length);if("<"==e[0])n=!0;else{if(">"!=e[0])throw new Error("'unpack' error.");n=!1}for(var a=[],r=0,f=1,s=null,l=null,c=null,u="";l=e[f];){if("b"==l.toLowerCase())c=1,s=(u=t.slice(r,r+c)).charCodeAt(0),"b"==l&&s>=128&&(s-=256);else if("H"==l)c=2,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),s=256*u.charCodeAt(0)+u.charCodeAt(1);else{if("l"!=l.toLowerCase())throw new Error("'unpack' error. "+l);c=4,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),s=16777216*u.charCodeAt(0)+65536*u.charCodeAt(1)+256*u.charCodeAt(2)+u.charCodeAt(3),"l"==l&&s>=2147483648&&(s-=4294967296)}a.push(s),r+=c,f+=1}return a}function h(e,t){for(var n="",o=0;o<t;o++)n+=e;return n}function p(e){if("ÿØ"!=e.slice(0,2))throw new Error("Given data isn't JPEG.");for(var t=2,n=["ÿØ"];;){if("ÿÚ"==e.slice(t,t+2)){n.push(e.slice(t));break}var o=t+d(">H",e.slice(t+2,t+4))[0]+2;if(n.push(e.slice(t,o)),(t=o)>=e.length)throw new Error("Wrong JPEG data.")}return n}void 0===c&&(c=function(e){var t,n,o,i,a,r,f="",s=0,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");s<e.length;)t=l.indexOf(e.charAt(s++))<<2|(i=l.indexOf(e.charAt(s++)))>>4,n=(15&i)<<4|(a=l.indexOf(e.charAt(s++)))>>2,o=(3&a)<<6|(r=l.indexOf(e.charAt(s++))),f+=String.fromCharCode(t),64!=a&&(f+=String.fromCharCode(n)),64!=r&&(f+=String.fromCharCode(o));return f});var m={Byte:1,Ascii:2,Short:3,Long:4,Rational:5,Undefined:7,SLong:9,SRational:10},b={Image:{11:{name:"ProcessingSoftware",type:"Ascii"},254:{name:"NewSubfileType",type:"Long"},255:{name:"SubfileType",type:"Short"},256:{name:"ImageWidth",type:"Long"},257:{name:"ImageLength",type:"Long"},258:{name:"BitsPerSample",type:"Short"},259:{name:"Compression",type:"Short"},262:{name:"PhotometricInterpretation",type:"Short"},263:{name:"Threshholding",type:"Short"},264:{name:"CellWidth",type:"Short"},265:{name:"CellLength",type:"Short"},266:{name:"FillOrder",type:"Short"},269:{name:"DocumentName",type:"Ascii"},270:{name:"ImageDescription",type:"Ascii"},271:{name:"Make",type:"Ascii"},272:{name:"Model",type:"Ascii"},273:{name:"StripOffsets",type:"Long"},274:{name:"Orientation",type:"Short"},277:{name:"SamplesPerPixel",type:"Short"},278:{name:"RowsPerStrip",type:"Long"},279:{name:"StripByteCounts",type:"Long"},282:{name:"XResolution",type:"Rational"},283:{name:"YResolution",type:"Rational"},284:{name:"PlanarConfiguration",type:"Short"},290:{name:"GrayResponseUnit",type:"Short"},291:{name:"GrayResponseCurve",type:"Short"},292:{name:"T4Options",type:"Long"},293:{name:"T6Options",type:"Long"},296:{name:"ResolutionUnit",type:"Short"},301:{name:"TransferFunction",type:"Short"},305:{name:"Software",type:"Ascii"},306:{name:"DateTime",type:"Ascii"},315:{name:"Artist",type:"Ascii"},316:{name:"HostComputer",type:"Ascii"},317:{name:"Predictor",type:"Short"},318:{name:"WhitePoint",type:"Rational"},319:{name:"PrimaryChromaticities",type:"Rational"},320:{name:"ColorMap",type:"Short"},321:{name:"HalftoneHints",type:"Short"},322:{name:"TileWidth",type:"Short"},323:{name:"TileLength",type:"Short"},324:{name:"TileOffsets",type:"Short"},325:{name:"TileByteCounts",type:"Short"},330:{name:"SubIFDs",type:"Long"},332:{name:"InkSet",type:"Short"},333:{name:"InkNames",type:"Ascii"},334:{name:"NumberOfInks",type:"Short"},336:{name:"DotRange",type:"Byte"},337:{name:"TargetPrinter",type:"Ascii"},338:{name:"ExtraSamples",type:"Short"},339:{name:"SampleFormat",type:"Short"},340:{name:"SMinSampleValue",type:"Short"},341:{name:"SMaxSampleValue",type:"Short"},342:{name:"TransferRange",type:"Short"},343:{name:"ClipPath",type:"Byte"},344:{name:"XClipPathUnits",type:"Long"},345:{name:"YClipPathUnits",type:"Long"},346:{name:"Indexed",type:"Short"},347:{name:"JPEGTables",type:"Undefined"},351:{name:"OPIProxy",type:"Short"},512:{name:"JPEGProc",type:"Long"},513:{name:"JPEGInterchangeFormat",type:"Long"},514:{name:"JPEGInterchangeFormatLength",type:"Long"},515:{name:"JPEGRestartInterval",type:"Short"},517:{name:"JPEGLosslessPredictors",type:"Short"},518:{name:"JPEGPointTransforms",type:"Short"},519:{name:"JPEGQTables",type:"Long"},520:{name:"JPEGDCTables",type:"Long"},521:{name:"JPEGACTables",type:"Long"},529:{name:"YCbCrCoefficients",type:"Rational"},530:{name:"YCbCrSubSampling",type:"Short"},531:{name:"YCbCrPositioning",type:"Short"},532:{name:"ReferenceBlackWhite",type:"Rational"},700:{name:"XMLPacket",type:"Byte"},18246:{name:"Rating",type:"Short"},18249:{name:"RatingPercent",type:"Short"},32781:{name:"ImageID",type:"Ascii"},33421:{name:"CFARepeatPatternDim",type:"Short"},33422:{name:"CFAPattern",type:"Byte"},33423:{name:"BatteryLevel",type:"Rational"},33432:{name:"Copyright",type:"Ascii"},33434:{name:"ExposureTime",type:"Rational"},34377:{name:"ImageResources",type:"Byte"},34665:{name:"ExifTag",type:"Long"},34675:{name:"InterColorProfile",type:"Undefined"},34853:{name:"GPSTag",type:"Long"},34857:{name:"Interlace",type:"Short"},34858:{name:"TimeZoneOffset",type:"Long"},34859:{name:"SelfTimerMode",type:"Short"},37387:{name:"FlashEnergy",type:"Rational"},37388:{name:"SpatialFrequencyResponse",type:"Undefined"},37389:{name:"Noise",type:"Undefined"},37390:{name:"FocalPlaneXResolution",type:"Rational"},37391:{name:"FocalPlaneYResolution",type:"Rational"},37392:{name:"FocalPlaneResolutionUnit",type:"Short"},37393:{name:"ImageNumber",type:"Long"},37394:{name:"SecurityClassification",type:"Ascii"},37395:{name:"ImageHistory",type:"Ascii"},37397:{name:"ExposureIndex",type:"Rational"},37398:{name:"TIFFEPStandardID",type:"Byte"},37399:{name:"SensingMethod",type:"Short"},40091:{name:"XPTitle",type:"Byte"},40092:{name:"XPComment",type:"Byte"},40093:{name:"XPAuthor",type:"Byte"},40094:{name:"XPKeywords",type:"Byte"},40095:{name:"XPSubject",type:"Byte"},50341:{name:"PrintImageMatching",type:"Undefined"},50706:{name:"DNGVersion",type:"Byte"},50707:{name:"DNGBackwardVersion",type:"Byte"},50708:{name:"UniqueCameraModel",type:"Ascii"},50709:{name:"LocalizedCameraModel",type:"Byte"},50710:{name:"CFAPlaneColor",type:"Byte"},50711:{name:"CFALayout",type:"Short"},50712:{name:"LinearizationTable",type:"Short"},50713:{name:"BlackLevelRepeatDim",type:"Short"},50714:{name:"BlackLevel",type:"Rational"},50715:{name:"BlackLevelDeltaH",type:"SRational"},50716:{name:"BlackLevelDeltaV",type:"SRational"},50717:{name:"WhiteLevel",type:"Short"},50718:{name:"DefaultScale",type:"Rational"},50719:{name:"DefaultCropOrigin",type:"Short"},50720:{name:"DefaultCropSize",type:"Short"},50721:{name:"ColorMatrix1",type:"SRational"},50722:{name:"ColorMatrix2",type:"SRational"},50723:{name:"CameraCalibration1",type:"SRational"},50724:{name:"CameraCalibration2",type:"SRational"},50725:{name:"ReductionMatrix1",type:"SRational"},50726:{name:"ReductionMatrix2",type:"SRational"},50727:{name:"AnalogBalance",type:"Rational"},50728:{name:"AsShotNeutral",type:"Short"},50729:{name:"AsShotWhiteXY",type:"Rational"},50730:{name:"BaselineExposure",type:"SRational"},50731:{name:"BaselineNoise",type:"Rational"},50732:{name:"BaselineSharpness",type:"Rational"},50733:{name:"BayerGreenSplit",type:"Long"},50734:{name:"LinearResponseLimit",type:"Rational"},50735:{name:"CameraSerialNumber",type:"Ascii"},50736:{name:"LensInfo",type:"Rational"},50737:{name:"ChromaBlurRadius",type:"Rational"},50738:{name:"AntiAliasStrength",type:"Rational"},50739:{name:"ShadowScale",type:"SRational"},50740:{name:"DNGPrivateData",type:"Byte"},50741:{name:"MakerNoteSafety",type:"Short"},50778:{name:"CalibrationIlluminant1",type:"Short"},50779:{name:"CalibrationIlluminant2",type:"Short"},50780:{name:"BestQualityScale",type:"Rational"},50781:{name:"RawDataUniqueID",type:"Byte"},50827:{name:"OriginalRawFileName",type:"Byte"},50828:{name:"OriginalRawFileData",type:"Undefined"},50829:{name:"ActiveArea",type:"Short"},50830:{name:"MaskedAreas",type:"Short"},50831:{name:"AsShotICCProfile",type:"Undefined"},50832:{name:"AsShotPreProfileMatrix",type:"SRational"},50833:{name:"CurrentICCProfile",type:"Undefined"},50834:{name:"CurrentPreProfileMatrix",type:"SRational"},50879:{name:"ColorimetricReference",type:"Short"},50931:{name:"CameraCalibrationSignature",type:"Byte"},50932:{name:"ProfileCalibrationSignature",type:"Byte"},50934:{name:"AsShotProfileName",type:"Byte"},50935:{name:"NoiseReductionApplied",type:"Rational"},50936:{name:"ProfileName",type:"Byte"},50937:{name:"ProfileHueSatMapDims",type:"Long"},50938:{name:"ProfileHueSatMapData1",type:"Float"},50939:{name:"ProfileHueSatMapData2",type:"Float"},50940:{name:"ProfileToneCurve",type:"Float"},50941:{name:"ProfileEmbedPolicy",type:"Long"},50942:{name:"ProfileCopyright",type:"Byte"},50964:{name:"ForwardMatrix1",type:"SRational"},50965:{name:"ForwardMatrix2",type:"SRational"},50966:{name:"PreviewApplicationName",type:"Byte"},50967:{name:"PreviewApplicationVersion",type:"Byte"},50968:{name:"PreviewSettingsName",type:"Byte"},50969:{name:"PreviewSettingsDigest",type:"Byte"},50970:{name:"PreviewColorSpace",type:"Long"},50971:{name:"PreviewDateTime",type:"Ascii"},50972:{name:"RawImageDigest",type:"Undefined"},50973:{name:"OriginalRawFileDigest",type:"Undefined"},50974:{name:"SubTileBlockSize",type:"Long"},50975:{name:"RowInterleaveFactor",type:"Long"},50981:{name:"ProfileLookTableDims",type:"Long"},50982:{name:"ProfileLookTableData",type:"Float"},51008:{name:"OpcodeList1",type:"Undefined"},51009:{name:"OpcodeList2",type:"Undefined"},51022:{name:"OpcodeList3",type:"Undefined"}},Exif:{33434:{name:"ExposureTime",type:"Rational"},33437:{name:"FNumber",type:"Rational"},34850:{name:"ExposureProgram",type:"Short"},34852:{name:"SpectralSensitivity",type:"Ascii"},34855:{name:"ISOSpeedRatings",type:"Short"},34856:{name:"OECF",type:"Undefined"},34864:{name:"SensitivityType",type:"Short"},34865:{name:"StandardOutputSensitivity",type:"Long"},34866:{name:"RecommendedExposureIndex",type:"Long"},34867:{name:"ISOSpeed",type:"Long"},34868:{name:"ISOSpeedLatitudeyyy",type:"Long"},34869:{name:"ISOSpeedLatitudezzz",type:"Long"},36864:{name:"ExifVersion",type:"Undefined"},36867:{name:"DateTimeOriginal",type:"Ascii"},36868:{name:"DateTimeDigitized",type:"Ascii"},37121:{name:"ComponentsConfiguration",type:"Undefined"},37122:{name:"CompressedBitsPerPixel",type:"Rational"},37377:{name:"ShutterSpeedValue",type:"SRational"},37378:{name:"ApertureValue",type:"Rational"},37379:{name:"BrightnessValue",type:"SRational"},37380:{name:"ExposureBiasValue",type:"SRational"},37381:{name:"MaxApertureValue",type:"Rational"},37382:{name:"SubjectDistance",type:"Rational"},37383:{name:"MeteringMode",type:"Short"},37384:{name:"LightSource",type:"Short"},37385:{name:"Flash",type:"Short"},37386:{name:"FocalLength",type:"Rational"},37396:{name:"SubjectArea",type:"Short"},37500:{name:"MakerNote",type:"Undefined"},37510:{name:"UserComment",type:"Ascii"},37520:{name:"SubSecTime",type:"Ascii"},37521:{name:"SubSecTimeOriginal",type:"Ascii"},37522:{name:"SubSecTimeDigitized",type:"Ascii"},40960:{name:"FlashpixVersion",type:"Undefined"},40961:{name:"ColorSpace",type:"Short"},40962:{name:"PixelXDimension",type:"Long"},40963:{name:"PixelYDimension",type:"Long"},40964:{name:"RelatedSoundFile",type:"Ascii"},40965:{name:"InteroperabilityTag",type:"Long"},41483:{name:"FlashEnergy",type:"Rational"},41484:{name:"SpatialFrequencyResponse",type:"Undefined"},41486:{name:"FocalPlaneXResolution",type:"Rational"},41487:{name:"FocalPlaneYResolution",type:"Rational"},41488:{name:"FocalPlaneResolutionUnit",type:"Short"},41492:{name:"SubjectLocation",type:"Short"},41493:{name:"ExposureIndex",type:"Rational"},41495:{name:"SensingMethod",type:"Short"},41728:{name:"FileSource",type:"Undefined"},41729:{name:"SceneType",type:"Undefined"},41730:{name:"CFAPattern",type:"Undefined"},41985:{name:"CustomRendered",type:"Short"},41986:{name:"ExposureMode",type:"Short"},41987:{name:"WhiteBalance",type:"Short"},41988:{name:"DigitalZoomRatio",type:"Rational"},41989:{name:"FocalLengthIn35mmFilm",type:"Short"},41990:{name:"SceneCaptureType",type:"Short"},41991:{name:"GainControl",type:"Short"},41992:{name:"Contrast",type:"Short"},41993:{name:"Saturation",type:"Short"},41994:{name:"Sharpness",type:"Short"},41995:{name:"DeviceSettingDescription",type:"Undefined"},41996:{name:"SubjectDistanceRange",type:"Short"},42016:{name:"ImageUniqueID",type:"Ascii"},42032:{name:"CameraOwnerName",type:"Ascii"},42033:{name:"BodySerialNumber",type:"Ascii"},42034:{name:"LensSpecification",type:"Rational"},42035:{name:"LensMake",type:"Ascii"},42036:{name:"LensModel",type:"Ascii"},42037:{name:"LensSerialNumber",type:"Ascii"},42240:{name:"Gamma",type:"Rational"}},GPS:{0:{name:"GPSVersionID",type:"Byte"},1:{name:"GPSLatitudeRef",type:"Ascii"},2:{name:"GPSLatitude",type:"Rational"},3:{name:"GPSLongitudeRef",type:"Ascii"},4:{name:"GPSLongitude",type:"Rational"},5:{name:"GPSAltitudeRef",type:"Byte"},6:{name:"GPSAltitude",type:"Rational"},7:{name:"GPSTimeStamp",type:"Rational"},8:{name:"GPSSatellites",type:"Ascii"},9:{name:"GPSStatus",type:"Ascii"},10:{name:"GPSMeasureMode",type:"Ascii"},11:{name:"GPSDOP",type:"Rational"},12:{name:"GPSSpeedRef",type:"Ascii"},13:{name:"GPSSpeed",type:"Rational"},14:{name:"GPSTrackRef",type:"Ascii"},15:{name:"GPSTrack",type:"Rational"},16:{name:"GPSImgDirectionRef",type:"Ascii"},17:{name:"GPSImgDirection",type:"Rational"},18:{name:"GPSMapDatum",type:"Ascii"},19:{name:"GPSDestLatitudeRef",type:"Ascii"},20:{name:"GPSDestLatitude",type:"Rational"},21:{name:"GPSDestLongitudeRef",type:"Ascii"},22:{name:"GPSDestLongitude",type:"Rational"},23:{name:"GPSDestBearingRef",type:"Ascii"},24:{name:"GPSDestBearing",type:"Rational"},25:{name:"GPSDestDistanceRef",type:"Ascii"},26:{name:"GPSDestDistance",type:"Rational"},27:{name:"GPSProcessingMethod",type:"Undefined"},28:{name:"GPSAreaInformation",type:"Undefined"},29:{name:"GPSDateStamp",type:"Ascii"},30:{name:"GPSDifferential",type:"Short"},31:{name:"GPSHPositioningError",type:"Rational"}},Interop:{1:{name:"InteroperabilityIndex",type:"Ascii"}}};b["0th"]=b.Image,b["1st"]=b.Image,n.TAGS=b,n.ImageIFD={ProcessingSoftware:11,NewSubfileType:254,SubfileType:255,ImageWidth:256,ImageLength:257,BitsPerSample:258,Compression:259,PhotometricInterpretation:262,Threshholding:263,CellWidth:264,CellLength:265,FillOrder:266,DocumentName:269,ImageDescription:270,Make:271,Model:272,StripOffsets:273,Orientation:274,SamplesPerPixel:277,RowsPerStrip:278,StripByteCounts:279,XResolution:282,YResolution:283,PlanarConfiguration:284,GrayResponseUnit:290,GrayResponseCurve:291,T4Options:292,T6Options:293,ResolutionUnit:296,TransferFunction:301,Software:305,DateTime:306,Artist:315,HostComputer:316,Predictor:317,WhitePoint:318,PrimaryChromaticities:319,ColorMap:320,HalftoneHints:321,TileWidth:322,TileLength:323,TileOffsets:324,TileByteCounts:325,SubIFDs:330,InkSet:332,InkNames:333,NumberOfInks:334,DotRange:336,TargetPrinter:337,ExtraSamples:338,SampleFormat:339,SMinSampleValue:340,SMaxSampleValue:341,TransferRange:342,ClipPath:343,XClipPathUnits:344,YClipPathUnits:345,Indexed:346,JPEGTables:347,OPIProxy:351,JPEGProc:512,JPEGInterchangeFormat:513,JPEGInterchangeFormatLength:514,JPEGRestartInterval:515,JPEGLosslessPredictors:517,JPEGPointTransforms:518,JPEGQTables:519,JPEGDCTables:520,JPEGACTables:521,YCbCrCoefficients:529,YCbCrSubSampling:530,YCbCrPositioning:531,ReferenceBlackWhite:532,XMLPacket:700,Rating:18246,RatingPercent:18249,ImageID:32781,CFARepeatPatternDim:33421,CFAPattern:33422,BatteryLevel:33423,Copyright:33432,ExposureTime:33434,ImageResources:34377,ExifTag:34665,InterColorProfile:34675,GPSTag:34853,Interlace:34857,TimeZoneOffset:34858,SelfTimerMode:34859,FlashEnergy:37387,SpatialFrequencyResponse:37388,Noise:37389,FocalPlaneXResolution:37390,FocalPlaneYResolution:37391,FocalPlaneResolutionUnit:37392,ImageNumber:37393,SecurityClassification:37394,ImageHistory:37395,ExposureIndex:37397,TIFFEPStandardID:37398,SensingMethod:37399,XPTitle:40091,XPComment:40092,XPAuthor:40093,XPKeywords:40094,XPSubject:40095,PrintImageMatching:50341,DNGVersion:50706,DNGBackwardVersion:50707,UniqueCameraModel:50708,LocalizedCameraModel:50709,CFAPlaneColor:50710,CFALayout:50711,LinearizationTable:50712,BlackLevelRepeatDim:50713,BlackLevel:50714,BlackLevelDeltaH:50715,BlackLevelDeltaV:50716,WhiteLevel:50717,DefaultScale:50718,DefaultCropOrigin:50719,DefaultCropSize:50720,ColorMatrix1:50721,ColorMatrix2:50722,CameraCalibration1:50723,CameraCalibration2:50724,ReductionMatrix1:50725,ReductionMatrix2:50726,AnalogBalance:50727,AsShotNeutral:50728,AsShotWhiteXY:50729,BaselineExposure:50730,BaselineNoise:50731,BaselineSharpness:50732,BayerGreenSplit:50733,LinearResponseLimit:50734,CameraSerialNumber:50735,LensInfo:50736,ChromaBlurRadius:50737,AntiAliasStrength:50738,ShadowScale:50739,DNGPrivateData:50740,MakerNoteSafety:50741,CalibrationIlluminant1:50778,CalibrationIlluminant2:50779,BestQualityScale:50780,RawDataUniqueID:50781,OriginalRawFileName:50827,OriginalRawFileData:50828,ActiveArea:50829,MaskedAreas:50830,AsShotICCProfile:50831,AsShotPreProfileMatrix:50832,CurrentICCProfile:50833,CurrentPreProfileMatrix:50834,ColorimetricReference:50879,CameraCalibrationSignature:50931,ProfileCalibrationSignature:50932,AsShotProfileName:50934,NoiseReductionApplied:50935,ProfileName:50936,ProfileHueSatMapDims:50937,ProfileHueSatMapData1:50938,ProfileHueSatMapData2:50939,ProfileToneCurve:50940,ProfileEmbedPolicy:50941,ProfileCopyright:50942,ForwardMatrix1:50964,ForwardMatrix2:50965,PreviewApplicationName:50966,PreviewApplicationVersion:50967,PreviewSettingsName:50968,PreviewSettingsDigest:50969,PreviewColorSpace:50970,PreviewDateTime:50971,RawImageDigest:50972,OriginalRawFileDigest:50973,SubTileBlockSize:50974,RowInterleaveFactor:50975,ProfileLookTableDims:50981,ProfileLookTableData:50982,OpcodeList1:51008,OpcodeList2:51009,OpcodeList3:51022,NoiseProfile:51041},n.ExifIFD={ExposureTime:33434,FNumber:33437,ExposureProgram:34850,SpectralSensitivity:34852,ISOSpeedRatings:34855,OECF:34856,SensitivityType:34864,StandardOutputSensitivity:34865,RecommendedExposureIndex:34866,ISOSpeed:34867,ISOSpeedLatitudeyyy:34868,ISOSpeedLatitudezzz:34869,ExifVersion:36864,DateTimeOriginal:36867,DateTimeDigitized:36868,ComponentsConfiguration:37121,CompressedBitsPerPixel:37122,ShutterSpeedValue:37377,ApertureValue:37378,BrightnessValue:37379,ExposureBiasValue:37380,MaxApertureValue:37381,SubjectDistance:37382,MeteringMode:37383,LightSource:37384,Flash:37385,FocalLength:37386,SubjectArea:37396,MakerNote:37500,UserComment:37510,SubSecTime:37520,SubSecTimeOriginal:37521,SubSecTimeDigitized:37522,FlashpixVersion:40960,ColorSpace:40961,PixelXDimension:40962,PixelYDimension:40963,RelatedSoundFile:40964,InteroperabilityTag:40965,FlashEnergy:41483,SpatialFrequencyResponse:41484,FocalPlaneXResolution:41486,FocalPlaneYResolution:41487,FocalPlaneResolutionUnit:41488,SubjectLocation:41492,ExposureIndex:41493,SensingMethod:41495,FileSource:41728,SceneType:41729,CFAPattern:41730,CustomRendered:41985,ExposureMode:41986,WhiteBalance:41987,DigitalZoomRatio:41988,FocalLengthIn35mmFilm:41989,SceneCaptureType:41990,GainControl:41991,Contrast:41992,Saturation:41993,Sharpness:41994,DeviceSettingDescription:41995,SubjectDistanceRange:41996,ImageUniqueID:42016,CameraOwnerName:42032,BodySerialNumber:42033,LensSpecification:42034,LensMake:42035,LensModel:42036,LensSerialNumber:42037,Gamma:42240},n.GPSIFD={GPSVersionID:0,GPSLatitudeRef:1,GPSLatitude:2,GPSLongitudeRef:3,GPSLongitude:4,GPSAltitudeRef:5,GPSAltitude:6,GPSTimeStamp:7,GPSSatellites:8,GPSStatus:9,GPSMeasureMode:10,GPSDOP:11,GPSSpeedRef:12,GPSSpeed:13,GPSTrackRef:14,GPSTrack:15,GPSImgDirectionRef:16,GPSImgDirection:17,GPSMapDatum:18,GPSDestLatitudeRef:19,GPSDestLatitude:20,GPSDestLongitudeRef:21,GPSDestLongitude:22,GPSDestBearingRef:23,GPSDestBearing:24,GPSDestDistanceRef:25,GPSDestDistance:26,GPSProcessingMethod:27,GPSAreaInformation:28,GPSDateStamp:29,GPSDifferential:30,GPSHPositioningError:31},n.InteropIFD={InteroperabilityIndex:1},n.GPSHelper={degToDmsRational:function(e){var t=Math.abs(e),n=t%1*60,o=n%1*60;return[[Math.floor(t),1],[Math.floor(n),1],[Math.round(100*o),100]]},dmsRationalToDeg:function(e,t){var n="S"===t||"W"===t?-1:1;return(e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600)*n}},e.exports&&(t=e.exports=n),t.piexif=n}()},5403:function(e,t,n){"use strict";var o=n(3379),i=n.n(o),a=n(7795),r=n.n(a),f=n(569),s=n.n(f),l=n(3565),c=n.n(l),u=n(9216),d=n.n(u),h=n(4589),p=n.n(h),m=n(1203),b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=s().bind(null,"head"),b.domAPI=r(),b.insertStyleElement=d(),i()(m.Z,b),m.Z&&m.Z.locals&&m.Z.locals},7770:function(e,t,n){"use strict";var o=n(3379),i=n.n(o),a=n(7795),r=n.n(a),f=n(569),s=n.n(f),l=n(3565),c=n.n(l),u=n(9216),d=n.n(u),h=n(4589),p=n.n(h),m=n(6127),b={};b.styleTagTransform=p(),b.setAttributes=c(),b.insert=s().bind(null,"head"),b.domAPI=r(),b.insertStyleElement=d(),i()(m.Z,b),m.Z&&m.Z.locals&&m.Z.locals},3379:function(e){"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var a={},r=[],f=0;f<e.length;f++){var s=e[f],l=o.base?s[0]+o.base:s[0],c=a[l]||0,u="".concat(l," ").concat(c);a[l]=c+1;var d=n(u),h={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var p=i(h,o);o.byIndex=f,t.splice(f,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=o(e=e||[],i=i||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var f=n(a[r]);t[f].references--}for(var s=o(e,i),l=0;l<a.length;l++){var c=n(a[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=s}}},569:function(e){"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},9216:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5273:function(e,t,n){var o;o=function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},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=6)}([function(t,n){t.exports=e},function(e,t,n){"use strict";t.a=function e(){var t={},n=!1,o=0,i=arguments.length;function a(o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n&&"[object Object]"===Object.prototype.toString.call(o[i])?t[i]=e(!0,t[i],o[i]):t[i]=o[i])}for("[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(n=arguments[0],o++);o<i;o++)a(arguments[o]);return t}},function(e,n){e.exports=t},function(e,t,n){"use strict";var o=n(0),i=n.n(o),a=n(1),r=n(2),f=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images,o=void 0===t?[]:t,r=e.options,s=void 0===r?{}:r;s=n.i(a.a)(s,{inline:!1});var l=new(f.a.extend({render:function(e){return e("div",{style:{display:"none"},class:["__viewer-token"]},o.map((function(t){return e("img",{attrs:"string"==typeof t?{src:t}:t})})))}}));l.$mount(),document.body.appendChild(l.$el);var c=new i.a(l.$el,s),u=c.destroy.bind(c);return c.destroy=function(){return u(),l.$destroy(),document.body.removeChild(l.$el),c},c.show(),l.$el.addEventListener("hidden",(function(){this.viewer===c&&c.destroy()})),c}},function(e,t,n){"use strict";(function(e){var o=n(0),i=n.n(o),a=n(7),r=(n.n(a),n(2)),f=n.n(r);t.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.name,r=void 0===o?"viewer":o,s=t.debug,l=void 0!==s&&s;function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];f.a.nextTick((function(){o&&!function(e){var t=e.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=t?t.join(""):void 0;return e.__viewerImageDiffCache===n?(h("Element change detected, but image(s) has not changed"),!1):(h("Image change detected"),e.__viewerImageDiffCache=n,!0)}(e)||(n||!e["$"+r]?(u(e),e["$"+r]=new i.a(e,t),h("Viewer created")):(e["$"+r].update(),h("Viewer updated")))}))}function u(e){e["$"+r]&&(e["$"+r].destroy(),delete e["$"+r],h("Viewer destroyed"))}function d(e){e.__viewerMutationObserver&&(e.__viewerMutationObserver.disconnect(),delete e.__viewerMutationObserver,h("Observer destroyed"))}function h(){var e;l&&(e=console).log.apply(e,arguments)}return{bind:function(t,o,i){h("Viewer bind");var r=n.i(a.debounce)(50,c);r(t,o.value),function(e,t,n,o){var i=t.expression;i&&/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(i)?(e.__viewerUnwatch=n.context.$watch(i,(function(t,n){h("Change detected by watcher: ",i),o(e,t,!0)}),{deep:!0}),h("Watcher created, expression: ",i)):h("Only simple dot-delimited paths can create watcher")}(t,o,i,r),o.modifiers.static||function(t,n,o,i){d(t);var a=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver;if(a){var r=new a((function(e){e.forEach((function(e){h("Viewer mutation:"+e.type),o(t,n,i,!0)}))}));r.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__viewerMutationObserver=r,h("Observer created")}else h("Observer not supported")}(t,o.value,r,o.modifiers.rebuild)},unbind:function(e,t){h("Viewer unbind"),d(e),function(e){e.__viewerUnwatch&&(e.__viewerUnwatch(),delete e.__viewerUnwatch,h("Watcher destroyed"))}(e),u(e)}}}}).call(t,n(9))},function(e,t,n){var o=n(10)(n(8),n(11),null,null);o.options.__file="/Volumes/public/Workspace/web/v-viewer/src/component.vue",o.esModule&&Object.keys(o.esModule).some((function(e){return"default"!==e&&"__esModule"!==e}))&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] component.vue: functional components are not supported with templates, they should use render functions."),e.exports=o.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),a=n.n(i),r=n(5),f=n.n(r),s=n(4),l=n(3);n.d(t,"component",(function(){return f.a})),n.d(t,"directive",(function(){return s.a})),n.d(t,"api",(function(){return l.a})),n.d(t,"Viewer",(function(){return a.a})),t.default={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.name,r=void 0===i?"viewer":i,c=t.debug,u=void 0!==c&&c,d=t.defaultOptions;a.a.setDefaults(d),e.component(r,n.i(o.a)(f.a,{name:r})),e.directive(r,n.i(s.a)({name:r,debug:u})),e.prototype["$"+r+"Api"]=l.a},setDefaults:function(e){a.a.setDefaults(e)}}},function(e,t,n){var o,i,a,r;r=function(e){"use strict";function t(e,t,n,o){var i,a=!1,r=0;function f(){i&&clearTimeout(i)}function s(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=this,d=Date.now()-r;function h(){r=Date.now(),n.apply(u,l)}a||(o&&!i&&h(),f(),void 0===o&&d>e?h():!0!==t&&(i=setTimeout(o?function(){i=void 0}:h,void 0===o?e-d:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),s.cancel=function(){f(),a=!0},s}e.debounce=function(e,n,o){return void 0===o?t(e,n,!1):t(e,o,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===("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})(t)&&void 0!==e?r(t):(i=[t],void 0===(a="function"==typeof(o=r)?o.apply(t,i):o)||(e.exports=a))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n.n(o);t.default={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data:function(){return{}},computed:{},methods:{onChange:function(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer:function(){this.destroyViewer(),this.createViewer()},updateViewer:function(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer:function(){this.$viewer&&this.$viewer.destroy()},createViewer:function(){this.$viewer=new i.a(this.$el,this.options),this.$emit("inited",this.$viewer)}},watch:{images:function(){var e=this;this.$nextTick((function(){e.onChange()}))},trigger:{handler:function(){var e=this;this.$nextTick((function(){e.onChange()}))},deep:!0},options:{handler:function(){var e=this;this.$nextTick((function(){e.rebuildViewer()}))},deep:!0}},mounted:function(){this.createViewer()},destroyed:function(){this.destroyViewer()}}},function(e,t){var n,o="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(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(n=window)}e.exports=n},function(e,t){e.exports=function(e,t,n,o){var i,a=e=e||{},r=typeof e.default;"object"!==r&&"function"!==r||(i=e,a=e.default);var f="function"==typeof a?a.options:a;if(t&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns),n&&(f._scopeId=n),o){var s=Object.create(f.computed||null);Object.keys(o).forEach((function(e){var t=o[e];s[e]=function(){return t}})),f.computed=s}return{esModule:i,exports:a,options:f}}},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default",null,{images:e.images,options:e.options})],2)},staticRenderFns:[]},e.exports.render._withStripped=!0}])},e.exports=o(n(1949),n(3371))},1949:function(e){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){var n,a,r;n=t,a=e,r=o[e],(a=i(a))in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e){return n="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(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function i(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var a={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},r="undefined"!=typeof window&&void 0!==window.document,f=r?window:{},s=!(!r||!f.document.documentElement)&&"ontouchstart"in f.document.documentElement,l=!!r&&"PointerEvent"in f,c="viewer",u="move",d="switch",h="zoom",p="".concat(c,"-active"),m="".concat(c,"-close"),b="".concat(c,"-fade"),g="".concat(c,"-fixed"),v="".concat(c,"-fullscreen"),y="".concat(c,"-fullscreen-exit"),w="".concat(c,"-hide"),S="".concat(c,"-hide-md-down"),x="".concat(c,"-hide-sm-down"),C="".concat(c,"-hide-xs-down"),P="".concat(c,"-in"),k="".concat(c,"-invisible"),D="".concat(c,"-loading"),I="".concat(c,"-move"),A="".concat(c,"-open"),L="".concat(c,"-show"),R="".concat(c,"-transition"),F="click",T="dblclick",E="dragstart",_="focusin",M="keydown",O="load",G="error",V=l?"pointerdown":s?"touchstart":"mousedown",z=l?"pointermove":s?"touchmove":"mousemove",j=l?"pointerup pointercancel":s?"touchend touchcancel":"mouseup",B="resize",U="transitionend",q="wheel",N="ready",X="show",H="shown",W="hide",Y="hidden",$="view",J="viewed",Z="move",K="moved",Q="rotate",ee="rotated",te="scale",ne="scaled",oe="zoom",ie="zoomed",ae="play",re="stop",fe="".concat(c,"Action"),se=/\s\s*/,le=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function ce(e){return"string"==typeof e}var ue=Number.isNaN||f.isNaN;function de(e){return"number"==typeof e&&!ue(e)}function he(e){return void 0===e}function pe(e){return"object"===n(e)&&null!==e}var me=Object.prototype.hasOwnProperty;function be(e){if(!pe(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&me.call(n,"isPrototypeOf")}catch(e){return!1}}function ge(e){return"function"==typeof e}function ve(e,t){if(e&&ge(t))if(Array.isArray(e)||de(e.length)){var n,o=e.length;for(n=0;n<o&&!1!==t.call(e,e[n],n,e);n+=1);}else pe(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}));return e}var ye=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return pe(e)&&n.length>0&&n.forEach((function(t){pe(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},we=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Se(e,t){var n=e.style;ve(t,(function(e,t){we.test(t)&&de(e)&&(e+="px"),n[t]=e}))}function xe(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function Ce(e,t){if(e&&t)if(de(e.length))ve(e,(function(e){Ce(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Pe(e,t){e&&t&&(de(e.length)?ve(e,(function(e){Pe(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function ke(e,t,n){t&&(de(e.length)?ve(e,(function(e){ke(e,t,n)})):n?Ce(e,t):Pe(e,t))}var De=/([a-z\d])([A-Z])/g;function Ie(e){return e.replace(De,"$1-$2").toLowerCase()}function Ae(e,t){return pe(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Ie(t)))}function Le(e,t,n){pe(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Ie(t)),n)}var Re=function(){var e=!1;if(r){var t=!1,n=function(){},o=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});f.addEventListener("test",n,o),f.removeEventListener("test",n,o)}return e}();function Fe(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(se).forEach((function(t){if(!Re){var a=e.listeners;a&&a[t]&&a[t][n]&&(i=a[t][n],delete a[t][n],0===Object.keys(a[t]).length&&delete a[t],0===Object.keys(a).length&&delete e.listeners)}e.removeEventListener(t,i,o)}))}function Te(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(se).forEach((function(t){if(o.once&&!Re){var a=e.listeners,r=void 0===a?{}:a;i=function(){delete r[t][n],e.removeEventListener(t,i,o);for(var a=arguments.length,f=new Array(a),s=0;s<a;s++)f[s]=arguments[s];n.apply(e,f)},r[t]||(r[t]={}),r[t][n]&&e.removeEventListener(t,r[t][n],o),r[t][n]=i,e.listeners=r}e.addEventListener(t,i,o)}))}function Ee(e,n,o,i){var a;return ge(Event)&&ge(CustomEvent)?a=new CustomEvent(n,t({bubbles:!0,cancelable:!0,detail:o},i)):(a=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,o),e.dispatchEvent(a)}function _e(e){var t=e.rotate,n=e.scaleX,o=e.scaleY,i=e.translateX,a=e.translateY,r=[];de(i)&&0!==i&&r.push("translateX(".concat(i,"px)")),de(a)&&0!==a&&r.push("translateY(".concat(a,"px)")),de(t)&&0!==t&&r.push("rotate(".concat(t,"deg)")),de(n)&&1!==n&&r.push("scaleX(".concat(n,")")),de(o)&&1!==o&&r.push("scaleY(".concat(o,")"));var f=r.length?r.join(" "):"none";return{WebkitTransform:f,msTransform:f,transform:f}}var Me=f.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(f.navigator.userAgent);function Oe(e,t,n){var o=document.createElement("img");if(e.naturalWidth&&!Me)return n(e.naturalWidth,e.naturalHeight),o;var i=document.body||document.documentElement;return o.onload=function(){n(o.width,o.height),Me||i.removeChild(o)},ve(t.inheritedAttributes,(function(t){var n=e.getAttribute(t);null!==n&&o.setAttribute(t,n)})),o.src=e.src,Me||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(o)),o}function Ge(e){switch(e){case 2:return C;case 3:return x;case 4:return S;default:return""}}function Ve(e,n){var o=e.pageX,i=e.pageY,a={endX:o,endY:i};return n?a:t({timeStamp:Date.now(),startX:o,startY:i},a)}var ze,je={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=ye({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&Se(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,o=this.list,i=[];o.innerHTML="",ve(this.images,(function(t,a){var r=t.src,f=t.alt||function(e){return ce(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(r),s=e.getImageURL(t);if(r||s){var l=document.createElement("li"),c=document.createElement("img");ve(n.inheritedAttributes,(function(e){var n=t.getAttribute(e);null!==n&&c.setAttribute(e,n)})),n.navbar&&(c.src=r||s),c.alt=f,c.setAttribute("data-original-url",s||r),l.setAttribute("data-index",a),l.setAttribute("data-viewer-action","view"),l.setAttribute("role","button"),n.keyboard&&l.setAttribute("tabindex",0),l.appendChild(c),o.appendChild(l),i.push(l)}})),this.items=i,ve(i,(function(t){var o,i,a=t.firstElementChild;Le(a,"filled",!0),n.loading&&Ce(t,D),Te(a,O,o=function(o){Fe(a,G,i),n.loading&&Pe(t,D),e.loadImage(o)},{once:!0}),Te(a,G,i=function(){Fe(a,O,o),n.loading&&Pe(t,D)},{once:!0})})),n.transition&&Te(t,J,(function(){Ce(o,R)}),{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,o=parseInt(window.getComputedStyle(n||t).marginLeft,10),i=t.offsetWidth,a=i+o;Se(this.list,ye({width:a*this.length-o},_e({translateX:(this.viewerData.width-i)/2-a*e})))}},resetList:function(){var e=this.list;e.innerHTML="",Pe(e,R),Se(e,_e({translateX:0}))},initImage:function(e){var t,n=this,o=this.options,i=this.image,a=this.viewerData,r=this.footer.offsetHeight,f=a.width,s=Math.max(a.height-r,r),l=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Oe(i,o,(function(t,i){var a=t/i,r=Math.max(0,Math.min(1,o.initialCoverage)),c=f,u=s;n.imageInitializing=!1,s*a>f?u=f/a:c=s*a,r=de(r)?r:.9,c=Math.min(c*r,t),u=Math.min(u*r,i);var d=(f-c)/2,h=(s-u)/2,p={left:d,top:h,x:d,y:h,width:c,height:u,oldRatio:1,ratio:c/t,aspectRatio:a,naturalWidth:t,naturalHeight:i},m=ye({},p);o.rotatable&&(p.rotate=l.rotate||0,m.rotate=0),o.scalable&&(p.scaleX=l.scaleX||1,p.scaleY=l.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=p,n.initialImageData=m,e&&e()}))},renderImage:function(e){var t=this,n=this.image,o=this.imageData;if(Se(n,ye({width:o.width,height:o.height,marginLeft:o.x,marginTop:o.y},_e(o))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&xe(n,R)){var i=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Fe(n,U,i)}},Te(n,U,i,{once:!0})}else e()},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},Be={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,o=this.element.ownerDocument;Te(t,F,this.onClick=this.click.bind(this)),Te(t,E,this.onDragStart=this.dragstart.bind(this)),Te(n,V,this.onPointerDown=this.pointerdown.bind(this)),Te(o,z,this.onPointerMove=this.pointermove.bind(this)),Te(o,j,this.onPointerUp=this.pointerup.bind(this)),Te(o,M,this.onKeyDown=this.keydown.bind(this)),Te(window,B,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Te(t,q,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&Te(n,T,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,o=this.element.ownerDocument;Fe(t,F,this.onClick),Fe(t,E,this.onDragStart),Fe(n,V,this.onPointerDown),Fe(o,z,this.onPointerMove),Fe(o,j,this.onPointerUp),Fe(o,M,this.onKeyDown),Fe(window,B,this.onResize),e.zoomable&&e.zoomOnWheel&&Fe(t,q,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Fe(n,T,this.onDblclick)}},Ue={click:function(e){var t=this.options,n=this.imageData,o=e.target,i=Ae(o,fe);switch(i||"img"!==o.localName||"li"!==o.parentElement.localName||(i=Ae(o=o.parentElement,fe)),s&&e.isTrusted&&o===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(Ae(o,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(s&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,o=this.image,i=this.index,a=this.viewerData;Pe(o,k),n.loading&&Pe(this.canvas,D),o.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage((function(){ke(o,I,n.movable),ke(o,R,n.transition),e.renderImage((function(){e.viewed=!0,e.viewing=!1,ge(n.viewed)&&Te(t,J,n.viewed,{once:!0}),Ee(t,J,{originalImage:e.images[i],index:i,image:o},{cancelable:!1})}))}))},loadImage:function(e){var t=e.target,n=t.parentNode,o=n.offsetWidth||30,i=n.offsetHeight||50,a=!!Ae(t,"filled");Oe(t,this.options,(function(e,n){var r=e/n,f=o,s=i;i*r>o?a?f=i*r:s=o/r:a?s=o/r:f=i*r,Se(t,ye({width:f,height:s},_e({translateX:(o-f)/2,translateY:(i-s)/2})))}))},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;if(13===n&&this.viewer.contains(e.target)&&this.click(e),this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,o=e.buttons,i=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(de(o)&&1!==o||de(i)&&0!==i||e.ctrlKey))){e.preventDefault(),e.changedTouches?ve(e.changedTouches,(function(e){n[e.identifier]=Ve(e)})):n[e.pointerId||0]=Ve(e);var a=!!t.movable&&u;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?a=h:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(a=d),!t.transition||a!==u&&a!==h||Pe(this.image,R),this.action=a}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?ve(e.changedTouches,(function(e){ye(t[e.identifier]||{},Ve(e,!0))})):ye(t[e.pointerId||0]||{},Ve(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,o=this.options,i=this.action,a=this.pointers;e.changedTouches?ve(e.changedTouches,(function(e){t=a[e.identifier],delete a[e.identifier]})):(t=a[e.pointerId||0],delete a[e.pointerId||0]),i&&(e.preventDefault(),!o.transition||i!==u&&i!==h||Ce(this.image,R),this.action=!1,s&&i!==h&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),o.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){Ee(n.image,T,{originalEvent:e})}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){n.imageClicked=!1}),500)):(this.imageClicked=!1,o.backdrop&&"static"!==o.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){Ee(n.canvas,F,{originalEvent:e})}),50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();ve(this.player.getElementsByTagName("img"),(function(t){Te(t,O,e.loadImage.bind(e),{once:!0}),Ee(t,O)}))}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50);var n=Number(this.options.zoomRatio)||.1,o=1;e.deltaY?o=e.deltaY>0?1:-1:e.wheelDelta?o=-e.wheelDelta/120:e.detail&&(o=e.detail>0?1:-1),this.zoom(-o*n,!0,null,e)}}},qe={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(ge(n.show)&&Te(t,X,n.show,{once:!0}),!1===Ee(t,X)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var o=this.viewer;if(Pe(o,w),o.setAttribute("role","dialog"),o.setAttribute("aria-labelledby",this.title.id),o.setAttribute("aria-modal",!0),o.removeAttribute("aria-hidden"),n.transition&&!e){var i=this.shown.bind(this);this.transitioning={abort:function(){Fe(o,U,i),Pe(o,P)}},Ce(o,R),o.initialOffsetWidth=o.offsetWidth,Te(o,U,i,{once:!0}),Ce(o,P)}else Ce(o,P),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,o=this.options;if(o.inline||this.hiding||!this.isShown&&!this.showing)return this;if(ge(o.hide)&&Te(n,W,o.hide,{once:!0}),!1===Ee(n,W))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,a=this.image,r=function(){Pe(i,P),e.hidden()};if(o.transition&&!t){var f=function t(n){n&&n.target===i&&(Fe(i,U,t),e.hidden())},s=function(){xe(i,R)?(Te(i,U,f),Pe(i,P)):r()};this.transitioning={abort:function(){e.viewed&&xe(a,R)?Fe(a,U,s):xe(i,R)&&Fe(i,U,f)}},this.viewed&&xe(a,R)?(Te(a,U,s,{once:!0}),this.zoomTo(0,!1,null,null,!0)):s()}else r();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,o=this.options,i=this.title,a=this.canvas,r=this.items[t],f=r.querySelector("img"),s=Ae(f,"originalUrl"),l=f.getAttribute("alt"),c=document.createElement("img");if(ve(o.inheritedAttributes,(function(e){var t=f.getAttribute(e);null!==t&&c.setAttribute(e,t)})),c.src=s,c.alt=l,ge(o.view)&&Te(n,$,o.view,{once:!0}),!1===Ee(n,$,{originalImage:this.images[t],index:t,image:c})||!this.isShown||this.hiding||this.played)return this;var u=this.items[this.index];u&&(Pe(u,p),u.removeAttribute("aria-selected")),Ce(r,p),r.setAttribute("aria-selected",!0),o.focus&&r.focus(),this.image=c,this.viewed=!1,this.index=t,this.imageData={},Ce(c,k),o.loading&&Ce(a,D),a.innerHTML="",a.appendChild(c),this.renderList(),i.innerHTML="";var d,h,m=function(){var t,n=e.imageData,a=Array.isArray(o.title)?o.title[1]:o.title;i.innerHTML=ce(t=ge(a)?a.call(e,c,n):"".concat(l," (").concat(n.naturalWidth," × ").concat(n.naturalHeight,")"))?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):t};return Te(n,J,m,{once:!0}),this.viewing={abort:function(){Fe(n,J,m),c.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(c.src="",Fe(c,O,d),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(Te(c,O,d=function(){Fe(c,G,h),e.load()},{once:!0}),Te(c,G,h=function(){Fe(c,O,d),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),Pe(c,k),o.loading&&Pe(e.canvas,D)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){Pe(c,k),e.timeout=!1}),1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(he(e)?e:n.x+Number(e),he(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,a=this.options,r=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&a.movable){var f=r.x,s=r.y,l=!1;if(de(e)?l=!0:e=f,de(n)?l=!0:n=s,l){if(ge(a.move)&&Te(i,Z,a.move,{once:!0}),!1===Ee(i,Z,{x:e,y:n,oldX:f,oldY:s,originalEvent:o}))return this;r.x=e,r.y=n,r.left=e,r.top=n,this.moving=!0,this.renderImage((function(){t.moving=!1,ge(a.moved)&&Te(i,K,a.moved,{once:!0}),Ee(i,K,{x:e,y:n,oldX:f,oldY:s,originalEvent:o},{cancelable:!1})}))}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,o=this.options,i=this.imageData;if(de(e=Number(e))&&this.viewed&&!this.played&&o.rotatable){var a=i.rotate;if(ge(o.rotate)&&Te(n,Q,o.rotate,{once:!0}),!1===Ee(n,Q,{degree:e,oldDegree:a}))return this;i.rotate=e,this.rotating=!0,this.renderImage((function(){t.rotating=!1,ge(o.rotated)&&Te(n,ee,o.rotated,{once:!0}),Ee(n,ee,{degree:e,oldDegree:a},{cancelable:!1})}))}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=this.element,i=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var r=a.scaleX,f=a.scaleY,s=!1;if(de(e)?s=!0:e=r,de(n)?s=!0:n=f,s){if(ge(i.scale)&&Te(o,te,i.scale,{once:!0}),!1===Ee(o,te,{scaleX:e,scaleY:n,oldScaleX:r,oldScaleY:f}))return this;a.scaleX=e,a.scaleY=n,this.scaling=!0,this.renderImage((function(){t.scaling=!1,ge(i.scaled)&&Te(o,ne,i.scaled,{once:!0}),Ee(o,ne,{scaleX:e,scaleY:n,oldScaleX:r,oldScaleY:f},{cancelable:!1})}))}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,n,o),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=this.element,f=this.options,s=this.pointers,l=this.imageData,c=l.x,u=l.y,d=l.width,h=l.height,p=l.naturalWidth,m=l.naturalHeight;if(de(e=Math.max(0,e))&&this.viewed&&!this.played&&(a||f.zoomable)){if(!a){var b=Math.max(.01,f.minZoomRatio),g=Math.min(100,f.maxZoomRatio);e=Math.min(Math.max(e,b),g)}if(i)switch(i.type){case"wheel":f.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var v=p*e,y=m*e,w=v-d,S=y-h,x=l.ratio;if(ge(f.zoom)&&Te(r,oe,f.zoom,{once:!0}),!1===Ee(r,oe,{ratio:e,oldRatio:x,originalEvent:i}))return this;if(this.zooming=!0,i){var C=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),P=s&&Object.keys(s).length>0?function(e){var t=0,n=0,o=0;return ve(e,(function(e){var i=e.startX,a=e.startY;t+=i,n+=a,o+=1})),{pageX:t/=o,pageY:n/=o}}(s):{pageX:i.pageX,pageY:i.pageY};l.x-=w*((P.pageX-C.left-c)/d),l.y-=S*((P.pageY-C.top-u)/h)}else be(o)&&de(o.x)&&de(o.y)?(l.x-=w*((o.x-c)/d),l.y-=S*((o.y-u)/h)):(l.x-=w/2,l.y-=S/2);l.left=l.x,l.top=l.y,l.width=v,l.height=y,l.oldRatio=x,l.ratio=e,this.renderImage((function(){t.zooming=!1,ge(f.zoomed)&&Te(r,ie,f.zoomed,{once:!0}),Ee(r,ie,{ratio:e,oldRatio:x,originalEvent:i},{cancelable:!1})})),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,o=this.options;if(ge(o.play)&&Te(n,ae,o.play,{once:!0}),!1===Ee(n,ae))return this;var i=this.player,a=this.loadImage.bind(this),r=[],f=0,s=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),Ce(i,L),ve(this.items,(function(e,t){var n=e.querySelector("img"),l=document.createElement("img");l.src=Ae(n,"originalUrl"),l.alt=n.getAttribute("alt"),l.referrerPolicy=n.referrerPolicy,f+=1,Ce(l,b),ke(l,R,o.transition),xe(e,p)&&(Ce(l,P),s=t),r.push(l),Te(l,O,a,{once:!0}),i.appendChild(l)})),de(o.interval)&&o.interval>0){var l=function t(){clearTimeout(e.playing.timeout),Pe(r[s],P),Ce(r[s=(s+=1)<f?s:0],P),e.playing.timeout=setTimeout(t,o.interval)};f>1&&(this.playing={prev:function t(){clearTimeout(e.playing.timeout),Pe(r[s],P),Ce(r[s=(s-=1)>=0?s:f-1],P),e.playing.timeout=setTimeout(t,o.interval)},next:l,timeout:setTimeout(l,o.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(ge(n.stop)&&Te(t,re,n.stop,{once:!0}),!1===Ee(t,re))return this;var o=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,ve(o.getElementsByTagName("img"),(function(t){Fe(t,O,e.onLoadWhenPlay)})),Pe(o,L),o.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,o=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),Ce(this.button,y),t.transition&&(Pe(i,R),this.viewed&&Pe(o,R)),Ce(n,g),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),Se(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=ye({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Ce(o,R),Ce(i,R)}),0)}))}))),this},exit:function(){var e=this,t=this.options,n=this.viewer,o=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),Pe(this.button,y),t.transition&&(Pe(i,R),this.viewed&&Pe(o,R)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),Pe(n,g),Se(n,{zIndex:t.zIndexInline}),this.viewerData=ye({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Ce(o,R),Ce(i,R)}),0)}))})),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,o=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*o.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&Ee(n,U),Ce(n,L),Ce(n,b),Ce(n,R),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,Ce(n,P)):(Ce(n,L),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){t.transition?(Te(n,U,(function(){Pe(n,L),Pe(n,b),Pe(n,R),n.setAttribute("aria-hidden",!0),e.fading=!1}),{once:!0}),Pe(n,P),e.fading=!0):(Pe(n,L),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1}),1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=ye({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,o=this.isImg;if(o&&!t.parentNode)return this.destroy();var i=[];if(ve(o?[t]:t.querySelectorAll("img"),(function(t){ge(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)})),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var a=[];if(ve(this.items,(function(e,t){var n=e.querySelector("img"),o=i[t];o&&n&&o.src===n.src&&o.alt===n.alt||a.push(t)})),Se(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var r=a.indexOf(this.index);if(r>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-r,this.length-1),0));else{var f=this.items[this.index];Ce(f,p),f.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[c]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||Fe(e,F,this.onStart),e[c]=void 0,this):this}},Ne={getImageURL:function(e){var t=this.options.url;return ce(t)?e.getAttribute(t):ge(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Te(document,_,this.onFocusin=function(t){var n=e.viewer,o=t.target;if(o!==document&&o!==n&&!n.contains(o)){for(;o;){if(null!==o.getAttribute("tabindex")||"true"===o.getAttribute("aria-modal"))return;o=o.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Fe(document,_,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;Ce(e,A),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;Pe(e,A),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),ge(t.shown)&&Te(e,H,t.shown,{once:!0}),!1!==Ee(e,H)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),Ce(n,w),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(ge(t.hidden)&&Te(e,Y,t.hidden,{once:!0}),Ee(e,Y,null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?be(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,o=this.pointers,i=o[Object.keys(o)[0]];if(i){var a=i.endX-i.startX,r=i.endY-i.startY;switch(this.action){case u:0===a&&0===r||(this.pointerMoved=!0,this.move(a,r,e));break;case h:this.zoom(function(e){var n=t({},e),o=[];return ve(e,(function(e,t){delete n[t],ve(n,(function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),a=Math.abs(e.endX-t.endX),r=Math.abs(e.endY-t.endY),f=Math.sqrt(n*n+i*i),s=(Math.sqrt(a*a+r*r)-f)/f;o.push(s)}))})),o.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),o[0]}(o),!1,null,e);break;case d:this.action="switched";var f=Math.abs(a);f>1&&f>Math.abs(r)&&(this.pointers={},a>1?this.prev(n.loop):a<-1&&this.next(n.loop))}ve(o,(function(e){e.startX=e.endX,e.startY=e.endY}))}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},Xe=f.Viewer,He=(ze=-1,function(){return ze+=1}),We=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=ye({},a,be(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=He(),this.init()}return t=e,i=[{key:"noConflict",value:function(){return window.Viewer=Xe,e}},{key:"setDefaults",value:function(e){ye(a,be(e)&&e)}}],(n=[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[c]){t[c]=this,n.focus&&!n.keyboard&&(n.focus=!1);var o="img"===t.localName,i=[];if(ve(o?[t]:t.querySelectorAll("img"),(function(t){ge(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)})),this.isImg=o,this.length=i.length,this.images=i,this.initBody(),he(document.createElement(c).style.transition)&&(n.transition=!1),n.inline){var a=0,r=function(){var t;(a+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout((function(){e.delaying=!1,e.build()}),0))};this.initializing={abort:function(){ve(i,(function(e){e.complete||(Fe(e,O,r),Fe(e,G,r))}))}},ve(i,(function(e){var t,n;e.complete?r():(Te(e,O,t=function(){Fe(e,G,n),r()},{once:!0}),Te(e,G,n=function(){Fe(e,O,t),r()},{once:!0}))}))}else Te(t,F,this.onStart=function(t){var o=t.target;"img"!==o.localName||ge(n.filter)&&!n.filter.call(e,o)||e.view(e.images.indexOf(o))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,o=document.createElement("div");o.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var i=o.querySelector(".".concat(c,"-container")),a=i.querySelector(".".concat(c,"-title")),r=i.querySelector(".".concat(c,"-toolbar")),f=i.querySelector(".".concat(c,"-navbar")),s=i.querySelector(".".concat(c,"-button")),l=i.querySelector(".".concat(c,"-canvas"));if(this.parent=n,this.viewer=i,this.title=a,this.toolbar=r,this.navbar=f,this.button=s,this.canvas=l,this.footer=i.querySelector(".".concat(c,"-footer")),this.tooltipBox=i.querySelector(".".concat(c,"-tooltip")),this.player=i.querySelector(".".concat(c,"-player")),this.list=i.querySelector(".".concat(c,"-list")),i.id="".concat(c).concat(this.id),a.id="".concat(c,"Title").concat(this.id),Ce(a,t.title?Ge(Array.isArray(t.title)?t.title[0]:t.title):w),Ce(f,t.navbar?Ge(t.navbar):w),ke(s,w,!t.button),t.keyboard&&s.setAttribute("tabindex",0),t.backdrop&&(Ce(i,"".concat(c,"-backdrop")),t.inline||"static"===t.backdrop||Le(l,fe,"hide")),ce(t.className)&&t.className&&t.className.split(se).forEach((function(e){Ce(i,e)})),t.toolbar){var u=document.createElement("ul"),d=be(t.toolbar),h=le.slice(0,3),p=le.slice(7,9),y=le.slice(9);d||Ce(r,Ge(t.toolbar)),ve(d?t.toolbar:le,(function(e,n){var o=d&&be(e),i=d?Ie(n):e,a=o&&!he(e.show)?e.show:e;if(a&&(t.zoomable||-1===h.indexOf(i))&&(t.rotatable||-1===p.indexOf(i))&&(t.scalable||-1===y.indexOf(i))){var r=o&&!he(e.size)?e.size:e,f=o&&!he(e.click)?e.click:e,s=document.createElement("li");t.keyboard&&s.setAttribute("tabindex",0),s.setAttribute("role","button"),Ce(s,"".concat(c,"-").concat(i)),ge(f)||Le(s,fe,i),de(a)&&Ce(s,Ge(a)),-1!==["small","large"].indexOf(r)?Ce(s,"".concat(c,"-").concat(r)):"play"===i&&Ce(s,"".concat(c,"-large")),ge(f)&&Te(s,F,f),u.appendChild(s)}})),r.appendChild(u)}else Ce(r,w);if(!t.rotatable){var S=r.querySelectorAll('li[class*="rotate"]');Ce(S,k),ve(S,(function(e){r.appendChild(e)}))}if(t.inline)Ce(s,v),Se(i,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&Se(n,{position:"relative"}),n.insertBefore(i,e.nextSibling);else{Ce(s,m),Ce(i,g),Ce(i,b),Ce(i,w),Se(i,{zIndex:t.zIndex});var x=t.container;ce(x)&&(x=e.ownerDocument.querySelector(x)),x||(x=this.body),x.appendChild(i)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,ge(t.ready)&&Te(e,N,t.ready,{once:!0}),!1!==Ee(e,N)?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}])&&o(t.prototype,n),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n,i}();return ye(We.prototype,je,Be,Ue,qe,Ne),We}()},1900:function(e,t,n){"use strict";function o(e,t,n,o,i,a,r,f){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),r?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=s):i&&(s=f?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var c=l.render;l.render=function(e,t){return s.call(t),c(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:l}}n.d(t,{Z:function(){return o}})},6527:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC"},2493:function(e,t,n){"use strict";e.exports=n.p+"0db1520f47986b6c755a.svg?v=4.7.0"},1866:function(e,t,n){"use strict";e.exports=n.p+"e5c0c62d732823225aaa.eot"},1087:function(e,t,n){"use strict";e.exports=n.p+"e5c0c62d732823225aaa.eot?v=4.7.0"},137:function(e,t,n){"use strict";e.exports=n.p+"4c6f1cd9993ba8a53b8e.ttf?v=4.7.0"},206:function(e,t,n){"use strict";e.exports=n.p+"4a2487b5cc6987c4f1de.woff2?v=4.7.0"},6589:function(e,t,n){"use strict";e.exports=n.p+"06c52960c6d2c0312a3e.woff?v=4.7.0"},6981:function(e){e.exports=function(){return this.ELEMENT}()},3371:function(e){e.exports=function(){return this.Vue}()},5475:function(e){e.exports=function(){return this.jQuery}()},1319:function(e){"use strict";e.exports=o},467:function(t){"use strict";t.exports=e},6656:function(e){"use strict";e.exports=t}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,r),n.exports}r.m=i,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}(),r.b=document.baseURI||self.location.href,r.nc=void 0;var f={};return function(){"use strict";r.r(f),r.d(f,{default:function(){return C}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-audit",attrs:{fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType},on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"audit"},[n("div",{staticClass:"row no-wrap relative-position q-chips-input"},[n("div",{staticClass:"col row items-center q-input-chips",on:{click:function(t){e.opened=!0}}},[n("span",{staticClass:"aduit-result",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])])]),e._v(" "),n("el-dialog",{staticClass:"audit-modal",attrs:{visible:e.opened,modal:!1,title:e.fieldConf.name},on:{"update:visible":function(t){e.opened=t},close:e.onHide,open:e.onOpen}},[n("div",[n("el-form",{ref:"form",staticClass:"audit-modal-content",attrs:{model:e.curVal,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"审批结果:"}},[n("span",{staticClass:"aduit-result",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])]),e._v(" "),e.curVal&&e.curVal.reject_target?n("el-form-item",{attrs:{label:"回退节点:"}},[e._v("\n "+e._s(e.curVal.reject_target.name||"上一个节点")+"\n ")]):e._e(),e._v(" "),e.showSignature?n("el-form-item",{attrs:{label:"签名:",required:e.isSignatureMust}},[n("bpm-mul-image",{attrs:{fieldConf:{type:"Signature"},mode:"edit"},model:{value:e.curVal.signature,callback:function(t){e.$set(e.curVal,"signature",t)},expression:"curVal.signature"}})],1):e._e(),e._v(" "),e.showJudgment?n("el-form-item",{attrs:{label:"评审意见:",required:e.isJudgmentMust}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入评审意见"},model:{value:e.curVal.judgment,callback:function(t){e.$set(e.curVal,"judgment",t)},expression:"curVal.judgment"}})],1):e._e(),e._v(" "),e.showPhoto?n("el-form-item",{attrs:{label:"拍照:",required:e.isPhotoMust}},[n("bpm-mul-image",{attrs:{fieldConf:{type:"MulImage"},mode:"edit"},model:{value:e.curVal.photos,callback:function(t){e.$set(e.curVal,"photos",t)},expression:"curVal.photos"}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"审批日期:"}},[n("el-date-picker",{ref:"dateSelect",attrs:{type:"datetime",format:e.auditFormat},model:{value:e.curVal.audit_at,callback:function(t){e.$set(e.curVal,"audit_at",t)},expression:"curVal.audit_at"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"审批人:"}},[e._v("\n "+e._s(e.curVal.auditor_name)+"\n ")])],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.opened=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)])],1)};t._withStripped=!0;var n=r(467),o=r.n(n),i=r(3371),a=r.n(i),s=r(6981),l=r(5887);a().use(s.Dialog),a().use(s.DatePicker),a().use(l.default);var c={data(){return{curVal:{result:1,judgment:"",photos:[],reject_target:"",signature:"",auditor_name:"",audit_at:"",auditor:""},opened:!1,dispMode:"nolink",auditFormat:"yyyy-MM-dd HH:mm:ss",userList:[]}},props:["value","fieldConf","row"],computed:{useDetail(){return!!o().get(this.fieldConf,"detail_allow",null)&&!!o().get(this.fieldConf,"detail_deny",null)},resultColor(){let e=o().get(this.curVal,"result",-1),t=1==e?this.allowColor:-1==e?null:this.denyColor;return this.useDetail?t:null},allowColor(){let e=o().get(this.fieldConf,"detail_allow.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},getViewFont(){let e=this.curVal.result,t=1==e?"通过":-1==e?"":"不通过";return this.useDetail&&(t=1==e?o().get(this.fieldConf,"detail_allow.text","通过"):-1==e?"":o().get(this.fieldConf,"detail_deny.text","不通过")),t},jucdgment(){let e=this.curVal.result,t=o().get(this.fieldConf,"judgment");return this.useDetail&&(t=1==e?o().get(this.fieldConf,"detail_allow.judgment"):o().get(this.fieldConf,"detail_deny.judgment")),t},showJudgment(){return"yes"==this.jucdgment||"must"==this.jucdgment},denyColor(){let e=o().get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},signature(){let e=this.curVal.result,t=o().get(this.fieldConf,"signature");return this.useDetail&&(t=1==e?o().get(this.fieldConf,"detail_allow.signature"):o().get(this.fieldConf,"detail_deny.signature")),t},showSignature(){return"yes"==this.signature||"must"==this.signature},photo(){let e=this.curVal.result,t=o().get(this.fieldConf,"photo");return this.useDetail&&(t=1==e?o().get(this.fieldConf,"detail_allow.photo"):o().get(this.fieldConf,"detail_deny.photo")),t},showPhoto(){return"yes"==this.photo||"must"==this.photo},isJudgmentMust(){return"must"==this.judgment},isSignatureMust(){return"must"==this.signature},isPhotoMust(){return"must"==this.photo},isRequired(){return o().get(this.fieldConf,"check.required")},getCanvasBoxStyle(){return{height:"150px",width:"100%"}}},created(){},mounted(){if(this.value){let e=o().cloneDeep(this.value);e.audit_at=1e3*e.audit_at,this.curVal=o().merge(this.curVal,e)}this.useDetail&&(this.selectOptions=[{label:o().get(this.fieldConf,"detail_allow.text","通过"),value:1},{label:o().get(this.fieldConf,"detail_deny.text","不通过"),value:2}])},methods:{onHide(){this.opened=!1,this.showForm=!1},onOpen(){if(this.value){let e=o().cloneDeep(this.value);e.audit_at=1e3*e.audit_at,this.curVal=o().merge(this.curVal,e)}},async onSubmit(){let e=this.curVal;if(this.isRequired&&!e.result)return void this.$q.notify({message:"请选择审批结果",position:"top",type:"warning"});if(this.isSignatureMust&&!e.signature)return void this.$q.notify({message:"请完成签名",position:"top",type:"warning"});if(this.isJudgmentMust&&!e.judgment)return void this.$q.notify({message:"请填写意见",position:"top",type:"warning"});if(this.isPhotoMust&&o().isEmpty(e.photos))return void this.$q.notify({message:"请至少上传一张图片",position:"top",type:"warning"});let t={result:e.result,signature:e.signature,judgment:e.judgment,photos:e.photos,audit_at:e.audit_at/1e3,auditor:e.auditor,auditor_name:e.auditor_name};this.$emit("change",t),this.$emit("input",t),this.opened=!1},getRejectTarget(e){return"last_id"==e?{type:"RejectToLastUserNode"}:e}}},u=r(1900),d=(0,u.Z)(c,t,[],!1,null,null,null);d.options.__file="components/lib/bpmAudit/src/part/editor.vue";var h=d.exports,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item-no-input audit"},[n("div",{staticClass:"row no-wrap relative-position q-chips-input"},[n("div",{staticClass:"col row no-wrap relative-position"},[e.modalShow?n("div",{staticClass:"col row items-center q-input-chips text-primary",on:{click:function(t){e.opened=!0}}},[n("span",{staticClass:"aduit-result",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])]):n("div",{staticClass:"col row items-center text-primary",on:{click:function(t){e.opened=!0}}},[n("span",{staticClass:"aduit-result",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])])])]),e._v(" "),e.value&&e.value.reject_target?n("div",{staticClass:"el-form-item-required",attrs:{label:"回退节点:"}},[e._v("\n "+e._s(e.value.reject_target.name||"上一个节点")+"\n ")]):e._e(),e._v(" "),e.showSignature||e.showJudgment||e.showPhoto?n("el-dialog",{staticClass:"audit-modal read-audit",attrs:{visible:e.opened,modal:!1,ok:!1,title:e.fieldConf.name},on:{"update:visible":function(t){e.opened=t},close:e.onHide}},[n("div",[e.value?n("el-form",{ref:"form",staticClass:"audit-modal-content",attrs:{model:e.curVal,"label-width":"120px"}},[n("el-form-item",{staticClass:"el-form-item-required",attrs:{label:"审批结果:"}},[n("span",{staticClass:"aduit-result",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])]),e._v(" "),e.value&&e.value.reject_target?n("el-form-item",{staticClass:"el-form-item-required",attrs:{label:"回退节点:"}},[e._v("\n "+e._s(e.value.reject_target.name||"上一个节点")+"\n ")]):e._e(),e._v(" "),e.showSignature?n("el-form-item",{attrs:{label:"签名:",required:e.isSignatureMust}},[n("bpm-mul-image",{attrs:{value:e.value.signature,fieldConf:{type:"Signature"}}})],1):e._e(),e._v(" "),e.showJudgment?n("el-form-item",{attrs:{label:"填写意见:",required:e.isJudgmentMust}},[n("span",{attrs:{title:e.value&&e.value.judgment}},[e._v(e._s(e.value&&e.value.judgment?e.value.judgment:"--"))])]):e._e(),e._v(" "),e.showPhoto?n("el-form-item",{class:e.isPhotoMust?"el-form-item-required":"",attrs:{label:"拍照:"}},[n("bpm-mul-image",{attrs:{value:e.value.photos,fieldConf:{type:"MulImage"}}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"审批人"}},[e._v(e._s(e.auditorName))]),e._v(" "),n("el-form-item",{attrs:{label:"审批时间"}},[e._v(e._s(e.auditAt))])],1):e._e()],1)]):e._e()],1)};p._withStripped=!0;var m=r(1319),b=r.n(m);a().use(s.Dialog),a().use(l.default);var g={props:["value","fieldConf","row"],data(){return{opened:!1,auditFormat:"YYYY-MM-DD HH:mm:ss"}},computed:{useDetail(){return!!o().get(this.fieldConf,"detail_allow",null)&&!!o().get(this.fieldConf,"detail_deny",null)},resultColor(){let e=o().get(this.value,"result",-1),t=1==e?this.allowColor:-1==e?null:this.denyColor;return this.useDetail?t:null},allowColor(){let e=o().get(this.fieldConf,"detail_allow.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},denyColor(){let e=o().get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},getViewFont(){let e=o().get(this.value,"result",-1),t=1==e?"通过":-1==e?"未审批":"不通过";return this.useDetail&&(t=1==e?o().get(this.fieldConf,"detail_allow.text","通过"):-1==e?"未审批":o().get(this.fieldConf,"detail_deny.text","不通过")),t},hasAudited(){return-1!=o().get(this.value,"result",-1)},showJudgment(){let e=o().get(this.fieldConf,"judgment");return"yes"==e||"must"==e},showSignature(){let e=o().get(this.fieldConf,"signature");return"yes"==e||"must"==e},showPhoto(){let e=o().get(this.fieldConf,"photo");return"yes"==e||"must"==e},isJudgmentMust(){return"must"==o().get(this.fieldConf,"judgment")},isSignatureMust(){return"must"==o().get(this.fieldConf,"signature")},isPhotoMust(){return"must"==o().get(this.fieldConf,"photo")},isRequired(){return o().get(this.fieldConf,"check.required")},modalShow(){return(this.showSignature||this.showJudgment||this.showPhoto)&&this.hasAudited},auditAt(){let e=o().get(this.value,"audit_at");if(e)return e*=1e3,b().format(e,this.auditFormat)},auditorName(){return o().get(this.value,"auditor_name")}},mounted(){},methods:{onHide(){this.opened=!1}}},v=(0,u.Z)(g,p,[],!1,null,null,null);v.options.__file="components/lib/bpmAudit/src/part/reader.vue";var y=v.exports,w={name:"BpmAudit",components:{editorComponent:h,readerComponent:y},props:{value:{type:[Object]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}}},computed:{curComponent(){return"view"==this.mode?y:h}},data(){return{curVal:{}}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{onChange(e){console.log("onChange",_.cloneDeep(e)),this.$emit("input",e),this.$emit("change",e)}}},S=(0,u.Z)(w,e,[],!1,null,null,null);S.options.__file="components/lib/bpmAudit/src/main.vue";var x=S.exports;x.install=function(e){e.component(x.name,x)};var C=x}(),f}()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs"),require("fecha")):"function"==typeof define&&define.amd?define(["lodash","qs","fecha"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs"),require("fecha")):e.bpm2=t(e.lodash,e.qs,e.fecha)}(self,(function(e,t,i){return function(){var o={5176:function(e,t,n){"use strict";n.d(t,{default:function(){return E}});var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-mul-image",attrs:{fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1),e.$listeners))};i._withStripped=!0;var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-mul-image-edit"},[n("el-upload",e._g(e._b({ref:"uploader",attrs:{action:e.url,name:"userfile","show-file-list":!1,multiple:"",limit:e.maxCount,accept:e.extensions,"before-upload":e.handleAdd,"on-success":e.onUploaded,"on-error":e.onFail,"file-list":e.fileList}},"el-upload",e.$attrs,!1),e.$listeners),[n("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:e.disabled},slot:"trigger"},[e._v("点击上传")])],1),e._v(" "),n("div",{staticClass:"row gutter-sm q-my-sm file-list"},[e.curVal&&e.curVal.length?[n("viewer",{staticClass:"row gutter-sm q-my-sm file-list",staticStyle:{width:"100%"},attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,(function(t){return n("div",{key:t.md5,staticClass:"col-12 file-box"},[e.isImageFile(t)?n("span",{staticClass:"file-content",on:{click:function(n){return e.previewImg(t)}}},[n("img",{staticClass:"preview-img",attrs:{src:e.fileLink(t)}})]):n("span",{staticClass:"file-content q-mb-xs",on:{click:function(n){return e.preview(t)}}},[n("div",{staticClass:"text-left text-faded"},[n("i",{staticClass:"q-icon fa fa-file-pdf-o",class:e.getFileTypeClass(t),attrs:{"aria-hidden":"true"}})])]),e._v(" "),n("div",{staticClass:"relative-position file-link ellipsis",attrs:{title:t.name}},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),n("div",{staticClass:"file-remove",on:{click:function(n){return e.remove(t.md5,t)}}},[e._v("删除")])])})),0)]:[n("div",{staticClass:"col-auto",staticStyle:{"padding-top":"0px","font-size":"12px"}},[e._v("\n 未发现上传文件\n ")])]],2),e._v(" "),n("img",{staticStyle:{display:"none"},attrs:{id:"image",src:""}}),e._v(" "),n("div",{staticStyle:{height:"100px",width:"109px",display:"none"},attrs:{id:"container"}})],1)};o._withStripped=!0;var a=n(467),r=n.n(a),s=n(6981),f=n(4239),l=n(3371),c=n.n(l),u=n(5273),d=n.n(u),h=(n(7770),n(5403),n(2918)),m=n.n(h);var p={insertEXIF:function(e,t,n){if(e instanceof Blob){var i=this,o=new FileReader;o.onload=function(){i.insertEXIF(o.result,t,n)},o.readAsArrayBuffer(e)}else{var a=[].slice.call(new Uint8Array(e),0);if(255!==a[2]||224!==a[3])return e;var r=256*a[4]+a[5],s=[255,216].concat(t,a.slice(4+r));n(new Uint8Array(s))}},getEXIF:function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++){var i=e[n];255===i[0]&&225===i[1]&&(t=t.concat(i))}return t},getSegments:function(e,t){if(e instanceof Blob){var n=this,i=new FileReader;i.onload=function(){n.getSegments(i.result,t)},i.readAsArrayBuffer(e)}else{if(!e.length&&!e.byteLength)return[];var o,a,r=0,s=[],f=[].slice.call(new Uint8Array(e),0);let n=1;for(;n&&(255!==f[r]||218!==f[r+1])&&(255===f[r]&&216===f[r+1]?r+=2:(o=r+(256*f[r+2]+f[r+3])+2,a=f.slice(r,o),r=o,s.push(a)),!(r>f.length)););t(s)}},decode64:function(e){var t="data:image/jpeg;base64,";if(e.slice(0,23)!==t)return[];for(var n=window.atob(e.replace(t,"")),i=new Uint8Array(n.length),o=0,a=n.length;o<a;o++)i[o]=n.charCodeAt(o);return i},encode64:function(e){for(var t="",n=0,i=e.length;n<i;n++)t+=String.fromCharCode(e[n]);return"data:image/jpeg;base64,"+window.btoa(t)}},g=n(5475),b=n.n(g);function v(e){let t="";b()(".viewer-in .address").length?(e&&(t='<i class="fa fa-map-marker"></i>'+e),b()(".viewer-in .address").html(t)):(e&&(t='<div class="address"><i class="fa fa-map-marker"></i>'+e+"</div>"),b()(".viewer-in .viewer-footer").append(t))}async function y(e){if(v(""),!function(e){return r().startsWith(e.type,"image")}(e))return;let t=await zj.net.w.noapi({url:`/platform/v1/papi/app_file/download/?file_md5=${e.md5}&webp=0`}),n=r().get(t,"url_list.0.path.0");v("定位信息加载中...");let i=document.createElement("img");i.src=n;let o=this;setTimeout((()=>{try{b().ajax({url:`${n}?exif`,success:e=>{e&&e.GPSLatitude?o.setPs(e):m().getData(i,(function(){var e=m().getAllTags(this);console.log("info",e),o.setPs(e)}))},error:()=>{m().getData(i,(function(){var e=m().getAllTags(this);console.log("info",e),o.setPs(e)}))}})}catch(e){m().getData(i,(function(){var e=m().getAllTags(this);o.setPs(e)}))}}),600)}function w(e){console.log("filePath",e);var t=e.lastIndexOf(".");return-1!=t?e.substring(t+1,e.length).toLowerCase():""}c().use(s.Upload),c().use(s.Button),c().use(s.Dialog);const S=n(8);c().use(d()),d().setDefaults({Options:{inline:!0,button:!0,navbar:!0,title:!0,toolbar:!0,tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!0,keyboard:!0,url:"data-source"}});var x=null,C={props:{type:{type:String,default:"MulImage"},value:{},fieldConf:{},row:{},extensions:{type:String,default(){return"jpg,.jpeg,.png,.dwg"}}},data(){return{curVal:[],fileList:[],opened:!1,officeUrl:"",windowH:0}},watch:{value(){this.curVal=this.isSign&&r().isString(this.value)&&this.value?[{md5:this.value,name:"",type:"image/png"}]:this.value}},computed:{url(){return"/platform/v1/papi/app_file/upload/"},isSign(){return"Signature"===this.type||"Signature"==this.fieldConf.type},photo(){let e=[];return r().each(this.curVal,(t=>{if(this.isImageFile(t)){let n=this.fileLink(t,600);e.push(n)}})),e},photoMd5s(){let e=[];return r().each(this.curVal,(t=>{this.isImageFile(t)&&e.push(t.md5)})),e},maxCountConf(){return r().get(this.fieldConf,"check.max_count")},maxCount(){return this.maxCountConf-this.curVal&&this.curVal.length},disabled(){return(this.curVal?this.curVal:[]).length>=this.maxCountConf}},created(){},mounted(){this.curVal=this.isSign&&r().isString(this.value)&&this.value?[{md5:this.value,name:"签名",type:"image/png"}]:this.value,this.windowH=document.body.clientHeight/100*99-50,this.appendJs("https://webapi.amap.com/maps?v=1.4.15&key=c2195d5de1c163ebfb118bad93c8bbd3",(()=>{var e=new x.Map("container",{resizeEnable:!0});e.plugin("AMap.Geolocation",(()=>{let t=new x.Geolocation({enableHighAccuracy:!0,timeout:1e4,maximumAge:0,convert:!0,showButton:!0,buttonPosition:"LB",buttonOffset:new x.Pixel(10,20),showMarker:!0,showCircle:!0,panToLocation:!0,zoomToAccuracy:!0});e.addControl(t),t.getCurrentPosition(),x.event.addListener(t,"complete",(e=>{this.position=e.position})),x.event.addListener(t,"error",(e=>{console.log("定位出错-error",e)}))}))}))},methods:{appendJs(e){let t=document.createElement("script"),n={type:"text/javascript",async:/^http/.test(e)?"async":"",src:e};for(var i in n)t[i]=n[i];document.head.appendChild(t)},inited(e){e.options.view=this.view,this.$viewer=e},view(e){let t=e.detail.index,n=r().filter(this.curVal,(e=>this.isImageFile(e)));y(r().get(n,t))},previewImg(e){let t=r().indexOf(this.photoMd5s,e.md5);this.$viewer.view(t)},isDwg(e){return r().endsWith(e.name,".dwg")},getFileTypeClass(e){let t=w(e.type);return t=t||w(e.name),r().endsWith(e.name,".dwg")&&(t="dwg"),r().get({document:"fa-file-word-o",sheet:"fa-file-excel-o",doc:"fa-file-word-o",docx:"fa-file-word-o",xlsx:"fa-file-excel-o","ms-excel":"fa-file-excel-o",dwg:"fa-file-image-o",png:"fa-file-image-o",jpg:"fa-file-image-o"},t)},handleAdd(){let e=this.fileList;r().each(e,((e,t)=>{!function(e,t){if(-1==e.type.indexOf("image"))t(null);else{let n=new FileReader,i=new Image;n.readAsDataURL(e),n.onload=function(){e.src=this.result,i.onload=function(){let t=i.width,n=i.height;e.width=t,e.height=n},i.src=e.src,function(e,t,n,i){var o=new Image;o.src=e.src,o.onload=function(){var e=this,o=e.width,a=e.height,r=o/a;o=t.width||o,a=t.height||o/r;var s=.7,f=document.createElement("canvas"),l=f.getContext("2d"),c=document.createAttribute("width");c.nodeValue=o;var u=document.createAttribute("height");u.nodeValue=a,f.setAttributeNode(c),f.setAttributeNode(u);try{m().getData(n,(function(){let n=m().getTag(this,"GPSLatitude");l.drawImage(e,0,0,o,a),t.quality&&t.quality<=1&&t.quality>0&&(s=t.quality);var r=f.toDataURL("image/jpeg",s);i(r,n)}))}catch(n){l.drawImage(e,0,0,o,a),t.quality&&t.quality<=1&&t.quality>0&&(s=t.quality);var d=f.toDataURL("image/jpeg",s);i(d,null)}}}(e,{quality:.4},e,t)}}}(e,((n,i)=>{n&&p.getSegments(new Blob([e]),(o=>{let a=this.dataURLtoFile(n,e.name),s=p.getEXIF(o);if(!r().isEmpty(s)&&i)p.insertEXIF(a,s,(n=>{let i=new Blob([n],{type:e.type});i.name=e.name,i.lastModifiedDate=new Date,this.fileList[t]=i}));else{let i={},o={},a={};i[S.ImageIFD.Make]="lse";let r=this.position.lat,s=this.position.lng;a[S.GPSIFD.GPSLatitudeRef]=r<0?"S":"N",a[S.GPSIFD.GPSLatitude]=S.GPSHelper.degToDmsRational(r),a[S.GPSIFD.GPSLongitudeRef]=s<0?"W":"E",a[S.GPSIFD.GPSLongitude]=S.GPSHelper.degToDmsRational(s),a[S.GPSIFD.GPSImgDirection]=[123456,100];let f={"0th":i,Exif:o,GPS:a},l=S.dump(f),c=S.insert(l,n),u=this.dataURLtoFile(c,e.name);this.fileList[t]=u}}))}))}))},dataURLtoFile(e,t){let n=e.split(","),i=n[0].match(/:(.*?);/)[1],o=atob(n[1]),a=o.length,r=new Uint8Array(a);for(;a--;)r[a]=o.charCodeAt(a);return new File([r],t,{type:i})},isImageFile(e){return r().startsWith(e.type,"image")},itemSideImageAttr(e){let t={};return this.isImageFile(e)?t.image=this.fileLink(e):t.icon="fa fa-file",t},fileLink(e){if(!e||!e.md5)return;let t=this.isImageFile(e),n={file_md5:e.md5};return t||(n.is_file=1),(0,f.QE)("/platform/v1/papi/web_file/image_view/",n)},async preview(e){if("dwg/dwg"==e.type)return;let t=await zj.net.w.noapi({url:`/platform/v1/papi/app_file/download/?file_md5=${e.md5}&webp=0`}),n=r().get(t,"url_list.0.path.0"),i=w(n);"application/pdf"==e.type&&(i="pdf"),"application/vnd.ms-excel"==e.type&&(i="ms-excel");let o=function(){let e=(new Date).valueOf();return function(e){let t=0,n=e.length;for(let i=0;i<n;i++)t=31*t+e.charCodeAt(i),t>2147483647&&(t%=2147483648);return t}(function(e,t,n){let i="",o=6,a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];for(let e=0;e<o;e++)i+=a[Math.round(Math.random()*(a.length-1))];return i}()+e.toString())}(),a=`https://${window.location.host}/zj_of/v1/papi/file/read_only/?md5=${e.md5}&type=${{document:"Word.Document",docx:"Word.Document",doc:"Word.Document",sheet:"Excel.Sheet",pdf:"pdf",xlsx:"Excel.Sheet","ms-excel":"Excel.Sheet"}[i]}&sign=${o}`;if("wps"!=(await zj.net.w.noapi({url:"/zj_of/v1/papi/file/using_engine/"})).engine&&(a="https://view.officeapps.live.com/op/embed.aspx?src="+encodeURIComponent(n)),"pdf"==i){let e=n.lastIndexOf(".com");n=n.substring(e+4,n.length),n=encodeURIComponent(n),a=(0,f.tq)()?`/public/app3/bpm/view_pdf.html?url=${n}`:`/public/bpm/app/view_pdf.html?url=${n}`}this.officeUrl=a,this.opened=!0},onFail(e,t){let n=`${t.name}上传失败`;console.log("err:",n)},onUploaded(e,t){console.log("file",t);let n=r().isArray(this.curVal)?this.curVal:[];n.push({name:t.name,type:r().get(t,"raw.type"),md5:r().get(e,"data.file_md5")}),this.curVal=r().cloneDeep(n);let i=this.isSign?r().get(this.curVal,"0.md5",""):this.curVal;this.$emit("input",i)},remove(e){this.curVal=r().filter(this.curVal,(t=>t.md5!=e)),this.$refs.uploader.queue=[];let t=this.isSign?r().get(this.curVal,"0.md5",""):this.curVal;this.$emit("input",t)},onHide(){this.opened=!1},onOpen(){this.opened=!0}}},_=C,P=n(1900),k=(0,P.Z)(_,o,[],!1,null,null,null);k.options.__file="components/lib/bpmMulImage/src/part/editor.vue";var D=k.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-mul-image-reader"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.curVal||0==e.curVal.length,expression:"!curVal || curVal.length == 0"}]},[e._v("暂无图片")]),e._v(" "),e.isSignature&&e.curVal&&e.curVal[0]?[n("img",{attrs:{src:e.fileLink(e.curVal[0]),alt:"电子签名",width:"100%",height:"100%"}})]:n("viewer",{ref:"viewer",attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,(function(t){return n("span",{key:t.md5},[e.isImageFile(t)?n("div",{staticClass:"file-box"},[n("div",{staticClass:"file-icon",staticStyle:{height:"20px",border:"1px dashed #ececec"}},[n("img",{attrs:{src:e.fileLink(t,600),alt:""}})]),e._v(" "),n("div",{staticClass:"relative-position tc file-link ellipsis",attrs:{title:t.name}},[e._v("\n "+e._s(t.name)+"\n ")])]):e._e()])})),0),e._v(" "),n("img",{staticStyle:{display:"none"},attrs:{id:"image",src:""}})],2)};I._withStripped=!0,c().use(d()),d().setDefaults({Options:{inline:!0,button:!0,navbar:!0,title:!0,toolbar:!0,tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!1,fullscreen:!1,keyboard:!0}});var L={props:["type","value","fieldConf","row"],data(){return{vueLightId1:null,photo:[],curVal:[],officeUrl:"",opened:!1,windowH:0}},computed:{is_mobile(){return(0,f.tq)()},isSignature(){return"Signature"===this.type}},watch:{value(){this.curVal=r().isString(this.value)?[{md5:this.value,name:"",type:"image/png"}]:this.value,this.setPhoto()}},created(){},mounted(){let e=(new Date).getTime();this.vueLightId1=e+1,this.curVal=r().isString(this.value)?[{md5:this.value,name:"",type:"image/png"}]:this.value,this.setPhoto(),this.windowH=document.body.clientHeight/100*99-50},methods:{isDwg(e){return r().endsWith(e.name,".dwg")},inited(e){e.options.view=this.view,this.$viewer=e},view(e){let t=e.detail.index,n=r().filter(this.curVal,(e=>this.isImageFile(e)));y(r().get(n,t))},setPhoto(){let e=[];r().each(this.curVal,(t=>{if(this.isImageFile(t)){let n=this.fileLink(t,600);e.push(n)}})),this.photo=e},getFileTypeClass(e){let t=w(e.type);return"application/pdf"==e.type&&(t="fa-file-pdf-o"),r().get({document:"fa-file-word-o",sheet:"fa-file-excel-o",doc:"fa-file-word-o",docx:"fa-file-word-o",xlsx:"fa-file-excel-o","ms-excel":"fa-file-excel-o",dwg:"fa-file-image-o",png:"fa-file-image-o",jpg:"fa-file-image-o"},t)},isImageFile(e){return r().startsWith(e.type,"image")},fileLink(e){if(!e||!e.md5)return;let t=this.isImageFile(e),n={file_md5:e.md5};return t||(n.is_file=1),(0,f.QE)("/platform/v1/papi/web_file/image_view/",n)},onHide(){this.opened=!1},onOpen(){this.opened=!0}}},A=(0,P.Z)(L,I,[],!1,null,null,null);A.options.__file="components/lib/bpmMulImage/src/part/reader.vue";var T=A.exports,R={name:"BpmMulImage",components:{editorComponent:D,readerComponent:T},props:{value:{type:[String,Array]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}}},data(){return{curVal:""}},computed:{curComponent(){return"view"==this.mode?T:D}},watch:{curVal(e){this.$emit("input",e),this.$emit("change",e)},value(){this.curVal=this.value}},mounted(){this.curVal=this.value}},j=(0,P.Z)(R,i,[],!1,null,null,null);j.options.__file="components/lib/bpmMulImage/src/main.vue";var F=j.exports;F.install=function(e){e.component(F.name,F)};var E=F},6324:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-signature",staticStyle:{position:"relative"}},["edit"===e.mode?[e.openLastSign&&e.lastSign?n("div",{staticClass:"canvas-box",staticStyle:{position:"absolute","border-color":"#fff"}},[n("bpm-mul-image",{staticClass:"signature-reader",attrs:{type:"Signature",value:e.curSign}})],1):e._e(),e._v(" "),n("div",{staticClass:"canvas-box"},[n("canvas",{ref:"canvasElem"})]),e._v(" "),n("div",{staticClass:"action-wrap"},[e.openLastSign?n("el-checkbox",{staticStyle:{"margin-right":"10px"},attrs:{label:e.$z("保留签名以备下次调用","b2.common.sign_for_next_use")},model:{value:e.useNextUser,callback:function(t){e.useNextUser=t},expression:"useNextUser"}}):e._e(),e._v(" "),n("el-button",{attrs:{size:"default"},on:{click:e.clearSignature}},[e._v(e._s(e.$z("重置签名","b2.common.reset_sign")))])],1)]:n("bpm-mul-image",{staticClass:"signature-reader",attrs:{type:"Signature",value:e.curSign}})],2)};i._withStripped=!0;var o=n(5176);function a(e,t,n={},i={}){if(!(this instanceof a))return new a(e,n);if(!e)return;let{width:o,height:r}=window.getComputedStyle(e,null);o=o.replace("px",""),r=r.replace("px",""),this.canvas=e,this.context=e.getContext("2d"),this.width=o,this.height=r;const s=this.context,f=window.devicePixelRatio;f?(e.style.width=`${o}px`,e.style.height=`${r}px`,e.height=r*f,e.width=o*f,s.scale(f,f)):(e.width=o,e.height=r),s.lineWidth=2,s.strokeStyle="black",s.lineCap="round",s.lineJoin="round",Object.assign(s,n);const l={},c=/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(navigator.userAgent);c||(s.shadowBlur=1,s.shadowColor="black");let u=!1;const d=t=>n=>{if(n.preventDefault(),1===t&&(u=!0),1===t||u){const{left:i,top:o}=e.getBoundingClientRect();n=c?n.touches[0]:n,l.x=n.clientX-i+.5,l.y=n.clientY-o+.5,(e=>{switch(e){case 1:s.beginPath(),s.moveTo(l.x,l.y);break;case 2:s.lineTo(l.x,l.y),s.stroke()}})(t)}},h=d(1),m=d(2),p=window.requestAnimationFrame,g=p?e=>{p((()=>{m(e)}))}:m;if(c?(e.addEventListener("touchstart",h),e.addEventListener("touchmove",g)):(e.addEventListener("mousedown",h),e.addEventListener("mousemove",g),["mouseup","mouseleave"].forEach((t=>{e.addEventListener(t,(()=>{u=!1}))}))),"number"==typeof t)switch(this.degree=t,s.rotate(t*Math.PI/180),t){case-90:s.translate(-r,0);break;case 90:s.translate(0,-o);break;case-180:case 180:s.translate(-o,-r)}}a.prototype={scale(e,t,n=this.canvas){const i=n.width,o=n.height;if(t=t||o,(e=e||i)!==i||t!==o){const a=document.createElement("canvas"),r=a.getContext("2d");a.width=e,a.height=t,r.drawImage(n,0,0,i,o,0,0,e,t),n=a}return n},rotate(e,t=this.canvas){if(0!=(e=~~e)){const n=180,i=-90;e>n?e=n:e<i&&(e=i);const o=document.createElement("canvas"),a=o.getContext("2d"),r=t.height,s=t.width,f=e*Math.PI/180;switch(e){case-90:o.width=r,o.height=s,a.rotate(f),a.drawImage(t,-s,0);break;case 90:o.width=r,o.height=s,a.rotate(f),a.drawImage(t,0,-r);break;case 180:o.width=s,o.height=r,a.rotate(f),a.drawImage(t,-s,-r)}t=o}return t},getPNGImage(e=this.canvas){return e.toDataURL("image/png")},getJPGImage(e=this.canvas){return e.toDataURL("image/jpeg",.5)},downloadPNGImage(e){const t=e.replace("image/png","image/octet-stream;Content-Disposition:attachment;filename=test.png");window.location.href=t},dataURLtoBlob(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],i=atob(t[1]);let o=i.length;const a=new Uint8Array(o);for(;o--;)a[o]=i.charCodeAt(o);return new Blob([a],{type:n})},clear(){let e,t;switch(this.degree){case-90:case 90:e=this.height,t=this.width;break;default:e=this.width,t=this.height}this.context.clearRect(0,0,e,t)},upload(e,t,n,i){const o=new FormData,a=new XMLHttpRequest;a.withCredentials=!0,o.append("image",e,"sign"),a.open("POST",t,!0),a.onload=()=>{a.status>=200&&a.status<300||304===a.status?n(a.responseText):i()},a.onerror=e=>{"function"==typeof i?i(e):console.log(`upload img error: ${e}`)},a.send(o)}};var r=a,s={name:"BpmSignature",components:{BpmMulImage:o.default},props:{value:{type:String},type:{type:String,default:"Signature"},fieldConf:{type:Object,default(){return{}}},mode:{type:String,default:"edit"},uiType:{type:String,default:"default"},container:{type:[Object,null],default(){return null}}},data(){return{curSign:"",hasDraw:!1,openLastSign:!0,lastSign:"",useNextUser:!1,canvas:null,timer:null}},watch:{value(e){e&&(this.curSign=e)},curSign(e){this.$emit("input",e),this.$emit("change",e,{open:this.openLastSign,for_next_use:this.useNextUser,signature:this.curSign})}},created(){},mounted(){"edit"===this.mode&&this.$nextTick((()=>{this.initCanvas()}));let e=this.container;e&&(console.log("Singnature topContainer: ",e),e.$on("afterFormSubmit",(e=>{console.log("Singnature topContainer afterFormSubmit"),!e&&this.openLastSign&&this.curSign&&this.$bpm.postEleSign(this.curSign,this.useNextUser)})),e.$on("dataLoaded",(e=>{console.log("Singnature topContainer dataLoaded"),this.onDataLoaded(e),this.curSign=null,this.useNextUser=!1,this.handleInit(),setTimeout((()=>{this.initCanvas()}),100)})))},methods:{handleInit(){let e=this.$bpm.userSign;this.openLastSign=e.open,e.for_next_use&&(this.lastSign=e.signature),this.openLastSign&&this.lastSign&&(this.curSign=e.signature),e.for_next_use&&this.openLastSign&&(this.useNextUser=!0),console.log("userSign: ",e)},initCanvas(){this.hasDraw=!1,this.canvas&&(this.canvas.removeEventListener("touchstart",(function(){})),this.canvas.removeEventListener("mousedown",(function(){})),this.canvas.removeEventListener("touchend",(function(){})),this.canvas.removeEventListener("mouseup",(function(){}))),console.log("初始化initCanvas"),this.canvas=this.$refs.canvasElem,this.draw=new r(this.canvas,-this.degree,{},{}),this.canvas.addEventListener("touchstart",(()=>{this.timer&&(clearTimeout(this.timer),this.timer=null),this.hasDraw=!0})),this.canvas.addEventListener("mousedown",(()=>{this.timer&&(clearTimeout(this.timer),this.timer=null),this.hasDraw=!0})),this.canvas.addEventListener("touchend",(()=>{this.timer||(this.timer=setTimeout((()=>{this.transToImg()}),1e3))})),this.canvas.addEventListener("mouseup",(()=>{this.timer||(console.log("mouseup"),this.timer=setTimeout((()=>{this.transToImg()}),1e3))}))},onDataLoaded(e){this.hasDraw=!1,this.draw&&this.draw.clear()},clearSignature(){this.hasDraw=!1,this.draw&&this.draw.clear(),this.curSign=null,this.lastSign=""},transToImg(){if(console.log("Canvas transToImg called"),this.draw){let e=this.draw.getPNGImage();console.log("Signature canvas img: ",e),this.uploadImage({basestr:e,type:"png",name:"签名图片.png",model:"userfile"},(e=>{this.curSign=e,this.timer=null,console.log("Signature img md5: ",e)}))}},uploadImage({basestr:e,type:t,name:n,model:i},o){let a=window.atob(e.split(",")[1]),r=new ArrayBuffer(a.length),s=new Uint8Array(r);for(let e=0;e<a.length;e++)s[e]=a.charCodeAt(e);let f,l=window.WebKitBlobBuilder||window.MozBlobBuilder;if(l){let e=new l;e.append(r),f=e.getBlob(t)}else f=new window.Blob([r],{type:t});let c=new FormData;c.append(i,f,n),zj.net.w.noapi({method:"POST",url:"/platform/v1/papi/app_file/upload/",data:c,processData:!1,contentType:!1}).then((e=>{o&&o(e.file_md5)}))}}},f=(0,n(1900).Z)(s,i,[],!1,null,null,null);f.options.__file="components/lib/bpmSignature/src/main.vue";var l=f.exports;l.install=function(e){e.component(l.name,l)};var c=l},4239:function(e,t,n){"use strict";n.d(t,{QE:function(){return s},tq:function(){return f}});var i=n(467),o=n.n(i),a=n(6656),r=n.n(a);function s(e,t={}){o().isFunction(e)&&(e=e(t));let n=o().get(e.match(/\?([^#]+)/),"1");if(n){let i=r().parse(n);i=function(...e){return o().assignIn({},...e)}(i,t),e=o().replace(e,n,r().stringify(i))}else e=e+"?"+r().stringify(t);return e}function f(){for(var e=["iphone","ipod","ipad","android","mobile","blackberry","webos","incognito","webmate","bada","nokia","lg","ucweb","skyfire"],t=navigator.userAgent.toLowerCase(),n=!1,i=0,o=e.length;i<o;i++)-1!=t.indexOf(e[i])&&(n=!0);return n}},1203:function(e,t,n){"use strict";var i=n(8081),o=n.n(i),a=n(3645),r=n.n(a),s=n(1667),f=n.n(s),l=new URL(n(1087),n.b),c=new URL(n(1866),n.b),u=new URL(n(206),n.b),d=new URL(n(6589),n.b),h=new URL(n(137),n.b),m=new URL(n(2493),n.b),p=r()(o()),g=f()(l),b=f()(c,{hash:"?#iefix&v=4.7.0"}),v=f()(u),y=f()(d),w=f()(h),S=f()(m,{hash:"#fontawesomeregular"});p.push([e.id,"/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:'FontAwesome';src:url("+g+");src:url("+b+") format('embedded-opentype'),url("+v+") format('woff2'),url("+y+") format('woff'),url("+w+") format('truetype'),url("+S+') format(\'svg\');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\f000"}.fa-music:before{content:"\\f001"}.fa-search:before{content:"\\f002"}.fa-envelope-o:before{content:"\\f003"}.fa-heart:before{content:"\\f004"}.fa-star:before{content:"\\f005"}.fa-star-o:before{content:"\\f006"}.fa-user:before{content:"\\f007"}.fa-film:before{content:"\\f008"}.fa-th-large:before{content:"\\f009"}.fa-th:before{content:"\\f00a"}.fa-th-list:before{content:"\\f00b"}.fa-check:before{content:"\\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\\f00d"}.fa-search-plus:before{content:"\\f00e"}.fa-search-minus:before{content:"\\f010"}.fa-power-off:before{content:"\\f011"}.fa-signal:before{content:"\\f012"}.fa-gear:before,.fa-cog:before{content:"\\f013"}.fa-trash-o:before{content:"\\f014"}.fa-home:before{content:"\\f015"}.fa-file-o:before{content:"\\f016"}.fa-clock-o:before{content:"\\f017"}.fa-road:before{content:"\\f018"}.fa-download:before{content:"\\f019"}.fa-arrow-circle-o-down:before{content:"\\f01a"}.fa-arrow-circle-o-up:before{content:"\\f01b"}.fa-inbox:before{content:"\\f01c"}.fa-play-circle-o:before{content:"\\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\\f01e"}.fa-refresh:before{content:"\\f021"}.fa-list-alt:before{content:"\\f022"}.fa-lock:before{content:"\\f023"}.fa-flag:before{content:"\\f024"}.fa-headphones:before{content:"\\f025"}.fa-volume-off:before{content:"\\f026"}.fa-volume-down:before{content:"\\f027"}.fa-volume-up:before{content:"\\f028"}.fa-qrcode:before{content:"\\f029"}.fa-barcode:before{content:"\\f02a"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-book:before{content:"\\f02d"}.fa-bookmark:before{content:"\\f02e"}.fa-print:before{content:"\\f02f"}.fa-camera:before{content:"\\f030"}.fa-font:before{content:"\\f031"}.fa-bold:before{content:"\\f032"}.fa-italic:before{content:"\\f033"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-align-left:before{content:"\\f036"}.fa-align-center:before{content:"\\f037"}.fa-align-right:before{content:"\\f038"}.fa-align-justify:before{content:"\\f039"}.fa-list:before{content:"\\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\\f03b"}.fa-indent:before{content:"\\f03c"}.fa-video-camera:before{content:"\\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\\f03e"}.fa-pencil:before{content:"\\f040"}.fa-map-marker:before{content:"\\f041"}.fa-adjust:before{content:"\\f042"}.fa-tint:before{content:"\\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\f044"}.fa-share-square-o:before{content:"\\f045"}.fa-check-square-o:before{content:"\\f046"}.fa-arrows:before{content:"\\f047"}.fa-step-backward:before{content:"\\f048"}.fa-fast-backward:before{content:"\\f049"}.fa-backward:before{content:"\\f04a"}.fa-play:before{content:"\\f04b"}.fa-pause:before{content:"\\f04c"}.fa-stop:before{content:"\\f04d"}.fa-forward:before{content:"\\f04e"}.fa-fast-forward:before{content:"\\f050"}.fa-step-forward:before{content:"\\f051"}.fa-eject:before{content:"\\f052"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-plus-circle:before{content:"\\f055"}.fa-minus-circle:before{content:"\\f056"}.fa-times-circle:before{content:"\\f057"}.fa-check-circle:before{content:"\\f058"}.fa-question-circle:before{content:"\\f059"}.fa-info-circle:before{content:"\\f05a"}.fa-crosshairs:before{content:"\\f05b"}.fa-times-circle-o:before{content:"\\f05c"}.fa-check-circle-o:before{content:"\\f05d"}.fa-ban:before{content:"\\f05e"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrow-down:before{content:"\\f063"}.fa-mail-forward:before,.fa-share:before{content:"\\f064"}.fa-expand:before{content:"\\f065"}.fa-compress:before{content:"\\f066"}.fa-plus:before{content:"\\f067"}.fa-minus:before{content:"\\f068"}.fa-asterisk:before{content:"\\f069"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-gift:before{content:"\\f06b"}.fa-leaf:before{content:"\\f06c"}.fa-fire:before{content:"\\f06d"}.fa-eye:before{content:"\\f06e"}.fa-eye-slash:before{content:"\\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\\f071"}.fa-plane:before{content:"\\f072"}.fa-calendar:before{content:"\\f073"}.fa-random:before{content:"\\f074"}.fa-comment:before{content:"\\f075"}.fa-magnet:before{content:"\\f076"}.fa-chevron-up:before{content:"\\f077"}.fa-chevron-down:before{content:"\\f078"}.fa-retweet:before{content:"\\f079"}.fa-shopping-cart:before{content:"\\f07a"}.fa-folder:before{content:"\\f07b"}.fa-folder-open:before{content:"\\f07c"}.fa-arrows-v:before{content:"\\f07d"}.fa-arrows-h:before{content:"\\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\f080"}.fa-twitter-square:before{content:"\\f081"}.fa-facebook-square:before{content:"\\f082"}.fa-camera-retro:before{content:"\\f083"}.fa-key:before{content:"\\f084"}.fa-gears:before,.fa-cogs:before{content:"\\f085"}.fa-comments:before{content:"\\f086"}.fa-thumbs-o-up:before{content:"\\f087"}.fa-thumbs-o-down:before{content:"\\f088"}.fa-star-half:before{content:"\\f089"}.fa-heart-o:before{content:"\\f08a"}.fa-sign-out:before{content:"\\f08b"}.fa-linkedin-square:before{content:"\\f08c"}.fa-thumb-tack:before{content:"\\f08d"}.fa-external-link:before{content:"\\f08e"}.fa-sign-in:before{content:"\\f090"}.fa-trophy:before{content:"\\f091"}.fa-github-square:before{content:"\\f092"}.fa-upload:before{content:"\\f093"}.fa-lemon-o:before{content:"\\f094"}.fa-phone:before{content:"\\f095"}.fa-square-o:before{content:"\\f096"}.fa-bookmark-o:before{content:"\\f097"}.fa-phone-square:before{content:"\\f098"}.fa-twitter:before{content:"\\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\f09a"}.fa-github:before{content:"\\f09b"}.fa-unlock:before{content:"\\f09c"}.fa-credit-card:before{content:"\\f09d"}.fa-feed:before,.fa-rss:before{content:"\\f09e"}.fa-hdd-o:before{content:"\\f0a0"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bell:before{content:"\\f0f3"}.fa-certificate:before{content:"\\f0a3"}.fa-hand-o-right:before{content:"\\f0a4"}.fa-hand-o-left:before{content:"\\f0a5"}.fa-hand-o-up:before{content:"\\f0a6"}.fa-hand-o-down:before{content:"\\f0a7"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-globe:before{content:"\\f0ac"}.fa-wrench:before{content:"\\f0ad"}.fa-tasks:before{content:"\\f0ae"}.fa-filter:before{content:"\\f0b0"}.fa-briefcase:before{content:"\\f0b1"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-group:before,.fa-users:before{content:"\\f0c0"}.fa-chain:before,.fa-link:before{content:"\\f0c1"}.fa-cloud:before{content:"\\f0c2"}.fa-flask:before{content:"\\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\\f0c5"}.fa-paperclip:before{content:"\\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\\f0c7"}.fa-square:before{content:"\\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\\f0c9"}.fa-list-ul:before{content:"\\f0ca"}.fa-list-ol:before{content:"\\f0cb"}.fa-strikethrough:before{content:"\\f0cc"}.fa-underline:before{content:"\\f0cd"}.fa-table:before{content:"\\f0ce"}.fa-magic:before{content:"\\f0d0"}.fa-truck:before{content:"\\f0d1"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-plus:before{content:"\\f0d5"}.fa-money:before{content:"\\f0d6"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-up:before{content:"\\f0d8"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-columns:before{content:"\\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\\f0de"}.fa-envelope:before{content:"\\f0e0"}.fa-linkedin:before{content:"\\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\f0e4"}.fa-comment-o:before{content:"\\f0e5"}.fa-comments-o:before{content:"\\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\\f0e7"}.fa-sitemap:before{content:"\\f0e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\\f0ea"}.fa-lightbulb-o:before{content:"\\f0eb"}.fa-exchange:before{content:"\\f0ec"}.fa-cloud-download:before{content:"\\f0ed"}.fa-cloud-upload:before{content:"\\f0ee"}.fa-user-md:before{content:"\\f0f0"}.fa-stethoscope:before{content:"\\f0f1"}.fa-suitcase:before{content:"\\f0f2"}.fa-bell-o:before{content:"\\f0a2"}.fa-coffee:before{content:"\\f0f4"}.fa-cutlery:before{content:"\\f0f5"}.fa-file-text-o:before{content:"\\f0f6"}.fa-building-o:before{content:"\\f0f7"}.fa-hospital-o:before{content:"\\f0f8"}.fa-ambulance:before{content:"\\f0f9"}.fa-medkit:before{content:"\\f0fa"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-beer:before{content:"\\f0fc"}.fa-h-square:before{content:"\\f0fd"}.fa-plus-square:before{content:"\\f0fe"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angle-down:before{content:"\\f107"}.fa-desktop:before{content:"\\f108"}.fa-laptop:before{content:"\\f109"}.fa-tablet:before{content:"\\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\f10b"}.fa-circle-o:before{content:"\\f10c"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-spinner:before{content:"\\f110"}.fa-circle:before{content:"\\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\\f112"}.fa-github-alt:before{content:"\\f113"}.fa-folder-o:before{content:"\\f114"}.fa-folder-open-o:before{content:"\\f115"}.fa-smile-o:before{content:"\\f118"}.fa-frown-o:before{content:"\\f119"}.fa-meh-o:before{content:"\\f11a"}.fa-gamepad:before{content:"\\f11b"}.fa-keyboard-o:before{content:"\\f11c"}.fa-flag-o:before{content:"\\f11d"}.fa-flag-checkered:before{content:"\\f11e"}.fa-terminal:before{content:"\\f120"}.fa-code:before{content:"\\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\f123"}.fa-location-arrow:before{content:"\\f124"}.fa-crop:before{content:"\\f125"}.fa-code-fork:before{content:"\\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\\f127"}.fa-question:before{content:"\\f128"}.fa-info:before{content:"\\f129"}.fa-exclamation:before{content:"\\f12a"}.fa-superscript:before{content:"\\f12b"}.fa-subscript:before{content:"\\f12c"}.fa-eraser:before{content:"\\f12d"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-microphone:before{content:"\\f130"}.fa-microphone-slash:before{content:"\\f131"}.fa-shield:before{content:"\\f132"}.fa-calendar-o:before{content:"\\f133"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-rocket:before{content:"\\f135"}.fa-maxcdn:before{content:"\\f136"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-html5:before{content:"\\f13b"}.fa-css3:before{content:"\\f13c"}.fa-anchor:before{content:"\\f13d"}.fa-unlock-alt:before{content:"\\f13e"}.fa-bullseye:before{content:"\\f140"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-rss-square:before{content:"\\f143"}.fa-play-circle:before{content:"\\f144"}.fa-ticket:before{content:"\\f145"}.fa-minus-square:before{content:"\\f146"}.fa-minus-square-o:before{content:"\\f147"}.fa-level-up:before{content:"\\f148"}.fa-level-down:before{content:"\\f149"}.fa-check-square:before{content:"\\f14a"}.fa-pencil-square:before{content:"\\f14b"}.fa-external-link-square:before{content:"\\f14c"}.fa-share-square:before{content:"\\f14d"}.fa-compass:before{content:"\\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\\f152"}.fa-euro:before,.fa-eur:before{content:"\\f153"}.fa-gbp:before{content:"\\f154"}.fa-dollar:before,.fa-usd:before{content:"\\f155"}.fa-rupee:before,.fa-inr:before{content:"\\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\\f158"}.fa-won:before,.fa-krw:before{content:"\\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\\f15a"}.fa-file:before{content:"\\f15b"}.fa-file-text:before{content:"\\f15c"}.fa-sort-alpha-asc:before{content:"\\f15d"}.fa-sort-alpha-desc:before{content:"\\f15e"}.fa-sort-amount-asc:before{content:"\\f160"}.fa-sort-amount-desc:before{content:"\\f161"}.fa-sort-numeric-asc:before{content:"\\f162"}.fa-sort-numeric-desc:before{content:"\\f163"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbs-down:before{content:"\\f165"}.fa-youtube-square:before{content:"\\f166"}.fa-youtube:before{content:"\\f167"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-youtube-play:before{content:"\\f16a"}.fa-dropbox:before{content:"\\f16b"}.fa-stack-overflow:before{content:"\\f16c"}.fa-instagram:before{content:"\\f16d"}.fa-flickr:before{content:"\\f16e"}.fa-adn:before{content:"\\f170"}.fa-bitbucket:before{content:"\\f171"}.fa-bitbucket-square:before{content:"\\f172"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-long-arrow-down:before{content:"\\f175"}.fa-long-arrow-up:before{content:"\\f176"}.fa-long-arrow-left:before{content:"\\f177"}.fa-long-arrow-right:before{content:"\\f178"}.fa-apple:before{content:"\\f179"}.fa-windows:before{content:"\\f17a"}.fa-android:before{content:"\\f17b"}.fa-linux:before{content:"\\f17c"}.fa-dribbble:before{content:"\\f17d"}.fa-skype:before{content:"\\f17e"}.fa-foursquare:before{content:"\\f180"}.fa-trello:before{content:"\\f181"}.fa-female:before{content:"\\f182"}.fa-male:before{content:"\\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\\f184"}.fa-sun-o:before{content:"\\f185"}.fa-moon-o:before{content:"\\f186"}.fa-archive:before{content:"\\f187"}.fa-bug:before{content:"\\f188"}.fa-vk:before{content:"\\f189"}.fa-weibo:before{content:"\\f18a"}.fa-renren:before{content:"\\f18b"}.fa-pagelines:before{content:"\\f18c"}.fa-stack-exchange:before{content:"\\f18d"}.fa-arrow-circle-o-right:before{content:"\\f18e"}.fa-arrow-circle-o-left:before{content:"\\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\\f191"}.fa-dot-circle-o:before{content:"\\f192"}.fa-wheelchair:before{content:"\\f193"}.fa-vimeo-square:before{content:"\\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\\f195"}.fa-plus-square-o:before{content:"\\f196"}.fa-space-shuttle:before{content:"\\f197"}.fa-slack:before{content:"\\f198"}.fa-envelope-square:before{content:"\\f199"}.fa-wordpress:before{content:"\\f19a"}.fa-openid:before{content:"\\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\\f19d"}.fa-yahoo:before{content:"\\f19e"}.fa-google:before{content:"\\f1a0"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-square:before{content:"\\f1a2"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-delicious:before{content:"\\f1a5"}.fa-digg:before{content:"\\f1a6"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-drupal:before{content:"\\f1a9"}.fa-joomla:before{content:"\\f1aa"}.fa-language:before{content:"\\f1ab"}.fa-fax:before{content:"\\f1ac"}.fa-building:before{content:"\\f1ad"}.fa-child:before{content:"\\f1ae"}.fa-paw:before{content:"\\f1b0"}.fa-spoon:before{content:"\\f1b1"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-recycle:before{content:"\\f1b8"}.fa-automobile:before,.fa-car:before{content:"\\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\\f1ba"}.fa-tree:before{content:"\\f1bb"}.fa-spotify:before{content:"\\f1bc"}.fa-deviantart:before{content:"\\f1bd"}.fa-soundcloud:before{content:"\\f1be"}.fa-database:before{content:"\\f1c0"}.fa-file-pdf-o:before{content:"\\f1c1"}.fa-file-word-o:before{content:"\\f1c2"}.fa-file-excel-o:before{content:"\\f1c3"}.fa-file-powerpoint-o:before{content:"\\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\f1c8"}.fa-file-code-o:before{content:"\\f1c9"}.fa-vine:before{content:"\\f1ca"}.fa-codepen:before{content:"\\f1cb"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\\f1cd"}.fa-circle-o-notch:before{content:"\\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\\f1d0"}.fa-ge:before,.fa-empire:before{content:"\\f1d1"}.fa-git-square:before{content:"\\f1d2"}.fa-git:before{content:"\\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\\f1d4"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-qq:before{content:"\\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\\f1d9"}.fa-history:before{content:"\\f1da"}.fa-circle-thin:before{content:"\\f1db"}.fa-header:before{content:"\\f1dc"}.fa-paragraph:before{content:"\\f1dd"}.fa-sliders:before{content:"\\f1de"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-bomb:before{content:"\\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\\f1e3"}.fa-tty:before{content:"\\f1e4"}.fa-binoculars:before{content:"\\f1e5"}.fa-plug:before{content:"\\f1e6"}.fa-slideshare:before{content:"\\f1e7"}.fa-twitch:before{content:"\\f1e8"}.fa-yelp:before{content:"\\f1e9"}.fa-newspaper-o:before{content:"\\f1ea"}.fa-wifi:before{content:"\\f1eb"}.fa-calculator:before{content:"\\f1ec"}.fa-paypal:before{content:"\\f1ed"}.fa-google-wallet:before{content:"\\f1ee"}.fa-cc-visa:before{content:"\\f1f0"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bell-slash-o:before{content:"\\f1f7"}.fa-trash:before{content:"\\f1f8"}.fa-copyright:before{content:"\\f1f9"}.fa-at:before{content:"\\f1fa"}.fa-eyedropper:before{content:"\\f1fb"}.fa-paint-brush:before{content:"\\f1fc"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-area-chart:before{content:"\\f1fe"}.fa-pie-chart:before{content:"\\f200"}.fa-line-chart:before{content:"\\f201"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-bicycle:before{content:"\\f206"}.fa-bus:before{content:"\\f207"}.fa-ioxhost:before{content:"\\f208"}.fa-angellist:before{content:"\\f209"}.fa-cc:before{content:"\\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\\f20b"}.fa-meanpath:before{content:"\\f20c"}.fa-buysellads:before{content:"\\f20d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-dashcube:before{content:"\\f210"}.fa-forumbee:before{content:"\\f211"}.fa-leanpub:before{content:"\\f212"}.fa-sellsy:before{content:"\\f213"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-simplybuilt:before{content:"\\f215"}.fa-skyatlas:before{content:"\\f216"}.fa-cart-plus:before{content:"\\f217"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-diamond:before{content:"\\f219"}.fa-ship:before{content:"\\f21a"}.fa-user-secret:before{content:"\\f21b"}.fa-motorcycle:before{content:"\\f21c"}.fa-street-view:before{content:"\\f21d"}.fa-heartbeat:before{content:"\\f21e"}.fa-venus:before{content:"\\f221"}.fa-mars:before{content:"\\f222"}.fa-mercury:before{content:"\\f223"}.fa-intersex:before,.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-venus-double:before{content:"\\f226"}.fa-mars-double:before{content:"\\f227"}.fa-venus-mars:before{content:"\\f228"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-neuter:before{content:"\\f22c"}.fa-genderless:before{content:"\\f22d"}.fa-facebook-official:before{content:"\\f230"}.fa-pinterest-p:before{content:"\\f231"}.fa-whatsapp:before{content:"\\f232"}.fa-server:before{content:"\\f233"}.fa-user-plus:before{content:"\\f234"}.fa-user-times:before{content:"\\f235"}.fa-hotel:before,.fa-bed:before{content:"\\f236"}.fa-viacoin:before{content:"\\f237"}.fa-train:before{content:"\\f238"}.fa-subway:before{content:"\\f239"}.fa-medium:before{content:"\\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\\f23b"}.fa-optin-monster:before{content:"\\f23c"}.fa-opencart:before{content:"\\f23d"}.fa-expeditedssl:before{content:"\\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\\f244"}.fa-mouse-pointer:before{content:"\\f245"}.fa-i-cursor:before{content:"\\f246"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-sticky-note:before{content:"\\f249"}.fa-sticky-note-o:before{content:"\\f24a"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-clone:before{content:"\\f24d"}.fa-balance-scale:before{content:"\\f24e"}.fa-hourglass-o:before{content:"\\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass:before{content:"\\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\\f256"}.fa-hand-scissors-o:before{content:"\\f257"}.fa-hand-lizard-o:before{content:"\\f258"}.fa-hand-spock-o:before{content:"\\f259"}.fa-hand-pointer-o:before{content:"\\f25a"}.fa-hand-peace-o:before{content:"\\f25b"}.fa-trademark:before{content:"\\f25c"}.fa-registered:before{content:"\\f25d"}.fa-creative-commons:before{content:"\\f25e"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-tripadvisor:before{content:"\\f262"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-get-pocket:before{content:"\\f265"}.fa-wikipedia-w:before{content:"\\f266"}.fa-safari:before{content:"\\f267"}.fa-chrome:before{content:"\\f268"}.fa-firefox:before{content:"\\f269"}.fa-opera:before{content:"\\f26a"}.fa-internet-explorer:before{content:"\\f26b"}.fa-tv:before,.fa-television:before{content:"\\f26c"}.fa-contao:before{content:"\\f26d"}.fa-500px:before{content:"\\f26e"}.fa-amazon:before{content:"\\f270"}.fa-calendar-plus-o:before{content:"\\f271"}.fa-calendar-minus-o:before{content:"\\f272"}.fa-calendar-times-o:before{content:"\\f273"}.fa-calendar-check-o:before{content:"\\f274"}.fa-industry:before{content:"\\f275"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-map-o:before{content:"\\f278"}.fa-map:before{content:"\\f279"}.fa-commenting:before{content:"\\f27a"}.fa-commenting-o:before{content:"\\f27b"}.fa-houzz:before{content:"\\f27c"}.fa-vimeo:before{content:"\\f27d"}.fa-black-tie:before{content:"\\f27e"}.fa-fonticons:before{content:"\\f280"}.fa-reddit-alien:before{content:"\\f281"}.fa-edge:before{content:"\\f282"}.fa-credit-card-alt:before{content:"\\f283"}.fa-codiepie:before{content:"\\f284"}.fa-modx:before{content:"\\f285"}.fa-fort-awesome:before{content:"\\f286"}.fa-usb:before{content:"\\f287"}.fa-product-hunt:before{content:"\\f288"}.fa-mixcloud:before{content:"\\f289"}.fa-scribd:before{content:"\\f28a"}.fa-pause-circle:before{content:"\\f28b"}.fa-pause-circle-o:before{content:"\\f28c"}.fa-stop-circle:before{content:"\\f28d"}.fa-stop-circle-o:before{content:"\\f28e"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-hashtag:before{content:"\\f292"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-percent:before{content:"\\f295"}.fa-gitlab:before{content:"\\f296"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpforms:before{content:"\\f298"}.fa-envira:before{content:"\\f299"}.fa-universal-access:before{content:"\\f29a"}.fa-wheelchair-alt:before{content:"\\f29b"}.fa-question-circle-o:before{content:"\\f29c"}.fa-blind:before{content:"\\f29d"}.fa-audio-description:before{content:"\\f29e"}.fa-volume-control-phone:before{content:"\\f2a0"}.fa-braille:before{content:"\\f2a1"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\\f2a4"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\\f2a7"}.fa-low-vision:before{content:"\\f2a8"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-pied-piper:before{content:"\\f2ae"}.fa-first-order:before{content:"\\f2b0"}.fa-yoast:before{content:"\\f2b1"}.fa-themeisle:before{content:"\\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\\f2b4"}.fa-handshake-o:before{content:"\\f2b5"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-o:before{content:"\\f2b7"}.fa-linode:before{content:"\\f2b8"}.fa-address-book:before{content:"\\f2b9"}.fa-address-book-o:before{content:"\\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\\f2bc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-circle-o:before{content:"\\f2be"}.fa-user-o:before{content:"\\f2c0"}.fa-id-badge:before{content:"\\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\\f2c3"}.fa-quora:before{content:"\\f2c4"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-telegram:before{content:"\\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\\f2cb"}.fa-shower:before{content:"\\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\\f2cd"}.fa-podcast:before{content:"\\f2ce"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\\f2d4"}.fa-bandcamp:before{content:"\\f2d5"}.fa-grav:before{content:"\\f2d6"}.fa-etsy:before{content:"\\f2d7"}.fa-imdb:before{content:"\\f2d8"}.fa-ravelry:before{content:"\\f2d9"}.fa-eercast:before{content:"\\f2da"}.fa-microchip:before{content:"\\f2db"}.fa-snowflake-o:before{content:"\\f2dc"}.fa-superpowers:before{content:"\\f2dd"}.fa-wpexplorer:before{content:"\\f2de"}.fa-meetup:before{content:"\\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}\n',""]),t.Z=p},6127:function(e,t,n){"use strict";var i=n(8081),o=n.n(i),a=n(3645),r=n.n(a),s=n(1667),f=n.n(s),l=new URL(n(6527),n.b),c=r()(o()),u=f()(l);c.push([e.id,"/*!\n * Viewer.js v1.11.6\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2023-09-17T03:16:35.830Z\n */\n\n.viewer-zoom-in::before, .viewer-zoom-out::before, .viewer-one-to-one::before, .viewer-reset::before, .viewer-prev::before, .viewer-play::before, .viewer-next::before, .viewer-rotate-left::before, .viewer-rotate-right::before, .viewer-flip-horizontal::before, .viewer-flip-vertical::before, .viewer-fullscreen::before, .viewer-fullscreen-exit::before, .viewer-close::before {\n background-image: url("+u+");\n background-repeat: no-repeat;\n background-size: 280px;\n color: transparent;\n display: block;\n font-size: 0;\n height: 20px;\n line-height: 0;\n width: 20px;\n }\n\n.viewer-zoom-in::before {\n background-position: 0 0;\n content: 'Zoom In';\n}\n\n.viewer-zoom-out::before {\n background-position: -20px 0;\n content: 'Zoom Out';\n}\n\n.viewer-one-to-one::before {\n background-position: -40px 0;\n content: 'One to One';\n}\n\n.viewer-reset::before {\n background-position: -60px 0;\n content: 'Reset';\n}\n\n.viewer-prev::before {\n background-position: -80px 0;\n content: 'Previous';\n}\n\n.viewer-play::before {\n background-position: -100px 0;\n content: 'Play';\n}\n\n.viewer-next::before {\n background-position: -120px 0;\n content: 'Next';\n}\n\n.viewer-rotate-left::before {\n background-position: -140px 0;\n content: 'Rotate Left';\n}\n\n.viewer-rotate-right::before {\n background-position: -160px 0;\n content: 'Rotate Right';\n}\n\n.viewer-flip-horizontal::before {\n background-position: -180px 0;\n content: 'Flip Horizontal';\n}\n\n.viewer-flip-vertical::before {\n background-position: -200px 0;\n content: 'Flip Vertical';\n}\n\n.viewer-fullscreen::before {\n background-position: -220px 0;\n content: 'Enter Full Screen';\n}\n\n.viewer-fullscreen-exit::before {\n background-position: -240px 0;\n content: 'Exit Full Screen';\n}\n\n.viewer-close::before {\n background-position: -260px 0;\n content: 'Close';\n}\n\n.viewer-container {\n bottom: 0;\n direction: ltr;\n font-size: 0;\n left: 0;\n line-height: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n -webkit-tap-highlight-color: transparent;\n top: 0;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.viewer-container::-moz-selection, .viewer-container *::-moz-selection {\n background-color: transparent;\n }\n\n.viewer-container::selection,\n .viewer-container *::selection {\n background-color: transparent;\n }\n\n.viewer-container:focus {\n outline: 0;\n }\n\n.viewer-container img {\n display: block;\n height: auto;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n }\n\n.viewer-canvas {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.viewer-canvas > img {\n height: auto;\n margin: 15px auto;\n max-width: 90% !important;\n width: auto;\n }\n\n.viewer-footer {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: absolute;\n right: 0;\n text-align: center;\n}\n\n.viewer-navbar {\n background-color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.viewer-list {\n box-sizing: content-box;\n height: 50px;\n margin: 0;\n overflow: hidden;\n padding: 1px 0;\n}\n\n.viewer-list > li {\n color: transparent;\n cursor: pointer;\n float: left;\n font-size: 0;\n height: 50px;\n line-height: 0;\n opacity: 0.5;\n overflow: hidden;\n transition: opacity 0.15s;\n width: 30px;\n }\n\n.viewer-list > li:focus,\n .viewer-list > li:hover {\n opacity: 0.75;\n }\n\n.viewer-list > li:focus {\n outline: 0;\n }\n\n.viewer-list > li + li {\n margin-left: 1px;\n }\n\n.viewer-list > .viewer-loading {\n position: relative;\n }\n\n.viewer-list > .viewer-loading::after {\n border-width: 2px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n width: 20px;\n }\n\n.viewer-list > .viewer-active,\n .viewer-list > .viewer-active:focus,\n .viewer-list > .viewer-active:hover {\n opacity: 1;\n }\n\n.viewer-player {\n background-color: #000;\n bottom: 0;\n cursor: none;\n display: none;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1;\n}\n\n.viewer-player > img {\n left: 0;\n position: absolute;\n top: 0;\n }\n\n.viewer-toolbar > ul {\n display: inline-block;\n margin: 0 auto 5px;\n overflow: hidden;\n padding: 6px 3px;\n }\n\n.viewer-toolbar > ul > li {\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n float: left;\n height: 24px;\n overflow: hidden;\n transition: background-color 0.15s;\n width: 24px;\n }\n\n.viewer-toolbar > ul > li:focus,\n .viewer-toolbar > ul > li:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-toolbar > ul > li:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n position: relative;\n z-index: 1;\n }\n\n.viewer-toolbar > ul > li::before {\n margin: 2px;\n }\n\n.viewer-toolbar > ul > li + li {\n margin-left: 1px;\n }\n\n.viewer-toolbar > ul > .viewer-small {\n height: 18px;\n margin-bottom: 3px;\n margin-top: 3px;\n width: 18px;\n }\n\n.viewer-toolbar > ul > .viewer-small::before {\n margin: -1px;\n }\n\n.viewer-toolbar > ul > .viewer-large {\n height: 30px;\n margin-bottom: -3px;\n margin-top: -3px;\n width: 30px;\n }\n\n.viewer-toolbar > ul > .viewer-large::before {\n margin: 5px;\n }\n\n.viewer-tooltip {\n background-color: rgba(0, 0, 0, 0.8);\n border-radius: 10px;\n color: #fff;\n display: none;\n font-size: 12px;\n height: 20px;\n left: 50%;\n line-height: 20px;\n margin-left: -25px;\n margin-top: -10px;\n position: absolute;\n text-align: center;\n top: 50%;\n width: 50px;\n}\n\n.viewer-title {\n color: #ccc;\n display: inline-block;\n font-size: 12px;\n line-height: 1.2;\n margin: 5px 5%;\n max-width: 90%;\n min-height: 14px;\n opacity: 0.8;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: opacity 0.15s;\n white-space: nowrap;\n}\n\n.viewer-title:hover {\n opacity: 1;\n }\n\n.viewer-button {\n -webkit-app-region: no-drag;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n cursor: pointer;\n height: 80px;\n overflow: hidden;\n position: absolute;\n right: -40px;\n top: -40px;\n transition: background-color 0.15s;\n width: 80px;\n}\n\n.viewer-button:focus,\n .viewer-button:hover {\n background-color: rgba(0, 0, 0, 0.8);\n }\n\n.viewer-button:focus {\n box-shadow: 0 0 3px #fff;\n outline: 0;\n }\n\n.viewer-button::before {\n bottom: 15px;\n left: 15px;\n position: absolute;\n }\n\n.viewer-fixed {\n position: fixed;\n}\n\n.viewer-open {\n overflow: hidden;\n}\n\n.viewer-show {\n display: block;\n}\n\n.viewer-hide {\n display: none;\n}\n\n.viewer-backdrop {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.viewer-invisible {\n visibility: hidden;\n}\n\n.viewer-move {\n cursor: move;\n cursor: grab;\n}\n\n.viewer-fade {\n opacity: 0;\n}\n\n.viewer-in {\n opacity: 1;\n}\n\n.viewer-transition {\n transition: all 0.3s;\n}\n\n@keyframes viewer-spinner {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.viewer-loading::after {\n animation: viewer-spinner 1s linear infinite;\n border: 4px solid rgba(255, 255, 255, 0.1);\n border-left-color: rgba(255, 255, 255, 0.5);\n border-radius: 50%;\n content: '';\n display: inline-block;\n height: 40px;\n left: 50%;\n margin-left: -20px;\n margin-top: -20px;\n position: absolute;\n top: 50%;\n width: 40px;\n z-index: 1;\n }\n\n@media (max-width: 767px) {\n .viewer-hide-xs-down {\n display: none;\n }\n}\n\n@media (max-width: 991px) {\n .viewer-hide-sm-down {\n display: none;\n }\n}\n\n@media (max-width: 1199px) {\n .viewer-hide-md-down {\n display: none;\n }\n}\n",""]),t.Z=c},6916:function(e,t,n){"use strict";var i=n(8081),o=n.n(i),a=n(3645);n.n(a)()(o()).push([e.id,".bpm-audit .audit-editor .aduit-result,\n.bpm-audit .audit-reader .aduit-result {\n padding: 0px 10px;\n border-radius: 8px;\n overflow: hidden;\n line-height: 25px;\n height: 25px;\n box-sizing: border-box;\n display: inline-block;\n vertical-align: middle;\n}\n",""])},2577:function(e,t,n){"use strict";var i=n(8081),o=n.n(i),a=n(3645);n.n(a)()(o()).push([e.id,".bpm-status[data-v-2709dffc] {\n min-height: 24px;\n border-radius: 3px;\n}\n",""])},7602:function(e,t,n){"use strict";var i=n(8081),o=n.n(i),a=n(3645);n.n(a)()(o()).push([e.id,".input-microphone[data-v-1f4bc398] {\n width: 40px;\n display: inline-block;\n margin-right: 8px;\n position: absolute;\n z-index: 10;\n text-align: center;\n right: 0;\n top: 39px;\n font-size: 17px;\n color: #979797;\n}\n.input-microphone.active[data-v-1f4bc398] {\n color: #2894df;\n}\n.audit .fa-angle-right[data-v-1f4bc398] {\n font-size: 24px;\n font-weight: 600;\n color: #c1c1c1;\n}\n.audit .items-center[data-v-1f4bc398] {\n padding-right: 10px;\n display: unset;\n margin: 0;\n}\n.canvas-box[data-v-1f4bc398] {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 220px;\n border: 1px dashed #c9c5c5;\n}\n.audit-modal-content[data-v-1f4bc398] {\n padding: 20px;\n padding-bottom: 30px;\n}\ncanvas[data-v-1f4bc398] {\n flex: 1;\n cursor: crosshair;\n}\n.ovh[data-v-1f4bc398] {\n overflow: hidden;\n padding: 4px;\n}\n.modal-footer[data-v-1f4bc398] {\n text-align: center;\n}\n.modal-footer button[data-v-1f4bc398] {\n width: 100%;\n}\n.speech-control[data-v-1f4bc398] {\n color: #2894df;\n float: right;\n margin-top: 5px;\n cursor: pointer;\n}\n",""])},6768:function(e,t,n){"use strict";var i=n(8081),o=n.n(i),a=n(3645);n.n(a)()(o()).push([e.id,'.audit-modal .q-field-required .q-field-label-inner::before {\n content: "*";\n color: #f44336 !important;\n font-size: 18px;\n padding-top: 5px;\n padding-right: 5px;\n}\n.audit-modal .q-field-label {\n color: #333333;\n}\n.audit-modal .reset-btn .q-btn {\n width: 96px;\n height: 36px;\n background: #ffffff;\n border-radius: 100px;\n box-shadow: -1px 1px 5px -1px rgba(0, 0, 0, 0.18);\n margin-top: 8px;\n}\n.audit-modal .reset-btn .next-use {\n margin: 15px 0 0 203pt;\n}\n.mobile .audit-modal .reset-btn .next-use {\n margin: 15px 0 0 0 !important;\n}\n.modal-scroll {\n max-height: 100vh !important;\n}\n.audit-modal .modal-body {\n padding: 0;\n}\n.audit-modal .audit-modal-content {\n padding: 0;\n}\n.audit-modal .modal-content {\n padding: 14px;\n border-radius: 10px;\n width: 90vw;\n max-height: 90vh !important;\n max-width: 40vw !important;\n}\n.audit-modal .modal-header {\n font-size: 16px;\n padding: 0;\n}\n.audit-modal .q-field {\n padding: 0;\n margin: 0;\n margin-top: 10px;\n}\n.audit-modal .upload-box {\n padding: 0px 5px 0px;\n margin-bottom: 0;\n}\n.audit-modal .q-layout-header {\n box-shadow: 0 0px 6px -1px rgba(0, 0, 0, 0.1);\n -webkit-box-shadow: 0 0px 6px -1px rgba(0, 0, 0, 0.1);\n}\n.audit-modal .q-layout-header .q-toolbar {\n color: #333 !important;\n}\n.mobile .modal-footer button {\n margin-top: 7px;\n background: linear-gradient(270deg, #34b2d5, #16a7cf) !important;\n border-radius: 25px;\n height: 44px;\n color: #333;\n margin-bottom: 7px;\n}\n.mobile .audit-modal .modal-content {\n max-width: 90vw !important;\n}\n.aduit-result {\n padding: 0px 10px;\n border-radius: 15px;\n overflow: hidden;\n line-height: 30px;\n height: 30px;\n box-sizing: border-box;\n display: inline-block;\n vertical-align: middle;\n}\n',""])},4540:function(e,t,n){"use strict";var i=n(8081),o=n.n(i),a=n(3645);n.n(a)()(o()).push([e.id,".bpm-default-input {\n max-width: 100%;\n overflow: hidden;\n}\n.bpm-default-input .material-icons {\n width: 26px;\n display: inline-block;\n margin-right: 8px;\n}\n.bpm-default-input .q-if-inner {\n padding-right: 22px;\n}\n",""])},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(i)for(var s=0;s<this.length;s++){var f=this[s][0];null!=f&&(r[f]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);i&&r[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},1667:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},2918:function(e,t){var i;(function(){var o=!1,a=function(e){return e instanceof a?e:this instanceof a?void(this.EXIFwrapped=e):new a(e)};e.exports&&(t=e.exports=a),t.EXIF=a;var r=a.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"},s=a.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"},f=a.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"},l=a.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"},c=a.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 u(e){return!!e.exifdata}function d(e,t){function n(n){var i=h(n);e.exifdata=i||{};var r=function(e){var t=new DataView(e);if(o&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return o&&console.log("Not a valid JPEG"),!1;for(var n=2,i=e.byteLength,a=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<i;){if(a(t,n)){var r=t.getUint8(n+7);return r%2!=0&&(r+=1),0===r&&(r=4),p(e,n+8+r,t.getUint16(n+6+r))}n++}}(n);if(e.iptcdata=r||{},a.isXmpEnabled){var s=function(e){if("DOMParser"in self){var t=new DataView(e);if(o&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return o&&console.log("Not a valid JPEG"),!1;for(var n=2,i=e.byteLength,a=new DOMParser;n<i-4;){if("http"==v(t,n,4)){var r=n-1,s=t.getUint16(n-2)-1,f=v(t,r,s),l=f.indexOf("xmpmeta>")+8,c=(f=f.substring(f.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return f=f.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+f.slice(c),S(a.parseFromString(f,"text/xml"))}n++}}}(n);e.xmpdata=s||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))n(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,o=new ArrayBuffer(i),a=new Uint8Array(o),r=0;r<i;r++)a[r]=n.charCodeAt(r);return o}(e.src));else if(/^blob\:/i.test(e.src))(r=new FileReader).onload=function(e){n(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){var t;200!=this.status&&0!==this.status||(t=this.response,r.readAsArrayBuffer(t))},n.send()}(e.src);else{var i=new XMLHttpRequest;i.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(i.response),i=null},i.open("GET",e.src,!0),i.responseType="arraybuffer",i.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var r;(r=new FileReader).onload=function(e){o&&console.log("Got file of length "+e.target.result.byteLength),n(e.target.result)},r.readAsArrayBuffer(e)}}function h(e){var t=new DataView(e);if(o&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return o&&console.log("Not a valid JPEG"),!1;for(var n,i=2,a=e.byteLength;i<a;){if(255!=t.getUint8(i))return o&&console.log("Not a valid marker at offset "+i+", found: "+t.getUint8(i)),!1;if(n=t.getUint8(i+1),o&&console.log(n),225==n)return o&&console.log("Found 0xFFE1 marker"),y(t,i+4,t.getUint16(i+2));i+=2+t.getUint16(i+2)}}var m={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function p(e,t,n){for(var i,o,a,r,s=new DataView(e),f={},l=t;l<t+n;)28===s.getUint8(l)&&2===s.getUint8(l+1)&&(r=s.getUint8(l+2))in m&&(a=s.getInt16(l+3),o=m[r],i=v(s,l+5,a),f.hasOwnProperty(o)?f[o]instanceof Array?f[o].push(i):f[o]=[f[o],i]:f[o]=i),l++;return f}function g(e,t,n,i,a){var r,s,f,l=e.getUint16(n,!a),c={};for(f=0;f<l;f++)r=n+12*f+2,!(s=i[e.getUint16(r,!a)])&&o&&console.log("Unknown tag: "+e.getUint16(r,!a)),c[s]=b(e,r,t,0,a);return c}function b(e,t,n,i,o){var a,r,s,f,l,c,u=e.getUint16(t+2,!o),d=e.getUint32(t+4,!o),h=e.getUint32(t+8,!o)+n;switch(u){case 1:case 7:if(1==d)return e.getUint8(t+8,!o);for(a=d>4?h:t+8,r=[],f=0;f<d;f++)r[f]=e.getUint8(a+f);return r;case 2:return v(e,a=d>4?h:t+8,d-1);case 3:if(1==d)return e.getUint16(t+8,!o);for(a=d>2?h:t+8,r=[],f=0;f<d;f++)r[f]=e.getUint16(a+2*f,!o);return r;case 4:if(1==d)return e.getUint32(t+8,!o);for(r=[],f=0;f<d;f++)r[f]=e.getUint32(h+4*f,!o);return r;case 5:if(1==d)return l=e.getUint32(h,!o),c=e.getUint32(h+4,!o),(s=new Number(l/c)).numerator=l,s.denominator=c,s;for(r=[],f=0;f<d;f++)l=e.getUint32(h+8*f,!o),c=e.getUint32(h+4+8*f,!o),r[f]=new Number(l/c),r[f].numerator=l,r[f].denominator=c;return r;case 9:if(1==d)return e.getInt32(t+8,!o);for(r=[],f=0;f<d;f++)r[f]=e.getInt32(h+4*f,!o);return r;case 10:if(1==d)return e.getInt32(h,!o)/e.getInt32(h+4,!o);for(r=[],f=0;f<d;f++)r[f]=e.getInt32(h+8*f,!o)/e.getInt32(h+4+8*f,!o);return r}}function v(e,t,i){var o="";for(n=t;n<t+i;n++)o+=String.fromCharCode(e.getUint8(n));return o}function y(e,t){if("Exif"!=v(e,t,4))return o&&console.log("Not valid EXIF data! "+v(e,t,4)),!1;var n,i,a,u,d,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return o&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;n=!0}if(42!=e.getUint16(h+2,!n))return o&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var m=e.getUint32(h+4,!n);if(m<8)return o&&console.log("Not valid TIFF data! (First offset less than 8)",e.getUint32(h+4,!n)),!1;if((i=g(e,h,h+m,s,n)).ExifIFDPointer)for(a in u=g(e,h,h+i.ExifIFDPointer,r,n)){switch(a){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":u[a]=c[a][u[a]];break;case"ExifVersion":case"FlashpixVersion":u[a]=String.fromCharCode(u[a][0],u[a][1],u[a][2],u[a][3]);break;case"ComponentsConfiguration":u[a]=c.Components[u[a][0]]+c.Components[u[a][1]]+c.Components[u[a][2]]+c.Components[u[a][3]]}i[a]=u[a]}if(i.GPSInfoIFDPointer)for(a in d=g(e,h,h+i.GPSInfoIFDPointer,f,n))"GPSVersionID"===a&&(d[a]=d[a][0]+"."+d[a][1]+"."+d[a][2]+"."+d[a][3]),i[a]=d[a];return i.thumbnail=function(e,t,n,i){var o=function(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}(e,t+n,i);if(!o)return{};if(o>e.byteLength)return{};var a=g(e,t,t+o,l,i);if(a.Compression)switch(a.Compression){case 6:if(a.JpegIFOffset&&a.JpegIFByteCount){var r=t+a.JpegIFOffset,s=a.JpegIFByteCount;a.blob=new Blob([new Uint8Array(e.buffer,r,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'",a.Compression)}else 2==a.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return a}(e,h,m,n),i}function w(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes.item(o),r=a.nodeName;if(null==t[r])t[r]=w(a);else{if(null==t[r].push){var s=t[r];t[r]=[],t[r].push(s)}t[r].push(w(a))}}return t}function S(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),o=i.attributes;for(var a in o){var r=o[a],s=r.nodeName,f=r.nodeValue;void 0!==s&&(t[s]=f)}var l=i.nodeName;if(void 0===t[l])t[l]=w(i);else{if(void 0===t[l].push){var c=t[l];t[l]=[],t[l].push(c)}t[l].push(w(i))}}else t=e.textContent;return t}catch(e){console.log(e.message)}}a.enableXmp=function(){a.isXmpEnabled=!0},a.disableXmp=function(){a.isXmpEnabled=!1},a.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(u(e)?t&&t.call(e):d(e,t),0))},a.getTag=function(e,t){if(u(e))return e.exifdata[t]},a.getIptcTag=function(e,t){if(u(e))return e.iptcdata[t]},a.getAllTags=function(e){if(!u(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},a.getAllIptcTags=function(e){if(!u(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},a.pretty=function(e){if(!u(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&("object"==typeof n[t]?n[t]instanceof Number?i+=t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":i+=t+" : ["+n[t].length+" values]\r\n":i+=t+" : "+n[t]+"\r\n");return i},a.readFromBinaryFile=function(e){return h(e)},void 0===(i=function(){return a}.apply(t,[]))||(e.exports=i)}).call(this)},8:function(e,t){!function(){"use strict";var n={};function i(e){return u(">"+h("B",e.length),e)}function o(e){return u(">"+h("H",e.length),e)}function a(e){return u(">"+h("L",e.length),e)}function r(e,t,n){var r,s,f,l,c="",d="";if("Byte"==t)(r=e.length)<=4?d=i(e)+h("\0",4-r):(d=u(">L",[n]),c=i(e));else if("Short"==t)(r=e.length)<=2?d=o(e)+h("\0\0",2-r):(d=u(">L",[n]),c=o(e));else if("Long"==t)(r=e.length)<=1?d=a(e):(d=u(">L",[n]),c=a(e));else if("Ascii"==t)(r=(s=e+"\0").length)>4?(d=u(">L",[n]),c=s):d=s+h("\0",4-r);else if("Rational"==t){if("number"==typeof e[0])r=1,f=e[0],l=e[1],s=u(">L",[f])+u(">L",[l]);else{r=e.length,s="";for(var m=0;m<r;m++)f=e[m][0],l=e[m][1],s+=u(">L",[f])+u(">L",[l])}d=u(">L",[n]),c=s}else if("SRational"==t){if("number"==typeof e[0])r=1,f=e[0],l=e[1],s=u(">l",[f])+u(">l",[l]);else for(r=e.length,s="",m=0;m<r;m++)f=e[m][0],l=e[m][1],s+=u(">l",[f])+u(">l",[l]);d=u(">L",[n]),c=s}else"Undefined"==t&&((r=e.length)>4?(d=u(">L",[n]),c=e):d=e+h("\0",4-r));return[u(">L",[r]),d,c]}function s(e,t,n){var i,o=Object.keys(e).length,a=u(">H",[o]);i=["0th","1st"].indexOf(t)>-1?2+12*o+4:2+12*o;var s="",f="";for(var l in e)if("string"==typeof l&&(l=parseInt(l)),!("0th"==t&&[34665,34853].indexOf(l)>-1||"Exif"==t&&40965==l||"1st"==t&&[513,514].indexOf(l)>-1)){var c=e[l],d=u(">H",[l]),h=g[t][l].type,m=u(">H",[p[h]]);"number"==typeof c&&(c=[c]);var b=r(c,h,8+i+n+f.length);s+=d+m+b[0]+b[1],f+=b[2]}return[a+s,f]}function f(e){var t;if("ÿØ"==e.slice(0,2))t=function(e){for(var t,n=0;n<e.length;n++)if("ÿá"==(t=e[n]).slice(0,2)&&"Exif\0\0"==t.slice(4,10))return t;return null}(m(e)),this.tiftag=t?t.slice(10):null;else if(["II","MM"].indexOf(e.slice(0,2))>-1)this.tiftag=e;else{if("Exif"!=e.slice(0,4))throw new Error("Given file is neither JPEG nor TIFF.");this.tiftag=e.slice(6)}}if(n.version="1.0.4",n.remove=function(e){var t=!1;if("ÿØ"==e.slice(0,2));else{if("data:image/jpeg;base64,"!=e.slice(0,23)&&"data:image/jpg;base64,"!=e.slice(0,22))throw new Error("Given data is not jpeg.");e=c(e.split(",")[1]),t=!0}var n=m(e).filter((function(e){return!("ÿá"==e.slice(0,2)&&"Exif\0\0"==e.slice(4,10))})).join("");return t&&(n="data:image/jpeg;base64,"+l(n)),n},n.insert=function(e,t){var n=!1;if("Exif\0\0"!=e.slice(0,6))throw new Error("Given data is not exif.");if("ÿØ"==t.slice(0,2));else{if("data:image/jpeg;base64,"!=t.slice(0,23)&&"data:image/jpg;base64,"!=t.slice(0,22))throw new Error("Given data is not jpeg.");t=c(t.split(",")[1]),n=!0}var i="ÿá"+u(">H",[e.length+2])+e,o=function(e,t){var n=!1,i=[];return e.forEach((function(o,a){"ÿá"==o.slice(0,2)&&"Exif\0\0"==o.slice(4,10)&&(n?i.unshift(a):(e[a]=t,n=!0))})),i.forEach((function(t){e.splice(t,1)})),!n&&t&&(e=[e[0],t].concat(e.slice(1))),e.join("")}(m(t),i);return n&&(o="data:image/jpeg;base64,"+l(o)),o},n.load=function(e){var t;if("string"!=typeof e)throw new Error("'load' gots invalid type argument.");if("ÿØ"==e.slice(0,2))t=e;else if("data:image/jpeg;base64,"==e.slice(0,23)||"data:image/jpg;base64,"==e.slice(0,22))t=c(e.split(",")[1]);else{if("Exif"!=e.slice(0,4))throw new Error("'load' gots invalid file data.");t=e.slice(6)}var n={"0th":{},Exif:{},GPS:{},Interop:{},"1st":{},thumbnail:null},i=new f(t);if(null===i.tiftag)return n;"II"==i.tiftag.slice(0,2)?i.endian_mark="<":i.endian_mark=">";var o=d(i.endian_mark+"L",i.tiftag.slice(4,8))[0];n["0th"]=i.get_ifd(o,"0th");var a=n["0th"].first_ifd_pointer;if(delete n["0th"].first_ifd_pointer,34665 in n["0th"]&&(o=n["0th"][34665],n.Exif=i.get_ifd(o,"Exif")),34853 in n["0th"]&&(o=n["0th"][34853],n.GPS=i.get_ifd(o,"GPS")),40965 in n.Exif&&(o=n.Exif[40965],n.Interop=i.get_ifd(o,"Interop")),"\0\0\0\0"!=a&&(o=d(i.endian_mark+"L",a)[0],n["1st"]=i.get_ifd(o,"1st"),513 in n["1st"]&&514 in n["1st"])){var r=n["1st"][513]+n["1st"][514],s=i.tiftag.slice(n["1st"][513],r);n.thumbnail=s}return n},n.dump=function(e){var t,i,o,a,r,f,l=(t=e,JSON.parse(JSON.stringify(t))),c=!1,d=!1,h=!1,g=!1;i="0th"in l?l["0th"]:{},"Exif"in l&&Object.keys(l.Exif).length||"Interop"in l&&Object.keys(l.Interop).length?(i[34665]=1,c=!0,o=l.Exif,"Interop"in l&&Object.keys(l.Interop).length?(o[40965]=1,h=!0,a=l.Interop):Object.keys(o).indexOf(n.ExifIFD.InteroperabilityTag.toString())>-1&&delete o[40965]):Object.keys(i).indexOf(n.ImageIFD.ExifTag.toString())>-1&&delete i[34665],"GPS"in l&&Object.keys(l.GPS).length?(i[n.ImageIFD.GPSTag]=1,d=!0,r=l.GPS):Object.keys(i).indexOf(n.ImageIFD.GPSTag.toString())>-1&&delete i[n.ImageIFD.GPSTag],"1st"in l&&"thumbnail"in l&&null!=l.thumbnail&&(g=!0,l["1st"][513]=1,l["1st"][514]=1,f=l["1st"]);var b,v,y,w=s(i,"0th",0),S=w[0].length+12*c+12*d+4+w[1].length,x="",C=0,_="",P=0,k="",D=0,I="";if(c&&(C=(b=s(o,"Exif",S))[0].length+12*h+b[1].length),d&&(P=(_=s(r,"GPS",S+C).join("")).length),h&&(D=(k=s(a,"Interop",S+C+P).join("")).length),g&&(v=s(f,"1st",S+C+P+D),(y=function(e){for(var t=m(e);"ÿà"<=t[1].slice(0,2)&&t[1].slice(0,2)<="ÿï";)t=[t[0]].concat(t.slice(2));return t.join("")}(l.thumbnail)).length>64e3))throw new Error("Given thumbnail is too large. max 64kB");var L="",A="",T="",R="\0\0\0\0";if(c){var j=u(">L",[F=8+S]);L=u(">H",[34665])+u(">H",[p.Long])+u(">L",[1])+j}if(d&&(j=u(">L",[F=8+S+C]),A=u(">H",[34853])+u(">H",[p.Long])+u(">L",[1])+j),h&&(j=u(">L",[F=8+S+C+P]),T=u(">H",[40965])+u(">H",[p.Long])+u(">L",[1])+j),g){var F;R=u(">L",[F=8+S+C+P+D]);var E="\0\0\0\0"+u(">L",[F+v[0].length+24+4+v[1].length]),M="\0\0\0\0"+u(">L",[y.length]);I=v[0]+E+M+"\0\0\0\0"+v[1]+y}var z=w[0]+L+A+R+w[1];return c&&(x=b[0]+T+b[1]),"Exif\0\0MM\0*\0\0\0\b"+z+x+_+k+I},f.prototype={get_ifd:function(e,t){var n,i={},o=d(this.endian_mark+"H",this.tiftag.slice(e,e+2))[0],a=e+2;n=["0th","1st"].indexOf(t)>-1?"Image":t;for(var r=0;r<o;r++){e=a+12*r;var s=d(this.endian_mark+"H",this.tiftag.slice(e,e+2))[0],f=[d(this.endian_mark+"H",this.tiftag.slice(e+2,e+4))[0],d(this.endian_mark+"L",this.tiftag.slice(e+4,e+8))[0],this.tiftag.slice(e+8,e+12)];s in g[n]&&(i[s]=this.convert_value(f))}return"0th"==t&&(e=a+12*o,i.first_ifd_pointer=this.tiftag.slice(e,e+4)),i},convert_value:function(e){var t,n=null,i=e[0],o=e[1],a=e[2];if(1==i)o>4?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("B",o),this.tiftag.slice(t,t+o))):n=d(this.endian_mark+h("B",o),a.slice(0,o));else if(2==i)o>4?(t=d(this.endian_mark+"L",a)[0],n=this.tiftag.slice(t,t+o-1)):n=a.slice(0,o-1);else if(3==i)o>2?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("H",o),this.tiftag.slice(t,t+2*o))):n=d(this.endian_mark+h("H",o),a.slice(0,2*o));else if(4==i)o>1?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("L",o),this.tiftag.slice(t,t+4*o))):n=d(this.endian_mark+h("L",o),a);else if(5==i)if(t=d(this.endian_mark+"L",a)[0],o>1){n=[];for(var r=0;r<o;r++)n.push([d(this.endian_mark+"L",this.tiftag.slice(t+8*r,t+4+8*r))[0],d(this.endian_mark+"L",this.tiftag.slice(t+4+8*r,t+8+8*r))[0]])}else n=[d(this.endian_mark+"L",this.tiftag.slice(t,t+4))[0],d(this.endian_mark+"L",this.tiftag.slice(t+4,t+8))[0]];else if(7==i)o>4?(t=d(this.endian_mark+"L",a)[0],n=this.tiftag.slice(t,t+o)):n=a.slice(0,o);else if(9==i)o>1?(t=d(this.endian_mark+"L",a)[0],n=d(this.endian_mark+h("l",o),this.tiftag.slice(t,t+4*o))):n=d(this.endian_mark+h("l",o),a);else{if(10!=i)throw new Error("Exif might be wrong. Got incorrect value type to decode. type:"+i);if(t=d(this.endian_mark+"L",a)[0],o>1)for(n=[],r=0;r<o;r++)n.push([d(this.endian_mark+"l",this.tiftag.slice(t+8*r,t+4+8*r))[0],d(this.endian_mark+"l",this.tiftag.slice(t+4+8*r,t+8+8*r))[0]]);else n=[d(this.endian_mark+"l",this.tiftag.slice(t,t+4))[0],d(this.endian_mark+"l",this.tiftag.slice(t+4,t+8))[0]]}return n instanceof Array&&1==n.length?n[0]:n}},"undefined"!=typeof window&&"function"==typeof window.btoa)var l=window.btoa;if(void 0===l&&(l=function(e){for(var t,n,i,o,a,r,s,f="",l=0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";l<e.length;)o=(t=e.charCodeAt(l++))>>2,a=(3&t)<<4|(n=e.charCodeAt(l++))>>4,r=(15&n)<<2|(i=e.charCodeAt(l++))>>6,s=63&i,isNaN(n)?r=s=64:isNaN(i)&&(s=64),f=f+c.charAt(o)+c.charAt(a)+c.charAt(r)+c.charAt(s);return f}),"undefined"!=typeof window&&"function"==typeof window.atob)var c=window.atob;function u(e,t){if(!(t instanceof Array))throw new Error("'pack' error. Got invalid type argument.");if(e.length-1!=t.length)throw new Error("'pack' error. "+(e.length-1)+" marks, "+t.length+" elements.");var n;if("<"==e[0])n=!0;else{if(">"!=e[0])throw new Error("");n=!1}for(var i="",o=1,a=null,r=null,s=null;r=e[o];){if("b"==r.toLowerCase()){if(a=t[o-1],"b"==r&&a<0&&(a+=256),a>255||a<0)throw new Error("'pack' error.");s=String.fromCharCode(a)}else if("H"==r){if((a=t[o-1])>65535||a<0)throw new Error("'pack' error.");s=String.fromCharCode(Math.floor(a%65536/256))+String.fromCharCode(a%256),n&&(s=s.split("").reverse().join(""))}else{if("l"!=r.toLowerCase())throw new Error("'pack' error.");if(a=t[o-1],"l"==r&&a<0&&(a+=4294967296),a>4294967295||a<0)throw new Error("'pack' error.");s=String.fromCharCode(Math.floor(a/16777216))+String.fromCharCode(Math.floor(a%16777216/65536))+String.fromCharCode(Math.floor(a%65536/256))+String.fromCharCode(a%256),n&&(s=s.split("").reverse().join(""))}i+=s,o+=1}return i}function d(e,t){if("string"!=typeof t)throw new Error("'unpack' error. Got invalid type argument.");for(var n,i=0,o=1;o<e.length;o++)if("b"==e[o].toLowerCase())i+=1;else if("h"==e[o].toLowerCase())i+=2;else{if("l"!=e[o].toLowerCase())throw new Error("'unpack' error. Got invalid mark.");i+=4}if(i!=t.length)throw new Error("'unpack' error. Mismatch between symbol and string length. "+i+":"+t.length);if("<"==e[0])n=!0;else{if(">"!=e[0])throw new Error("'unpack' error.");n=!1}for(var a=[],r=0,s=1,f=null,l=null,c=null,u="";l=e[s];){if("b"==l.toLowerCase())c=1,f=(u=t.slice(r,r+c)).charCodeAt(0),"b"==l&&f>=128&&(f-=256);else if("H"==l)c=2,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),f=256*u.charCodeAt(0)+u.charCodeAt(1);else{if("l"!=l.toLowerCase())throw new Error("'unpack' error. "+l);c=4,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),f=16777216*u.charCodeAt(0)+65536*u.charCodeAt(1)+256*u.charCodeAt(2)+u.charCodeAt(3),"l"==l&&f>=2147483648&&(f-=4294967296)}a.push(f),r+=c,s+=1}return a}function h(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}function m(e){if("ÿØ"!=e.slice(0,2))throw new Error("Given data isn't JPEG.");for(var t=2,n=["ÿØ"];;){if("ÿÚ"==e.slice(t,t+2)){n.push(e.slice(t));break}var i=t+d(">H",e.slice(t+2,t+4))[0]+2;if(n.push(e.slice(t,i)),(t=i)>=e.length)throw new Error("Wrong JPEG data.")}return n}void 0===c&&(c=function(e){var t,n,i,o,a,r,s="",f=0,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");f<e.length;)t=l.indexOf(e.charAt(f++))<<2|(o=l.indexOf(e.charAt(f++)))>>4,n=(15&o)<<4|(a=l.indexOf(e.charAt(f++)))>>2,i=(3&a)<<6|(r=l.indexOf(e.charAt(f++))),s+=String.fromCharCode(t),64!=a&&(s+=String.fromCharCode(n)),64!=r&&(s+=String.fromCharCode(i));return s});var p={Byte:1,Ascii:2,Short:3,Long:4,Rational:5,Undefined:7,SLong:9,SRational:10},g={Image:{11:{name:"ProcessingSoftware",type:"Ascii"},254:{name:"NewSubfileType",type:"Long"},255:{name:"SubfileType",type:"Short"},256:{name:"ImageWidth",type:"Long"},257:{name:"ImageLength",type:"Long"},258:{name:"BitsPerSample",type:"Short"},259:{name:"Compression",type:"Short"},262:{name:"PhotometricInterpretation",type:"Short"},263:{name:"Threshholding",type:"Short"},264:{name:"CellWidth",type:"Short"},265:{name:"CellLength",type:"Short"},266:{name:"FillOrder",type:"Short"},269:{name:"DocumentName",type:"Ascii"},270:{name:"ImageDescription",type:"Ascii"},271:{name:"Make",type:"Ascii"},272:{name:"Model",type:"Ascii"},273:{name:"StripOffsets",type:"Long"},274:{name:"Orientation",type:"Short"},277:{name:"SamplesPerPixel",type:"Short"},278:{name:"RowsPerStrip",type:"Long"},279:{name:"StripByteCounts",type:"Long"},282:{name:"XResolution",type:"Rational"},283:{name:"YResolution",type:"Rational"},284:{name:"PlanarConfiguration",type:"Short"},290:{name:"GrayResponseUnit",type:"Short"},291:{name:"GrayResponseCurve",type:"Short"},292:{name:"T4Options",type:"Long"},293:{name:"T6Options",type:"Long"},296:{name:"ResolutionUnit",type:"Short"},301:{name:"TransferFunction",type:"Short"},305:{name:"Software",type:"Ascii"},306:{name:"DateTime",type:"Ascii"},315:{name:"Artist",type:"Ascii"},316:{name:"HostComputer",type:"Ascii"},317:{name:"Predictor",type:"Short"},318:{name:"WhitePoint",type:"Rational"},319:{name:"PrimaryChromaticities",type:"Rational"},320:{name:"ColorMap",type:"Short"},321:{name:"HalftoneHints",type:"Short"},322:{name:"TileWidth",type:"Short"},323:{name:"TileLength",type:"Short"},324:{name:"TileOffsets",type:"Short"},325:{name:"TileByteCounts",type:"Short"},330:{name:"SubIFDs",type:"Long"},332:{name:"InkSet",type:"Short"},333:{name:"InkNames",type:"Ascii"},334:{name:"NumberOfInks",type:"Short"},336:{name:"DotRange",type:"Byte"},337:{name:"TargetPrinter",type:"Ascii"},338:{name:"ExtraSamples",type:"Short"},339:{name:"SampleFormat",type:"Short"},340:{name:"SMinSampleValue",type:"Short"},341:{name:"SMaxSampleValue",type:"Short"},342:{name:"TransferRange",type:"Short"},343:{name:"ClipPath",type:"Byte"},344:{name:"XClipPathUnits",type:"Long"},345:{name:"YClipPathUnits",type:"Long"},346:{name:"Indexed",type:"Short"},347:{name:"JPEGTables",type:"Undefined"},351:{name:"OPIProxy",type:"Short"},512:{name:"JPEGProc",type:"Long"},513:{name:"JPEGInterchangeFormat",type:"Long"},514:{name:"JPEGInterchangeFormatLength",type:"Long"},515:{name:"JPEGRestartInterval",type:"Short"},517:{name:"JPEGLosslessPredictors",type:"Short"},518:{name:"JPEGPointTransforms",type:"Short"},519:{name:"JPEGQTables",type:"Long"},520:{name:"JPEGDCTables",type:"Long"},521:{name:"JPEGACTables",type:"Long"},529:{name:"YCbCrCoefficients",type:"Rational"},530:{name:"YCbCrSubSampling",type:"Short"},531:{name:"YCbCrPositioning",type:"Short"},532:{name:"ReferenceBlackWhite",type:"Rational"},700:{name:"XMLPacket",type:"Byte"},18246:{name:"Rating",type:"Short"},18249:{name:"RatingPercent",type:"Short"},32781:{name:"ImageID",type:"Ascii"},33421:{name:"CFARepeatPatternDim",type:"Short"},33422:{name:"CFAPattern",type:"Byte"},33423:{name:"BatteryLevel",type:"Rational"},33432:{name:"Copyright",type:"Ascii"},33434:{name:"ExposureTime",type:"Rational"},34377:{name:"ImageResources",type:"Byte"},34665:{name:"ExifTag",type:"Long"},34675:{name:"InterColorProfile",type:"Undefined"},34853:{name:"GPSTag",type:"Long"},34857:{name:"Interlace",type:"Short"},34858:{name:"TimeZoneOffset",type:"Long"},34859:{name:"SelfTimerMode",type:"Short"},37387:{name:"FlashEnergy",type:"Rational"},37388:{name:"SpatialFrequencyResponse",type:"Undefined"},37389:{name:"Noise",type:"Undefined"},37390:{name:"FocalPlaneXResolution",type:"Rational"},37391:{name:"FocalPlaneYResolution",type:"Rational"},37392:{name:"FocalPlaneResolutionUnit",type:"Short"},37393:{name:"ImageNumber",type:"Long"},37394:{name:"SecurityClassification",type:"Ascii"},37395:{name:"ImageHistory",type:"Ascii"},37397:{name:"ExposureIndex",type:"Rational"},37398:{name:"TIFFEPStandardID",type:"Byte"},37399:{name:"SensingMethod",type:"Short"},40091:{name:"XPTitle",type:"Byte"},40092:{name:"XPComment",type:"Byte"},40093:{name:"XPAuthor",type:"Byte"},40094:{name:"XPKeywords",type:"Byte"},40095:{name:"XPSubject",type:"Byte"},50341:{name:"PrintImageMatching",type:"Undefined"},50706:{name:"DNGVersion",type:"Byte"},50707:{name:"DNGBackwardVersion",type:"Byte"},50708:{name:"UniqueCameraModel",type:"Ascii"},50709:{name:"LocalizedCameraModel",type:"Byte"},50710:{name:"CFAPlaneColor",type:"Byte"},50711:{name:"CFALayout",type:"Short"},50712:{name:"LinearizationTable",type:"Short"},50713:{name:"BlackLevelRepeatDim",type:"Short"},50714:{name:"BlackLevel",type:"Rational"},50715:{name:"BlackLevelDeltaH",type:"SRational"},50716:{name:"BlackLevelDeltaV",type:"SRational"},50717:{name:"WhiteLevel",type:"Short"},50718:{name:"DefaultScale",type:"Rational"},50719:{name:"DefaultCropOrigin",type:"Short"},50720:{name:"DefaultCropSize",type:"Short"},50721:{name:"ColorMatrix1",type:"SRational"},50722:{name:"ColorMatrix2",type:"SRational"},50723:{name:"CameraCalibration1",type:"SRational"},50724:{name:"CameraCalibration2",type:"SRational"},50725:{name:"ReductionMatrix1",type:"SRational"},50726:{name:"ReductionMatrix2",type:"SRational"},50727:{name:"AnalogBalance",type:"Rational"},50728:{name:"AsShotNeutral",type:"Short"},50729:{name:"AsShotWhiteXY",type:"Rational"},50730:{name:"BaselineExposure",type:"SRational"},50731:{name:"BaselineNoise",type:"Rational"},50732:{name:"BaselineSharpness",type:"Rational"},50733:{name:"BayerGreenSplit",type:"Long"},50734:{name:"LinearResponseLimit",type:"Rational"},50735:{name:"CameraSerialNumber",type:"Ascii"},50736:{name:"LensInfo",type:"Rational"},50737:{name:"ChromaBlurRadius",type:"Rational"},50738:{name:"AntiAliasStrength",type:"Rational"},50739:{name:"ShadowScale",type:"SRational"},50740:{name:"DNGPrivateData",type:"Byte"},50741:{name:"MakerNoteSafety",type:"Short"},50778:{name:"CalibrationIlluminant1",type:"Short"},50779:{name:"CalibrationIlluminant2",type:"Short"},50780:{name:"BestQualityScale",type:"Rational"},50781:{name:"RawDataUniqueID",type:"Byte"},50827:{name:"OriginalRawFileName",type:"Byte"},50828:{name:"OriginalRawFileData",type:"Undefined"},50829:{name:"ActiveArea",type:"Short"},50830:{name:"MaskedAreas",type:"Short"},50831:{name:"AsShotICCProfile",type:"Undefined"},50832:{name:"AsShotPreProfileMatrix",type:"SRational"},50833:{name:"CurrentICCProfile",type:"Undefined"},50834:{name:"CurrentPreProfileMatrix",type:"SRational"},50879:{name:"ColorimetricReference",type:"Short"},50931:{name:"CameraCalibrationSignature",type:"Byte"},50932:{name:"ProfileCalibrationSignature",type:"Byte"},50934:{name:"AsShotProfileName",type:"Byte"},50935:{name:"NoiseReductionApplied",type:"Rational"},50936:{name:"ProfileName",type:"Byte"},50937:{name:"ProfileHueSatMapDims",type:"Long"},50938:{name:"ProfileHueSatMapData1",type:"Float"},50939:{name:"ProfileHueSatMapData2",type:"Float"},50940:{name:"ProfileToneCurve",type:"Float"},50941:{name:"ProfileEmbedPolicy",type:"Long"},50942:{name:"ProfileCopyright",type:"Byte"},50964:{name:"ForwardMatrix1",type:"SRational"},50965:{name:"ForwardMatrix2",type:"SRational"},50966:{name:"PreviewApplicationName",type:"Byte"},50967:{name:"PreviewApplicationVersion",type:"Byte"},50968:{name:"PreviewSettingsName",type:"Byte"},50969:{name:"PreviewSettingsDigest",type:"Byte"},50970:{name:"PreviewColorSpace",type:"Long"},50971:{name:"PreviewDateTime",type:"Ascii"},50972:{name:"RawImageDigest",type:"Undefined"},50973:{name:"OriginalRawFileDigest",type:"Undefined"},50974:{name:"SubTileBlockSize",type:"Long"},50975:{name:"RowInterleaveFactor",type:"Long"},50981:{name:"ProfileLookTableDims",type:"Long"},50982:{name:"ProfileLookTableData",type:"Float"},51008:{name:"OpcodeList1",type:"Undefined"},51009:{name:"OpcodeList2",type:"Undefined"},51022:{name:"OpcodeList3",type:"Undefined"}},Exif:{33434:{name:"ExposureTime",type:"Rational"},33437:{name:"FNumber",type:"Rational"},34850:{name:"ExposureProgram",type:"Short"},34852:{name:"SpectralSensitivity",type:"Ascii"},34855:{name:"ISOSpeedRatings",type:"Short"},34856:{name:"OECF",type:"Undefined"},34864:{name:"SensitivityType",type:"Short"},34865:{name:"StandardOutputSensitivity",type:"Long"},34866:{name:"RecommendedExposureIndex",type:"Long"},34867:{name:"ISOSpeed",type:"Long"},34868:{name:"ISOSpeedLatitudeyyy",type:"Long"},34869:{name:"ISOSpeedLatitudezzz",type:"Long"},36864:{name:"ExifVersion",type:"Undefined"},36867:{name:"DateTimeOriginal",type:"Ascii"},36868:{name:"DateTimeDigitized",type:"Ascii"},37121:{name:"ComponentsConfiguration",type:"Undefined"},37122:{name:"CompressedBitsPerPixel",type:"Rational"},37377:{name:"ShutterSpeedValue",type:"SRational"},37378:{name:"ApertureValue",type:"Rational"},37379:{name:"BrightnessValue",type:"SRational"},37380:{name:"ExposureBiasValue",type:"SRational"},37381:{name:"MaxApertureValue",type:"Rational"},37382:{name:"SubjectDistance",type:"Rational"},37383:{name:"MeteringMode",type:"Short"},37384:{name:"LightSource",type:"Short"},37385:{name:"Flash",type:"Short"},37386:{name:"FocalLength",type:"Rational"},37396:{name:"SubjectArea",type:"Short"},37500:{name:"MakerNote",type:"Undefined"},37510:{name:"UserComment",type:"Ascii"},37520:{name:"SubSecTime",type:"Ascii"},37521:{name:"SubSecTimeOriginal",type:"Ascii"},37522:{name:"SubSecTimeDigitized",type:"Ascii"},40960:{name:"FlashpixVersion",type:"Undefined"},40961:{name:"ColorSpace",type:"Short"},40962:{name:"PixelXDimension",type:"Long"},40963:{name:"PixelYDimension",type:"Long"},40964:{name:"RelatedSoundFile",type:"Ascii"},40965:{name:"InteroperabilityTag",type:"Long"},41483:{name:"FlashEnergy",type:"Rational"},41484:{name:"SpatialFrequencyResponse",type:"Undefined"},41486:{name:"FocalPlaneXResolution",type:"Rational"},41487:{name:"FocalPlaneYResolution",type:"Rational"},41488:{name:"FocalPlaneResolutionUnit",type:"Short"},41492:{name:"SubjectLocation",type:"Short"},41493:{name:"ExposureIndex",type:"Rational"},41495:{name:"SensingMethod",type:"Short"},41728:{name:"FileSource",type:"Undefined"},41729:{name:"SceneType",type:"Undefined"},41730:{name:"CFAPattern",type:"Undefined"},41985:{name:"CustomRendered",type:"Short"},41986:{name:"ExposureMode",type:"Short"},41987:{name:"WhiteBalance",type:"Short"},41988:{name:"DigitalZoomRatio",type:"Rational"},41989:{name:"FocalLengthIn35mmFilm",type:"Short"},41990:{name:"SceneCaptureType",type:"Short"},41991:{name:"GainControl",type:"Short"},41992:{name:"Contrast",type:"Short"},41993:{name:"Saturation",type:"Short"},41994:{name:"Sharpness",type:"Short"},41995:{name:"DeviceSettingDescription",type:"Undefined"},41996:{name:"SubjectDistanceRange",type:"Short"},42016:{name:"ImageUniqueID",type:"Ascii"},42032:{name:"CameraOwnerName",type:"Ascii"},42033:{name:"BodySerialNumber",type:"Ascii"},42034:{name:"LensSpecification",type:"Rational"},42035:{name:"LensMake",type:"Ascii"},42036:{name:"LensModel",type:"Ascii"},42037:{name:"LensSerialNumber",type:"Ascii"},42240:{name:"Gamma",type:"Rational"}},GPS:{0:{name:"GPSVersionID",type:"Byte"},1:{name:"GPSLatitudeRef",type:"Ascii"},2:{name:"GPSLatitude",type:"Rational"},3:{name:"GPSLongitudeRef",type:"Ascii"},4:{name:"GPSLongitude",type:"Rational"},5:{name:"GPSAltitudeRef",type:"Byte"},6:{name:"GPSAltitude",type:"Rational"},7:{name:"GPSTimeStamp",type:"Rational"},8:{name:"GPSSatellites",type:"Ascii"},9:{name:"GPSStatus",type:"Ascii"},10:{name:"GPSMeasureMode",type:"Ascii"},11:{name:"GPSDOP",type:"Rational"},12:{name:"GPSSpeedRef",type:"Ascii"},13:{name:"GPSSpeed",type:"Rational"},14:{name:"GPSTrackRef",type:"Ascii"},15:{name:"GPSTrack",type:"Rational"},16:{name:"GPSImgDirectionRef",type:"Ascii"},17:{name:"GPSImgDirection",type:"Rational"},18:{name:"GPSMapDatum",type:"Ascii"},19:{name:"GPSDestLatitudeRef",type:"Ascii"},20:{name:"GPSDestLatitude",type:"Rational"},21:{name:"GPSDestLongitudeRef",type:"Ascii"},22:{name:"GPSDestLongitude",type:"Rational"},23:{name:"GPSDestBearingRef",type:"Ascii"},24:{name:"GPSDestBearing",type:"Rational"},25:{name:"GPSDestDistanceRef",type:"Ascii"},26:{name:"GPSDestDistance",type:"Rational"},27:{name:"GPSProcessingMethod",type:"Undefined"},28:{name:"GPSAreaInformation",type:"Undefined"},29:{name:"GPSDateStamp",type:"Ascii"},30:{name:"GPSDifferential",type:"Short"},31:{name:"GPSHPositioningError",type:"Rational"}},Interop:{1:{name:"InteroperabilityIndex",type:"Ascii"}}};g["0th"]=g.Image,g["1st"]=g.Image,n.TAGS=g,n.ImageIFD={ProcessingSoftware:11,NewSubfileType:254,SubfileType:255,ImageWidth:256,ImageLength:257,BitsPerSample:258,Compression:259,PhotometricInterpretation:262,Threshholding:263,CellWidth:264,CellLength:265,FillOrder:266,DocumentName:269,ImageDescription:270,Make:271,Model:272,StripOffsets:273,Orientation:274,SamplesPerPixel:277,RowsPerStrip:278,StripByteCounts:279,XResolution:282,YResolution:283,PlanarConfiguration:284,GrayResponseUnit:290,GrayResponseCurve:291,T4Options:292,T6Options:293,ResolutionUnit:296,TransferFunction:301,Software:305,DateTime:306,Artist:315,HostComputer:316,Predictor:317,WhitePoint:318,PrimaryChromaticities:319,ColorMap:320,HalftoneHints:321,TileWidth:322,TileLength:323,TileOffsets:324,TileByteCounts:325,SubIFDs:330,InkSet:332,InkNames:333,NumberOfInks:334,DotRange:336,TargetPrinter:337,ExtraSamples:338,SampleFormat:339,SMinSampleValue:340,SMaxSampleValue:341,TransferRange:342,ClipPath:343,XClipPathUnits:344,YClipPathUnits:345,Indexed:346,JPEGTables:347,OPIProxy:351,JPEGProc:512,JPEGInterchangeFormat:513,JPEGInterchangeFormatLength:514,JPEGRestartInterval:515,JPEGLosslessPredictors:517,JPEGPointTransforms:518,JPEGQTables:519,JPEGDCTables:520,JPEGACTables:521,YCbCrCoefficients:529,YCbCrSubSampling:530,YCbCrPositioning:531,ReferenceBlackWhite:532,XMLPacket:700,Rating:18246,RatingPercent:18249,ImageID:32781,CFARepeatPatternDim:33421,CFAPattern:33422,BatteryLevel:33423,Copyright:33432,ExposureTime:33434,ImageResources:34377,ExifTag:34665,InterColorProfile:34675,GPSTag:34853,Interlace:34857,TimeZoneOffset:34858,SelfTimerMode:34859,FlashEnergy:37387,SpatialFrequencyResponse:37388,Noise:37389,FocalPlaneXResolution:37390,FocalPlaneYResolution:37391,FocalPlaneResolutionUnit:37392,ImageNumber:37393,SecurityClassification:37394,ImageHistory:37395,ExposureIndex:37397,TIFFEPStandardID:37398,SensingMethod:37399,XPTitle:40091,XPComment:40092,XPAuthor:40093,XPKeywords:40094,XPSubject:40095,PrintImageMatching:50341,DNGVersion:50706,DNGBackwardVersion:50707,UniqueCameraModel:50708,LocalizedCameraModel:50709,CFAPlaneColor:50710,CFALayout:50711,LinearizationTable:50712,BlackLevelRepeatDim:50713,BlackLevel:50714,BlackLevelDeltaH:50715,BlackLevelDeltaV:50716,WhiteLevel:50717,DefaultScale:50718,DefaultCropOrigin:50719,DefaultCropSize:50720,ColorMatrix1:50721,ColorMatrix2:50722,CameraCalibration1:50723,CameraCalibration2:50724,ReductionMatrix1:50725,ReductionMatrix2:50726,AnalogBalance:50727,AsShotNeutral:50728,AsShotWhiteXY:50729,BaselineExposure:50730,BaselineNoise:50731,BaselineSharpness:50732,BayerGreenSplit:50733,LinearResponseLimit:50734,CameraSerialNumber:50735,LensInfo:50736,ChromaBlurRadius:50737,AntiAliasStrength:50738,ShadowScale:50739,DNGPrivateData:50740,MakerNoteSafety:50741,CalibrationIlluminant1:50778,CalibrationIlluminant2:50779,BestQualityScale:50780,RawDataUniqueID:50781,OriginalRawFileName:50827,OriginalRawFileData:50828,ActiveArea:50829,MaskedAreas:50830,AsShotICCProfile:50831,AsShotPreProfileMatrix:50832,CurrentICCProfile:50833,CurrentPreProfileMatrix:50834,ColorimetricReference:50879,CameraCalibrationSignature:50931,ProfileCalibrationSignature:50932,AsShotProfileName:50934,NoiseReductionApplied:50935,ProfileName:50936,ProfileHueSatMapDims:50937,ProfileHueSatMapData1:50938,ProfileHueSatMapData2:50939,ProfileToneCurve:50940,ProfileEmbedPolicy:50941,ProfileCopyright:50942,ForwardMatrix1:50964,ForwardMatrix2:50965,PreviewApplicationName:50966,PreviewApplicationVersion:50967,PreviewSettingsName:50968,PreviewSettingsDigest:50969,PreviewColorSpace:50970,PreviewDateTime:50971,RawImageDigest:50972,OriginalRawFileDigest:50973,SubTileBlockSize:50974,RowInterleaveFactor:50975,ProfileLookTableDims:50981,ProfileLookTableData:50982,OpcodeList1:51008,OpcodeList2:51009,OpcodeList3:51022,NoiseProfile:51041},n.ExifIFD={ExposureTime:33434,FNumber:33437,ExposureProgram:34850,SpectralSensitivity:34852,ISOSpeedRatings:34855,OECF:34856,SensitivityType:34864,StandardOutputSensitivity:34865,RecommendedExposureIndex:34866,ISOSpeed:34867,ISOSpeedLatitudeyyy:34868,ISOSpeedLatitudezzz:34869,ExifVersion:36864,DateTimeOriginal:36867,DateTimeDigitized:36868,ComponentsConfiguration:37121,CompressedBitsPerPixel:37122,ShutterSpeedValue:37377,ApertureValue:37378,BrightnessValue:37379,ExposureBiasValue:37380,MaxApertureValue:37381,SubjectDistance:37382,MeteringMode:37383,LightSource:37384,Flash:37385,FocalLength:37386,SubjectArea:37396,MakerNote:37500,UserComment:37510,SubSecTime:37520,SubSecTimeOriginal:37521,SubSecTimeDigitized:37522,FlashpixVersion:40960,ColorSpace:40961,PixelXDimension:40962,PixelYDimension:40963,RelatedSoundFile:40964,InteroperabilityTag:40965,FlashEnergy:41483,SpatialFrequencyResponse:41484,FocalPlaneXResolution:41486,FocalPlaneYResolution:41487,FocalPlaneResolutionUnit:41488,SubjectLocation:41492,ExposureIndex:41493,SensingMethod:41495,FileSource:41728,SceneType:41729,CFAPattern:41730,CustomRendered:41985,ExposureMode:41986,WhiteBalance:41987,DigitalZoomRatio:41988,FocalLengthIn35mmFilm:41989,SceneCaptureType:41990,GainControl:41991,Contrast:41992,Saturation:41993,Sharpness:41994,DeviceSettingDescription:41995,SubjectDistanceRange:41996,ImageUniqueID:42016,CameraOwnerName:42032,BodySerialNumber:42033,LensSpecification:42034,LensMake:42035,LensModel:42036,LensSerialNumber:42037,Gamma:42240},n.GPSIFD={GPSVersionID:0,GPSLatitudeRef:1,GPSLatitude:2,GPSLongitudeRef:3,GPSLongitude:4,GPSAltitudeRef:5,GPSAltitude:6,GPSTimeStamp:7,GPSSatellites:8,GPSStatus:9,GPSMeasureMode:10,GPSDOP:11,GPSSpeedRef:12,GPSSpeed:13,GPSTrackRef:14,GPSTrack:15,GPSImgDirectionRef:16,GPSImgDirection:17,GPSMapDatum:18,GPSDestLatitudeRef:19,GPSDestLatitude:20,GPSDestLongitudeRef:21,GPSDestLongitude:22,GPSDestBearingRef:23,GPSDestBearing:24,GPSDestDistanceRef:25,GPSDestDistance:26,GPSProcessingMethod:27,GPSAreaInformation:28,GPSDateStamp:29,GPSDifferential:30,GPSHPositioningError:31},n.InteropIFD={InteroperabilityIndex:1},n.GPSHelper={degToDmsRational:function(e){var t=Math.abs(e),n=t%1*60,i=n%1*60;return[[Math.floor(t),1],[Math.floor(n),1],[Math.round(100*i),100]]},dmsRationalToDeg:function(e,t){var n="S"===t||"W"===t?-1:1;return(e[0][0]/e[0][1]+e[1][0]/e[1][1]/60+e[2][0]/e[2][1]/3600)*n}},e.exports&&(t=e.exports=n),t.piexif=n}()},5403:function(e,t,n){"use strict";var i=n(3379),o=n.n(i),a=n(7795),r=n.n(a),s=n(569),f=n.n(s),l=n(3565),c=n.n(l),u=n(9216),d=n.n(u),h=n(4589),m=n.n(h),p=n(1203),g={};g.styleTagTransform=m(),g.setAttributes=c(),g.insert=f().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=d(),o()(p.Z,g),p.Z&&p.Z.locals&&p.Z.locals},7770:function(e,t,n){"use strict";var i=n(3379),o=n.n(i),a=n(7795),r=n.n(a),s=n(569),f=n.n(s),l=n(3565),c=n.n(l),u=n(9216),d=n.n(u),h=n(4589),m=n.n(h),p=n(6127),g={};g.styleTagTransform=m(),g.setAttributes=c(),g.insert=f().bind(null,"head"),g.domAPI=r(),g.insertStyleElement=d(),o()(p.Z,g),p.Z&&p.Z.locals&&p.Z.locals},3379:function(e){"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var a={},r=[],s=0;s<e.length;s++){var f=e[s],l=i.base?f[0]+i.base:f[0],c=a[l]||0,u="".concat(l," ").concat(c);a[l]=c+1;var d=n(u),h={css:f[1],media:f[2],sourceMap:f[3],supports:f[4],layer:f[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var m=o(h,i);i.byIndex=s,t.splice(s,0,{identifier:u,updater:m,references:1})}r.push(u)}return r}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=i(e=e||[],o=o||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var s=n(a[r]);t[s].references--}for(var f=i(e,o),l=0;l<a.length;l++){var c=n(a[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=f}}},569:function(e){"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5273:function(e,t,n){var i;i=function(e,t){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},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=6)}([function(t,n){t.exports=e},function(e,t,n){"use strict";t.a=function e(){var t={},n=!1,i=0,o=arguments.length;function a(i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n&&"[object Object]"===Object.prototype.toString.call(i[o])?t[o]=e(!0,t[o],i[o]):t[o]=i[o])}for("[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(n=arguments[0],i++);i<o;i++)a(arguments[i]);return t}},function(e,n){e.exports=t},function(e,t,n){"use strict";var i=n(0),o=n.n(i),a=n(1),r=n(2),s=n.n(r);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images,i=void 0===t?[]:t,r=e.options,f=void 0===r?{}:r;f=n.i(a.a)(f,{inline:!1});var l=new(s.a.extend({render:function(e){return e("div",{style:{display:"none"},class:["__viewer-token"]},i.map((function(t){return e("img",{attrs:"string"==typeof t?{src:t}:t})})))}}));l.$mount(),document.body.appendChild(l.$el);var c=new o.a(l.$el,f),u=c.destroy.bind(c);return c.destroy=function(){return u(),l.$destroy(),document.body.removeChild(l.$el),c},c.show(),l.$el.addEventListener("hidden",(function(){this.viewer===c&&c.destroy()})),c}},function(e,t,n){"use strict";(function(e){var i=n(0),o=n.n(i),a=n(7),r=(n.n(a),n(2)),s=n.n(r);t.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.name,r=void 0===i?"viewer":i,f=t.debug,l=void 0!==f&&f;function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s.a.nextTick((function(){i&&!function(e){var t=e.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=t?t.join(""):void 0;return e.__viewerImageDiffCache===n?(h("Element change detected, but image(s) has not changed"),!1):(h("Image change detected"),e.__viewerImageDiffCache=n,!0)}(e)||(n||!e["$"+r]?(u(e),e["$"+r]=new o.a(e,t),h("Viewer created")):(e["$"+r].update(),h("Viewer updated")))}))}function u(e){e["$"+r]&&(e["$"+r].destroy(),delete e["$"+r],h("Viewer destroyed"))}function d(e){e.__viewerMutationObserver&&(e.__viewerMutationObserver.disconnect(),delete e.__viewerMutationObserver,h("Observer destroyed"))}function h(){var e;l&&(e=console).log.apply(e,arguments)}return{bind:function(t,i,o){h("Viewer bind");var r=n.i(a.debounce)(50,c);r(t,i.value),function(e,t,n,i){var o=t.expression;o&&/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(o)?(e.__viewerUnwatch=n.context.$watch(o,(function(t,n){h("Change detected by watcher: ",o),i(e,t,!0)}),{deep:!0}),h("Watcher created, expression: ",o)):h("Only simple dot-delimited paths can create watcher")}(t,i,o,r),i.modifiers.static||function(t,n,i,o){d(t);var a=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver;if(a){var r=new a((function(e){e.forEach((function(e){h("Viewer mutation:"+e.type),i(t,n,o,!0)}))}));r.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__viewerMutationObserver=r,h("Observer created")}else h("Observer not supported")}(t,i.value,r,i.modifiers.rebuild)},unbind:function(e,t){h("Viewer unbind"),d(e),function(e){e.__viewerUnwatch&&(e.__viewerUnwatch(),delete e.__viewerUnwatch,h("Watcher destroyed"))}(e),u(e)}}}}).call(t,n(9))},function(e,t,n){var i=n(10)(n(8),n(11),null,null);i.options.__file="/Volumes/public/Workspace/web/v-viewer/src/component.vue",i.esModule&&Object.keys(i.esModule).some((function(e){return"default"!==e&&"__esModule"!==e}))&&console.error("named exports are not supported in *.vue files."),i.options.functional&&console.error("[vue-loader] component.vue: functional components are not supported with templates, they should use render functions."),e.exports=i.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),a=n.n(o),r=n(5),s=n.n(r),f=n(4),l=n(3);n.d(t,"component",(function(){return s.a})),n.d(t,"directive",(function(){return f.a})),n.d(t,"api",(function(){return l.a})),n.d(t,"Viewer",(function(){return a.a})),t.default={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.name,r=void 0===o?"viewer":o,c=t.debug,u=void 0!==c&&c,d=t.defaultOptions;a.a.setDefaults(d),e.component(r,n.i(i.a)(s.a,{name:r})),e.directive(r,n.i(f.a)({name:r,debug:u})),e.prototype["$"+r+"Api"]=l.a},setDefaults:function(e){a.a.setDefaults(e)}}},function(e,t,n){var i,o,a,r;r=function(e){"use strict";function t(e,t,n,i){var o,a=!1,r=0;function s(){o&&clearTimeout(o)}function f(){for(var f=arguments.length,l=new Array(f),c=0;c<f;c++)l[c]=arguments[c];var u=this,d=Date.now()-r;function h(){r=Date.now(),n.apply(u,l)}a||(i&&!o&&h(),s(),void 0===i&&d>e?h():!0!==t&&(o=setTimeout(i?function(){o=void 0}:h,void 0===i?e-d:e)))}return"boolean"!=typeof t&&(i=n,n=t,t=void 0),f.cancel=function(){s(),a=!0},f}e.debounce=function(e,n,i){return void 0===i?t(e,n,!1):t(e,i,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===("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})(t)&&void 0!==e?r(t):(o=[t],void 0===(a="function"==typeof(i=r)?i.apply(t,o):i)||(e.exports=a))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n.n(i);t.default={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data:function(){return{}},computed:{},methods:{onChange:function(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer:function(){this.destroyViewer(),this.createViewer()},updateViewer:function(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer:function(){this.$viewer&&this.$viewer.destroy()},createViewer:function(){this.$viewer=new o.a(this.$el,this.options),this.$emit("inited",this.$viewer)}},watch:{images:function(){var e=this;this.$nextTick((function(){e.onChange()}))},trigger:{handler:function(){var e=this;this.$nextTick((function(){e.onChange()}))},deep:!0},options:{handler:function(){var e=this;this.$nextTick((function(){e.rebuildViewer()}))},deep:!0}},mounted:function(){this.createViewer()},destroyed:function(){this.destroyViewer()}}},function(e,t){var n,i="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(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":i(window))&&(n=window)}e.exports=n},function(e,t){e.exports=function(e,t,n,i){var o,a=e=e||{},r=typeof e.default;"object"!==r&&"function"!==r||(o=e,a=e.default);var s="function"==typeof a?a.options:a;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),i){var f=Object.create(s.computed||null);Object.keys(i).forEach((function(e){var t=i[e];f[e]=function(){return t}})),s.computed=f}return{esModule:o,exports:a,options:s}}},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default",null,{images:e.images,options:e.options})],2)},staticRenderFns:[]},e.exports.render._withStripped=!0}])},e.exports=i(n(1949),n(3371))},1949:function(e){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){var n,a,r;n=t,a=e,r=i[e],(a=o(a))in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e){return n="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(e)}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var a={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},r="undefined"!=typeof window&&void 0!==window.document,s=r?window:{},f=!(!r||!s.document.documentElement)&&"ontouchstart"in s.document.documentElement,l=!!r&&"PointerEvent"in s,c="viewer",u="move",d="switch",h="zoom",m="".concat(c,"-active"),p="".concat(c,"-close"),g="".concat(c,"-fade"),b="".concat(c,"-fixed"),v="".concat(c,"-fullscreen"),y="".concat(c,"-fullscreen-exit"),w="".concat(c,"-hide"),S="".concat(c,"-hide-md-down"),x="".concat(c,"-hide-sm-down"),C="".concat(c,"-hide-xs-down"),_="".concat(c,"-in"),P="".concat(c,"-invisible"),k="".concat(c,"-loading"),D="".concat(c,"-move"),I="".concat(c,"-open"),L="".concat(c,"-show"),A="".concat(c,"-transition"),T="click",R="dblclick",j="dragstart",F="focusin",E="keydown",M="load",z="error",O=l?"pointerdown":f?"touchstart":"mousedown",G=l?"pointermove":f?"touchmove":"mousemove",B=l?"pointerup pointercancel":f?"touchend touchcancel":"mouseup",U="resize",N="transitionend",V="wheel",q="ready",$="show",X="shown",H="hide",W="hidden",Y="view",J="viewed",Z="move",K="moved",Q="rotate",ee="rotated",te="scale",ne="scaled",ie="zoom",oe="zoomed",ae="play",re="stop",se="".concat(c,"Action"),fe=/\s\s*/,le=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function ce(e){return"string"==typeof e}var ue=Number.isNaN||s.isNaN;function de(e){return"number"==typeof e&&!ue(e)}function he(e){return void 0===e}function me(e){return"object"===n(e)&&null!==e}var pe=Object.prototype.hasOwnProperty;function ge(e){if(!me(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&pe.call(n,"isPrototypeOf")}catch(e){return!1}}function be(e){return"function"==typeof e}function ve(e,t){if(e&&be(t))if(Array.isArray(e)||de(e.length)){var n,i=e.length;for(n=0;n<i&&!1!==t.call(e,e[n],n,e);n+=1);}else me(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}));return e}var ye=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return me(e)&&n.length>0&&n.forEach((function(t){me(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},we=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Se(e,t){var n=e.style;ve(t,(function(e,t){we.test(t)&&de(e)&&(e+="px"),n[t]=e}))}function xe(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function Ce(e,t){if(e&&t)if(de(e.length))ve(e,(function(e){Ce(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function _e(e,t){e&&t&&(de(e.length)?ve(e,(function(e){_e(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Pe(e,t,n){t&&(de(e.length)?ve(e,(function(e){Pe(e,t,n)})):n?Ce(e,t):_e(e,t))}var ke=/([a-z\d])([A-Z])/g;function De(e){return e.replace(ke,"$1-$2").toLowerCase()}function Ie(e,t){return me(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(De(t)))}function Le(e,t,n){me(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(De(t)),n)}var Ae=function(){var e=!1;if(r){var t=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});s.addEventListener("test",n,i),s.removeEventListener("test",n,i)}return e}();function Te(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;t.trim().split(fe).forEach((function(t){if(!Ae){var a=e.listeners;a&&a[t]&&a[t][n]&&(o=a[t][n],delete a[t][n],0===Object.keys(a[t]).length&&delete a[t],0===Object.keys(a).length&&delete e.listeners)}e.removeEventListener(t,o,i)}))}function Re(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n;t.trim().split(fe).forEach((function(t){if(i.once&&!Ae){var a=e.listeners,r=void 0===a?{}:a;o=function(){delete r[t][n],e.removeEventListener(t,o,i);for(var a=arguments.length,s=new Array(a),f=0;f<a;f++)s[f]=arguments[f];n.apply(e,s)},r[t]||(r[t]={}),r[t][n]&&e.removeEventListener(t,r[t][n],i),r[t][n]=o,e.listeners=r}e.addEventListener(t,o,i)}))}function je(e,n,i,o){var a;return be(Event)&&be(CustomEvent)?a=new CustomEvent(n,t({bubbles:!0,cancelable:!0,detail:i},o)):(a=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,i),e.dispatchEvent(a)}function Fe(e){var t=e.rotate,n=e.scaleX,i=e.scaleY,o=e.translateX,a=e.translateY,r=[];de(o)&&0!==o&&r.push("translateX(".concat(o,"px)")),de(a)&&0!==a&&r.push("translateY(".concat(a,"px)")),de(t)&&0!==t&&r.push("rotate(".concat(t,"deg)")),de(n)&&1!==n&&r.push("scaleX(".concat(n,")")),de(i)&&1!==i&&r.push("scaleY(".concat(i,")"));var s=r.length?r.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var Ee=s.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(s.navigator.userAgent);function Me(e,t,n){var i=document.createElement("img");if(e.naturalWidth&&!Ee)return n(e.naturalWidth,e.naturalHeight),i;var o=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),Ee||o.removeChild(i)},ve(t.inheritedAttributes,(function(t){var n=e.getAttribute(t);null!==n&&i.setAttribute(t,n)})),i.src=e.src,Ee||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i)),i}function ze(e){switch(e){case 2:return C;case 3:return x;case 4:return S;default:return""}}function Oe(e,n){var i=e.pageX,o=e.pageY,a={endX:i,endY:o};return n?a:t({timeStamp:Date.now(),startX:i,startY:o},a)}var Ge,Be={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=ye({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&Se(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,i=this.list,o=[];i.innerHTML="",ve(this.images,(function(t,a){var r=t.src,s=t.alt||function(e){return ce(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(r),f=e.getImageURL(t);if(r||f){var l=document.createElement("li"),c=document.createElement("img");ve(n.inheritedAttributes,(function(e){var n=t.getAttribute(e);null!==n&&c.setAttribute(e,n)})),n.navbar&&(c.src=r||f),c.alt=s,c.setAttribute("data-original-url",f||r),l.setAttribute("data-index",a),l.setAttribute("data-viewer-action","view"),l.setAttribute("role","button"),n.keyboard&&l.setAttribute("tabindex",0),l.appendChild(c),i.appendChild(l),o.push(l)}})),this.items=o,ve(o,(function(t){var i,o,a=t.firstElementChild;Le(a,"filled",!0),n.loading&&Ce(t,k),Re(a,M,i=function(i){Te(a,z,o),n.loading&&_e(t,k),e.loadImage(i)},{once:!0}),Re(a,z,o=function(){Te(a,M,i),n.loading&&_e(t,k)},{once:!0})})),n.transition&&Re(t,J,(function(){Ce(i,A)}),{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,i=parseInt(window.getComputedStyle(n||t).marginLeft,10),o=t.offsetWidth,a=o+i;Se(this.list,ye({width:a*this.length-i},Fe({translateX:(this.viewerData.width-o)/2-a*e})))}},resetList:function(){var e=this.list;e.innerHTML="",_e(e,A),Se(e,Fe({translateX:0}))},initImage:function(e){var t,n=this,i=this.options,o=this.image,a=this.viewerData,r=this.footer.offsetHeight,s=a.width,f=Math.max(a.height-r,r),l=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Me(o,i,(function(t,o){var a=t/o,r=Math.max(0,Math.min(1,i.initialCoverage)),c=s,u=f;n.imageInitializing=!1,f*a>s?u=s/a:c=f*a,r=de(r)?r:.9,c=Math.min(c*r,t),u=Math.min(u*r,o);var d=(s-c)/2,h=(f-u)/2,m={left:d,top:h,x:d,y:h,width:c,height:u,oldRatio:1,ratio:c/t,aspectRatio:a,naturalWidth:t,naturalHeight:o},p=ye({},m);i.rotatable&&(m.rotate=l.rotate||0,p.rotate=0),i.scalable&&(m.scaleX=l.scaleX||1,m.scaleY=l.scaleY||1,p.scaleX=1,p.scaleY=1),n.imageData=m,n.initialImageData=p,e&&e()}))},renderImage:function(e){var t=this,n=this.image,i=this.imageData;if(Se(n,ye({width:i.width,height:i.height,marginLeft:i.x,marginTop:i.y},Fe(i))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&xe(n,A)){var o=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Te(n,N,o)}},Re(n,N,o,{once:!0})}else e()},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},Ue={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;Re(t,T,this.onClick=this.click.bind(this)),Re(t,j,this.onDragStart=this.dragstart.bind(this)),Re(n,O,this.onPointerDown=this.pointerdown.bind(this)),Re(i,G,this.onPointerMove=this.pointermove.bind(this)),Re(i,B,this.onPointerUp=this.pointerup.bind(this)),Re(i,E,this.onKeyDown=this.keydown.bind(this)),Re(window,U,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Re(t,V,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&Re(n,R,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;Te(t,T,this.onClick),Te(t,j,this.onDragStart),Te(n,O,this.onPointerDown),Te(i,G,this.onPointerMove),Te(i,B,this.onPointerUp),Te(i,E,this.onKeyDown),Te(window,U,this.onResize),e.zoomable&&e.zoomOnWheel&&Te(t,V,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Te(n,R,this.onDblclick)}},Ne={click:function(e){var t=this.options,n=this.imageData,i=e.target,o=Ie(i,se);switch(o||"img"!==i.localName||"li"!==i.parentElement.localName||(o=Ie(i=i.parentElement,se)),f&&e.isTrusted&&i===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(Ie(i,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(f&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,i=this.image,o=this.index,a=this.viewerData;_e(i,P),n.loading&&_e(this.canvas,k),i.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage((function(){Pe(i,D,n.movable),Pe(i,A,n.transition),e.renderImage((function(){e.viewed=!0,e.viewing=!1,be(n.viewed)&&Re(t,J,n.viewed,{once:!0}),je(t,J,{originalImage:e.images[o],index:o,image:i},{cancelable:!1})}))}))},loadImage:function(e){var t=e.target,n=t.parentNode,i=n.offsetWidth||30,o=n.offsetHeight||50,a=!!Ie(t,"filled");Me(t,this.options,(function(e,n){var r=e/n,s=i,f=o;o*r>i?a?s=o*r:f=i/r:a?f=i/r:s=o*r,Se(t,ye({width:s,height:f},Fe({translateX:(i-s)/2,translateY:(o-f)/2})))}))},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;if(13===n&&this.viewer.contains(e.target)&&this.click(e),this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,i=e.buttons,o=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(de(i)&&1!==i||de(o)&&0!==o||e.ctrlKey))){e.preventDefault(),e.changedTouches?ve(e.changedTouches,(function(e){n[e.identifier]=Oe(e)})):n[e.pointerId||0]=Oe(e);var a=!!t.movable&&u;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?a=h:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(a=d),!t.transition||a!==u&&a!==h||_e(this.image,A),this.action=a}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?ve(e.changedTouches,(function(e){ye(t[e.identifier]||{},Oe(e,!0))})):ye(t[e.pointerId||0]||{},Oe(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,i=this.options,o=this.action,a=this.pointers;e.changedTouches?ve(e.changedTouches,(function(e){t=a[e.identifier],delete a[e.identifier]})):(t=a[e.pointerId||0],delete a[e.pointerId||0]),o&&(e.preventDefault(),!i.transition||o!==u&&o!==h||Ce(this.image,A),this.action=!1,f&&o!==h&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){je(n.image,R,{originalEvent:e})}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){n.imageClicked=!1}),500)):(this.imageClicked=!1,i.backdrop&&"static"!==i.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){je(n.canvas,T,{originalEvent:e})}),50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();ve(this.player.getElementsByTagName("img"),(function(t){Re(t,M,e.loadImage.bind(e),{once:!0}),je(t,M)}))}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50);var n=Number(this.options.zoomRatio)||.1,i=1;e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),this.zoom(-i*n,!0,null,e)}}},Ve={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(be(n.show)&&Re(t,$,n.show,{once:!0}),!1===je(t,$)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(_e(i,w),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("aria-hidden"),n.transition&&!e){var o=this.shown.bind(this);this.transitioning={abort:function(){Te(i,N,o),_e(i,_)}},Ce(i,A),i.initialOffsetWidth=i.offsetWidth,Re(i,N,o,{once:!0}),Ce(i,_)}else Ce(i,_),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,i=this.options;if(i.inline||this.hiding||!this.isShown&&!this.showing)return this;if(be(i.hide)&&Re(n,H,i.hide,{once:!0}),!1===je(n,H))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,a=this.image,r=function(){_e(o,_),e.hidden()};if(i.transition&&!t){var s=function t(n){n&&n.target===o&&(Te(o,N,t),e.hidden())},f=function(){xe(o,A)?(Re(o,N,s),_e(o,_)):r()};this.transitioning={abort:function(){e.viewed&&xe(a,A)?Te(a,N,f):xe(o,A)&&Te(o,N,s)}},this.viewed&&xe(a,A)?(Re(a,N,f,{once:!0}),this.zoomTo(0,!1,null,null,!0)):f()}else r();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,i=this.options,o=this.title,a=this.canvas,r=this.items[t],s=r.querySelector("img"),f=Ie(s,"originalUrl"),l=s.getAttribute("alt"),c=document.createElement("img");if(ve(i.inheritedAttributes,(function(e){var t=s.getAttribute(e);null!==t&&c.setAttribute(e,t)})),c.src=f,c.alt=l,be(i.view)&&Re(n,Y,i.view,{once:!0}),!1===je(n,Y,{originalImage:this.images[t],index:t,image:c})||!this.isShown||this.hiding||this.played)return this;var u=this.items[this.index];u&&(_e(u,m),u.removeAttribute("aria-selected")),Ce(r,m),r.setAttribute("aria-selected",!0),i.focus&&r.focus(),this.image=c,this.viewed=!1,this.index=t,this.imageData={},Ce(c,P),i.loading&&Ce(a,k),a.innerHTML="",a.appendChild(c),this.renderList(),o.innerHTML="";var d,h,p=function(){var t,n=e.imageData,a=Array.isArray(i.title)?i.title[1]:i.title;o.innerHTML=ce(t=be(a)?a.call(e,c,n):"".concat(l," (").concat(n.naturalWidth," × ").concat(n.naturalHeight,")"))?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):t};return Re(n,J,p,{once:!0}),this.viewing={abort:function(){Te(n,J,p),c.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(c.src="",Te(c,M,d),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(Re(c,M,d=function(){Te(c,z,h),e.load()},{once:!0}),Re(c,z,h=function(){Te(c,M,d),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),_e(c,P),i.loading&&_e(e.canvas,k)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){_e(c,P),e.timeout=!1}),1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(he(e)?e:n.x+Number(e),he(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.element,a=this.options,r=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&a.movable){var s=r.x,f=r.y,l=!1;if(de(e)?l=!0:e=s,de(n)?l=!0:n=f,l){if(be(a.move)&&Re(o,Z,a.move,{once:!0}),!1===je(o,Z,{x:e,y:n,oldX:s,oldY:f,originalEvent:i}))return this;r.x=e,r.y=n,r.left=e,r.top=n,this.moving=!0,this.renderImage((function(){t.moving=!1,be(a.moved)&&Re(o,K,a.moved,{once:!0}),je(o,K,{x:e,y:n,oldX:s,oldY:f,originalEvent:i},{cancelable:!1})}))}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,i=this.options,o=this.imageData;if(de(e=Number(e))&&this.viewed&&!this.played&&i.rotatable){var a=o.rotate;if(be(i.rotate)&&Re(n,Q,i.rotate,{once:!0}),!1===je(n,Q,{degree:e,oldDegree:a}))return this;o.rotate=e,this.rotating=!0,this.renderImage((function(){t.rotating=!1,be(i.rotated)&&Re(n,ee,i.rotated,{once:!0}),je(n,ee,{degree:e,oldDegree:a},{cancelable:!1})}))}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.element,o=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.scalable){var r=a.scaleX,s=a.scaleY,f=!1;if(de(e)?f=!0:e=r,de(n)?f=!0:n=s,f){if(be(o.scale)&&Re(i,te,o.scale,{once:!0}),!1===je(i,te,{scaleX:e,scaleY:n,oldScaleX:r,oldScaleY:s}))return this;a.scaleX=e,a.scaleY=n,this.scaling=!0,this.renderImage((function(){t.scaling=!1,be(o.scaled)&&Re(i,ne,o.scaled,{once:!0}),je(i,ne,{scaleX:e,scaleY:n,oldScaleX:r,oldScaleY:s},{cancelable:!1})}))}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(o.width*e/o.naturalWidth,t,n,i),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=this.element,s=this.options,f=this.pointers,l=this.imageData,c=l.x,u=l.y,d=l.width,h=l.height,m=l.naturalWidth,p=l.naturalHeight;if(de(e=Math.max(0,e))&&this.viewed&&!this.played&&(a||s.zoomable)){if(!a){var g=Math.max(.01,s.minZoomRatio),b=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,g),b)}if(o)switch(o.type){case"wheel":s.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var v=m*e,y=p*e,w=v-d,S=y-h,x=l.ratio;if(be(s.zoom)&&Re(r,ie,s.zoom,{once:!0}),!1===je(r,ie,{ratio:e,oldRatio:x,originalEvent:o}))return this;if(this.zooming=!0,o){var C=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),_=f&&Object.keys(f).length>0?function(e){var t=0,n=0,i=0;return ve(e,(function(e){var o=e.startX,a=e.startY;t+=o,n+=a,i+=1})),{pageX:t/=i,pageY:n/=i}}(f):{pageX:o.pageX,pageY:o.pageY};l.x-=w*((_.pageX-C.left-c)/d),l.y-=S*((_.pageY-C.top-u)/h)}else ge(i)&&de(i.x)&&de(i.y)?(l.x-=w*((i.x-c)/d),l.y-=S*((i.y-u)/h)):(l.x-=w/2,l.y-=S/2);l.left=l.x,l.top=l.y,l.width=v,l.height=y,l.oldRatio=x,l.ratio=e,this.renderImage((function(){t.zooming=!1,be(s.zoomed)&&Re(r,oe,s.zoomed,{once:!0}),je(r,oe,{ratio:e,oldRatio:x,originalEvent:o},{cancelable:!1})})),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,i=this.options;if(be(i.play)&&Re(n,ae,i.play,{once:!0}),!1===je(n,ae))return this;var o=this.player,a=this.loadImage.bind(this),r=[],s=0,f=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),Ce(o,L),ve(this.items,(function(e,t){var n=e.querySelector("img"),l=document.createElement("img");l.src=Ie(n,"originalUrl"),l.alt=n.getAttribute("alt"),l.referrerPolicy=n.referrerPolicy,s+=1,Ce(l,g),Pe(l,A,i.transition),xe(e,m)&&(Ce(l,_),f=t),r.push(l),Re(l,M,a,{once:!0}),o.appendChild(l)})),de(i.interval)&&i.interval>0){var l=function t(){clearTimeout(e.playing.timeout),_e(r[f],_),Ce(r[f=(f+=1)<s?f:0],_),e.playing.timeout=setTimeout(t,i.interval)};s>1&&(this.playing={prev:function t(){clearTimeout(e.playing.timeout),_e(r[f],_),Ce(r[f=(f-=1)>=0?f:s-1],_),e.playing.timeout=setTimeout(t,i.interval)},next:l,timeout:setTimeout(l,i.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(be(n.stop)&&Re(t,re,n.stop,{once:!0}),!1===je(t,re))return this;var i=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,ve(i.getElementsByTagName("img"),(function(t){Te(t,M,e.onLoadWhenPlay)})),_e(i,L),i.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,i=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),Ce(this.button,y),t.transition&&(_e(o,A),this.viewed&&_e(i,A)),Ce(n,b),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),Se(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=ye({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Ce(i,A),Ce(o,A)}),0)}))}))),this},exit:function(){var e=this,t=this.options,n=this.viewer,i=this.image,o=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),_e(this.button,y),t.transition&&(_e(o,A),this.viewed&&_e(i,A)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),_e(n,b),Se(n,{zIndex:t.zIndexInline}),this.viewerData=ye({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Ce(i,A),Ce(o,A)}),0)}))})),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,i=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*i.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&je(n,N),Ce(n,L),Ce(n,g),Ce(n,A),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,Ce(n,_)):(Ce(n,L),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){t.transition?(Re(n,N,(function(){_e(n,L),_e(n,g),_e(n,A),n.setAttribute("aria-hidden",!0),e.fading=!1}),{once:!0}),_e(n,_),e.fading=!0):(_e(n,L),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1}),1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=ye({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,i=this.isImg;if(i&&!t.parentNode)return this.destroy();var o=[];if(ve(i?[t]:t.querySelectorAll("img"),(function(t){be(n.filter)?n.filter.call(e,t)&&o.push(t):e.getImageURL(t)&&o.push(t)})),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var a=[];if(ve(this.items,(function(e,t){var n=e.querySelector("img"),i=o[t];i&&n&&i.src===n.src&&i.alt===n.alt||a.push(t)})),Se(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var r=a.indexOf(this.index);if(r>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-r,this.length-1),0));else{var s=this.items[this.index];Ce(s,m),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[c]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||Te(e,T,this.onStart),e[c]=void 0,this):this}},qe={getImageURL:function(e){var t=this.options.url;return ce(t)?e.getAttribute(t):be(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Re(document,F,this.onFocusin=function(t){var n=e.viewer,i=t.target;if(i!==document&&i!==n&&!n.contains(i)){for(;i;){if(null!==i.getAttribute("tabindex")||"true"===i.getAttribute("aria-modal"))return;i=i.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Te(document,F,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;Ce(e,I),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;_e(e,I),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),be(t.shown)&&Re(e,X,t.shown,{once:!0}),!1!==je(e,X)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),Ce(n,w),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(be(t.hidden)&&Re(e,W,t.hidden,{once:!0}),je(e,W,null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?ge(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,i=this.pointers,o=i[Object.keys(i)[0]];if(o){var a=o.endX-o.startX,r=o.endY-o.startY;switch(this.action){case u:0===a&&0===r||(this.pointerMoved=!0,this.move(a,r,e));break;case h:this.zoom(function(e){var n=t({},e),i=[];return ve(e,(function(e,t){delete n[t],ve(n,(function(t){var n=Math.abs(e.startX-t.startX),o=Math.abs(e.startY-t.startY),a=Math.abs(e.endX-t.endX),r=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+o*o),f=(Math.sqrt(a*a+r*r)-s)/s;i.push(f)}))})),i.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),i[0]}(i),!1,null,e);break;case d:this.action="switched";var s=Math.abs(a);s>1&&s>Math.abs(r)&&(this.pointers={},a>1?this.prev(n.loop):a<-1&&this.next(n.loop))}ve(i,(function(e){e.startX=e.endX,e.startY=e.endY}))}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},$e=s.Viewer,Xe=(Ge=-1,function(){return Ge+=1}),He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=ye({},a,ge(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=Xe(),this.init()}return t=e,o=[{key:"noConflict",value:function(){return window.Viewer=$e,e}},{key:"setDefaults",value:function(e){ye(a,ge(e)&&e)}}],(n=[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[c]){t[c]=this,n.focus&&!n.keyboard&&(n.focus=!1);var i="img"===t.localName,o=[];if(ve(i?[t]:t.querySelectorAll("img"),(function(t){be(n.filter)?n.filter.call(e,t)&&o.push(t):e.getImageURL(t)&&o.push(t)})),this.isImg=i,this.length=o.length,this.images=o,this.initBody(),he(document.createElement(c).style.transition)&&(n.transition=!1),n.inline){var a=0,r=function(){var t;(a+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout((function(){e.delaying=!1,e.build()}),0))};this.initializing={abort:function(){ve(o,(function(e){e.complete||(Te(e,M,r),Te(e,z,r))}))}},ve(o,(function(e){var t,n;e.complete?r():(Re(e,M,t=function(){Te(e,z,n),r()},{once:!0}),Re(e,z,n=function(){Te(e,M,t),r()},{once:!0}))}))}else Re(t,T,this.onStart=function(t){var i=t.target;"img"!==i.localName||be(n.filter)&&!n.filter.call(e,i)||e.view(e.images.indexOf(i))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var o=i.querySelector(".".concat(c,"-container")),a=o.querySelector(".".concat(c,"-title")),r=o.querySelector(".".concat(c,"-toolbar")),s=o.querySelector(".".concat(c,"-navbar")),f=o.querySelector(".".concat(c,"-button")),l=o.querySelector(".".concat(c,"-canvas"));if(this.parent=n,this.viewer=o,this.title=a,this.toolbar=r,this.navbar=s,this.button=f,this.canvas=l,this.footer=o.querySelector(".".concat(c,"-footer")),this.tooltipBox=o.querySelector(".".concat(c,"-tooltip")),this.player=o.querySelector(".".concat(c,"-player")),this.list=o.querySelector(".".concat(c,"-list")),o.id="".concat(c).concat(this.id),a.id="".concat(c,"Title").concat(this.id),Ce(a,t.title?ze(Array.isArray(t.title)?t.title[0]:t.title):w),Ce(s,t.navbar?ze(t.navbar):w),Pe(f,w,!t.button),t.keyboard&&f.setAttribute("tabindex",0),t.backdrop&&(Ce(o,"".concat(c,"-backdrop")),t.inline||"static"===t.backdrop||Le(l,se,"hide")),ce(t.className)&&t.className&&t.className.split(fe).forEach((function(e){Ce(o,e)})),t.toolbar){var u=document.createElement("ul"),d=ge(t.toolbar),h=le.slice(0,3),m=le.slice(7,9),y=le.slice(9);d||Ce(r,ze(t.toolbar)),ve(d?t.toolbar:le,(function(e,n){var i=d&&ge(e),o=d?De(n):e,a=i&&!he(e.show)?e.show:e;if(a&&(t.zoomable||-1===h.indexOf(o))&&(t.rotatable||-1===m.indexOf(o))&&(t.scalable||-1===y.indexOf(o))){var r=i&&!he(e.size)?e.size:e,s=i&&!he(e.click)?e.click:e,f=document.createElement("li");t.keyboard&&f.setAttribute("tabindex",0),f.setAttribute("role","button"),Ce(f,"".concat(c,"-").concat(o)),be(s)||Le(f,se,o),de(a)&&Ce(f,ze(a)),-1!==["small","large"].indexOf(r)?Ce(f,"".concat(c,"-").concat(r)):"play"===o&&Ce(f,"".concat(c,"-large")),be(s)&&Re(f,T,s),u.appendChild(f)}})),r.appendChild(u)}else Ce(r,w);if(!t.rotatable){var S=r.querySelectorAll('li[class*="rotate"]');Ce(S,P),ve(S,(function(e){r.appendChild(e)}))}if(t.inline)Ce(f,v),Se(o,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&Se(n,{position:"relative"}),n.insertBefore(o,e.nextSibling);else{Ce(f,p),Ce(o,b),Ce(o,g),Ce(o,w),Se(o,{zIndex:t.zIndex});var x=t.container;ce(x)&&(x=e.ownerDocument.querySelector(x)),x||(x=this.body),x.appendChild(o)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,be(t.ready)&&Re(e,q,t.ready,{once:!0}),!1!==je(e,q)?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n,o}();return ye(He.prototype,Be,Ue,Ne,Ve,qe),He}()},1900:function(e,t,n){"use strict";function i(e,t,n,i,o,a,r,s){var f,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),r?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=f):o&&(f=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),f)if(l.functional){l._injectStyles=f;var c=l.render;l.render=function(e,t){return f.call(t),c(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,f):[f]}return{exports:e,options:l}}n.d(t,{Z:function(){return i}})},6527:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC"},2493:function(e,t,n){"use strict";e.exports=n.p+"0db1520f47986b6c755a.svg?v=4.7.0"},1866:function(e,t,n){"use strict";e.exports=n.p+"e5c0c62d732823225aaa.eot"},1087:function(e,t,n){"use strict";e.exports=n.p+"e5c0c62d732823225aaa.eot?v=4.7.0"},137:function(e,t,n){"use strict";e.exports=n.p+"4c6f1cd9993ba8a53b8e.ttf?v=4.7.0"},206:function(e,t,n){"use strict";e.exports=n.p+"4a2487b5cc6987c4f1de.woff2?v=4.7.0"},6589:function(e,t,n){"use strict";e.exports=n.p+"06c52960c6d2c0312a3e.woff?v=4.7.0"},6981:function(e){e.exports=function(){return this.ELEMENT}()},3371:function(e){e.exports=function(){return this.Vue}()},5475:function(e){e.exports=function(){return this.jQuery}()},1319:function(e){"use strict";e.exports=i},467:function(t){"use strict";t.exports=e},6656:function(e){"use strict";e.exports=t}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,r),n.exports}r.m=o,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&!e;)e=n[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e}(),r.b=document.baseURI||self.location.href,r.nc=void 0;var s={};return function(){"use strict";r.r(s),r.d(s,{default:function(){return B}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._g(e._b({tag:"component",staticClass:"bpm-audit",attrs:{fieldConf:e.fieldConf,row:e.row,mode:e.mode,uiType:e.uiType,container:e.container},on:{change:e.onChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1),e.$listeners))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"audit-editor"},[n("div",[n("div",{on:{click:function(t){e.opened=!0}}},[n("span",{staticClass:"aduit-result-title",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])])]),e._v(" "),n("el-dialog",{staticClass:"audit-modal",attrs:{visible:e.opened,modal:!1,title:e.fieldConf.name},on:{"update:visible":function(t){e.opened=t},close:e.onHide,open:e.onOpen}},[n("div",[n("el-form",{ref:"form",staticClass:"audit-modal-content",attrs:{model:e.curVal,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"审批结果:"}},[n("span",{staticClass:"aduit-result-title",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])]),e._v(" "),e.curVal&&e.curVal.reject_target?n("el-form-item",{attrs:{label:"回退节点:"}},[e._v("\n "+e._s(e.curVal.reject_target.name||"上一个节点")+"\n ")]):e._e(),e._v(" "),e.showSignature?n("el-form-item",{attrs:{label:"签名:",required:e.isSignatureMust}},[n("bpm-mul-image",{attrs:{fieldConf:{type:"Signature"},mode:"edit"},model:{value:e.curVal.signature,callback:function(t){e.$set(e.curVal,"signature",t)},expression:"curVal.signature"}})],1):e._e(),e._v(" "),e.showJudgment?n("el-form-item",{attrs:{label:"评审意见:",required:e.isJudgmentMust}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入评审意见"},model:{value:e.curVal.judgment,callback:function(t){e.$set(e.curVal,"judgment",t)},expression:"curVal.judgment"}})],1):e._e(),e._v(" "),e.showPhoto?n("el-form-item",{attrs:{label:"拍照:",required:e.isPhotoMust}},[n("bpm-mul-image",{attrs:{fieldConf:{type:"MulImage"},mode:"edit"},model:{value:e.curVal.photos,callback:function(t){e.$set(e.curVal,"photos",t)},expression:"curVal.photos"}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"审批日期:"}},[n("el-date-picker",{ref:"dateSelect",attrs:{type:"datetime",format:e.auditFormat},model:{value:e.curVal.audit_at,callback:function(t){e.$set(e.curVal,"audit_at",t)},expression:"curVal.audit_at"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"审批人:"}},[e._v("\n "+e._s(e.curVal.auditor_name)+"\n ")])],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.opened=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)])],1)};t._withStripped=!0;var n=r(467),i=r.n(n),o=r(3371),a=r.n(o),f=r(6981),l=r(5176);a().use(f.Dialog),a().use(f.DatePicker),a().use(l.default);var c={data(){return{curVal:{result:1,judgment:"",photos:[],reject_target:"",signature:"",auditor_name:"",audit_at:"",auditor:""},opened:!1,dispMode:"nolink",auditFormat:"yyyy-MM-dd HH:mm:ss",userList:[]}},props:["value","fieldConf","row"],computed:{useDetail(){return!!i().get(this.fieldConf,"detail_allow",null)&&!!i().get(this.fieldConf,"detail_deny",null)},resultColor(){let e=i().get(this.curVal,"result",-1),t=1==e?this.allowColor:-1==e?null:this.denyColor;return this.useDetail?t:null},allowColor(){let e=i().get(this.fieldConf,"detail_allow.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},getViewFont(){let e=this.curVal.result,t=1==e?"通过":-1==e?"":"不通过";return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.text","通过"):-1==e?"":i().get(this.fieldConf,"detail_deny.text","不通过")),t},jucdgment(){let e=this.curVal.result,t=i().get(this.fieldConf,"judgment");return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.judgment"):i().get(this.fieldConf,"detail_deny.judgment")),t},showJudgment(){return"yes"==this.jucdgment||"must"==this.jucdgment},denyColor(){let e=i().get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},signature(){let e=this.curVal.result,t=i().get(this.fieldConf,"signature");return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.signature"):i().get(this.fieldConf,"detail_deny.signature")),t},showSignature(){return"yes"==this.signature||"must"==this.signature},photo(){let e=this.curVal.result,t=i().get(this.fieldConf,"photo");return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.photo"):i().get(this.fieldConf,"detail_deny.photo")),t},showPhoto(){return"yes"==this.photo||"must"==this.photo},isJudgmentMust(){return"must"==this.judgment},isSignatureMust(){return"must"==this.signature},isPhotoMust(){return"must"==this.photo},isRequired(){return i().get(this.fieldConf,"check.required")},getCanvasBoxStyle(){return{height:"150px",width:"100%"}}},created(){},mounted(){if(this.value){let e=i().cloneDeep(this.value);e.audit_at=1e3*e.audit_at,this.curVal=i().merge(this.curVal,e)}this.useDetail&&(this.selectOptions=[{label:i().get(this.fieldConf,"detail_allow.text","通过"),value:1},{label:i().get(this.fieldConf,"detail_deny.text","不通过"),value:2}])},methods:{onHide(){this.opened=!1,this.showForm=!1},onOpen(){if(this.value){let e=i().cloneDeep(this.value);e.audit_at=1e3*e.audit_at,this.curVal=i().merge(this.curVal,e)}},async onSubmit(){let e=this.curVal;if(this.isRequired&&!e.result)return void this.$q.notify({message:"请选择审批结果",position:"top",type:"warning"});if(this.isSignatureMust&&!e.signature)return void this.$q.notify({message:"请完成签名",position:"top",type:"warning"});if(this.isJudgmentMust&&!e.judgment)return void this.$q.notify({message:"请填写意见",position:"top",type:"warning"});if(this.isPhotoMust&&i().isEmpty(e.photos))return void this.$q.notify({message:"请至少上传一张图片",position:"top",type:"warning"});let t={result:e.result,signature:e.signature,judgment:e.judgment,photos:e.photos,audit_at:e.audit_at/1e3,auditor:e.auditor,auditor_name:e.auditor_name};this.$emit("change",t),this.$emit("input",t),this.opened=!1},getRejectTarget(e){return"last_id"==e?{type:"RejectToLastUserNode"}:e}}},u=r(1900),d=(0,u.Z)(c,t,[],!1,null,null,null);d.options.__file="components/lib/bpmAudit/src/part/editor.vue";var h=d.exports,m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"audit-reader"},[n("div",[n("div",[(e.modalShow,n("div",{on:{click:function(t){e.opened=!0}}},[n("span",{staticClass:"aduit-result-title",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])]))])]),e._v(" "),e.value&&e.value.reject_target?n("div",{staticClass:"el-form-item-required",attrs:{label:"回退节点:"}},[e._v("\n "+e._s(e.value.reject_target.name||"上一个节点")+"\n ")]):e._e(),e._v(" "),e.showSignature||e.showJudgment||e.showPhoto?n("el-dialog",{staticClass:"audit-modal read-audit",attrs:{visible:e.opened,modal:!1,width:"40%",ok:!1,title:e.fieldConf.name},on:{"update:visible":function(t){e.opened=t},close:e.onHide}},[n("div",[e.value?n("el-form",{ref:"form",staticClass:"audit-modal-content",attrs:{model:e.curVal,"label-width":"120px"}},[n("el-form-item",{staticClass:"el-form-item-required",attrs:{label:"审批结果:"}},[n("span",{staticClass:"aduit-result-title",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333"}},[e._v(e._s(e.getViewFont))])]),e._v(" "),e.value&&e.value.reject_target?n("el-form-item",{staticClass:"el-form-item-required",attrs:{label:"回退节点:"}},[e._v("\n "+e._s(e.value.reject_target.name||"上一个节点")+"\n ")]):e._e(),e._v(" "),e.showSignature?n("el-form-item",{attrs:{label:"签名:",required:e.isSignatureMust}},[n("bpm-mul-image",{attrs:{value:e.value.signature,fieldConf:{type:"Signature"}}})],1):e._e(),e._v(" "),e.showJudgment?n("el-form-item",{attrs:{label:"填写意见:",required:e.isJudgmentMust}},[n("span",{attrs:{title:e.value&&e.value.judgment}},[e._v(e._s(e.value&&e.value.judgment?e.value.judgment:"--"))])]):e._e(),e._v(" "),e.showPhoto?n("el-form-item",{class:e.isPhotoMust?"el-form-item-required":"",attrs:{label:"拍照:"}},[n("bpm-mul-image",{attrs:{value:e.value.photos,fieldConf:{type:"MulImage"}}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"审批人"}},[e._v(e._s(e.auditorName))]),e._v(" "),n("el-form-item",{attrs:{label:"审批时间"}},[e._v(e._s(e.auditAt))])],1):e._e()],1)]):e._e()],1)};m._withStripped=!0;var p=r(1319),g=r.n(p);a().use(f.Dialog),a().use(l.default);var b={props:["value","fieldConf","row"],data(){return{opened:!1,auditFormat:"YYYY-MM-DD HH:mm:ss"}},computed:{useDetail(){return!!i().get(this.fieldConf,"detail_allow",null)&&!!i().get(this.fieldConf,"detail_deny",null)},resultColor(){let e=i().get(this.value,"result",-1),t=1==e?this.allowColor:-1==e?null:this.denyColor;return this.useDetail?t:null},allowColor(){let e=i().get(this.fieldConf,"detail_allow.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},denyColor(){let e=i().get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},getViewFont(){let e=i().get(this.value,"result",-1),t=1==e?"通过":-1==e?"未审批":"不通过";return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.text","通过"):-1==e?"未审批":i().get(this.fieldConf,"detail_deny.text","不通过")),t},hasAudited(){return-1!=i().get(this.value,"result",-1)},showJudgment(){let e=i().get(this.fieldConf,"judgment");return"yes"==e||"must"==e},showSignature(){let e=i().get(this.fieldConf,"signature");return"yes"==e||"must"==e},showPhoto(){let e=i().get(this.fieldConf,"photo");return"yes"==e||"must"==e},isJudgmentMust(){return"must"==i().get(this.fieldConf,"judgment")},isSignatureMust(){return"must"==i().get(this.fieldConf,"signature")},isPhotoMust(){return"must"==i().get(this.fieldConf,"photo")},isRequired(){return i().get(this.fieldConf,"check.required")},modalShow(){return(this.showSignature||this.showJudgment||this.showPhoto)&&this.hasAudited},auditAt(){let e=i().get(this.value,"audit_at");if(e)return e*=1e3,g().format(e,this.auditFormat)},auditorName(){return i().get(this.value,"auditor_name")}},mounted(){},methods:{onHide(){this.opened=!1}}},v=(0,u.Z)(b,m,[],!1,null,null,null);v.options.__file="components/lib/bpmAudit/src/part/reader.vue";var y=v.exports,w=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentName,{tag:"component",attrs:{field:e.fieldConf,fieldConf:e.fieldConf,row:e.row,container:e.container},on:{change:e.changeVal},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}})};w._withStripped=!0;var S=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"audit-with-others"})};S._withStripped=!0;var x={props:["value","fieldConf","row","container","dispMode"],components:{},data(){return{opened:!1,degree:0,selectOptions:[{label:zj.z("通过","b2.common.pass"),value:1},{label:zj.z("不通过","b2.common.fail"),value:2}],canvasBox:null,form:{result:1,judgment:"",photos:[],reject_target:""},hasDraw:!1,openLastSign:!1,lastSign:"",useNextUser:!1}},computed:{useDetail(){return!!_.get(this.fieldConf,"detail_allow",null)&&!!_.get(this.fieldConf,"detail_deny",null)},jucdgment(){let e=this.form.result,t=_.get(this.fieldConf,"judgment");return this.useDetail&&(t=1==e?_.get(this.fieldConf,"detail_allow.judgment"):_.get(this.fieldConf,"detail_deny.judgment")),t},showJudgment(){return"yes"==this.jucdgment||"must"==this.jucdgment},resultColor(){let e=_.get(this.value,"result",-1),t=1==e?this.allowColor:-1==e?null:this.denyColor;return this.useDetail?t:null},allowColor(){let e=_.get(this.fieldConf,"detail_allow.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},denyColor(){let e=_.get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},signature(){let e=this.form.result,t=_.get(this.fieldConf,"signature");return this.useDetail&&(t=1==e?_.get(this.fieldConf,"detail_allow.signature"):_.get(this.fieldConf,"detail_deny.signature")),t},showSignature(){return"yes"==this.signature||"must"==this.signature},photo(){let e=this.form.result,t=_.get(this.fieldConf,"photo");return this.useDetail&&(t=1==e?_.get(this.fieldConf,"detail_allow.photo"):_.get(this.fieldConf,"detail_deny.photo")),t},showPhoto(){return"yes"==this.photo||"must"==this.photo},isJudgmentMust(){return"must"==this.judgment},isSignatureMust(){return"must"==this.signature},isPhotoMust(){return"must"==this.photo},isRequired(){return _.get(this.fieldConf,"check.required")},getViewFont(){let e=_.get(this.value,"result",-1),t=1==e?zj.z("通过","b2.common.pass"):-1==e?"":zj.z("不通过","b2.common.fail");return this.useDetail&&(t=1==e?_.get(this.fieldConf,"detail_allow.text",zj.z("通过","b2.common.pass")):-1==e?"":_.get(this.fieldConf,"detail_deny.text",zj.z("不通过","b2.common.fail"))),t},getCanvasBoxStyle(){return{height:"150px",width:"100%"}},componentName(){return"MulImagePc"},userId(){return _.get(this.$bpm.userInfo,"user_id",0)},userName(){return _.get(this.$bpm.userInfo,"user_name","")},rejectTargetMap(){let e=_.get(this.container,"formSchema.reject_targets");return _.keyBy(e,"node")},rejectTargetList(){let e=_.get(this.container,"formSchema.reject_targets"),t=_.get(this.container,"_formData.passed_nodes"),n=[];return _.each(e,(e=>{_.includes(t,e.node)&&e.only_passed?n.push({label:e.name,value:e.node}):n.push({label:e.name||zj.z("上一个节点","b2.common.previous_node"),value:e.node||"last_id"})})),n}},mounted(){this.container.$on("afterFormSubmit",(e=>{!e&&this.openLastSign&&this.value.signature&&this.$bpm.postEleSign(this.value.signature,this.useNextUser)})),this.useDetail&&(this.selectOptions=[{label:_.get(this.fieldConf,"detail_allow.text",zj.z("通过","b2.common.pass")),value:1},{label:_.get(this.fieldConf,"detail_deny.text",zj.z("不通过","b2.common.fail")),value:2}])},destroyed(){this.container.$off("afterFormSubmit")},methods:{onHide(){this.opened=!1},onOpen(){this.draw||(this.value&&(this.form=this.value),setTimeout((()=>{this.useNextUser=!1,this.handleInit()}),200))},handleInit(){if(!this.showSignature)return;let e=this.$bpm.userSign;this.openLastSign=e.open,this.openLastSign&&!this.form.signature&&e.for_next_use&&(this.form.signature=e.signature),e.for_next_use&&(this.lastSign=e.signature),e.for_next_use&&this.openLastSign&&(this.useNextUser=!0)},onDataLoaded(e){this.resetForm();let t={result:1,judgment:"",photos:[],reject_target:""};this.$emit("input",t),this.$emit("change",t),this.hasDraw=!1,this.draw&&this.draw.clear()},clearSignature(){this.hasDraw=!1,this.draw&&this.draw.clear(),this.lastSign=""},resetForm(){this.form={result:1,judgment:"",photos:[]}},async loadUserInfo(){this.$bpm.networking=!0;let e=await this.$bpm.requestAppendOrgParams({url:"/uc/common/user_info/",params:zj.utils.pageParam()});e=_.get(e,"data.data"),this.$bpm.networking=!1,console.log("info",e.user_info),this.$bpm.setUserInfo(e.user_info)},async onSubmit(){let e=this.form;if(!(zj.app.accessInfo&&zj.app.accessInfo.user_info.user_id||this.userId))return this.loadUserInfo(),void this.$message({message:zj.z("当前网络加载有问题,请重新进入","b2.common.network_err"),type:"warning"});if(2!=e.result||!this.showReject||e.reject_target)if(!this.isRequired||this.form.result)if(!this.isSignatureMust||this.form.signature||this.hasDraw)if(!this.isJudgmentMust||this.form.judgment||this.hasDraw)if(this.isPhotoMust&&_.isEmpty(this.form.photos))this.$message({message:zj.z("请至少上传一张图片","b2.common.least_one_image"),type:"warning"});else if(this.hasDraw){let t=this.draw.getPNGImage();this.uploadImage({basestr:t,type:"png",name:"签名图片.png",model:"userfile"},(t=>{let n={result:e.result,signature:t,judgment:e.judgment,photos:e.photos,audit_at:(new Date).getTime()/1e3,auditor:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_id||this.userId,auditor_name:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_name||this.userName};2==e.result&&this.showReject&&_.set(n,"reject_target",this.getRejectTarget(e.reject_target)),this.field.value=n,this.opened=!1}))}else{let t={result:e.result,signature:e.signature,judgment:e.judgment,photos:e.photos,audit_at:(new Date).getTime()/1e3,auditor:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_id||this.userId,auditor_name:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_name||this.userName};2==e.result&&this.showReject&&_.set(t,"reject_target",this.getRejectTarget(e.reject_target)),this.field.value=t,this.opened=!1}else this.$message({message:zj.z("请填写意见","b2.common.please_fill_comment"),type:"warning"});else this.$message({message:zj.z("请完成签名","b2.common.please_complete_sign"),type:"warning"});else this.$message({message:zj.z("请选择审批结果","b2.common.please_select_audit"),type:"warning"});else this.$message({message:zj.z("回退节点必填","b2.common.back_to_required"),type:"warning"})},getRejectTarget(e){let t=this.rejectTargetMap;return"last_id"==e?{type:"RejectToLastUserNode"}:_.get(t,e)},uploadImage({basestr:e,type:t,name:n,model:i},o){let a=window.atob(e.split(",")[1]),r=new ArrayBuffer(a.length),s=new Uint8Array(r);for(let e=0;e<a.length;e++)s[e]=a.charCodeAt(e);let f,l=window.WebKitBlobBuilder||window.MozBlobBuilder;if(l){let e=new l;e.append(r),f=e.getBlob(t)}else f=new window.Blob([r],{type:t});let c=new FormData;c.append(i,f,n),zj.net.w.noapi({method:"POST",url:"/platform/v1/papi/app_file/upload/",data:c,processData:!1,contentType:!1}).then((e=>{o&&o(e.file_md5)}))},handleSpeechToText(e){this.$refs.input.blur(),e.cancelBubble=!0,e.stopPropagation(),this.$bpm.getSpeechToText((e=>{e.text&&this.$set(this.form,"judgment",(this.form.judgment||"")+e.text)}))}}},C=(r(7602),r(6768),r(4540),(0,u.Z)(x,S,[],!1,null,"1f4bc398",null));C.options.__file="components/lib/bpmAudit/src/part/auditor/audit-with-others.vue";var P=C.exports,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-select",{attrs:{placeholder:e.$z("请选择回退节点","b2.common.select_back_to")},model:{value:e.form.result,callback:function(t){e.$set(e.form,"result",t)},expression:"form.result"}},e._l(e.selectOptions,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)};k._withStripped=!0;var D={props:["value","fieldConf","row","container"],data(){return{selectOptions:[{label:zj.z("通过","b2.common.pass"),value:1},{label:zj.z("不通过","b2.common.fail"),value:2}],form:{result:"",reject_target:""}}},computed:{userId(){return _.get(this.$bpm.userInfo,"user_id",0)},userName(){return _.get(this.$bpm.userInfo,"user_name","")},rejectTargetMap(){let e=_.get(this.field,"topContainer.formSchema.reject_targets");return _.keyBy(e,"node")},rejectTargetList(){let e=_.get(this.field,"topContainer.formSchema.reject_targets"),t=_.get(this.field,"topContainer._formData.passed_nodes"),n=[];return _.each(e,(e=>{_.includes(t,e.node)&&e.only_passed?n.push({label:e.name,value:e.node}):n.push({label:e.name||zj.z("上一个节点","b2.common.previous_node"),value:e.node||"last_id"})})),n}},watch:{form:{handler(e){if(!(zj.app.accessInfo&&zj.app.accessInfo.user_info.user_id||this.userId))return this.loadUserInfo(),void this.$message({message:zj.z("当前网络加载有问题,请重新进入","b2.common.network_err"),type:"warning"});if(2==e.result&&this.showReject&&!e.reject_target)return void this.$message({message:zj.z("回退节点必填","b2.common.back_to_required"),type:"warning"});let t={result:e,signature:"",audit_at:(new Date).getTime()/1e3,auditor:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_id||this.userId,auditor_name:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_name||this.userName};2==e.result&&this.showReject&&_.set(t,"reject_target",this.getRejectTarget(e.reject_target)),this.$emit("change",t),this.$emit("input",t)},deep:!0}},methods:{onDataLoaded(e){this.form.result=_.get(this.field.value,"result","")},getRejectTarget(e){let t=this.rejectTargetMap;return"last_id"==e?{type:"RejectToLastUserNode"}:_.get(t,e)}}},I=(r(2577),(0,u.Z)(D,k,[],!1,null,"2709dffc",null));I.options.__file="components/lib/bpmAudit/src/part/auditor/audit-select.vue";var L=I.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"audit-new"},[n("div",{staticClass:"submit-btns-container"},[n("el-button",{attrs:{disabled:e.submiting},on:{click:function(t){return e.doOperation(2)}}},[e._v(e._s(e.selectOptions[1].label))]),e._v(" "),n("el-button",{attrs:{type:"primary",disabled:e.submiting},on:{click:function(t){return e.doOperation(1)}}},[e._v(e._s(e.selectOptions[0].label))])],1),e._v(" "),n("el-dialog",{staticClass:"audit-modal",attrs:{visible:e.openAuditDlg,modal:!1,center:"",width:"60%",title:e.getViewFont},on:{"update:visible":function(t){e.openAuditDlg=t},close:e.onHide,open:e.onOpen}},[n("div",[n("el-form",{ref:"form",staticClass:"audit-modal-content",attrs:{model:e.curVal,"label-width":"120px"}},[2==e.form.result&&e.showReject?n("el-form-item",{attrs:{label:e.$z("回退节点:","b2.common.fallback_node")}},[n("el-select",{attrs:{placeholder:""},model:{value:e.form.reject_target,callback:function(t){e.$set(e.form,"reject_target",t)},expression:"form.reject_target"}},e._l(e.rejectTargetList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),e._l(e.optAss,(function(t){return n(t.component,{key:t.id,tag:"component",attrs:{conf:t,container:e.container}})})),e._v(" "),n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.showSignature,expression:"showSignature"}],attrs:{required:e.isSignatureMust,label:e.$z("签名:","b2.common.sign")}},[n("bpm-signature",{ref:"signature",model:{value:e.form.signature,callback:function(t){e.$set(e.form,"signature",t)},expression:"form.signature"}})],1),e._v(" "),e.showJudgment?n("el-form-item",{attrs:{required:e.isJudgmentMust,label:e.$z("填写意见:","b2.common.fill_comment")}},[n("el-input",{attrs:{type:"textarea",placeholder:e.$z("请输入评审意见","b2.common.en_comment"),clearable:!!e.form.judgment},model:{value:e.form.judgment,callback:function(t){e.$set(e.form,"judgment",t)},expression:"form.judgment"}})],1):e._e(),e._v(" "),e.showPhoto?n("el-form-item",{attrs:{label:e.$z("拍照:","b2.common.photograph"),required:e.isPhotoMust}},[n(e.componentName,{tag:"component",attrs:{value:e.form.photos,config:e.fieldConf,closeCheck:!0},model:{value:e.form.photos,callback:function(t){e.$set(e.form,"photos",t)},expression:"form.photos"}})],1):e._e(),e._v(" "),e.isOpenAudit?n("el-form-item",{attrs:{required:"",label:e.$z("审批日期:","b2.common.audit_date")}},[n("el-date-picker",{ref:"dateSelect",attrs:{type:"datetime",placeholder:"选择日期时间",format:e.auditTimeFormat},model:{value:e.form.auditTime,callback:function(t){e.$set(e.form,"auditTime",t)},expression:"form.auditTime"}})],1):e._e()],2)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{disabled:!e.isSimulation&&e.submiting},on:{click:e.onCancel}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)])],1)};A._withStripped=!0;var T=r(6324);a().use(f.Dialog),a().use(f.DatePicker),a().use(l.default),a().use(T.default);var R={data(){return{curVal:{result:1,judgment:"",photos:[],reject_target:"",signature:"",auditor_name:"",audit_at:"",auditor:""},openAuditDlg:!1,result:1,form:{result:1,judgment:"",photos:[],signature:"",auditTime:(new Date).getTime()},passForm:{result:1,judgment:"",signature:"",photos:[],auditTime:(new Date).getTime()},notPassForm:{result:2,judgment:"",photos:[],signature:"",reject_target:"",auditTime:(new Date).getTime()},canvasBox:null,hasDraw:!1,degree:0,submiting:!1,openLastSign:!1,lastSign:"",useNextUser:!1,selectOptions:[{label:zj.z("通过","b2.common.pass"),value:1},{label:zj.z("不通过","b2.common.fail"),value:2}],optAss:[],isOpenAudit:!1,auditTimeFormat:"YYYY-MM-DD HH:mm:ss"}},props:["value","fieldConf","row","container"],computed:{useDetail(){return!!i().get(this.fieldConf,"detail_allow",null)&&!!i().get(this.fieldConf,"detail_deny",null)},judgment(){let e=this.result,t=i().get(this.fieldConf,"judgment");return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.judgment"):i().get(this.fieldConf,"detail_deny.judgment")),t},showJudgment(){return"yes"==this.judgment||"must"==this.judgment},signature(){let e=this.result,t=i().get(this.fieldConf,"signature");return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.signature"):i().get(this.fieldConf,"detail_deny.signature")),t},allowColor(){let e=i().get(this.fieldConf,"detail_allow.color","#fff");return"#fff"==e||"#ffffff"==e?"primary":e},denyColor(){let e=i().get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?"primary":e},showSignature(){return"yes"==this.signature||"must"==this.signature},photo(){let e=this.result,t=i().get(this.fieldConf,"photo");return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.photo"):i().get(this.fieldConf,"detail_deny.photo")),t},showPhoto(){return"yes"==this.photo||"must"==this.photo},isJudgmentMust(){return"must"==this.judgment},isSignatureMust(){return"must"==this.signature},isPhotoMust(){return"must"==this.photo},getCanvasBoxStyle(){return{height:"150px",width:"100%"}},componentName(){return"MulImagePc"},isMobile(){return this.$q.platform.is.mobile},getViewFont(){let e=this.result,t=1==e?zj.z("通过","b2.common.pass"):-1==e?"":zj.z("不通过","b2.common.fail");return this.useDetail&&(t=1==e?i().get(this.fieldConf,"detail_allow.text",zj.z("通过","b2.common.pass")):-1==e?"":i().get(this.fieldConf,"detail_deny.text",zj.z("不通过","b2.common.fail"))),t},userId(){return i().get(this.$bpm.userInfo,"user_id",0)},userName(){return i().get(this.$bpm.userInfo,"user_name","")},showReject(){return!!i().get(this.container,"formSchema.reject_targets")},rejectTargetMap(){let e=i().get(this.container,"formSchema.reject_targets");return i().keyBy(e,"node")},rejectTargetList(){console.log("this.container",this.container);let e=i().get(this.container,"formSchema.reject_targets"),t=i().get(this.container,"_formData.passed_nodes"),n=[];return i().each(e,(e=>{i().includes(t,e.node)&&e.only_passed?n.push({label:e.name,value:e.node}):e.only_passed||n.push({label:e.name||zj.z("上一个节点","b2.common.previous_node"),value:e.node||"last_id"})})),n},isSimulation(){return this.$bpm.isSimulation}},created(){this.loadProjBaseInfo()},destroyed(){this.container&&this.container.$off("afterFormSubmit")},mounted(){if(this.value){let e=i().cloneDeep(this.value);e.audit_at=1e3*e.audit_at,this.curVal=i().merge(this.curVal,e)}this.container&&this.container.$on("afterFormSubmit",(e=>{!e&&this.openLastSign&&this.value.signature&&this.$bpm.postEleSign(this.value.signature,this.useNextUser)})),this.useDetail&&(this.selectOptions=[{label:i().get(this.fieldConf,"detail_allow.text",zj.z("通过","b2.common.pass")),value:1},{label:i().get(this.fieldConf,"detail_deny.text",zj.z("不通过","b2.common.fail")),value:2}])},methods:{onHide(){this.openAuditDlg=!1},onOpen(){if(1==this.result)this.form=i().cloneDeep(this.passForm),this.form.result=1;else if(this.form=i().cloneDeep(this.notPassForm),this.form.result=2,1==this.rejectTargetList.length){let e=i().get(this.rejectTargetList,"0.value");this.form.reject_target=e}else this.form.reject_target="";if(console.log("this.result",this.result),this.form.auditTime=(new Date).getTime(),this.handleInitSign(),this.value){let e=i().cloneDeep(this.value);e.audit_at=1e3*e.audit_at,this.curVal=i().merge(this.curVal,e),this.form=this.curVal}},async onSubmit(){let e=this.form;console.log("curVal",e),!this.isRequired||e.result?!this.isSignatureMust||e.signature?!this.isJudgmentMust||e.judgment?this.isPhotoMust&&i().isEmpty(e.photos)?this.$message({message:"请至少上传一张图片",type:"warning"}):(this._dealSubmit(e),this.openAuditDlg=!1):this.$message({message:"请填写意见",type:"warning"}):this.$message({message:"请完成签名",type:"warning"}):this.$message({message:"请选择审批结果",type:"warning"})},_dealSubmit(e){let t={result:e.result,signature:e.signature,judgment:e.judgment,photos:e.photos,audit_at:e.auditTime/1e3,auditor:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_id||this.userId,auditor_name:zj.app.accessInfo&&zj.app.accessInfo.user_info.user_name||this.userName};2==e.result&&this.showReject&&i().set(t,"reject_target",this.getRejectTarget(e.reject_target)),this.curVal=t,this.$emit("change",this.curVal),console.log("this.container",this.container);let n=this.container.$parent;if(n){this.submiting=!0;try{n.doOperation()}catch(e){this.submiting=!1}this.$bpm.$on("afterFormSubmit",(({mode:e,errors:t})=>{t?this.submiting=!1:(this.openAuditDlg=!1,this.submiting=!1,this.handleSaveSign())}))}},handleSaveSign(){this.openLastSign&&this.value.signature&&this.useNextUser&&this.$bpm.postEleSign(this.value.signature,this.useNextUser)},getRejectTarget(e){let t=this.rejectTargetMap;return"last_id"==e?{type:"RejectToLastUserNode"}:i().get(t,e)},onCancel(){this.openAuditDlg=!1},handleInitSign(){if(!this.showSignature)return;let e=this.$bpm.userSign;this.openLastSign=e.open,e.for_next_use&&(this.lastSign=e.signature),console.log("this.lastSign",this.lastSign),this.openLastSign&&this.lastSign&&e.for_next_use&&(this.form.signature=e.signature),e.for_next_use&&this.openLastSign&&(this.useNextUser=!0)},async loadProjBaseInfo(){let e=1==(await this.$bpm.getBaseSetting("open_audit")).value;this.isOpenAudit=e;let t=await this.$bpm.getBaseSetting("audit_dt_fmt");this.auditFormat=t.value||this.auditFormat},async loadUserInfo(){let e=await this.$bpm.requestAppendOrgParams({url:"/uc/common/user_info/",params:zj.utils.pageParam()});e=i().get(e,"data.data"),this.$bpm.setUserInfo(e.user_info)},async doOperation(e){console.log("this.fieldConf",this.fieldConf),setTimeout((()=>{let t=i().get(this.fieldConf,`opt_ass.${e}`),n=i().map(t,(e=>i().get(this.container,`eleMap.${e}`)));n=i().compact(n),this.optAss=n;let o=i().concat(t,this.fieldConf.id);o=i().compact(o),this.container.verfifyData(o,(()=>{this.result=e,this.openAuditDlg=!0,this.useNextUser=!1,setTimeout((()=>{this.$refs.signature&&this.$refs.signature.initCanvas()}),200)}))}),100)}}},j=(0,u.Z)(R,A,[],!1,null,null,null);j.options.__file="components/lib/bpmAudit/src/part/auditor/audit-new.vue";var F={props:["value","fieldConf","row","container"],components:{AuditWithOthers:P,AuditSelect:L,AduitNew:j.exports},data(){return{curVal:{result:1,judgment:"",photos:[],reject_target:"",signature:"",auditor_name:"",audit_at:"",auditor:""}}},computed:{componentName(){let e=_.get(this.fieldConf,"signature"),t=_.get(this.fieldConf,"jucdgment"),n=_.get(this.fieldConf,"photo");return"collaboration"==_.get(this.container,"formSchema.audit_style")?"AduitNew":"yes"==e||"must"==e||"yes"==t||"must"==t||"yes"==n||"must"==n?"AuditWithOthers":"AuditSelect"}},mounted(){if(this.value){let e=_.cloneDeep(this.value);e.audit_at=1e3*e.audit_at,this.curVal=_.merge(this.curVal,e)}},methods:{changeVal(e){this.$emit("input",e),this.$emit("change",e)}}},E=(0,u.Z)(F,w,[],!1,null,null,null);E.options.__file="components/lib/bpmAudit/src/part/auditor.vue";var M=E.exports,z={name:"BpmAudit",components:{editorComponent:h,readerComponent:y,auditorComponent:M},props:{value:{type:[Object]},fieldConf:{type:Object,default(){return{}}},row:{type:Object,default(){return{}}},mode:{type:String,default(){return"view"}},uiType:{type:String,default(){return"default"}},container:{type:[Object,null],default(){return null}}},computed:{curComponent(){return"view"==this.mode?y:"audit"==this.uiType?M:y}},data(){return{curVal:{}}},watch:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{onChange(e){console.log("onChange",_.cloneDeep(e)),this.$emit("input",e),this.$emit("change",e)}}},O=(r(6916),(0,u.Z)(z,e,[],!1,null,null,null));O.options.__file="components/lib/bpmAudit/src/main.vue";var G=O.exports;G.install=function(e){e.component(G.name,G)};var B=G}(),s}()}));
|