@zhijiancloud/bpm 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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,i){return function(){var o={5176:function(e,t,n){"use strict";n.d(t,{default:function(){return z}});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},on:{change:e.handleChange,imgLoadError:e.emitImgLoadError},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(e._s(e.$z("点击上传","c.click_to_upload")))])],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(e._s(e.$z("删除","c.delete")))])])})),0)]:[n("div",{staticClass:"col-auto",staticStyle:{"padding-top":"0px","font-size":"12px"}},[e._v("\n "+e._s(e.$z("未发现上传文件","b2.common.not_found_file"))+"\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),l=n(4239),f=n(3371),c=n.n(f),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=[],l=[].slice.call(new Uint8Array(e),0);let n=1;for(;n&&(255!==l[r]||218!==l[r+1])&&(255===l[r]&&216===l[r+1]?r+=2:(o=r+(256*l[r+2]+l[r+3])+2,a=l.slice(r,o),r=o,s.push(a)),!(r>l.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,_={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,l=document.createElement("canvas"),f=l.getContext("2d"),c=document.createAttribute("width");c.nodeValue=o;var u=document.createAttribute("height");u.nodeValue=a,l.setAttributeNode(c),l.setAttributeNode(u);try{m().getData(n,(function(){let n=m().getTag(this,"GPSLatitude");f.drawImage(e,0,0,o,a),t.quality&&t.quality<=1&&t.quality>0&&(s=t.quality);var r=l.toDataURL("image/jpeg",s);i(r,n)}))}catch(n){f.drawImage(e,0,0,o,a),t.quality&&t.quality<=1&&t.quality>0&&(s=t.quality);var d=l.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 l={"0th":i,Exif:o,GPS:a},f=S.dump(l),c=S.insert(f,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,l.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,l.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),this.$emit("change",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),this.$emit("change",t)},onHide(){this.opened=!1},onOpen(){this.opened=!0}}},C=_,P=n(1900),k=(0,P.Z)(C,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._s(e.$z("暂无图片","c.no_pictures")))]),e._v(" "),e.isSignature&&e.curVal&&e.curVal[0]?[n("img",{attrs:{src:e.fileLink(e.curVal[0]),alt:e.$z("电子签名","c.electronic_signature"),width:"100%",height:"100%",onerror:e.emitImgLoadError}})]: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:"60px",border:"1px dashed #ececec",cursor:"pointer"}},[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,l.tq)()},isSignature(){return"Signature"===this.type}},watch:{value(){console.log("img_curlVal",this.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:{emitImgLoadError(){this.$emit("imgLoadError")},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,l.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:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{emitImgLoadError(){this.$emit("imgLoadError")},handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},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 z=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&&e.curSign?n("div",{staticClass:"canvas-box",staticStyle:{position:"absolute","border-color":"#fff"}},[n("bpm-mul-image",{staticClass:"signature-reader",attrs:{type:"Signature",value:e.curSign},on:{imgLoadError:e.handleImgLoadError}})],1):e._e(),e._v(" "),n("div",{staticClass:"canvas-box"},[n("canvas",{ref:"canvasElem",staticStyle:{cursor:"crosshair",width:"100%",height:"320px"},attrs:{height:"320",width:"600"}})]),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:{fieldConf:{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",""),console.log("canvas size: ",o,r),o=o&&"auto"!==o&&-1===o.indexOf("%")?o:600,r=r&&"auto"!==r&&-1===r.indexOf("%")?r:320,console.log(e),this.canvas=e,this.context=e.getContext("2d"),this.width=o,this.height=r;const s=this.context,l=window.devicePixelRatio;l?(e.style.width=`${o}px`,e.style.height=`${r}px`,e.height=r*l,e.width=o*l,s.scale(l,l)):(e.width=o,e.height=r),s.lineWidth=2,s.strokeStyle="black",s.lineCap="round",s.lineJoin="round",Object.assign(s,n);const f={},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,f.x=n.clientX-i+.5,f.y=n.clientY-o+.5,(e=>{switch(e){case 1:s.beginPath(),s.moveTo(f.x,f.y);break;case 2:s.lineTo(f.x,f.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,l=e*Math.PI/180;switch(e){case-90:o.width=r,o.height=s,a.rotate(l),a.drawImage(t,-s,0);break;case 90:o.width=r,o.height=s,a.rotate(l),a.drawImage(t,0,-r);break;case 180:o.width=s,o.height=r,a.rotate(l),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:!0,canvas:null,timer:null}},watch:{value(e){console.log("bpmSignature_value",e),e&&(this.curSign=e)},curSign(e){console.log("curSign",e),this.$emit("input",e),this.$emit("change",e,{open:this.openLastSign,for_next_use:this.useNextUser,signature:this.curSign})}},created(){},mounted(){if("edit"===this.mode){setTimeout((()=>{this.initCanvas()}),300);let e=this.container;e&&(e.$on("afterFormSubmit",(e=>{console.log("Singnature topContainer afterFormSubmit"),!e&&this.openLastSign&&this.curSign&&(console.log("to save signature: ",this.curSign,this.useNextUser),this.$bpm.postEleSign(this.curSign,this.useNextUser))})),e.$on("dataLoaded",(e=>{console.log("Singnature topContainer dataLoaded"),this.onDataLoaded(e),this.curSign=null,this.handleInit()})))}},destroyed(){this.container&&!this.container.isQuote&&(this.container.$off("afterFormSubmit"),this.container.$off("dataLoaded"))},methods:{_getCanvasPixelCount(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,t.canvas.width,t.canvas.height).data,i=0,o=0;o<n.length;o+=4)0!==n[o+3]&&i++;return i},handleImgLoadError(){console.log("加载图片失败")},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),this.$emit("input",this.curSign),this.$emit("change",this.curSign,e),console.log("userSign: ",e)},initCanvas(){if(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.canvas)return!1;this.draw=new r(this.canvas,-this.degree,{},{}),console.log("this.draw",this.draw),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))})),this.canvas.addEventListener("mouseleave",(()=>{this.timer||(console.log("mouseleave"),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="",setTimeout((()=>{this.initCanvas()}),300)},transToImg(){if(console.log("Canvas transToImg called"),this.draw){let e=this.draw.getPNGImage();if(console.log("Signature canvas img: ",e),this._getCanvasPixelCount(this.canvas)<2e3)return!1;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 l,f=window.WebKitBlobBuilder||window.MozBlobBuilder;if(f){let e=new f;e.append(r),l=e.getBlob(t)}else l=new window.Blob([r],{type:t});let c=new FormData;c.append(i,l,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)}))}}},l=(0,n(1900).Z)(s,i,[],!1,null,null,null);l.options.__file="components/lib/bpmSignature/src/main.vue";var f=l.exports;f.install=function(e){e.component(f.name,f)};var c=f},4239:function(e,t,n){"use strict";n.d(t,{QE:function(){return s},tq:function(){return l}});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 l(){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),l=n.n(s),f=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=l()(f),b=l()(c,{hash:"?#iefix&v=4.7.0"}),v=l()(u),y=l()(d),w=l()(h),S=l()(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),l=n.n(s),f=new URL(n(6527),n.b),c=r()(o()),u=l()(f);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 l=this[s][0];null!=l&&(r[l]=!0)}for(var f=0;f<e.length;f++){var c=[].concat(e[f]);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"},l=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"},f=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,l=v(t,r,s),f=l.indexOf("xmpmeta>")+8,c=(l=l.substring(l.indexOf("<x:xmpmeta"),f)).indexOf("x:xmpmeta")+10;return l=l.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/" '+l.slice(c),S(a.parseFromString(l,"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),l={},f=t;f<t+n;)28===s.getUint8(f)&&2===s.getUint8(f+1)&&(r=s.getUint8(f+2))in m&&(a=s.getInt16(f+3),o=m[r],i=v(s,f+5,a),l.hasOwnProperty(o)?l[o]instanceof Array?l[o].push(i):l[o]=[l[o],i]:l[o]=i),f++;return l}function g(e,t,n,i,a){var r,s,l,f=e.getUint16(n,!a),c={};for(l=0;l<f;l++)r=n+12*l+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,l,f,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=[],l=0;l<d;l++)r[l]=e.getUint8(a+l);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=[],l=0;l<d;l++)r[l]=e.getUint16(a+2*l,!o);return r;case 4:if(1==d)return e.getUint32(t+8,!o);for(r=[],l=0;l<d;l++)r[l]=e.getUint32(h+4*l,!o);return r;case 5:if(1==d)return f=e.getUint32(h,!o),c=e.getUint32(h+4,!o),(s=new Number(f/c)).numerator=f,s.denominator=c,s;for(r=[],l=0;l<d;l++)f=e.getUint32(h+8*l,!o),c=e.getUint32(h+4+8*l,!o),r[l]=new Number(f/c),r[l].numerator=f,r[l].denominator=c;return r;case 9:if(1==d)return e.getInt32(t+8,!o);for(r=[],l=0;l<d;l++)r[l]=e.getInt32(h+4*l,!o);return r;case 10:if(1==d)return e.getInt32(h,!o)/e.getInt32(h+4,!o);for(r=[],l=0;l<d;l++)r[l]=e.getInt32(h+8*l,!o)/e.getInt32(h+4+8*l,!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,l,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,f,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,l=r.nodeValue;void 0!==s&&(t[s]=l)}var f=i.nodeName;if(void 0===t[f])t[f]=w(i);else{if(void 0===t[f].push){var c=t[f];t[f]=[],t[f].push(c)}t[f].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,l,f,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,l=e[0],f=e[1],s=u(">L",[l])+u(">L",[f]);else{r=e.length,s="";for(var m=0;m<r;m++)l=e[m][0],f=e[m][1],s+=u(">L",[l])+u(">L",[f])}d=u(">L",[n]),c=s}else if("SRational"==t){if("number"==typeof e[0])r=1,l=e[0],f=e[1],s=u(">l",[l])+u(">l",[f]);else for(r=e.length,s="",m=0;m<r;m++)l=e[m][0],f=e[m][1],s+=u(">l",[l])+u(">l",[f]);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="",l="";for(var f in e)if("string"==typeof f&&(f=parseInt(f)),!("0th"==t&&[34665,34853].indexOf(f)>-1||"Exif"==t&&40965==f||"1st"==t&&[513,514].indexOf(f)>-1)){var c=e[f],d=u(">H",[f]),h=g[t][f].type,m=u(">H",[p[h]]);"number"==typeof c&&(c=[c]);var b=r(c,h,8+i+n+l.length);s+=d+m+b[0]+b[1],l+=b[2]}return[a+s,l]}function l(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,"+f(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,"+f(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 l(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,l,f=(t=e,JSON.parse(JSON.stringify(t))),c=!1,d=!1,h=!1,g=!1;i="0th"in f?f["0th"]:{},"Exif"in f&&Object.keys(f.Exif).length||"Interop"in f&&Object.keys(f.Interop).length?(i[34665]=1,c=!0,o=f.Exif,"Interop"in f&&Object.keys(f.Interop).length?(o[40965]=1,h=!0,a=f.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 f&&Object.keys(f.GPS).length?(i[n.ImageIFD.GPSTag]=1,d=!0,r=f.GPS):Object.keys(i).indexOf(n.ImageIFD.GPSTag.toString())>-1&&delete i[n.ImageIFD.GPSTag],"1st"in f&&"thumbnail"in f&&null!=f.thumbnail&&(g=!0,f["1st"][513]=1,f["1st"][514]=1,l=f["1st"]);var b,v,y,w=s(i,"0th",0),S=w[0].length+12*c+12*d+4+w[1].length,x="",_=0,C="",P=0,k="",D=0,I="";if(c&&(_=(b=s(o,"Exif",S))[0].length+12*h+b[1].length),d&&(P=(C=s(r,"GPS",S+_).join("")).length),h&&(D=(k=s(a,"Interop",S+_+P).join("")).length),g&&(v=s(l,"1st",S+_+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("")}(f.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+_]),A=u(">H",[34853])+u(">H",[p.Long])+u(">L",[1])+j),h&&(j=u(">L",[F=8+S+_+P]),T=u(">H",[40965])+u(">H",[p.Long])+u(">L",[1])+j),g){var F;R=u(">L",[F=8+S+_+P+D]);var z="\0\0\0\0"+u(">L",[F+v[0].length+24+4+v[1].length]),E="\0\0\0\0"+u(">L",[y.length]);I=v[0]+z+E+"\0\0\0\0"+v[1]+y}var M=w[0]+L+A+R+w[1];return c&&(x=b[0]+T+b[1]),"Exif\0\0MM\0*\0\0\0\b"+M+x+C+k+I},l.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],l=[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(l))}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 f=window.btoa;if(void 0===f&&(f=function(e){for(var t,n,i,o,a,r,s,l="",f=0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f<e.length;)o=(t=e.charCodeAt(f++))>>2,a=(3&t)<<4|(n=e.charCodeAt(f++))>>4,r=(15&n)<<2|(i=e.charCodeAt(f++))>>6,s=63&i,isNaN(n)?r=s=64:isNaN(i)&&(s=64),l=l+c.charAt(o)+c.charAt(a)+c.charAt(r)+c.charAt(s);return l}),"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,l=null,f=null,c=null,u="";f=e[s];){if("b"==f.toLowerCase())c=1,l=(u=t.slice(r,r+c)).charCodeAt(0),"b"==f&&l>=128&&(l-=256);else if("H"==f)c=2,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),l=256*u.charCodeAt(0)+u.charCodeAt(1);else{if("l"!=f.toLowerCase())throw new Error("'unpack' error. "+f);c=4,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),l=16777216*u.charCodeAt(0)+65536*u.charCodeAt(1)+256*u.charCodeAt(2)+u.charCodeAt(3),"l"==f&&l>=2147483648&&(l-=4294967296)}a.push(l),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="",l=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<e.length;)t=f.indexOf(e.charAt(l++))<<2|(o=f.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(a=f.indexOf(e.charAt(l++)))>>2,i=(3&a)<<6|(r=f.indexOf(e.charAt(l++))),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),l=n.n(s),f=n(3565),c=n.n(f),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=l().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),l=n.n(s),f=n(3565),c=n.n(f),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=l().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 l=e[s],f=i.base?l[0]+i.base:l[0],c=a[f]||0,u="".concat(f," ").concat(c);a[f]=c+1;var d=n(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[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 l=i(e,o),f=0;f<a.length;f++){var c=n(a[f]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},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,l=void 0===r?{}:r;l=n.i(a.a)(l,{inline:!1});var f=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})})))}}));f.$mount(),document.body.appendChild(f.$el);var c=new o.a(f.$el,l),u=c.destroy.bind(c);return c.destroy=function(){return u(),f.$destroy(),document.body.removeChild(f.$el),c},c.show(),f.$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,l=t.debug,f=void 0!==l&&l;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;f&&(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),l=n(4),f=n(3);n.d(t,"component",(function(){return s.a})),n.d(t,"directive",(function(){return l.a})),n.d(t,"api",(function(){return f.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(l.a)({name:r,debug:u})),e.prototype["$"+r+"Api"]=f.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 l(){for(var l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];var u=this,d=Date.now()-r;function h(){r=Date.now(),n.apply(u,f)}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),l.cancel=function(){s(),a=!0},l}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 l=Object.create(s.computed||null);Object.keys(i).forEach((function(e){var t=i[e];l[e]=function(){return t}})),s.computed=l}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:{},l=!(!r||!s.document.documentElement)&&"ontouchstart"in s.document.documentElement,f=!!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"),_="".concat(c,"-hide-xs-down"),C="".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",z="keydown",E="load",M="error",O=f?"pointerdown":l?"touchstart":"mousedown",B=f?"pointermove":l?"touchmove":"mousemove",G=f?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",$="resize",V="transitionend",U="wheel",N="ready",q="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"),le=/\s\s*/,fe=["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 _e(e,t){if(e&&t)if(de(e.length))ve(e,(function(e){_e(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 Ce(e,t){e&&t&&(de(e.length)?ve(e,(function(e){Ce(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?_e(e,t):Ce(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(le).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(le).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),l=0;l<a;l++)s[l]=arguments[l];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 ze=s.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(s.navigator.userAgent);function Ee(e,t,n){var i=document.createElement("img");if(e.naturalWidth&&!ze)return n(e.naturalWidth,e.naturalHeight),i;var o=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),ze||o.removeChild(i)},ve(t.inheritedAttributes,(function(t){var n=e.getAttribute(t);null!==n&&i.setAttribute(t,n)})),i.src=e.src,ze||(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 Me(e){switch(e){case 2:return _;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 Be,Ge={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),l=e.getImageURL(t);if(r||l){var f=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||l),c.alt=s,c.setAttribute("data-original-url",l||r),f.setAttribute("data-index",a),f.setAttribute("data-viewer-action","view"),f.setAttribute("role","button"),n.keyboard&&f.setAttribute("tabindex",0),f.appendChild(c),i.appendChild(f),o.push(f)}})),this.items=o,ve(o,(function(t){var i,o,a=t.firstElementChild;Le(a,"filled",!0),n.loading&&_e(t,k),Re(a,E,i=function(i){Te(a,M,o),n.loading&&Ce(t,k),e.loadImage(i)},{once:!0}),Re(a,M,o=function(){Te(a,E,i),n.loading&&Ce(t,k)},{once:!0})})),n.transition&&Re(t,J,(function(){_e(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="",Ce(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,l=Math.max(a.height-r,r),f=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Ee(o,i,(function(t,o){var a=t/o,r=Math.max(0,Math.min(1,i.initialCoverage)),c=s,u=l;n.imageInitializing=!1,l*a>s?u=s/a:c=l*a,r=de(r)?r:.9,c=Math.min(c*r,t),u=Math.min(u*r,o);var d=(s-c)/2,h=(l-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=f.rotate||0,p.rotate=0),i.scalable&&(m.scaleX=f.scaleX||1,m.scaleY=f.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,V,o)}},Re(n,V,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="")}},$e={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,B,this.onPointerMove=this.pointermove.bind(this)),Re(i,G,this.onPointerUp=this.pointerup.bind(this)),Re(i,z,this.onKeyDown=this.keydown.bind(this)),Re(window,$,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Re(t,U,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,B,this.onPointerMove),Te(i,G,this.onPointerUp),Te(i,z,this.onKeyDown),Te(window,$,this.onResize),e.zoomable&&e.zoomOnWheel&&Te(t,U,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Te(n,R,this.onDblclick)}},Ve={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)),l&&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&&(l&&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;Ce(i,P),n.loading&&Ce(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");Ee(t,this.options,(function(e,n){var r=e/n,s=i,l=o;o*r>i?a?s=o*r:l=i/r:a?l=i/r:s=o*r,Se(t,ye({width:s,height:l},Fe({translateX:(i-s)/2,translateY:(o-l)/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||Ce(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||_e(this.image,A),this.action=!1,l&&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,E,e.loadImage.bind(e),{once:!0}),je(t,E)}))}},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)}}},Ue={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,q,n.show,{once:!0}),!1===je(t,q)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(Ce(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,V,o),Ce(i,C)}},_e(i,A),i.initialOffsetWidth=i.offsetWidth,Re(i,V,o,{once:!0}),_e(i,C)}else _e(i,C),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(){Ce(o,C),e.hidden()};if(i.transition&&!t){var s=function t(n){n&&n.target===o&&(Te(o,V,t),e.hidden())},l=function(){xe(o,A)?(Re(o,V,s),Ce(o,C)):r()};this.transitioning={abort:function(){e.viewed&&xe(a,A)?Te(a,V,l):xe(o,A)&&Te(o,V,s)}},this.viewed&&xe(a,A)?(Re(a,V,l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}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"),l=Ie(s,"originalUrl"),f=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=l,c.alt=f,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&&(Ce(u,m),u.removeAttribute("aria-selected")),_e(r,m),r.setAttribute("aria-selected",!0),i.focus&&r.focus(),this.image=c,this.viewed=!1,this.index=t,this.imageData={},_e(c,P),i.loading&&_e(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(f," (").concat(n.naturalWidth," × ").concat(n.naturalHeight,")"))?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):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,E,d),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(Re(c,E,d=function(){Te(c,M,h),e.load()},{once:!0}),Re(c,M,h=function(){Te(c,E,d),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),Ce(c,P),i.loading&&Ce(e.canvas,k)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){Ce(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,l=r.y,f=!1;if(de(e)?f=!0:e=s,de(n)?f=!0:n=l,f){if(be(a.move)&&Re(o,Z,a.move,{once:!0}),!1===je(o,Z,{x:e,y:n,oldX:s,oldY:l,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:l,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,l=!1;if(de(e)?l=!0:e=r,de(n)?l=!0:n=s,l){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,l=this.pointers,f=this.imageData,c=f.x,u=f.y,d=f.width,h=f.height,m=f.naturalWidth,p=f.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=f.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 _=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),C=l&&Object.keys(l).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}}(l):{pageX:o.pageX,pageY:o.pageY};f.x-=w*((C.pageX-_.left-c)/d),f.y-=S*((C.pageY-_.top-u)/h)}else ge(i)&&de(i.x)&&de(i.y)?(f.x-=w*((i.x-c)/d),f.y-=S*((i.y-u)/h)):(f.x-=w/2,f.y-=S/2);f.left=f.x,f.top=f.y,f.width=v,f.height=y,f.oldRatio=x,f.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,l=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),_e(o,L),ve(this.items,(function(e,t){var n=e.querySelector("img"),f=document.createElement("img");f.src=Ie(n,"originalUrl"),f.alt=n.getAttribute("alt"),f.referrerPolicy=n.referrerPolicy,s+=1,_e(f,g),Pe(f,A,i.transition),xe(e,m)&&(_e(f,C),l=t),r.push(f),Re(f,E,a,{once:!0}),o.appendChild(f)})),de(i.interval)&&i.interval>0){var f=function t(){clearTimeout(e.playing.timeout),Ce(r[l],C),_e(r[l=(l+=1)<s?l:0],C),e.playing.timeout=setTimeout(t,i.interval)};s>1&&(this.playing={prev:function t(){clearTimeout(e.playing.timeout),Ce(r[l],C),_e(r[l=(l-=1)>=0?l:s-1],C),e.playing.timeout=setTimeout(t,i.interval)},next:f,timeout:setTimeout(f,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,E,e.onLoadWhenPlay)})),Ce(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(),_e(this.button,y),t.transition&&(Ce(o,A),this.viewed&&Ce(i,A)),_e(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(){_e(i,A),_e(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(),Ce(this.button,y),t.transition&&(Ce(o,A),this.viewed&&Ce(i,A)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),Ce(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(){_e(i,A),_e(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,V),_e(n,L),_e(n,g),_e(n,A),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,_e(n,C)):(_e(n,L),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){t.transition?(Re(n,V,(function(){Ce(n,L),Ce(n,g),Ce(n,A),n.setAttribute("aria-hidden",!0),e.fading=!1}),{once:!0}),Ce(n,C),e.fading=!0):(Ce(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];_e(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}},Ne={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;_e(e,I),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;Ce(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(),_e(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),l=(Math.sqrt(a*a+r*r)-s)/s;i.push(l)}))})),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}},qe=s.Viewer,Xe=(Be=-1,function(){return Be+=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=qe,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,E,r),Te(e,M,r))}))}},ve(o,(function(e){var t,n;e.complete?r():(Re(e,E,t=function(){Te(e,M,n),r()},{once:!0}),Re(e,M,n=function(){Te(e,E,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")),l=o.querySelector(".".concat(c,"-button")),f=o.querySelector(".".concat(c,"-canvas"));if(this.parent=n,this.viewer=o,this.title=a,this.toolbar=r,this.navbar=s,this.button=l,this.canvas=f,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),_e(a,t.title?Me(Array.isArray(t.title)?t.title[0]:t.title):w),_e(s,t.navbar?Me(t.navbar):w),Pe(l,w,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(_e(o,"".concat(c,"-backdrop")),t.inline||"static"===t.backdrop||Le(f,se,"hide")),ce(t.className)&&t.className&&t.className.split(le).forEach((function(e){_e(o,e)})),t.toolbar){var u=document.createElement("ul"),d=ge(t.toolbar),h=fe.slice(0,3),m=fe.slice(7,9),y=fe.slice(9);d||_e(r,Me(t.toolbar)),ve(d?t.toolbar:fe,(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,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),_e(l,"".concat(c,"-").concat(o)),be(s)||Le(l,se,o),de(a)&&_e(l,Me(a)),-1!==["small","large"].indexOf(r)?_e(l,"".concat(c,"-").concat(r)):"play"===o&&_e(l,"".concat(c,"-large")),be(s)&&Re(l,T,s),u.appendChild(l)}})),r.appendChild(u)}else _e(r,w);if(!t.rotatable){var S=r.querySelectorAll('li[class*="rotate"]');_e(S,P),ve(S,(function(e){r.appendChild(e)}))}if(t.inline)_e(l,v),Se(o,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&Se(n,{position:"relative"}),n.insertBefore(o,e.nextSibling);else{_e(l,p),_e(o,b),_e(o,g),_e(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,N,t.ready,{once:!0}),!1!==je(e,N)?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,Ge,$e,Ve,Ue,Ne),He}()},1900:function(e,t,n){"use strict";function i(e,t,n,i,o,a,r,s){var l,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),r?(l=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)},f._ssrRegister=l):o&&(l=s?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(f.functional){f._injectStyles=l;var c=f.render;f.render=function(e,t){return l.call(t),c(e,t)}}else{var u=f.beforeCreate;f.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:f}}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 N}});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||"none",color:e.resultColor?"#fff":"#333",cursor:"pointer"}},[e._v(e._s(e.getViewFont)+" "),n("i",{staticClass:"el-icon-arrow-right",staticStyle:{"font-size":"14px"}})])])]),e._v(" "),n("el-dialog",{staticClass:"audit-modal",attrs:{visible:e.opened,modal:!1,"append-to-body":!0,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:e.$z("审批结果:","b2.common.approval_results")}},[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.$z("回退节点:","b2.common.fallback_node")}},[e._v("\n "+e._s(e.curVal.reject_target.name||e.$z("上一个节点","b2.common.previous_node"))+"\n ")]):e._e(),e._v(" "),e.showSignature?n("el-form-item",{attrs:{label:e.$z("签名:","b2.common.sign"),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:e.$z("填写意见:","b2.common.fill_comment"),required:e.isJudgmentMust}},[n("el-input",{attrs:{type:"textarea",placeholder:e.$z("请输入评审意见","b2.common.en_comment")},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:e.$z("拍照:","b2.common.photograph"),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:e.$z("审批日期:","b2.common.audit_date")}},[n("el-date-picker",{ref:"dateSelect",attrs:{type:"datetime",placeholder:e.$z("选择日期时间","c.select_date_time"),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(" "),e.curVal.auditor_name?n("el-form-item",{attrs:{label:e.$z("审批人","b2.common.approver")}},[n("el-input-number",{attrs:{min:1,step:1,controls:!1,"controls-position":"both",placeholder:e.$z("审批人","b2.common.approver")+" ID"},model:{value:e.curVal.auditor,callback:function(t){e.$set(e.curVal,"auditor",t)},expression:"curVal.auditor"}}),e._v(" "),n("el-input",{staticStyle:{"margin-top":"10px"},attrs:{placeholder:e.$z("审批人","b2.common.approver")+" "+e.$z("用户名","c.user_name")},model:{value:e.curVal.auditor_name,callback:function(t){e.$set(e.curVal,"auditor_name",t)},expression:"curVal.auditor_name"}})],1):e._e()],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._s(e.$z("取消","c.cancel")))]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$z("确定","c.confirm")))])],1)])],1)};t._withStripped=!0;var n=r(467),i=r.n(n),o=r(3371),a=r.n(o),l=r(6981),f=r(5176);a().use(l.Dialog),a().use(l.DatePicker),a().use(f.default);var c={data(){return{curVal:{result:1,judgment:"",photos:[],reject_target:"",signature:"",auditor_name:"",audit_at:"",auditor:""},isOpenAudit:!1,opened:!1,dispMode:"nolink",auditFormat:"yyyy-MM-dd HH:mm:ss",userList:[]}},props:["type","value","fieldConf","row","dm","container"],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=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},judgment(){let e=i().get(this.value,"result",-1),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},denyColor(){let e=i().get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},signature(){let e=i().get(this.value,"result",-1),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=i().get(this.value,"result",-1),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(){this.loadProjBaseInfo()},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},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}}},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.useDialog?n("div",{on:{click:function(t){e.opened=!0}}},[n("span",{staticClass:"aduit-result-title",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333",cursor:"pointer"}},[e._v(e._s(e.getViewFont)+" "),n("i",{staticClass:"el-icon-arrow-right",staticStyle:{"font-size":"14px"}})])]):n("div",[n("AuditReaderDetail",{attrs:{value:e.value,"field-conf":e.fieldConf,"result-color":e.resultColor,"get-view-font":e.getViewFont,"show-judgment":e.showJudgment,"show-signature":e.showSignature,"show-photo":e.showPhoto}})],1)])]),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",[n("AuditReaderDetail",{attrs:{value:e.value,"field-conf":e.fieldConf,"result-color":e.resultColor,"get-view-font":e.getViewFont,"show-judgment":e.showJudgment,"show-signature":e.showSignature,"show-photo":e.showPhoto}})],1)]):e._e()],1)};m._withStripped=!0;var p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.value?n("el-form",{staticClass:"audit-modal-content",attrs:{"label-width":"150px"}},[n("el-form-item",{attrs:{label:e.$z("审批结果","b2.common.approval_results"),required:!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("el-form-item",{attrs:{label:e.$z("回退节点","b2.common.fallback_node"),required:!0}},[e._v("\n "+e._s(e.value.reject_target.name||e.$z("上一个节点","b2.common.previous_node"))+"\n ")]):e._e(),e._v(" "),e.showJudgment?n("el-form-item",{attrs:{label:e.$z("审批意见","b2.common.approval_comment"),required:e.isJudgmentMust}},[n("span",{attrs:{title:e.value&&e.value.judgment}},[e._v("\n "+e._s(e.value&&e.value.judgment?e.value.judgment:e.$z("无","c.none")))])]):e._e(),e._v(" "),e.showPhoto&&e.value.photos&&e.value.photos.length?n("el-form-item",{attrs:{label:e.$z("拍照","b2.common.photograph"),required:e.isPhotoMust}},[n("bpm-mul-image",{attrs:{value:e.value.photos,fieldConf:{type:"MulImage"}}})],1):e._e(),e._v(" "),e.showSignature&&e.value.signature?n("el-form-item",{attrs:{label:e.$z("签名","b2.common.sign"),required:e.isSignatureMust}},[n("bpm-mul-image",{attrs:{value:e.value.signature,fieldConf:{type:"Signature"}}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:e.$z("审批人","b2.common.approver")}},[e._v(e._s(e.auditorName))]),e._v(" "),n("el-form-item",{attrs:{label:e.$z("审批时间","b2.common.processing_time")}},[e._v(e._s(e.auditAt))])],1):e._e()],1)};p._withStripped=!0;var g=r(1319),b=r.n(g),v={name:"AuditReaderDetail",props:["value","fieldConf","resultColor","getViewFont","showJudgment","showSignature","showPhoto"],data(){return{}},computed:{isJudgmentMust(){return"must"==_.get(this.fieldConf,"judgment")},isSignatureMust(){return"must"==_.get(this.fieldConf,"signature")},isPhotoMust(){return"must"==_.get(this.fieldConf,"photo")},auditAt(){let e=_.get(this.value,"audit_at");if(e)return e*=1e3,b().format(e,"YYYY-MM-DD HH:mm:ss")},auditorName(){return _.get(this.value,"auditor_name")}}},y=(0,u.Z)(v,p,[],!1,null,null,null);y.options.__file="components/lib/bpmAudit/src/part/reader-detail.vue";var w=y.exports;a().use(l.Dialog),a().use(f.default);var S={components:{AuditReaderDetail:w},props:["value","fieldConf","row","uiType"],data(){return{opened:!1}},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},isRequired(){return i().get(this.fieldConf,"check.required")},modalShow(){return(this.showSignature||this.showJudgment||this.showPhoto)&&this.hasAudited},useDialog(){return"table"===this.uiType}},mounted(){},methods:{onHide(){this.opened=!1}}},x=(0,u.Z)(S,m,[],!1,null,null,null);x.options.__file="components/lib/bpmAudit/src/part/reader.vue";var C=x.exports,P=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"}})};P._withStripped=!0;var k=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"audit-with-others"})};k._withStripped=!0;var D={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}])},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 l,f=window.WebKitBlobBuilder||window.MozBlobBuilder;if(f){let e=new f;e.append(r),l=e.getBlob(t)}else l=new window.Blob([r],{type:t});let c=new FormData;c.append(i,l,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)}))}}},I=(r(7602),r(6768),r(4540),(0,u.Z)(D,k,[],!1,null,"1f4bc398",null));I.options.__file="components/lib/bpmAudit/src/part/auditor/audit-with-others.vue";var L=I.exports,A=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)};A._withStripped=!0;var T={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)}}},R=(r(2577),(0,u.Z)(T,A,[],!1,null,"2709dffc",null));R.options.__file="components/lib/bpmAudit/src/part/auditor/audit-select.vue";var j=R.exports,F=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.form,"label-width":"150px"}},[2==e.form.result&&e.showReject?n("el-form-item",{attrs:{label:e.$z("回退节点","b2.common.fallback_node"),required:!0,prop:"reject_target"}},[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"),prop:"signature"}},[n("bpm-signature",{ref:"signature",attrs:{container:e.container},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"),prop:"judgment"}},[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,prop:"photos"}},[n("bpm-mul-image",{attrs:{fieldConf:{type:"MulImage"},mode:"edit"},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"),prop:"auditTime"}},[n("el-date-picker",{ref:"dateSelect",attrs:{type:"datetime",placeholder:e.$z("选择日期时间","c.select_date_time"),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._s(e.$z("取消","c.cancel")))]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$z("确定","c.confirm")))])],1)])],1)};F._withStripped=!0;var z=r(6324);a().use(l.Dialog),a().use(l.DatePicker),a().use(f.default),a().use(z.default);var E={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},showOpDialog(){return this.showSignature||this.showJudgment||this.showPhoto||2===this.result&&this.showReject||this.optAss.length},getCanvasBoxStyle(){return{height:"150px",width:"100%"}},componentName(){return"MulImage"},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()},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",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="";console.log("this.result",this.result),this.form.auditTime=(new Date).getTime()},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:zj.z("请至少上传一张图片","b2.common.least_one_image"),type:"warning"}):(this._dealSubmit(e),this.openAuditDlg=!1):this.$message({message:zj.z("请填写意见","b2.common.please_fill_comment"),type:"warning"}):this.$message({message:zj.z("请完成签名","b2.common.please_complete_sign"),type:"warning"}):this.$message({message:zj.z("请选择审批结果","b2.common.please_select_audit"),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||(console.log("BpmAudit New $bpm afterFormSubmit"),this.openAuditDlg=!1),this.submiting=!1}))}},getRejectTarget(e){let t=this.rejectTargetMap;return"last_id"==e?{type:"RejectToLastUserNode"}:i().get(t,e)},onCancel(){this.openAuditDlg=!1},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.$nextTick((()=>{this.showOpDialog?this.openDialog():this.confirmOp()}))}))}),100)},openDialog(){this.openAuditDlg=!0,this.useNextUser=!1,setTimeout((()=>{this.$refs.signature&&(this.$refs.signature.initCanvas(),this.$refs.signature.handleInit())}),200)},confirmOp(){let e=1==this.result?this.selectOptions[0].label:this.selectOptions[1].label,t=zj.z("是否确认","b2.common.is_confirm")+e+zj.z("?","c.question_mark");this.form.auditTime=(new Date).getTime(),this.$confirm(t,e,{confirmButtonText:zj.z("确定","c.confirm"),cancelButtonText:zj.z("取消","c.cancel"),type:"warning"}).then((()=>{this._dealSubmit(this.form)})).catch((()=>{}))}}},M=(0,u.Z)(E,F,[],!1,null,null,null);M.options.__file="components/lib/bpmAudit/src/part/auditor/audit-new.vue";var O={props:["value","fieldConf","row","container"],components:{AuditWithOthers:L,AuditSelect:j,AduitNew:M.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(console.log("Auditor_container",this.container),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)}}},B=(0,u.Z)(O,P,[],!1,null,null,null);B.options.__file="components/lib/bpmAudit/src/part/auditor.vue";var G=B.exports,$={name:"BpmAudit",components:{editorComponent:h,readerComponent:C,auditorComponent:G},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}},dm:Boolean},computed:{curComponent(){return"view"==this.mode?C:this.dm?h:G}},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)}}},V=(r(6916),(0,u.Z)($,e,[],!1,null,null,null));V.options.__file="components/lib/bpmAudit/src/main.vue";var U=V.exports;U.install=function(e){e.component(U.name,U)};var N=U}(),s}()}));
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 z}});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},on:{change:e.handleChange,imgLoadError:e.emitImgLoadError},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(e._s(e.$z("点击上传","c.click_to_upload")))])],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(e._s(e.$z("删除","c.delete")))])])})),0)]:[n("div",{staticClass:"col-auto",staticStyle:{"padding-top":"0px","font-size":"12px"}},[e._v("\n "+e._s(e.$z("未发现上传文件","b2.common.not_found_file"))+"\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),l=n(4239),f=n(3371),c=n.n(f),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=[],l=[].slice.call(new Uint8Array(e),0);let n=1;for(;n&&(255!==l[r]||218!==l[r+1])&&(255===l[r]&&216===l[r+1]?r+=2:(o=r+(256*l[r+2]+l[r+3])+2,a=l.slice(r,o),r=o,s.push(a)),!(r>l.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,_={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,l=document.createElement("canvas"),f=l.getContext("2d"),c=document.createAttribute("width");c.nodeValue=o;var u=document.createAttribute("height");u.nodeValue=a,l.setAttributeNode(c),l.setAttributeNode(u);try{m().getData(n,(function(){let n=m().getTag(this,"GPSLatitude");f.drawImage(e,0,0,o,a),t.quality&&t.quality<=1&&t.quality>0&&(s=t.quality);var r=l.toDataURL("image/jpeg",s);i(r,n)}))}catch(n){f.drawImage(e,0,0,o,a),t.quality&&t.quality<=1&&t.quality>0&&(s=t.quality);var d=l.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 l={"0th":i,Exif:o,GPS:a},f=S.dump(l),c=S.insert(f,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,l.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,l.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),this.$emit("change",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),this.$emit("change",t)},onHide(){this.opened=!1},onOpen(){this.opened=!0}}},C=_,P=n(1900),k=(0,P.Z)(C,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._s(e.$z("暂无图片","c.no_pictures")))]),e._v(" "),e.isSignature&&e.curVal&&e.curVal[0]?[n("img",{attrs:{src:e.fileLink(e.curVal[0]),alt:e.$z("电子签名","c.electronic_signature"),width:"100%",height:"100%",onerror:e.emitImgLoadError}})]: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:"60px",border:"1px dashed #ececec",cursor:"pointer"}},[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,l.tq)()},isSignature(){return"Signature"===this.type}},watch:{value(){console.log("img_curlVal",this.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:{emitImgLoadError(){this.$emit("imgLoadError")},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,l.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:{value(){this.curVal=this.value}},mounted(){this.curVal=this.value},methods:{emitImgLoadError(){this.$emit("imgLoadError")},handleChange(e){this.$emit("input",e),this.$emit("change",e)}}},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 z=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&&e.curSign?n("div",{staticClass:"canvas-box",staticStyle:{position:"absolute","border-color":"#fff"}},[n("bpm-mul-image",{staticClass:"signature-reader",attrs:{type:"Signature",value:e.curSign},on:{imgLoadError:e.handleImgLoadError}})],1):e._e(),e._v(" "),n("div",{staticClass:"canvas-box"},[n("canvas",{ref:"canvasElem",staticStyle:{cursor:"crosshair",width:"100%",height:"320px"},attrs:{height:"320",width:"600"}})]),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:{fieldConf:{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",""),console.log("canvas size: ",o,r),o=o&&"auto"!==o&&-1===o.indexOf("%")?o:600,r=r&&"auto"!==r&&-1===r.indexOf("%")?r:320,console.log(e),this.canvas=e,this.context=e.getContext("2d"),this.width=o,this.height=r;const s=this.context,l=window.devicePixelRatio;l?(e.style.width=`${o}px`,e.style.height=`${r}px`,e.height=r*l,e.width=o*l,s.scale(l,l)):(e.width=o,e.height=r),s.lineWidth=2,s.strokeStyle="black",s.lineCap="round",s.lineJoin="round",Object.assign(s,n);const f={},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,f.x=n.clientX-i+.5,f.y=n.clientY-o+.5,(e=>{switch(e){case 1:s.beginPath(),s.moveTo(f.x,f.y);break;case 2:s.lineTo(f.x,f.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,l=e*Math.PI/180;switch(e){case-90:o.width=r,o.height=s,a.rotate(l),a.drawImage(t,-s,0);break;case 90:o.width=r,o.height=s,a.rotate(l),a.drawImage(t,0,-r);break;case 180:o.width=s,o.height=r,a.rotate(l),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:!0,canvas:null,timer:null}},watch:{value(e){console.log("bpmSignature_value",e),e&&(this.curSign=e)},curSign(e){console.log("curSign",e),this.$emit("input",e),this.$emit("change",e,{open:this.openLastSign,for_next_use:this.useNextUser,signature:this.curSign})}},created(){},mounted(){if("edit"===this.mode){setTimeout((()=>{this.initCanvas()}),300);let e=this.container;e&&(e.$on("afterFormSubmit",(e=>{console.log("Singnature topContainer afterFormSubmit"),!e&&this.openLastSign&&this.curSign&&(console.log("to save signature: ",this.curSign,this.useNextUser),this.$bpm.postEleSign(this.curSign,this.useNextUser))})),e.$on("dataLoaded",(e=>{console.log("Singnature topContainer dataLoaded"),this.onDataLoaded(e),this.curSign=null,this.handleInit()})))}},destroyed(){this.container&&!this.container.isQuote&&(this.container.$off("afterFormSubmit"),this.container.$off("dataLoaded"))},methods:{_getCanvasPixelCount(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,t.canvas.width,t.canvas.height).data,i=0,o=0;o<n.length;o+=4)0!==n[o+3]&&i++;return i},handleImgLoadError(){console.log("加载图片失败")},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),this.$emit("input",this.curSign),this.$emit("change",this.curSign,e),console.log("userSign: ",e)},initCanvas(){if(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.canvas)return!1;this.draw=new r(this.canvas,-this.degree,{},{}),console.log("this.draw",this.draw),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))})),this.canvas.addEventListener("mouseleave",(()=>{this.timer||(console.log("mouseleave"),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="",setTimeout((()=>{this.initCanvas()}),300)},transToImg(){if(console.log("Canvas transToImg called"),this.draw){let e=this.draw.getPNGImage();if(console.log("Signature canvas img: ",e),this._getCanvasPixelCount(this.canvas)<2e3)return!1;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 l,f=window.WebKitBlobBuilder||window.MozBlobBuilder;if(f){let e=new f;e.append(r),l=e.getBlob(t)}else l=new window.Blob([r],{type:t});let c=new FormData;c.append(i,l,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)}))}}},l=(0,n(1900).Z)(s,i,[],!1,null,null,null);l.options.__file="components/lib/bpmSignature/src/main.vue";var f=l.exports;f.install=function(e){e.component(f.name,f)};var c=f},4239:function(e,t,n){"use strict";n.d(t,{QE:function(){return s},tq:function(){return l}});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 l(){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),l=n.n(s),f=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=l()(f),b=l()(c,{hash:"?#iefix&v=4.7.0"}),v=l()(u),y=l()(d),w=l()(h),S=l()(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),l=n.n(s),f=new URL(n(6527),n.b),c=r()(o()),u=l()(f);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 l=this[s][0];null!=l&&(r[l]=!0)}for(var f=0;f<e.length;f++){var c=[].concat(e[f]);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"},l=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"},f=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,l=v(t,r,s),f=l.indexOf("xmpmeta>")+8,c=(l=l.substring(l.indexOf("<x:xmpmeta"),f)).indexOf("x:xmpmeta")+10;return l=l.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/" '+l.slice(c),S(a.parseFromString(l,"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),l={},f=t;f<t+n;)28===s.getUint8(f)&&2===s.getUint8(f+1)&&(r=s.getUint8(f+2))in m&&(a=s.getInt16(f+3),o=m[r],i=v(s,f+5,a),l.hasOwnProperty(o)?l[o]instanceof Array?l[o].push(i):l[o]=[l[o],i]:l[o]=i),f++;return l}function g(e,t,n,i,a){var r,s,l,f=e.getUint16(n,!a),c={};for(l=0;l<f;l++)r=n+12*l+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,l,f,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=[],l=0;l<d;l++)r[l]=e.getUint8(a+l);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=[],l=0;l<d;l++)r[l]=e.getUint16(a+2*l,!o);return r;case 4:if(1==d)return e.getUint32(t+8,!o);for(r=[],l=0;l<d;l++)r[l]=e.getUint32(h+4*l,!o);return r;case 5:if(1==d)return f=e.getUint32(h,!o),c=e.getUint32(h+4,!o),(s=new Number(f/c)).numerator=f,s.denominator=c,s;for(r=[],l=0;l<d;l++)f=e.getUint32(h+8*l,!o),c=e.getUint32(h+4+8*l,!o),r[l]=new Number(f/c),r[l].numerator=f,r[l].denominator=c;return r;case 9:if(1==d)return e.getInt32(t+8,!o);for(r=[],l=0;l<d;l++)r[l]=e.getInt32(h+4*l,!o);return r;case 10:if(1==d)return e.getInt32(h,!o)/e.getInt32(h+4,!o);for(r=[],l=0;l<d;l++)r[l]=e.getInt32(h+8*l,!o)/e.getInt32(h+4+8*l,!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,l,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,f,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,l=r.nodeValue;void 0!==s&&(t[s]=l)}var f=i.nodeName;if(void 0===t[f])t[f]=w(i);else{if(void 0===t[f].push){var c=t[f];t[f]=[],t[f].push(c)}t[f].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,l,f,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,l=e[0],f=e[1],s=u(">L",[l])+u(">L",[f]);else{r=e.length,s="";for(var m=0;m<r;m++)l=e[m][0],f=e[m][1],s+=u(">L",[l])+u(">L",[f])}d=u(">L",[n]),c=s}else if("SRational"==t){if("number"==typeof e[0])r=1,l=e[0],f=e[1],s=u(">l",[l])+u(">l",[f]);else for(r=e.length,s="",m=0;m<r;m++)l=e[m][0],f=e[m][1],s+=u(">l",[l])+u(">l",[f]);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="",l="";for(var f in e)if("string"==typeof f&&(f=parseInt(f)),!("0th"==t&&[34665,34853].indexOf(f)>-1||"Exif"==t&&40965==f||"1st"==t&&[513,514].indexOf(f)>-1)){var c=e[f],d=u(">H",[f]),h=g[t][f].type,m=u(">H",[p[h]]);"number"==typeof c&&(c=[c]);var b=r(c,h,8+i+n+l.length);s+=d+m+b[0]+b[1],l+=b[2]}return[a+s,l]}function l(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,"+f(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,"+f(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 l(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,l,f=(t=e,JSON.parse(JSON.stringify(t))),c=!1,d=!1,h=!1,g=!1;i="0th"in f?f["0th"]:{},"Exif"in f&&Object.keys(f.Exif).length||"Interop"in f&&Object.keys(f.Interop).length?(i[34665]=1,c=!0,o=f.Exif,"Interop"in f&&Object.keys(f.Interop).length?(o[40965]=1,h=!0,a=f.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 f&&Object.keys(f.GPS).length?(i[n.ImageIFD.GPSTag]=1,d=!0,r=f.GPS):Object.keys(i).indexOf(n.ImageIFD.GPSTag.toString())>-1&&delete i[n.ImageIFD.GPSTag],"1st"in f&&"thumbnail"in f&&null!=f.thumbnail&&(g=!0,f["1st"][513]=1,f["1st"][514]=1,l=f["1st"]);var b,v,y,w=s(i,"0th",0),S=w[0].length+12*c+12*d+4+w[1].length,x="",_=0,C="",P=0,k="",D=0,I="";if(c&&(_=(b=s(o,"Exif",S))[0].length+12*h+b[1].length),d&&(P=(C=s(r,"GPS",S+_).join("")).length),h&&(D=(k=s(a,"Interop",S+_+P).join("")).length),g&&(v=s(l,"1st",S+_+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("")}(f.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+_]),A=u(">H",[34853])+u(">H",[p.Long])+u(">L",[1])+j),h&&(j=u(">L",[F=8+S+_+P]),T=u(">H",[40965])+u(">H",[p.Long])+u(">L",[1])+j),g){var F;R=u(">L",[F=8+S+_+P+D]);var z="\0\0\0\0"+u(">L",[F+v[0].length+24+4+v[1].length]),E="\0\0\0\0"+u(">L",[y.length]);I=v[0]+z+E+"\0\0\0\0"+v[1]+y}var M=w[0]+L+A+R+w[1];return c&&(x=b[0]+T+b[1]),"Exif\0\0MM\0*\0\0\0\b"+M+x+C+k+I},l.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],l=[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(l))}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 f=window.btoa;if(void 0===f&&(f=function(e){for(var t,n,i,o,a,r,s,l="",f=0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f<e.length;)o=(t=e.charCodeAt(f++))>>2,a=(3&t)<<4|(n=e.charCodeAt(f++))>>4,r=(15&n)<<2|(i=e.charCodeAt(f++))>>6,s=63&i,isNaN(n)?r=s=64:isNaN(i)&&(s=64),l=l+c.charAt(o)+c.charAt(a)+c.charAt(r)+c.charAt(s);return l}),"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,l=null,f=null,c=null,u="";f=e[s];){if("b"==f.toLowerCase())c=1,l=(u=t.slice(r,r+c)).charCodeAt(0),"b"==f&&l>=128&&(l-=256);else if("H"==f)c=2,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),l=256*u.charCodeAt(0)+u.charCodeAt(1);else{if("l"!=f.toLowerCase())throw new Error("'unpack' error. "+f);c=4,u=t.slice(r,r+c),n&&(u=u.split("").reverse().join("")),l=16777216*u.charCodeAt(0)+65536*u.charCodeAt(1)+256*u.charCodeAt(2)+u.charCodeAt(3),"l"==f&&l>=2147483648&&(l-=4294967296)}a.push(l),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="",l=0,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<e.length;)t=f.indexOf(e.charAt(l++))<<2|(o=f.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(a=f.indexOf(e.charAt(l++)))>>2,i=(3&a)<<6|(r=f.indexOf(e.charAt(l++))),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),l=n.n(s),f=n(3565),c=n.n(f),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=l().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),l=n.n(s),f=n(3565),c=n.n(f),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=l().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 l=e[s],f=i.base?l[0]+i.base:l[0],c=a[f]||0,u="".concat(f," ").concat(c);a[f]=c+1;var d=n(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[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 l=i(e,o),f=0;f<a.length;f++){var c=n(a[f]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=l}}},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,l=void 0===r?{}:r;l=n.i(a.a)(l,{inline:!1});var f=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})})))}}));f.$mount(),document.body.appendChild(f.$el);var c=new o.a(f.$el,l),u=c.destroy.bind(c);return c.destroy=function(){return u(),f.$destroy(),document.body.removeChild(f.$el),c},c.show(),f.$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,l=t.debug,f=void 0!==l&&l;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;f&&(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),l=n(4),f=n(3);n.d(t,"component",(function(){return s.a})),n.d(t,"directive",(function(){return l.a})),n.d(t,"api",(function(){return f.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(l.a)({name:r,debug:u})),e.prototype["$"+r+"Api"]=f.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 l(){for(var l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];var u=this,d=Date.now()-r;function h(){r=Date.now(),n.apply(u,f)}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),l.cancel=function(){s(),a=!0},l}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 l=Object.create(s.computed||null);Object.keys(i).forEach((function(e){var t=i[e];l[e]=function(){return t}})),s.computed=l}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:{},l=!(!r||!s.document.documentElement)&&"ontouchstart"in s.document.documentElement,f=!!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"),_="".concat(c,"-hide-xs-down"),C="".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",z="keydown",E="load",M="error",O=f?"pointerdown":l?"touchstart":"mousedown",B=f?"pointermove":l?"touchmove":"mousemove",G=f?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",$="resize",V="transitionend",U="wheel",N="ready",q="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"),le=/\s\s*/,fe=["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 _e(e,t){if(e&&t)if(de(e.length))ve(e,(function(e){_e(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 Ce(e,t){e&&t&&(de(e.length)?ve(e,(function(e){Ce(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?_e(e,t):Ce(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(le).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(le).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),l=0;l<a;l++)s[l]=arguments[l];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 ze=s.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(s.navigator.userAgent);function Ee(e,t,n){var i=document.createElement("img");if(e.naturalWidth&&!ze)return n(e.naturalWidth,e.naturalHeight),i;var o=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),ze||o.removeChild(i)},ve(t.inheritedAttributes,(function(t){var n=e.getAttribute(t);null!==n&&i.setAttribute(t,n)})),i.src=e.src,ze||(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 Me(e){switch(e){case 2:return _;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 Be,Ge={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),l=e.getImageURL(t);if(r||l){var f=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||l),c.alt=s,c.setAttribute("data-original-url",l||r),f.setAttribute("data-index",a),f.setAttribute("data-viewer-action","view"),f.setAttribute("role","button"),n.keyboard&&f.setAttribute("tabindex",0),f.appendChild(c),i.appendChild(f),o.push(f)}})),this.items=o,ve(o,(function(t){var i,o,a=t.firstElementChild;Le(a,"filled",!0),n.loading&&_e(t,k),Re(a,E,i=function(i){Te(a,M,o),n.loading&&Ce(t,k),e.loadImage(i)},{once:!0}),Re(a,M,o=function(){Te(a,E,i),n.loading&&Ce(t,k)},{once:!0})})),n.transition&&Re(t,J,(function(){_e(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="",Ce(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,l=Math.max(a.height-r,r),f=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Ee(o,i,(function(t,o){var a=t/o,r=Math.max(0,Math.min(1,i.initialCoverage)),c=s,u=l;n.imageInitializing=!1,l*a>s?u=s/a:c=l*a,r=de(r)?r:.9,c=Math.min(c*r,t),u=Math.min(u*r,o);var d=(s-c)/2,h=(l-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=f.rotate||0,p.rotate=0),i.scalable&&(m.scaleX=f.scaleX||1,m.scaleY=f.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,V,o)}},Re(n,V,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="")}},$e={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,B,this.onPointerMove=this.pointermove.bind(this)),Re(i,G,this.onPointerUp=this.pointerup.bind(this)),Re(i,z,this.onKeyDown=this.keydown.bind(this)),Re(window,$,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Re(t,U,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,B,this.onPointerMove),Te(i,G,this.onPointerUp),Te(i,z,this.onKeyDown),Te(window,$,this.onResize),e.zoomable&&e.zoomOnWheel&&Te(t,U,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Te(n,R,this.onDblclick)}},Ve={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)),l&&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&&(l&&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;Ce(i,P),n.loading&&Ce(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");Ee(t,this.options,(function(e,n){var r=e/n,s=i,l=o;o*r>i?a?s=o*r:l=i/r:a?l=i/r:s=o*r,Se(t,ye({width:s,height:l},Fe({translateX:(i-s)/2,translateY:(o-l)/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||Ce(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||_e(this.image,A),this.action=!1,l&&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,E,e.loadImage.bind(e),{once:!0}),je(t,E)}))}},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)}}},Ue={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,q,n.show,{once:!0}),!1===je(t,q)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(Ce(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,V,o),Ce(i,C)}},_e(i,A),i.initialOffsetWidth=i.offsetWidth,Re(i,V,o,{once:!0}),_e(i,C)}else _e(i,C),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(){Ce(o,C),e.hidden()};if(i.transition&&!t){var s=function t(n){n&&n.target===o&&(Te(o,V,t),e.hidden())},l=function(){xe(o,A)?(Re(o,V,s),Ce(o,C)):r()};this.transitioning={abort:function(){e.viewed&&xe(a,A)?Te(a,V,l):xe(o,A)&&Te(o,V,s)}},this.viewed&&xe(a,A)?(Re(a,V,l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}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"),l=Ie(s,"originalUrl"),f=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=l,c.alt=f,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&&(Ce(u,m),u.removeAttribute("aria-selected")),_e(r,m),r.setAttribute("aria-selected",!0),i.focus&&r.focus(),this.image=c,this.viewed=!1,this.index=t,this.imageData={},_e(c,P),i.loading&&_e(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(f," (").concat(n.naturalWidth," × ").concat(n.naturalHeight,")"))?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):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,E,d),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(Re(c,E,d=function(){Te(c,M,h),e.load()},{once:!0}),Re(c,M,h=function(){Te(c,E,d),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),Ce(c,P),i.loading&&Ce(e.canvas,k)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){Ce(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,l=r.y,f=!1;if(de(e)?f=!0:e=s,de(n)?f=!0:n=l,f){if(be(a.move)&&Re(o,Z,a.move,{once:!0}),!1===je(o,Z,{x:e,y:n,oldX:s,oldY:l,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:l,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,l=!1;if(de(e)?l=!0:e=r,de(n)?l=!0:n=s,l){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,l=this.pointers,f=this.imageData,c=f.x,u=f.y,d=f.width,h=f.height,m=f.naturalWidth,p=f.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=f.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 _=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),C=l&&Object.keys(l).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}}(l):{pageX:o.pageX,pageY:o.pageY};f.x-=w*((C.pageX-_.left-c)/d),f.y-=S*((C.pageY-_.top-u)/h)}else ge(i)&&de(i.x)&&de(i.y)?(f.x-=w*((i.x-c)/d),f.y-=S*((i.y-u)/h)):(f.x-=w/2,f.y-=S/2);f.left=f.x,f.top=f.y,f.width=v,f.height=y,f.oldRatio=x,f.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,l=0;if(this.played=!0,this.onLoadWhenPlay=a,t&&this.requestFullscreen(t),_e(o,L),ve(this.items,(function(e,t){var n=e.querySelector("img"),f=document.createElement("img");f.src=Ie(n,"originalUrl"),f.alt=n.getAttribute("alt"),f.referrerPolicy=n.referrerPolicy,s+=1,_e(f,g),Pe(f,A,i.transition),xe(e,m)&&(_e(f,C),l=t),r.push(f),Re(f,E,a,{once:!0}),o.appendChild(f)})),de(i.interval)&&i.interval>0){var f=function t(){clearTimeout(e.playing.timeout),Ce(r[l],C),_e(r[l=(l+=1)<s?l:0],C),e.playing.timeout=setTimeout(t,i.interval)};s>1&&(this.playing={prev:function t(){clearTimeout(e.playing.timeout),Ce(r[l],C),_e(r[l=(l-=1)>=0?l:s-1],C),e.playing.timeout=setTimeout(t,i.interval)},next:f,timeout:setTimeout(f,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,E,e.onLoadWhenPlay)})),Ce(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(),_e(this.button,y),t.transition&&(Ce(o,A),this.viewed&&Ce(i,A)),_e(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(){_e(i,A),_e(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(),Ce(this.button,y),t.transition&&(Ce(o,A),this.viewed&&Ce(i,A)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),Ce(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(){_e(i,A),_e(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,V),_e(n,L),_e(n,g),_e(n,A),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,_e(n,C)):(_e(n,L),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){t.transition?(Re(n,V,(function(){Ce(n,L),Ce(n,g),Ce(n,A),n.setAttribute("aria-hidden",!0),e.fading=!1}),{once:!0}),Ce(n,C),e.fading=!0):(Ce(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];_e(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}},Ne={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;_e(e,I),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;Ce(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(),_e(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),l=(Math.sqrt(a*a+r*r)-s)/s;i.push(l)}))})),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}},qe=s.Viewer,Xe=(Be=-1,function(){return Be+=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=qe,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,E,r),Te(e,M,r))}))}},ve(o,(function(e){var t,n;e.complete?r():(Re(e,E,t=function(){Te(e,M,n),r()},{once:!0}),Re(e,M,n=function(){Te(e,E,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")),l=o.querySelector(".".concat(c,"-button")),f=o.querySelector(".".concat(c,"-canvas"));if(this.parent=n,this.viewer=o,this.title=a,this.toolbar=r,this.navbar=s,this.button=l,this.canvas=f,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),_e(a,t.title?Me(Array.isArray(t.title)?t.title[0]:t.title):w),_e(s,t.navbar?Me(t.navbar):w),Pe(l,w,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(_e(o,"".concat(c,"-backdrop")),t.inline||"static"===t.backdrop||Le(f,se,"hide")),ce(t.className)&&t.className&&t.className.split(le).forEach((function(e){_e(o,e)})),t.toolbar){var u=document.createElement("ul"),d=ge(t.toolbar),h=fe.slice(0,3),m=fe.slice(7,9),y=fe.slice(9);d||_e(r,Me(t.toolbar)),ve(d?t.toolbar:fe,(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,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),_e(l,"".concat(c,"-").concat(o)),be(s)||Le(l,se,o),de(a)&&_e(l,Me(a)),-1!==["small","large"].indexOf(r)?_e(l,"".concat(c,"-").concat(r)):"play"===o&&_e(l,"".concat(c,"-large")),be(s)&&Re(l,T,s),u.appendChild(l)}})),r.appendChild(u)}else _e(r,w);if(!t.rotatable){var S=r.querySelectorAll('li[class*="rotate"]');_e(S,P),ve(S,(function(e){r.appendChild(e)}))}if(t.inline)_e(l,v),Se(o,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&Se(n,{position:"relative"}),n.insertBefore(o,e.nextSibling);else{_e(l,p),_e(o,b),_e(o,g),_e(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,N,t.ready,{once:!0}),!1!==je(e,N)?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,Ge,$e,Ve,Ue,Ne),He}()},1900:function(e,t,n){"use strict";function i(e,t,n,i,o,a,r,s){var l,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),r?(l=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)},f._ssrRegister=l):o&&(l=s?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(f.functional){f._injectStyles=l;var c=f.render;f.render=function(e,t){return l.call(t),c(e,t)}}else{var u=f.beforeCreate;f.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:f}}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 N}});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||"none",color:e.resultColor?"#fff":"#333",cursor:"pointer"}},[e._v(e._s(e.getViewFont)+" "),n("i",{staticClass:"el-icon-arrow-right",staticStyle:{"font-size":"14px"}})])])]),e._v(" "),n("el-dialog",{staticClass:"audit-modal",attrs:{visible:e.opened,modal:!1,"append-to-body":!0,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:e.$z("审批结果:","b2.common.approval_results")}},[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.$z("回退节点:","b2.common.fallback_node")}},[e._v("\n "+e._s(e.curVal.reject_target.name||e.$z("上一个节点","b2.common.previous_node"))+"\n ")]):e._e(),e._v(" "),e.showSignature?n("el-form-item",{attrs:{label:e.$z("签名:","b2.common.sign"),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:e.$z("填写意见:","b2.common.fill_comment"),required:e.isJudgmentMust}},[n("el-input",{attrs:{type:"textarea",placeholder:e.$z("请输入评审意见","b2.common.en_comment")},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:e.$z("拍照:","b2.common.photograph"),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:e.$z("审批日期:","b2.common.audit_date")}},[n("el-date-picker",{ref:"dateSelect",attrs:{type:"datetime",placeholder:e.$z("选择日期时间","c.select_date_time"),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(" "),e.curVal.auditor_name?n("el-form-item",{attrs:{label:e.$z("审批人","b2.common.approver")}},[n("el-input-number",{attrs:{min:1,step:1,controls:!1,"controls-position":"both",placeholder:e.$z("审批人","b2.common.approver")+" ID"},model:{value:e.curVal.auditor,callback:function(t){e.$set(e.curVal,"auditor",t)},expression:"curVal.auditor"}}),e._v(" "),n("el-input",{staticStyle:{"margin-top":"10px"},attrs:{placeholder:e.$z("审批人","b2.common.approver")+" "+e.$z("用户名","c.user_name")},model:{value:e.curVal.auditor_name,callback:function(t){e.$set(e.curVal,"auditor_name",t)},expression:"curVal.auditor_name"}})],1):e._e()],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._s(e.$z("取消","c.cancel")))]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$z("确定","c.confirm")))])],1)])],1)};t._withStripped=!0;var n=r(467),i=r.n(n),o=r(3371),a=r.n(o),l=r(6981),f=r(5176);a().use(l.Dialog),a().use(l.DatePicker),a().use(f.default);var c={data(){return{curVal:{result:1,judgment:"",photos:[],reject_target:"",signature:"",auditor_name:"",audit_at:"",auditor:""},isOpenAudit:!1,opened:!1,dispMode:"nolink",auditFormat:"yyyy-MM-dd HH:mm:ss",userList:[]}},props:["type","value","fieldConf","row","dm","container"],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=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},judgment(){let e=i().get(this.value,"result",-1),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},denyColor(){let e=i().get(this.fieldConf,"detail_deny.color","#fff");return"#fff"==e||"#ffffff"==e?null:e},signature(){let e=i().get(this.value,"result",-1),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=i().get(this.value,"result",-1),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(){this.loadProjBaseInfo()},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},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}}},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.useDialog?n("div",{on:{click:function(t){e.opened=!0}}},[n("span",{staticClass:"aduit-result-title",style:{background:e.resultColor,color:e.resultColor?"#fff":"#333",cursor:"pointer"}},[e._v(e._s(e.getViewFont)+" "),n("i",{staticClass:"el-icon-arrow-right",staticStyle:{"font-size":"14px"}})])]):n("div",[n("AuditReaderDetail",{attrs:{value:e.value,"field-conf":e.fieldConf,"result-color":e.resultColor,"get-view-font":e.getViewFont,"show-judgment":e.showJudgment,"show-signature":e.showSignature,"show-photo":e.showPhoto}})],1)])]),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",[n("AuditReaderDetail",{attrs:{value:e.value,"field-conf":e.fieldConf,"result-color":e.resultColor,"get-view-font":e.getViewFont,"show-judgment":e.showJudgment,"show-signature":e.showSignature,"show-photo":e.showPhoto}})],1)]):e._e()],1)};m._withStripped=!0;var p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.value?n("el-form",{staticClass:"audit-modal-content",attrs:{"label-width":"150px"}},[n("el-form-item",{attrs:{label:e.$z("审批结果","b2.common.approval_results"),required:!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("el-form-item",{attrs:{label:e.$z("回退节点","b2.common.fallback_node"),required:!0}},[e._v("\n "+e._s(e.value.reject_target.name||e.$z("上一个节点","b2.common.previous_node"))+"\n ")]):e._e(),e._v(" "),e.showJudgment?n("el-form-item",{attrs:{label:e.$z("审批意见","b2.common.approval_comment"),required:e.isJudgmentMust}},[n("span",{attrs:{title:e.value&&e.value.judgment}},[e._v("\n "+e._s(e.value&&e.value.judgment?e.value.judgment:e.$z("无","c.none")))])]):e._e(),e._v(" "),e.showPhoto&&e.value.photos&&e.value.photos.length?n("el-form-item",{attrs:{label:e.$z("拍照","b2.common.photograph"),required:e.isPhotoMust}},[n("bpm-mul-image",{attrs:{value:e.value.photos,fieldConf:{type:"MulImage"}}})],1):e._e(),e._v(" "),e.showSignature&&e.value.signature?n("el-form-item",{attrs:{label:e.$z("签名","b2.common.sign"),required:e.isSignatureMust}},[n("bpm-mul-image",{attrs:{value:e.value.signature,fieldConf:{type:"Signature"}}})],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:e.$z("审批人","b2.common.approver")}},[e._v(e._s(e.auditorName))]),e._v(" "),n("el-form-item",{attrs:{label:e.$z("审批时间","b2.common.processing_time")}},[e._v(e._s(e.auditAt))])],1):e._e()],1)};p._withStripped=!0;var g=r(1319),b=r.n(g),v={name:"AuditReaderDetail",props:["value","fieldConf","resultColor","getViewFont","showJudgment","showSignature","showPhoto"],data(){return{}},computed:{isJudgmentMust(){return"must"==_.get(this.fieldConf,"judgment")},isSignatureMust(){return"must"==_.get(this.fieldConf,"signature")},isPhotoMust(){return"must"==_.get(this.fieldConf,"photo")},auditAt(){let e=_.get(this.value,"audit_at");if(e)return e*=1e3,b().format(e,"YYYY-MM-DD HH:mm:ss")},auditorName(){return _.get(this.value,"auditor_name")}}},y=(0,u.Z)(v,p,[],!1,null,null,null);y.options.__file="components/lib/bpmAudit/src/part/reader-detail.vue";var w=y.exports;a().use(l.Dialog),a().use(f.default);var S={components:{AuditReaderDetail:w},props:["value","fieldConf","row","uiType"],data(){return{opened:!1}},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},isRequired(){return i().get(this.fieldConf,"check.required")},modalShow(){return(this.showSignature||this.showJudgment||this.showPhoto)&&this.hasAudited},useDialog(){return"table"===this.uiType}},mounted(){},methods:{onHide(){this.opened=!1}}},x=(0,u.Z)(S,m,[],!1,null,null,null);x.options.__file="components/lib/bpmAudit/src/part/reader.vue";var C=x.exports,P=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"}})};P._withStripped=!0;var k=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"audit-with-others"})};k._withStripped=!0;var D={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}])},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 l,f=window.WebKitBlobBuilder||window.MozBlobBuilder;if(f){let e=new f;e.append(r),l=e.getBlob(t)}else l=new window.Blob([r],{type:t});let c=new FormData;c.append(i,l,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)}))}}},I=(r(7602),r(6768),r(4540),(0,u.Z)(D,k,[],!1,null,"1f4bc398",null));I.options.__file="components/lib/bpmAudit/src/part/auditor/audit-with-others.vue";var L=I.exports,A=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)};A._withStripped=!0;var T={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)}}},R=(r(2577),(0,u.Z)(T,A,[],!1,null,"2709dffc",null));R.options.__file="components/lib/bpmAudit/src/part/auditor/audit-select.vue";var j=R.exports,F=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.form,"label-width":"150px"}},[2==e.form.result&&e.showReject?n("el-form-item",{attrs:{label:e.$z("回退节点","b2.common.fallback_node"),required:!0,prop:"reject_target"}},[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"),prop:"signature"}},[n("bpm-signature",{ref:"signature",attrs:{container:e.container},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"),prop:"judgment"}},[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,prop:"photos"}},[n("bpm-mul-image",{attrs:{fieldConf:{type:"MulImage"},mode:"edit"},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"),prop:"auditTime"}},[n("el-date-picker",{ref:"dateSelect",attrs:{type:"datetime",placeholder:e.$z("选择日期时间","c.select_date_time"),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._s(e.$z("取消","c.cancel")))]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s(e.$z("确定","c.confirm")))])],1)])],1)};F._withStripped=!0;var z=r(6324);a().use(l.Dialog),a().use(l.DatePicker),a().use(f.default),a().use(z.default);var E={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},showOpDialog(){return this.showSignature||this.showJudgment||this.showPhoto||2===this.result&&this.showReject||this.optAss.length},getCanvasBoxStyle(){return{height:"150px",width:"100%"}},componentName(){return"MulImage"},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()},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",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="";console.log("this.result",this.result),this.form.auditTime=(new Date).getTime()},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:zj.z("请至少上传一张图片","b2.common.least_one_image"),type:"warning"}):(this._dealSubmit(e),this.openAuditDlg=!1):this.$message({message:zj.z("请填写意见","b2.common.please_fill_comment"),type:"warning"}):this.$message({message:zj.z("请完成签名","b2.common.please_complete_sign"),type:"warning"}):this.$message({message:zj.z("请选择审批结果","b2.common.please_select_audit"),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||(console.log("BpmAudit New $bpm afterFormSubmit"),this.openAuditDlg=!1),this.submiting=!1}))}},getRejectTarget(e){let t=this.rejectTargetMap;return"last_id"==e?{type:"RejectToLastUserNode"}:i().get(t,e)},onCancel(){this.openAuditDlg=!1},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),console.log("excludeElemIds",o),this.container.verfifyData(o,(()=>{this.result=e,this.$nextTick((()=>{this.showOpDialog?this.openDialog():this.confirmOp()}))}))}),100)},openDialog(){this.openAuditDlg=!0,this.useNextUser=!1,setTimeout((()=>{this.$refs.signature&&(this.$refs.signature.initCanvas(),this.$refs.signature.handleInit())}),200)},confirmOp(){let e=1==this.result?this.selectOptions[0].label:this.selectOptions[1].label,t=zj.z("是否确认","b2.common.is_confirm")+e+zj.z("?","c.question_mark");this.form.auditTime=(new Date).getTime(),this.$confirm(t,e,{confirmButtonText:zj.z("确定","c.confirm"),cancelButtonText:zj.z("取消","c.cancel"),type:"warning"}).then((()=>{this._dealSubmit(this.form)})).catch((()=>{}))}}},M=(0,u.Z)(E,F,[],!1,null,null,null);M.options.__file="components/lib/bpmAudit/src/part/auditor/audit-new.vue";var O={props:["value","fieldConf","row","container"],components:{AuditWithOthers:L,AuditSelect:j,AduitNew:M.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(console.log("Auditor_container",this.container),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)}}},B=(0,u.Z)(O,P,[],!1,null,null,null);B.options.__file="components/lib/bpmAudit/src/part/auditor.vue";var G=B.exports,$={name:"BpmAudit",components:{editorComponent:h,readerComponent:C,auditorComponent:G},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}},dm:Boolean},computed:{curComponent(){return"view"==this.mode?C:this.dm?h:G}},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)}}},V=(r(6916),(0,u.Z)($,e,[],!1,null,null,null));V.options.__file="components/lib/bpmAudit/src/main.vue";var U=V.exports;U.install=function(e){e.component(U.name,U)};var N=U}(),s}()}));