@zhijiancloud/bpm 1.0.99 → 1.2.0

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 bpmOcr.umd.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs")):"function"==typeof define&&define.amd?define(["lodash","qs"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs")):e.bpm2=t(e.lodash,e.qs)}(self,function(e,t){return function(){var i={48622:function(e,t,i){"use strict";i.d(t,{aU:function(){return d},cF:function(){return f},ti:function(){return h},u:function(){return c}});var n=i(36773),r=i.n(n),o=i(5344),a=i.n(o),s=i(41335),l=i.n(s);function c(e){return r().startsWith(e.type,"image")}function u(e){let t="";a()(".viewer-in .address").length?(e&&(t='<i class="fa fa-map-marker"></i>'+e),a()(".viewer-in .address").html(t)):(e&&(t='<div class="address"><i class="fa fa-map-marker"></i>'+e+"</div>"),a()(".viewer-in .viewer-footer").append(t))}async function d(e){if(u(""),!c(e))return;let t=await zj.net.w.noapi({url:`/platform/v1/papi/app_file/download/?file_md5=${e.md5}&webp=0`}),i=r().get(t,"url_list.0.path.0");u("定位信息加载中...");let n=document.createElement("img");i&&(n.src=i);let o=this;setTimeout(()=>{try{a().ajax({url:`${i}?exif`,success:e=>{e&&e.GPSLatitude?o.setPs(e):l().getData(n,function(){var e=l().getAllTags(this);o.setPs(e)})},error:()=>{l().getData(n,function(){var e=l().getAllTags(this);o.setPs(e)})}})}catch(e){l().getData(n,function(){var e=l().getAllTags(this);o.setPs(e)})}},600)}function h(e,t){let i="";var n=e.lastIndexOf(".");return i=-1!=n?e.substring(n+1,e.length).toLowerCase():"",!i&&t&&-1!=t.indexOf("sheet")&&(i="sheet"),"application/pdf"==t&&(i="pdf"),i}function f(e,t){var i=e.lastIndexOf(".");let n="";n=-1!=i?e.substring(i+1,e.length).toLowerCase():"other";let o={document:"fa-file-word-o",doc:"fa-file-word-o",docx:"fa-file-word-o",sheet:"fa-file-excel-o",xls:"fa-file-excel-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",jfif:"fa-file-image-o",jpeg:"fa-file-image-o",pjpeg:"fa-file-image-o",gif:"fa-file-image-o",webp:"fa-file-image-o",svg:"fa-file-image-o",pdf:"fa-file-pdf-o",pptx:"fa-file-powerpoint-o",ppt:"fa-file-powerpoint-o",mp4:"fa-file-video-o",avi:"fa-file-video-o",mov:"fa-file-video-o",wmv:"fa-file-video-o",flv:"fa-file-video-o",mkv:"fa-file-video-o",webm:"fa-file-video-o",m4v:"fa-file-video-o","3gp":"fa-file-video-o",mpeg:"fa-file-video-o",rmvb:"fa-file-video-o",ts:"fa-file-video-o",vob:"fa-file-video-o",wav:"fa-file-audio-o",aiff:"fa-file-audio-o",pcm:"fa-file-audio-o",flac:"fa-file-audio-o",alac:"fa-file-audio-o",wma:"fa-file-audio-o",mp3:"fa-file-audio-o",ogg:"fa-file-audio-o",aac:"fa-file-audio-o",zip:"fa-file-archive-o",rar:"fa-file-archive-o",gz:"fa-file-archive-o",tgz:"fa-file-archive-o",bz2:"fa-file-archive-o",gar:"fa-file-archive-o",c:"fa-file-code-o",aspx:"fa-file-code-o",class:"fa-file-code-o",clw:"fa-file-code-o",cpp:"fa-file-code-o",cs:"fa-file-code-o",dll:"fa-file-code-o",dsp:"fa-file-code-o",h:"fa-file-code-o",hpp:"fa-file-code-o",html:"fa-file-code-o",jar:"fa-file-code-o",java:"fa-file-code-o",js:"fa-file-code-o",lib:"fa-file-code-o",ocx:"fa-file-code-o",py:"fa-file-code-o",pyc:"fa-file-code-o",xml:"fa-file-code-o",json:"fa-file-code-o",conf:"fa-file-code-o"};return!o[n]&&t&&-1!=t.indexOf("sheet")&&(n="sheet"),"application/pdf"==t&&(n="pdf"),r().get(o,n,"fa-file-o")}},29795:function(e,t,i){"use strict";i.d(t,{Fr:function(){return l},zC:function(){return s}});var n=i(36773),r=i.n(n),o=i(65360),a=i.n(o);function s(e,t={}){r().isFunction(e)&&(e=e(t));let i=r().get(e.match(/\?([^#]+)/),"1");if(i){let n=a().parse(i);n=function(...e){return r().assignIn({},...e)}(n,t),e=r().replace(e,i,a().stringify(n))}else e=e+"?"+a().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(),i=!1,n=0,r=e.length;n<r;n++)-1!=t.indexOf(e[n])&&(i=!0);return i}},80386:function(e,t,i){"use strict";var n=i(31601),r=i.n(n),o=i(76314),a=i.n(o),s=i(4417),l=i.n(s),c=new URL(i(34868),i.b),u=a()(r()),d=l()(c);u.push([e.id,"/*!\n * Viewer.js v1.11.7\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2024-11-24T04:32:14.526Z\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("+d+");\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.A=u},8284:function(e,t,i){"use strict";var n=i(31601),r=i.n(n),o=i(76314),a=i.n(o)()(r());a.push([e.id,"\n.bpm-ocr[data-v-6bdb94df] {\n width: 100%;\n}\n",""]),t.A=a},47688:function(e,t,i){"use strict";var n=i(31601),r=i.n(n),o=i(76314),a=i.n(o)()(r());a.push([e.id,"\n.bpm-ocr-edit[data-v-7f6a5f5a] {\n width: 100%;\n}\n.ocr-file-list[data-v-7f6a5f5a] {\n margin-top: 12px;\n}\n.ocr-file-item[data-v-7f6a5f5a] {\n border: 1px solid #ebeef5;\n border-radius: 4px;\n padding: 10px 14px;\n margin-bottom: 10px;\n background-color: #fafafa;\n}\n.ocr-file-header[data-v-7f6a5f5a] {\n display: flex;\n align-items: center;\n}\n.file-thumb[data-v-7f6a5f5a] {\n width: 48px;\n height: 48px;\n border-radius: 4px;\n background: #f0f2f5;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n margin-right: 12px;\n}\n.thumb-img[data-v-7f6a5f5a] {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.thumb-icon[data-v-7f6a5f5a] {\n font-size: 24px;\n color: #909399;\n}\n.file-meta[data-v-7f6a5f5a] {\n flex: 1;\n overflow: hidden;\n margin-right: 12px;\n}\n.file-name[data-v-7f6a5f5a] {\n font-size: 14px;\n font-weight: 500;\n color: #303133;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin-bottom: 4px;\n}\n.file-status-row[data-v-7f6a5f5a] {\n display: flex;\n align-items: center;\n}\n.status-badge[data-v-7f6a5f5a] {\n font-size: 12px;\n padding: 2px 6px;\n border-radius: 2px;\n display: inline-flex;\n align-items: center;\n}\n.status-badge i[data-v-7f6a5f5a] {\n margin-right: 4px;\n}\n.status-pending[data-v-7f6a5f5a] {\n background-color: #f4f4f5;\n color: #909399;\n}\n.status-processing[data-v-7f6a5f5a] {\n background-color: #ecf5ff;\n color: #409eff;\n}\n.status-success[data-v-7f6a5f5a] {\n background-color: #f0f9eb;\n color: #67c23a;\n}\n.status-failed[data-v-7f6a5f5a] {\n background-color: #fef0f0;\n color: #f56c6c;\n}\n.file-actions[data-v-7f6a5f5a] {\n display: flex;\n align-items: center;\n}\n.file-actions .el-button[data-v-7f6a5f5a] {\n margin-left: 8px;\n}\n.btn-delete[data-v-7f6a5f5a] {\n color: #f56c6c;\n}\n.ocr-progress-bar[data-v-7f6a5f5a] {\n margin-top: 8px;\n}\n.ocr-error-tip[data-v-7f6a5f5a] {\n margin-top: 8px;\n}\n.ocr-raw-data-section[data-v-7f6a5f5a] {\n margin-top: 8px;\n border-top: 1px dashed #e4e7ed;\n padding-top: 6px;\n}\n.raw-json-container[data-v-7f6a5f5a] {\n max-height: 200px;\n overflow-y: auto;\n background-color: #282c34;\n color: #abb2bf;\n padding: 10px;\n border-radius: 4px;\n font-size: 12px;\n line-height: 1.4;\n}\n.raw-json-container pre[data-v-7f6a5f5a] {\n margin: 0;\n white-space: pre-wrap;\n word-break: break-all;\n}\n",""]),t.A=a},53539:function(e,t,i){"use strict";var n=i(31601),r=i.n(n),o=i(76314),a=i.n(o)()(r());a.push([e.id,"\n.bpm-ocr-reader[data-v-1dcc6ca9] {\n width: 100%;\n}\n.no-files-tip[data-v-1dcc6ca9] {\n color: #909399;\n font-size: 13px;\n padding: 8px 0;\n}\n.ocr-file-list[data-v-1dcc6ca9] {\n margin-top: 8px;\n}\n.ocr-file-item[data-v-1dcc6ca9] {\n border: 1px solid #ebeef5;\n border-radius: 4px;\n padding: 10px 14px;\n margin-bottom: 10px;\n background-color: #fafafa;\n}\n.ocr-file-header[data-v-1dcc6ca9] {\n display: flex;\n align-items: center;\n}\n.file-thumb[data-v-1dcc6ca9] {\n width: 48px;\n height: 48px;\n border-radius: 4px;\n background: #f0f2f5;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n margin-right: 12px;\n}\n.thumb-img[data-v-1dcc6ca9] {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.thumb-icon[data-v-1dcc6ca9] {\n font-size: 24px;\n color: #909399;\n}\n.file-meta[data-v-1dcc6ca9] {\n flex: 1;\n overflow: hidden;\n margin-right: 12px;\n}\n.file-name[data-v-1dcc6ca9] {\n font-size: 14px;\n font-weight: 500;\n color: #303133;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin-bottom: 4px;\n}\n.file-status-row[data-v-1dcc6ca9] {\n display: flex;\n align-items: center;\n}\n.status-badge[data-v-1dcc6ca9] {\n font-size: 12px;\n padding: 2px 6px;\n border-radius: 2px;\n display: inline-flex;\n align-items: center;\n}\n.status-badge i[data-v-1dcc6ca9] {\n margin-right: 4px;\n}\n.status-pending[data-v-1dcc6ca9] {\n background-color: #f4f4f5;\n color: #909399;\n}\n.status-processing[data-v-1dcc6ca9] {\n background-color: #ecf5ff;\n color: #409eff;\n}\n.status-success[data-v-1dcc6ca9] {\n background-color: #f0f9eb;\n color: #67c23a;\n}\n.status-failed[data-v-1dcc6ca9] {\n background-color: #fef0f0;\n color: #f56c6c;\n}\n.file-actions[data-v-1dcc6ca9] {\n display: flex;\n align-items: center;\n}\n.file-actions .el-button[data-v-1dcc6ca9] {\n margin-left: 8px;\n}\n.ocr-raw-data-section[data-v-1dcc6ca9] {\n margin-top: 8px;\n border-top: 1px dashed #e4e7ed;\n padding-top: 6px;\n}\n.raw-json-container[data-v-1dcc6ca9] {\n max-height: 200px;\n overflow-y: auto;\n background-color: #282c34;\n color: #abb2bf;\n padding: 10px;\n border-radius: 4px;\n font-size: 12px;\n line-height: 1.4;\n}\n.raw-json-container pre[data-v-1dcc6ca9] {\n margin: 0;\n white-space: pre-wrap;\n word-break: break-all;\n}\n",""]),t.A=a},76314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i}).join("")},t.i=function(e,i,n,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),i&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=i):u[2]=i),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},4417: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}},31601:function(e){"use strict";e.exports=function(e){return e[1]}},41335:function(e,t){var i;(function(){var r=function(e){return e instanceof r?e:this instanceof r?void(this.EXIFwrapped=e):new r(e)};e.exports&&(t=e.exports=r),t.EXIF=r;var o=r.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"},a=r.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},s=r.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=r.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=r.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 i(i){var n=h(i);e.exifdata=n||{};var o=function(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var i=2,n=e.byteLength,r=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)};i<n;){if(r(t,i)){var o=t.getUint8(i+7);return o%2!=0&&(o+=1),0===o&&(o=4),p(e,i+8+o,t.getUint16(i+6+o))}i++}}(i);if(e.iptcdata=o||{},r.isXmpEnabled){var a=function(e){if("DOMParser"in self){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var i=2,n=e.byteLength,r=new DOMParser;i<n-4;){if("http"==v(t,i,4)){var o=i-1,a=t.getUint16(i-2)-1,s=v(t,o,a),l=s.indexOf("xmpmeta>")+8,c=(s=s.substring(s.indexOf("<x:xmpmeta"),l)).indexOf("x:xmpmeta")+10;return s=s.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(c),y(r.parseFromString(s,"text/xml"))}i++}}}(i);e.xmpdata=a||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))i(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(e),n=i.length,r=new ArrayBuffer(n),o=new Uint8Array(r),a=0;a<n;a++)o[a]=i.charCodeAt(a);return r}(e.src));else if(/^blob\:/i.test(e.src))(o=new FileReader).onload=function(e){i(e.target.result)},function(e){var t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="blob",t.onload=function(e){var t;200!=this.status&&0!==this.status||(t=this.response,o.readAsArrayBuffer(t))},t.send()}(e.src);else{var n=new XMLHttpRequest;n.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";i(n.response),n=null},n.open("GET",e.src,!0),n.responseType="arraybuffer",n.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){var o;(o=new FileReader).onload=function(e){i(e.target.result)},o.readAsArrayBuffer(e)}}function h(e){var t=new DataView(e);if(255!=t.getUint8(0)||216!=t.getUint8(1))return!1;for(var i=2,n=e.byteLength;i<n;){if(255!=t.getUint8(i))return!1;if(225==t.getUint8(i+1))return b(t,i+4,t.getUint16(i+2));i+=2+t.getUint16(i+2)}}var f={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function p(e,t,i){for(var n,r,o,a,s=new DataView(e),l={},c=t;c<t+i;)28===s.getUint8(c)&&2===s.getUint8(c+1)&&(a=s.getUint8(c+2))in f&&(o=s.getInt16(c+3),r=f[a],n=v(s,c+5,o),l.hasOwnProperty(r)?l[r]instanceof Array?l[r].push(n):l[r]=[l[r],n]:l[r]=n),c++;return l}function m(e,t,i,n,r){var o,a,s=e.getUint16(i,!r),l={};for(a=0;a<s;a++)o=i+12*a+2,l[n[e.getUint16(o,!r)]]=g(e,o,t,0,r);return l}function g(e,t,i,n,r){var o,a,s,l,c,u,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),f=e.getUint32(t+8,!r)+i;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(o=h>4?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint8(o+l);return a;case 2:return v(e,o=h>4?f:t+8,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(o=h>2?f:t+8,a=[],l=0;l<h;l++)a[l]=e.getUint16(o+2*l,!r);return a;case 4:if(1==h)return e.getUint32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getUint32(f+4*l,!r);return a;case 5:if(1==h)return c=e.getUint32(f,!r),u=e.getUint32(f+4,!r),(s=new Number(c/u)).numerator=c,s.denominator=u,s;for(a=[],l=0;l<h;l++)c=e.getUint32(f+8*l,!r),u=e.getUint32(f+4+8*l,!r),a[l]=new Number(c/u),a[l].numerator=c,a[l].denominator=u;return a;case 9:if(1==h)return e.getInt32(t+8,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+4*l,!r);return a;case 10:if(1==h)return e.getInt32(f,!r)/e.getInt32(f+4,!r);for(a=[],l=0;l<h;l++)a[l]=e.getInt32(f+8*l,!r)/e.getInt32(f+4+8*l,!r);return a}}function v(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function b(e,t){if("Exif"!=v(e,t,4))return!1;var i,n,r,u,d,h=t+6;if(18761==e.getUint16(h))i=!1;else{if(19789!=e.getUint16(h))return!1;i=!0}if(42!=e.getUint16(h+2,!i))return!1;var f=e.getUint32(h+4,!i);if(f<8)return!1;if((n=m(e,h,h+f,a,i)).ExifIFDPointer)for(r in u=m(e,h,h+n.ExifIFDPointer,o,i)){switch(r){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[r]=c[r][u[r]];break;case"ExifVersion":case"FlashpixVersion":u[r]=String.fromCharCode(u[r][0],u[r][1],u[r][2],u[r][3]);break;case"ComponentsConfiguration":u[r]=c.Components[u[r][0]]+c.Components[u[r][1]]+c.Components[u[r][2]]+c.Components[u[r][3]]}n[r]=u[r]}if(n.GPSInfoIFDPointer)for(r in d=m(e,h,h+n.GPSInfoIFDPointer,s,i))"GPSVersionID"===r&&(d[r]=d[r][0]+"."+d[r][1]+"."+d[r][2]+"."+d[r][3]),n[r]=d[r];return n.thumbnail=function(e,t,i,n){var r=function(e,t,i){var n=e.getUint16(t,!i);return e.getUint32(t+2+12*n,!i)}(e,t+i,n);if(!r)return{};if(r>e.byteLength)return{};var o=m(e,t,t+r,l,n);if(o.Compression)switch(o.Compression){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=t+o.JpegIFOffset,s=o.JpegIFByteCount;o.blob=new Blob([new Uint8Array(e.buffer,a,s)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,h,f,i),n}function w(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var i=0;i<e.attributes.length;i++){var n=e.attributes.item(i);t["@attributes"][n.nodeName]=n.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes.item(r),a=o.nodeName;if(null==t[a])t[a]=w(o);else{if(null==t[a].push){var s=t[a];t[a]=[],t[a].push(s)}t[a].push(w(o))}}return t}function y(e){try{var t={};if(e.children.length>0)for(var i=0;i<e.children.length;i++){var n=e.children.item(i),r=n.attributes;for(var o in r){var a=r[o],s=a.nodeName,l=a.nodeValue;void 0!==s&&(t[s]=l)}var c=n.nodeName;if(void 0===t[c])t[c]=w(n);else{if(void 0===t[c].push){var u=t[c];t[c]=[],t[c].push(u)}t[c].push(w(n))}}else t=e.textContent;return t}catch(e){console.log(e.message)}}r.enableXmp=function(){r.isXmpEnabled=!0},r.disableXmp=function(){r.isXmpEnabled=!1},r.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))},r.getTag=function(e,t){if(u(e))return e.exifdata[t]},r.getIptcTag=function(e,t){if(u(e))return e.iptcdata[t]},r.getAllTags=function(e){if(!u(e))return{};var t,i=e.exifdata,n={};for(t in i)i.hasOwnProperty(t)&&(n[t]=i[t]);return n},r.getAllIptcTags=function(e){if(!u(e))return{};var t,i=e.iptcdata,n={};for(t in i)i.hasOwnProperty(t)&&(n[t]=i[t]);return n},r.pretty=function(e){if(!u(e))return"";var t,i=e.exifdata,n="";for(t in i)i.hasOwnProperty(t)&&("object"==typeof i[t]?i[t]instanceof Number?n+=t+" : "+i[t]+" ["+i[t].numerator+"/"+i[t].denominator+"]\r\n":n+=t+" : ["+i[t].length+" values]\r\n":n+=t+" : "+i[t]+"\r\n");return n},r.readFromBinaryFile=function(e){return h(e)},void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i)}).call(this)},38085:function(e,t,i){"use strict";var n=i(85072),r=i.n(n),o=i(97825),a=i.n(o),s=i(77659),l=i.n(s),c=i(55056),u=i.n(c),d=i(10540),h=i.n(d),f=i(41113),p=i.n(f),m=i(80386),g={};g.styleTagTransform=p(),g.setAttributes=u(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=h(),r()(m.A,g),m.A&&m.A.locals&&m.A.locals},85072:function(e){"use strict";var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=n.base?l[0]+n.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var h=i(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(f);else{var p=r(f,n);n.byIndex=s,t.splice(s,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}function r(e,t){var i=t.domAPI(t);return i.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;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var o=n(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=i(o[a]);t[s].references--}for(var l=n(e,r),c=0;c<o.length;c++){var u=i(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},77659:function(e){"use strict";var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},10540: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}},55056:function(e,t,i){"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},97825: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(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,r&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},41113: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))}}},68245:function(e,t,i){"use strict";i.d(t,{Ay:function(){return We}});var n=i(43891),r=i.n(n),o=i(15554),a=i.n(o);e=i.hmd(e);var s="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=c.Symbol,d=Object.prototype,h=d.hasOwnProperty,f=d.toString,p=u?u.toStringTag:void 0,m=Object.prototype.toString,g=u?u.toStringTag:void 0;function v(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":g&&g in Object(e)?function(e){var t=h.call(e,p),i=e[p];try{e[p]=void 0;var n=!0}catch(e){}var r=f.call(e);return n&&(t?e[p]=i:delete e[p]),r}(e):function(e){return m.call(e)}(e)}function b(e){return null!=e&&"object"==typeof e}var w=Array.isArray,y=/\s/,x=/^\s+/;function _(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var C=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,k=/^0o[0-7]+$/i,I=parseInt;function T(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||b(e)&&"[object Symbol]"==v(e)}(e))return NaN;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var i;e=(i=e)?i.slice(0,function(e){for(var t=e.length;t--&&y.test(e.charAt(t)););return t}(i)+1).replace(x,""):i;var n=S.test(e);return n||k.test(e)?I(e.slice(2),n?2:8):C.test(e)?NaN:+e}function O(e){return e}function E(e){if(!_(e))return!1;var t=v(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var P,D=c["__core-js_shared__"],A=(P=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",z=Function.prototype.toString,F=/^\[object .+?Constructor\]$/,j=Function.prototype,R=Object.prototype,M=j.toString,$=R.hasOwnProperty,U=RegExp("^"+M.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var N,L,V,G=Date.now,B=function(){try{var e=function(e){return!(!_(e)||(t=e,A&&A in t))&&(E(e)?U:F).test(function(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(i=null==(t=Object)?void 0:t.defineProperty)?i:void 0;return e({},"",{}),e}catch(e){}var t,i}(),W=B,X=W?function(e,t){return W(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:O,H=(N=X,L=0,V=0,function(){var e=G(),t=16-(e-V);if(V=e,t>0){if(++L>=800)return arguments[0]}else L=0;return N.apply(void 0,arguments)}),Y=H,q=/^(?:0|[1-9]\d*)$/;function Z(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&q.test(e))&&e>-1&&e%1==0&&e<t}function J(e,t,i){"__proto__"==t&&W?W(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function K(e,t){return e===t||e!=e&&t!=t}var Q=Object.prototype.hasOwnProperty;function ee(e,t,i){var n=e[t];Q.call(e,t)&&K(n,i)&&(void 0!==i||t in e)||J(e,t,i)}var te=Math.max;function ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ne(e){return null!=e&&ie(e.length)&&!E(e)}var re=Object.prototype;function oe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)}function ae(e){return b(e)&&"[object Arguments]"==v(e)}var se=Object.prototype,le=se.hasOwnProperty,ce=se.propertyIsEnumerable,ue=ae(function(){return arguments}())?ae:function(e){return b(e)&&le.call(e,"callee")&&!ce.call(e,"callee")},de=ue,he="object"==typeof exports&&exports&&!exports.nodeType&&exports,fe=he&&e&&!e.nodeType&&e,pe=fe&&fe.exports===he?c.Buffer:void 0,me=(pe?pe.isBuffer:void 0)||function(){return!1},ge={};ge["[object Float32Array]"]=ge["[object Float64Array]"]=ge["[object Int8Array]"]=ge["[object Int16Array]"]=ge["[object Int32Array]"]=ge["[object Uint8Array]"]=ge["[object Uint8ClampedArray]"]=ge["[object Uint16Array]"]=ge["[object Uint32Array]"]=!0,ge["[object Arguments]"]=ge["[object Array]"]=ge["[object ArrayBuffer]"]=ge["[object Boolean]"]=ge["[object DataView]"]=ge["[object Date]"]=ge["[object Error]"]=ge["[object Function]"]=ge["[object Map]"]=ge["[object Number]"]=ge["[object Object]"]=ge["[object RegExp]"]=ge["[object Set]"]=ge["[object String]"]=ge["[object WeakMap]"]=!1;var ve="object"==typeof exports&&exports&&!exports.nodeType&&exports,be=ve&&e&&!e.nodeType&&e,we=be&&be.exports===ve&&s.process,ye=function(){try{return be&&be.require&&be.require("util").types||we&&we.binding&&we.binding("util")}catch(e){}}(),xe=ye&&ye.isTypedArray,_e=xe?function(e){return function(t){return e(t)}}(xe):function(e){return b(e)&&ie(e.length)&&!!ge[v(e)]},Ce=_e,Se=Object.prototype.hasOwnProperty;var ke=function(e,t){return function(i){return e(t(i))}}(Object.keys,Object),Ie=ke,Te=Object.prototype.hasOwnProperty;function Oe(e){return ne(e)?function(e,t){var i=w(e),n=!i&&de(e),r=!i&&!n&&me(e),o=!i&&!n&&!r&&Ce(e),a=i||n||r||o,s=a?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!Se.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Z(c,l))||s.push(c);return s}(e):function(e){if(!oe(e))return Ie(e);var t=[];for(var i in Object(e))Te.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)}var Ee,Pe=Object.prototype.hasOwnProperty,De=(Ee=function(e,t){if(oe(t)||ne(t))!function(e,t,i){var n=!i;i||(i={});for(var r=-1,o=t.length;++r<o;){var a=t[r],s=void 0;void 0===s&&(s=e[a]),n?J(i,a,s):ee(i,a,s)}}(t,Oe(t),e);else for(var i in t)Pe.call(t,i)&&ee(e,i,t[i])},function(e,t){return Y(function(e,t,i){return t=te(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=te(n.length-t,0),a=Array(o);++r<o;)a[r]=n[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=n[r];return s[t]=i(a),function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(e,this,s)}}(e,t,O),e+"")}(function(e,t){var i=-1,n=t.length,r=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(r=Ee.length>3&&"function"==typeof r?(n--,r):void 0,o&&function(e,t,i){if(!_(i))return!1;var n=typeof t;return!!("number"==n?ne(i)&&Z(t,i.length):"string"==n&&t in i)&&K(i[t],e)}(t[0],t[1],o)&&(r=n<3?void 0:r,n=1),e=Object(e);++i<n;){var a=t[i];a&&Ee(e,a)}return e})),Ae=function(){return c.Date.now()},ze=Math.max,Fe=Math.min;var je=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default",null,{images:e.images,options:e.options})],2)},Re=[];function Me(e,t,i,n,r,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}const $e={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data(){return{}},computed:{},watch:{images(){this.$nextTick(()=>{this.onChange()})},trigger:{handler(){this.$nextTick(()=>{this.onChange()})},deep:!0},options:{handler(){this.$nextTick(()=>{this.rebuildViewer()})},deep:!0}},mounted(){this.createViewer()},unmounted(){this.destroyViewer()},methods:{onChange(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer(){this.destroyViewer(),this.createViewer()},updateViewer(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer(){this.$viewer&&this.$viewer.destroy()},createViewer(){this.$viewer=new(r())(this.$el,this.options),this.$emit("inited",this.$viewer)}}},Ue={};var Ne=Me($e,je,Re,!1,Le,null,null,null);function Le(e){for(let e in Ue)this[e]=Ue[e]}var Ve=function(){return Ne.exports}();const Ge=({name:e="viewer",debug:t=!1}={})=>{function i(t,i,o=!1,l=!1){a().nextTick(()=>{l&&!function(e){const t=e.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),i=t?t.join(""):void 0;return e.__viewerImageDiffCache===i?(s("Element change detected, but image(s) has not changed"),!1):(s("Image change detected"),e.__viewerImageDiffCache=i,!0)}(t)||(o||!t[`$${e}`]?(n(t),t[`$${e}`]=new(r())(t,i),s("Viewer created")):(t[`$${e}`].update(),s("Viewer updated")))})}function n(t){t[`$${e}`]&&(t[`$${e}`].destroy(),delete t[`$${e}`],s("Viewer destroyed"))}function o(e){e.__viewerMutationObserver&&(e.__viewerMutationObserver.disconnect(),delete e.__viewerMutationObserver,s("Observer destroyed"))}function s(){t&&console.log(...arguments)}return{bind(e,t,n){s("Viewer bind");const r=function(e,t,i){var n,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var i=n,o=r;return n=r=void 0,c=t,a=e.apply(o,i)}function p(e){var i=e-l;return void 0===l||i>=t||i<0||d&&e-c>=o}function m(){var e=Ae();if(p(e))return g(e);s=setTimeout(m,function(e){var i=t-(e-l);return d?Fe(i,o-(e-c)):i}(e))}function g(e){return s=void 0,h&&n?f(e):(n=r=void 0,a)}function v(){var e=Ae(),i=p(e);if(n=arguments,r=this,l=e,i){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=T(t)||0,_(i)&&(u=!!i.leading,o=(d="maxWait"in i)?ze(T(i.maxWait)||0,t):o,h="trailing"in i?!!i.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=r=s=void 0},v.flush=function(){return void 0===s?a:g(Ae())},v}(i,50);r(e,t.value),function(e,{expression:t},i,n){t&&/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)?(e.__viewerUnwatch=i.context.$watch(t,(i,r)=>{s("Change detected by watcher: ",t),n(e,i,!0)},{deep:!0}),s("Watcher created, expression: ",t)):s("Only simple dot-delimited paths can create watcher")}(e,t,n,r),t.modifiers.static||function(e,t,i,n){o(e);const r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!r)return void s("Observer not supported");const a=new r(r=>{r.forEach(r=>{s(`Viewer mutation:${r.type}`),i(e,t,n,!0)})});a.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__viewerMutationObserver=a,s("Observer created")}(e,t.value,r,t.modifiers.rebuild)},unbind(e,t){s("Viewer unbind"),o(e),function(e){e.__viewerUnwatch&&(e.__viewerUnwatch(),delete e.__viewerUnwatch,s("Watcher destroyed"))}(e),n(e)}}},Be=({images:e=[],options:t={}}={})=>{t=De(t,{inline:!1});const i=new(a().extend({render(t){return t("div",{style:{display:"none"},class:["__viewer-token"]},e.map(e=>t("img",{attrs:"string"==typeof e?{src:e}:e})))}}));i.$mount(),document.body.appendChild(i.$el);const n=new(r())(i.$el,t),o=n.destroy.bind(n);return n.destroy=function(){return o(),i.$destroy(),document.body.removeChild(i.$el),n},n.show(),i.$el.addEventListener("hidden",function(){this.viewer===n&&n.destroy()}),n};var We={install(e,{name:t="viewer",debug:i=!1,defaultOptions:n}={}){r().setDefaults(n),e.component(t,De(Ve,{name:t})),e.directive(t,Ge({name:t,debug:i})),e.prototype[`$${t}Api`]=Be},setDefaults(e){r().setDefaults(e)}}},43891:function(e){e.exports=function(){"use strict";function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r(n.key),n)}}function t(e,t,i){return(t=r(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function i(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach(function(i){t(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}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},s="undefined"!=typeof window&&void 0!==window.document,l=s?window:{},c=!(!s||!l.document.documentElement)&&"ontouchstart"in l.document.documentElement,u=!!s&&"PointerEvent"in l,d="viewer",h="move",f="switch",p="zoom",m="".concat(d,"-active"),g="".concat(d,"-close"),v="".concat(d,"-fade"),b="".concat(d,"-fixed"),w="".concat(d,"-fullscreen"),y="".concat(d,"-fullscreen-exit"),x="".concat(d,"-hide"),_="".concat(d,"-hide-md-down"),C="".concat(d,"-hide-sm-down"),S="".concat(d,"-hide-xs-down"),k="".concat(d,"-in"),I="".concat(d,"-invisible"),T="".concat(d,"-loading"),O="".concat(d,"-move"),E="".concat(d,"-open"),P="".concat(d,"-show"),D="".concat(d,"-transition"),A="click",z="dblclick",F="dragstart",j="focusin",R="keydown",M="load",$="error",U=u?"pointerdown":c?"touchstart":"mousedown",N=u?"pointermove":c?"touchmove":"mousemove",L=u?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",V="resize",G="transitionend",B="wheel",W="ready",X="show",H="shown",Y="hide",q="hidden",Z="view",J="viewed",K="move",Q="moved",ee="rotate",te="rotated",ie="scale",ne="scaled",re="zoom",oe="zoomed",ae="play",se="stop",le="".concat(d,"Action"),ce=/\s\s*/,ue=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function de(e){return"string"==typeof e}var he=Number.isNaN||l.isNaN;function fe(e){return"number"==typeof e&&!he(e)}function pe(e){return void 0===e}function me(e){return"object"===o(e)&&null!==e}var ge=Object.prototype.hasOwnProperty;function ve(e){if(!me(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&ge.call(i,"isPrototypeOf")}catch(e){return!1}}function be(e){return"function"==typeof e}function we(e,t){if(e&&be(t))if(Array.isArray(e)||fe(e.length)){var i,n=e.length;for(i=0;i<n&&!1!==t.call(e,e[i],i,e);i+=1);}else me(e)&&Object.keys(e).forEach(function(i){t.call(e,e[i],i,e)});return e}var ye=Object.assign||function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return me(e)&&i.length>0&&i.forEach(function(t){me(t)&&Object.keys(t).forEach(function(i){e[i]=t[i]})}),e},xe=/^(?:width|height|left|top|marginLeft|marginTop)$/;function _e(e,t){var i=e.style;we(t,function(e,t){xe.test(t)&&fe(e)&&(e+="px"),i[t]=e})}function Ce(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function Se(e,t){if(e&&t)if(fe(e.length))we(e,function(e){Se(e,t)});else if(e.classList)e.classList.add(t);else{var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function ke(e,t){e&&t&&(fe(e.length)?we(e,function(e){ke(e,t)}):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Ie(e,t,i){t&&(fe(e.length)?we(e,function(e){Ie(e,t,i)}):i?Se(e,t):ke(e,t))}var Te=/([a-z\d])([A-Z])/g;function Oe(e){return e.replace(Te,"$1-$2").toLowerCase()}function Ee(e,t){return me(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Oe(t)))}function Pe(e,t,i){me(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(Oe(t)),i)}var De=function(){var e=!1;if(s){var t=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",i,n),l.removeEventListener("test",i,n)}return e}();function Ae(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i;t.trim().split(ce).forEach(function(t){if(!De){var o=e.listeners;o&&o[t]&&o[t][i]&&(r=o[t][i],delete o[t][i],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,r,n)})}function ze(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=i;t.trim().split(ce).forEach(function(t){if(n.once&&!De){var o=e.listeners,a=void 0===o?{}:o;r=function(){delete a[t][i],e.removeEventListener(t,r,n);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];i.apply(e,s)},a[t]||(a[t]={}),a[t][i]&&e.removeEventListener(t,a[t][i],n),a[t][i]=r,e.listeners=a}e.addEventListener(t,r,n)})}function Fe(e,t,i,r){var o;return be(Event)&&be(CustomEvent)?o=new CustomEvent(t,n({bubbles:!0,cancelable:!0,detail:i},r)):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,i),e.dispatchEvent(o)}function je(e){var t=e.rotate,i=e.scaleX,n=e.scaleY,r=e.translateX,o=e.translateY,a=[];fe(r)&&0!==r&&a.push("translateX(".concat(r,"px)")),fe(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),fe(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),fe(i)&&1!==i&&a.push("scaleX(".concat(i,")")),fe(n)&&1!==n&&a.push("scaleY(".concat(n,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var Re=l.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(l.navigator.userAgent);function Me(e,t,i){var n=document.createElement("img");if(e.naturalWidth&&!Re)return i(e.naturalWidth,e.naturalHeight),n;var r=document.body||document.documentElement;return n.onload=function(){i(n.width,n.height),Re||r.removeChild(n)},we(t.inheritedAttributes,function(t){var i=e.getAttribute(t);null!==i&&n.setAttribute(t,i)}),n.src=e.src,Re||(n.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;",r.appendChild(n)),n}function $e(e){switch(e){case 2:return S;case 3:return C;case 4:return _;default:return""}}function Ue(e,t){var i=e.pageX,r=e.pageY,o={endX:i,endY:r};return t?o:n({timeStamp:Date.now(),startX:i,startY:r},o)}var Ne,Le={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,i=this.parent;t.inline&&(e={width:Math.max(i.offsetWidth,t.minWidth),height:Math.max(i.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=ye({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&_e(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,i=this.options,n=this.list,r=[];n.innerHTML="",we(this.images,function(t,o){var a=t.src,s=t.alt||function(e){return de(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(a),l=e.getImageURL(t);if(a||l){var c=document.createElement("li"),u=document.createElement("img");we(i.inheritedAttributes,function(e){var i=t.getAttribute(e);null!==i&&u.setAttribute(e,i)}),i.navbar&&(u.src=a||l),u.alt=s,u.setAttribute("data-original-url",l||a),c.setAttribute("data-index",o),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),i.keyboard&&c.setAttribute("tabindex",0),c.appendChild(u),n.appendChild(c),r.push(c)}}),this.items=r,we(r,function(t){var n,r,o=t.firstElementChild;Pe(o,"filled",!0),i.loading&&Se(t,T),ze(o,M,n=function(n){Ae(o,$,r),i.loading&&ke(t,T),e.loadImage(n)},{once:!0}),ze(o,$,r=function(){Ae(o,M,n),i.loading&&ke(t,T)},{once:!0})}),i.transition&&ze(t,J,function(){Se(n,D)},{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var i=t.nextElementSibling,n=parseInt(window.getComputedStyle(i||t).marginLeft,10),r=t.offsetWidth,o=r+n;_e(this.list,ye({width:o*this.length-n},je({translateX:(this.viewerData.width-r)/2-o*e})))}},resetList:function(){var e=this.list;e.innerHTML="",ke(e,D),_e(e,je({translateX:0}))},initImage:function(e){var t,i=this,n=this.options,r=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-a,a),c=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Me(r,n,function(t,r){var o=t/r,a=Math.max(0,Math.min(1,n.initialCoverage)),u=s,d=l;i.imageInitializing=!1,l*o>s?d=s/o:u=l*o,a=fe(a)?a:.9,u=Math.min(u*a,t),d=Math.min(d*a,r);var h=(s-u)/2,f=(l-d)/2,p={left:h,top:f,x:h,y:f,width:u,height:d,oldRatio:1,ratio:u/t,aspectRatio:o,naturalWidth:t,naturalHeight:r},m=ye({},p);n.rotatable&&(p.rotate=c.rotate||0,m.rotate=0),n.scalable&&(p.scaleX=c.scaleX||1,p.scaleY=c.scaleY||1,m.scaleX=1,m.scaleY=1),i.imageData=p,i.initialImageData=m,e&&e()})},renderImage:function(e){var t=this,i=this.image,n=this.imageData;if(_e(i,ye({width:n.width,height:n.height,marginLeft:n.x,marginTop:n.y},je(n))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&Ce(i,D)){var r=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Ae(i,G,r)}},ze(i,G,r,{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="")}},Ve={bind:function(){var e=this.options,t=this.viewer,i=this.canvas,n=this.element.ownerDocument;ze(t,A,this.onClick=this.click.bind(this)),ze(t,F,this.onDragStart=this.dragstart.bind(this)),ze(i,U,this.onPointerDown=this.pointerdown.bind(this)),ze(n,N,this.onPointerMove=this.pointermove.bind(this)),ze(n,L,this.onPointerUp=this.pointerup.bind(this)),ze(n,R,this.onKeyDown=this.keydown.bind(this)),ze(window,V,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&ze(t,B,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&ze(i,z,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,i=this.canvas,n=this.element.ownerDocument;Ae(t,A,this.onClick),Ae(t,F,this.onDragStart),Ae(i,U,this.onPointerDown),Ae(n,N,this.onPointerMove),Ae(n,L,this.onPointerUp),Ae(n,R,this.onKeyDown),Ae(window,V,this.onResize),e.zoomable&&e.zoomOnWheel&&Ae(t,B,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Ae(i,z,this.onDblclick)}},Ge={click:function(e){var t=this.options,i=this.imageData,n=e.target,r=Ee(n,le);switch(r||"img"!==n.localName||"li"!==n.parentElement.localName||(r=Ee(n=n.parentElement,le)),c&&e.isTrusted&&n===this.canvas&&clearTimeout(this.clickCanvasTimeout),r){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(Ee(n,"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(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(c&&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,i=this.options,n=this.image,r=this.index,o=this.viewerData;ke(n,I),i.loading&&ke(this.canvas,T),n.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Ie(n,O,i.movable),Ie(n,D,i.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,be(i.viewed)&&ze(t,J,i.viewed,{once:!0}),Fe(t,J,{originalImage:e.images[r],index:r,image:n},{cancelable:!1})})})},loadImage:function(e){var t=e.target,i=t.parentNode,n=i.offsetWidth||30,r=i.offsetHeight||50,o=!!Ee(t,"filled");Me(t,this.options,function(e,i){var a=e/i,s=n,l=r;r*a>n?o?s=r*a:l=n/a:o?l=n/a:s=r*a,_e(t,ye({width:s,height:l},je({translateX:(n-s)/2,translateY:(r-l)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var i=e.keyCode||e.which||e.charCode;if(13===i&&this.viewer.contains(e.target)&&this.click(e),this.fulled)switch(i){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,i=this.pointers,n=e.buttons,r=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(fe(n)&&1!==n||fe(r)&&0!==r||e.ctrlKey))){e.preventDefault(),e.changedTouches?we(e.changedTouches,function(e){i[e.identifier]=Ue(e)}):i[e.pointerId||0]=Ue(e);var o=!!t.movable&&h;t.zoomOnTouch&&t.zoomable&&Object.keys(i).length>1?o=p:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o=f),!t.transition||o!==h&&o!==p||ke(this.image,D),this.action=o}},pointermove:function(e){var t=this.pointers,i=this.action;this.viewed&&i&&(e.preventDefault(),e.changedTouches?we(e.changedTouches,function(e){ye(t[e.identifier]||{},Ue(e,!0))}):ye(t[e.pointerId||0]||{},Ue(e,!0)),this.change(e))},pointerup:function(e){var t,i=this,n=this.options,r=this.action,o=this.pointers;e.changedTouches?we(e.changedTouches,function(e){t=o[e.identifier],delete o[e.identifier]}):(t=o[e.pointerId||0],delete o[e.pointerId||0]),r&&(e.preventDefault(),!n.transition||r!==h&&r!==p||Se(this.image,D),this.action=!1,c&&r!==p&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),n.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Fe(i.image,z,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){i.imageClicked=!1},500)):(this.imageClicked=!1,n.backdrop&&"static"!==n.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Fe(i.canvas,A,{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();we(this.player.getElementsByTagName("img"),function(t){ze(t,M,e.loadImage.bind(e),{once:!0}),Fe(t,M)})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var i=Number(this.options.zoomRatio)||.1,n=1;e.deltaY?n=e.deltaY>0?1:-1:e.wheelDelta?n=-e.wheelDelta/120:e.detail&&(n=e.detail>0?1:-1),this.zoom(-n*i,!0,null,e)}}},Be={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,i=this.options;if(i.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(be(i.show)&&ze(t,X,i.show,{once:!0}),!1===Fe(t,X)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var n=this.viewer;if(ke(n,x),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("aria-hidden"),i.transition&&!e){var r=this.shown.bind(this);this.transitioning={abort:function(){Ae(n,G,r),ke(n,k)}},Se(n,D),n.initialOffsetWidth=n.offsetWidth,ze(n,G,r,{once:!0}),Se(n,k)}else Se(n,k),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.element,n=this.options;if(n.inline||this.hiding||!this.isShown&&!this.showing)return this;if(be(n.hide)&&ze(i,Y,n.hide,{once:!0}),!1===Fe(i,Y))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var r=this.viewer,o=this.image,a=function(){ke(r,k),e.hidden()};if(n.transition&&!t){var s=function(t){t&&t.target===r&&(Ae(r,G,s),e.hidden())},l=function(){Ce(r,D)?(ze(r,G,s),ke(r,k)):a()};this.transitioning={abort:function(){e.viewed&&Ce(o,D)?Ae(o,G,l):Ce(r,D)&&Ae(r,G,s)}},this.viewed&&Ce(o,D)?(ze(o,G,l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}else a();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 i=this.element,n=this.options,r=this.title,o=this.canvas,a=this.items[t],s=a.querySelector("img"),l=Ee(s,"originalUrl"),c=s.getAttribute("alt"),u=document.createElement("img");if(we(n.inheritedAttributes,function(e){var t=s.getAttribute(e);null!==t&&u.setAttribute(e,t)}),u.src=l,u.alt=c,be(n.view)&&ze(i,Z,n.view,{once:!0}),!1===Fe(i,Z,{originalImage:this.images[t],index:t,image:u})||!this.isShown||this.hiding||this.played)return this;var d=this.items[this.index];d&&(ke(d,m),d.removeAttribute("aria-selected")),Se(a,m),a.setAttribute("aria-selected",!0),n.focus&&a.focus(),this.image=u,this.viewed=!1,this.index=t,this.imageData={},Se(u,I),n.loading&&Se(o,T),o.innerHTML="",o.appendChild(u),this.renderList(),r.innerHTML="";var h,f,p=function(){var t,i=e.imageData,o=Array.isArray(n.title)?n.title[1]:n.title;r.innerHTML=de(t=be(o)?o.call(e,u,i):"".concat(c," (").concat(i.naturalWidth," × ").concat(i.naturalHeight,")"))?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t};return ze(i,J,p,{once:!0}),this.viewing={abort:function(){Ae(i,J,p),u.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(u.src="",Ae(u,M,h),e.timeout&&clearTimeout(e.timeout))}},u.complete?this.load():(ze(u,M,h=function(){Ae(u,$,f),e.load()},{once:!0}),ze(u,$,f=function(){Ae(u,M,h),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),ke(u,I),n.loading&&ke(e.canvas,T)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){ke(u,I),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,i=this.index+1;return i>t&&(i=e?0:t),this.view(i),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.imageData;return this.moveTo(pe(e)?e:i.x+Number(e),pe(t)?t:i.y+Number(t)),this},moveTo:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.element,o=this.options,a=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&o.movable){var s=a.x,l=a.y,c=!1;if(fe(e)?c=!0:e=s,fe(i)?c=!0:i=l,c){if(be(o.move)&&ze(r,K,o.move,{once:!0}),!1===Fe(r,K,{x:e,y:i,oldX:s,oldY:l,originalEvent:n}))return this;a.x=e,a.y=i,a.left=e,a.top=i,this.moving=!0,this.renderImage(function(){t.moving=!1,be(o.moved)&&ze(r,Q,o.moved,{once:!0}),Fe(r,Q,{x:e,y:i,oldX:s,oldY:l,originalEvent:n},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,i=this.element,n=this.options,r=this.imageData;if(fe(e=Number(e))&&this.viewed&&!this.played&&n.rotatable){var o=r.rotate;if(be(n.rotate)&&ze(i,ee,n.rotate,{once:!0}),!1===Fe(i,ee,{degree:e,oldDegree:o}))return this;r.rotate=e,this.rotating=!0,this.renderImage(function(){t.rotating=!1,be(n.rotated)&&ze(i,te,n.rotated,{once:!0}),Fe(i,te,{degree:e,oldDegree:o},{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,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.element,r=this.options,o=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&r.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(fe(e)?l=!0:e=a,fe(i)?l=!0:i=s,l){if(be(r.scale)&&ze(n,ie,r.scale,{once:!0}),!1===Fe(n,ie,{scaleX:e,scaleY:i,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=e,o.scaleY=i,this.scaling=!0,this.renderImage(function(){t.scaling=!1,be(r.scaled)&&ze(n,ne,r.scaled,{once:!0}),Fe(n,ne,{scaleX:e,scaleY:i,oldScaleX:a,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(r.width*e/r.naturalWidth,t,i,n),this},zoomTo:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.element,s=this.options,l=this.pointers,c=this.imageData,u=c.x,d=c.y,h=c.width,f=c.height,p=c.naturalWidth,m=c.naturalHeight;if(fe(e=Math.max(0,e))&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var g=Math.max(.01,s.minZoomRatio),v=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,g),v)}if(r)switch(r.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 b=p*e,w=m*e,y=b-h,x=w-f,_=c.ratio;if(be(s.zoom)&&ze(a,re,s.zoom,{once:!0}),!1===Fe(a,re,{ratio:e,oldRatio:_,originalEvent:r}))return this;if(this.zooming=!0,r){var C=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),S=l&&Object.keys(l).length>0?function(e){var t=0,i=0,n=0;return we(e,function(e){var r=e.startX,o=e.startY;t+=r,i+=o,n+=1}),{pageX:t/=n,pageY:i/=n}}(l):{pageX:r.pageX,pageY:r.pageY};c.x-=y*((S.pageX-C.left-u)/h),c.y-=x*((S.pageY-C.top-d)/f)}else ve(n)&&fe(n.x)&&fe(n.y)?(c.x-=y*((n.x-u)/h),c.y-=x*((n.y-d)/f)):(c.x-=y/2,c.y-=x/2);c.left=c.x,c.top=c.y,c.width=b,c.height=w,c.oldRatio=_,c.ratio=e,this.renderImage(function(){t.zooming=!1,be(s.zoomed)&&ze(a,oe,s.zoomed,{once:!0}),Fe(a,oe,{ratio:e,oldRatio:_,originalEvent:r},{cancelable:!1})}),i&&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 i=this.element,n=this.options;if(be(n.play)&&ze(i,ae,n.play,{once:!0}),!1===Fe(i,ae))return this;var r=this.player,o=this.loadImage.bind(this),a=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=o,t&&this.requestFullscreen(t),Se(r,P),we(this.items,function(e,t){var i=e.querySelector("img"),c=document.createElement("img");c.src=Ee(i,"originalUrl"),c.alt=i.getAttribute("alt"),c.referrerPolicy=i.referrerPolicy,s+=1,Se(c,v),Ie(c,D,n.transition),Ce(e,m)&&(Se(c,k),l=t),a.push(c),ze(c,M,o,{once:!0}),r.appendChild(c)}),fe(n.interval)&&n.interval>0){var c=function(){clearTimeout(e.playing.timeout),ke(a[l],k),Se(a[l=(l-=1)>=0?l:s-1],k),e.playing.timeout=setTimeout(c,n.interval)},u=function(){clearTimeout(e.playing.timeout),ke(a[l],k),Se(a[l=(l+=1)<s?l:0],k),e.playing.timeout=setTimeout(u,n.interval)};s>1&&(this.playing={prev:c,next:u,timeout:setTimeout(u,n.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,i=this.options;if(be(i.stop)&&ze(t,se,i.stop,{once:!0}),!1===Fe(t,se))return this;var n=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,we(n.getElementsByTagName("img"),function(t){Ae(t,M,e.onLoadWhenPlay)}),ke(n,P),n.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,i=this.viewer,n=this.image,r=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),Se(this.button,y),t.transition&&(ke(r,D),this.viewed&&ke(n,D)),Se(i,b),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("style"),_e(i,{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(){Se(n,D),Se(r,D)},0)})})),this},exit:function(){var e=this,t=this.options,i=this.viewer,n=this.image,r=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),ke(this.button,y),t.transition&&(ke(r,D),this.viewed&&ke(n,D)),t.focus&&this.clearEnforceFocus(),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),ke(i,b),_e(i,{zIndex:t.zIndexInline}),this.viewerData=ye({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){Se(n,D),Se(r,D)},0)})}),this):this},tooltip:function(){var e=this,t=this.options,i=this.tooltipBox,n=this.imageData;return this.viewed&&!this.played&&t.tooltip?(i.textContent="".concat(Math.round(100*n.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&Fe(i,G),Se(i,P),Se(i,v),Se(i,D),i.removeAttribute("aria-hidden"),i.initialOffsetWidth=i.offsetWidth,Se(i,k)):(Se(i,P),i.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(ze(i,G,function(){ke(i,P),ke(i,v),ke(i,D),i.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),ke(i,k),e.fading=!0):(ke(i,P),i.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,i=this.options,n=this.isImg;if(n&&!t.parentNode)return this.destroy();var r=[];if(we(n?[t]:t.querySelectorAll("img"),function(t){be(i.filter)?i.filter.call(e,t)&&r.push(t):e.getImageURL(t)&&r.push(t)}),!r.length)return this;if(this.images=r,this.length=r.length,this.ready){var o=[];if(we(this.items,function(e,t){var i=e.querySelector("img"),n=r[t];n&&i&&n.src===i.src&&n.alt===i.alt||o.push(t)}),_e(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];Se(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[d]?(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||Ae(e,A,this.onStart),e[d]=void 0,this):this}},We={getImageURL:function(e){var t=this.options.url;return de(t)?e.getAttribute(t):be(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),ze(document,j,this.onFocusin=function(t){var i=e.viewer,n=t.target;if(n!==document&&n!==i&&!i.contains(n)){for(;n;){if(null!==n.getAttribute("tabindex")||"true"===n.getAttribute("aria-modal"))return;n=n.parentElement}i.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Ae(document,j,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;Se(e,E),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;ke(e,E),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,i=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(i.focus(),this.enforceFocus()),be(t.shown)&&ze(e,H,t.shown,{once:!0}),!1!==Fe(e,H)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,i=this.viewer;t.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),Se(i,x),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),i.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)&&ze(e,q,t.hidden,{once:!0}),Fe(e,q,null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var i=t.documentElement;i.requestFullscreen?ve(e)?i.requestFullscreen(e):i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.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 t=this.options,i=this.pointers,r=i[Object.keys(i)[0]];if(r){var o=r.endX-r.startX,a=r.endY-r.startY;switch(this.action){case h:0===o&&0===a||(this.pointerMoved=!0,this.move(o,a,e));break;case p:this.zoom(function(e){var t=n({},e),i=[];return we(e,function(e,n){delete t[n],we(t,function(t){var n=Math.abs(e.startX-t.startX),r=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+r*r),l=(Math.sqrt(o*o+a*a)-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 f:this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(t.loop):o<-1&&this.next(t.loop))}we(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}},Xe=l.Viewer,He=(Ne=-1,function(){return Ne+=1}),Ye=function(){function t(e){var i=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,t),!e||1!==e.nodeType)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=ye({},a,ve(i)&&i),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=He(),this.init()}return i=t,r=[{key:"noConflict",value:function(){return window.Viewer=Xe,t}},{key:"setDefaults",value:function(e){ye(a,ve(e)&&e)}}],(n=[{key:"init",value:function(){var e=this,t=this.element,i=this.options;if(!t[d]){t[d]=this,i.focus&&!i.keyboard&&(i.focus=!1);var n="img"===t.localName,r=[];if(we(n?[t]:t.querySelectorAll("img"),function(t){be(i.filter)?i.filter.call(e,t)&&r.push(t):e.getImageURL(t)&&r.push(t)}),this.isImg=n,this.length=r.length,this.images=r,this.initBody(),pe(document.createElement(d).style.transition)&&(i.transition=!1),i.inline){var o=0,a=function(){var t;(o+=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(){we(r,function(e){e.complete||(Ae(e,M,a),Ae(e,$,a))})}},we(r,function(e){var t,i;e.complete?a():(ze(e,M,t=function(){Ae(e,$,i),a()},{once:!0}),ze(e,$,i=function(){Ae(e,M,t),a()},{once:!0}))})}else ze(t,A,this.onStart=function(t){var n=t.target;"img"!==n.localName||be(i.filter)&&!i.filter.call(e,n)||e.view(e.images.indexOf(n))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,i=e.parentNode,n=document.createElement("div");n.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 r=n.querySelector(".".concat(d,"-container")),o=r.querySelector(".".concat(d,"-title")),a=r.querySelector(".".concat(d,"-toolbar")),s=r.querySelector(".".concat(d,"-navbar")),l=r.querySelector(".".concat(d,"-button")),c=r.querySelector(".".concat(d,"-canvas"));if(this.parent=i,this.viewer=r,this.title=o,this.toolbar=a,this.navbar=s,this.button=l,this.canvas=c,this.footer=r.querySelector(".".concat(d,"-footer")),this.tooltipBox=r.querySelector(".".concat(d,"-tooltip")),this.player=r.querySelector(".".concat(d,"-player")),this.list=r.querySelector(".".concat(d,"-list")),r.id="".concat(d).concat(this.id),o.id="".concat(d,"Title").concat(this.id),Se(o,t.title?$e(Array.isArray(t.title)?t.title[0]:t.title):x),Se(s,t.navbar?$e(t.navbar):x),Ie(l,x,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(Se(r,"".concat(d,"-backdrop")),t.inline||"static"===t.backdrop||Pe(c,le,"hide")),de(t.className)&&t.className&&t.className.split(ce).forEach(function(e){Se(r,e)}),t.toolbar){var u=document.createElement("ul"),h=ve(t.toolbar),f=ue.slice(0,3),p=ue.slice(7,9),m=ue.slice(9);h||Se(a,$e(t.toolbar)),we(h?t.toolbar:ue,function(e,i){var n=h&&ve(e),r=h?Oe(i):e,o=n&&!pe(e.show)?e.show:e;if(o&&(t.zoomable||-1===f.indexOf(r))&&(t.rotatable||-1===p.indexOf(r))&&(t.scalable||-1===m.indexOf(r))){var a=n&&!pe(e.size)?e.size:e,s=n&&!pe(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),Se(l,"".concat(d,"-").concat(r)),be(s)||Pe(l,le,r),fe(o)&&Se(l,$e(o)),-1!==["small","large"].indexOf(a)?Se(l,"".concat(d,"-").concat(a)):"play"===r&&Se(l,"".concat(d,"-large")),be(s)&&ze(l,A,s),u.appendChild(l)}}),a.appendChild(u)}else Se(a,x);if(!t.rotatable){var y=a.querySelectorAll('li[class*="rotate"]');Se(y,I),we(y,function(e){a.appendChild(e)})}if(t.inline)Se(l,w),_e(r,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(i).position&&_e(i,{position:"relative"}),i.insertBefore(r,e.nextSibling);else{Se(l,g),Se(r,b),Se(r,v),Se(r,x),_e(r,{zIndex:t.zIndex});var _=t.container;de(_)&&(_=e.ownerDocument.querySelector(_)),_||(_=this.body),_.appendChild(r)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,be(t.ready)&&ze(e,W,t.ready,{once:!0}),!1!==Fe(e,W)?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}])&&e(i.prototype,n),r&&e(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n,r}();return ye(Ye.prototype,Le,Ve,Ge,Be,We),Ye}()},78851:function(e,t,i){"use strict";i.d(t,{A:function(){return f}});var n=i(15554),r=i.n(n),o=i(36773),a=i.n(o),s=i(68245),l=i(47642),c=(i(38085),i(29795)),u=i(48622);r().use(l.Dialog),r().use(l.Drawer),r().use(s.Ay),s.Ay.setDefaults({url:"data-source"});var d={data(){return{curPreviewItem:{},officeUrl:"",opened:!1,windowH:0}},computed:{pdfViewer(){return a().get(this.fieldConf,"style.pdf_viewer","default")},perm(){return a().get(this.fieldConf,"perm",{})},pdf_annotation_perm(){return a().get(this.fieldConf,"pdf_annotation_perm",{annotatable:!1,annotations_visible:!1})},userId(){return a().get(this.$bpm.userInfo,"user_id",0)},userName(){return a().get(this.$bpm.userInfo,"user_name","")}},mounted(){this.windowH=document.body.clientHeight/100*99-50},beforeDestroy(){this.$viewer&&"function"==typeof this.$viewer.destroy&&this.$viewer.destroy()},methods:{canPreview(e){let t=this.getFileTypeClass(e),i="undefined"!=typeof WPS_APP_ID&&Boolean(WPS_APP_ID);switch(t){case"fa-file-excel-o":return Boolean(e.wps_id||e.wps_file_id)&&i;case"fa-file-pdf-o":return!0;default:return!1}},inited(e){e.options.view=this.view,this.$viewer=e},view(e){let t=a().get(e,"detail.index",0),i=a().filter(this.curVal,e=>this.isImageFile(e)),n=a().get(i,t);(0,u.aU)(n)},isDwg(e){return a().endsWith(a().get(e,"name",""),".dwg")},getFileTypeClass(e){return(0,u.cF)(e.name,e.type)},isImageFile(e){return a().startsWith(e.type,"image")},fileLink(e,t){if(!e||!e.md5)return e&&e.src?e.src:void 0;let i={file_md5:e.md5};return t&&(i.width=t),this.isImageFile(e)||(i.is_file=1),(0,c.zC)("/platform/v1/papi/web_file/image_view/",i)},previewOfficeFile(e){if(!e.wps_id&&!e.wps_file_id)return!1;e.fieldConf=this.fieldConf;try{return this.$store.commit("setDialogInfo",{type:"ViewFile",visible:!0,data:e}),this.$store.commit("docs/setDocsDialogInfo",{type:"PreviewFile",visible:!0,data:e}),!0}catch(e){return console.log("previewOfficeFile error",e),!1}},async getPreviewInfo(e){let t=await zj.net.w.noapi({url:`/platform/v1/papi/app_file/download/?file_md5=${e.md5}&webp=0`}),i=a().get(t,"url_list.0.path.0",""),n=(0,u.ti)(i||"",e.type);return"application/pdf"==e.type&&(n="pdf"),"application/vnd.ms-excel"==e.type&&(n="ms-excel"),{previewUrl:i,fileSuffix:n}},buildPdfPreviewUrl(e,t){let i=e||"",n=i.lastIndexOf(".com"),r=4;if(-1==n&&(n=i.lastIndexOf(".cn"),r=3),-1!=n&&(i=i.substring(n+r,i.length)),i=encodeURIComponent(i),"inkLayer"==this.pdfViewer){let e=!1,n="view";this.pdf_annotation_perm.annotatable&&(e=!0,n="edit"),this.pdf_annotation_perm.annotations_visible&&(n="edit");let r=`/public_pdf_linklayer/index.html?mode=${n}&user_name=${this.userName}&user_id=${this.userId}&can_annotate=${e}&file=${i}&md5=${t.md5}&tag=${t.md5}${this.fieldConf.id}${zj.pageParam().project_id||""}${this.$bpm.curFormId||zj.pageParam().form_id||""}`,o=zj.ui.locale();return o&&(r=r+"&lang="+o),zj.pageParam().token&&(r=r+"&token="+zj.pageParam().token),r}return(0,c.Fr)()?`/public/app3/bpm/view_pdf.html?url=${i}`:`/public/bpm/app/view_pdf.html?url=${i}`},async previewPDF(e,t){let i=t;return i||(i=(await this.getPreviewInfo(e)).previewUrl),this.officeUrl=this.buildPdfPreviewUrl(i,e),this.opened=!0,!0},async openPreview(e,t={}){let{checkPreviewable:i=!1,skipDwg:n=!1}=t;if(!e)return!1;if(n&&"dwg/dwg"==e.type)return!1;if(i&&!this.canPreview(e))return!1;this.curPreviewItem=e;let{previewUrl:r,fileSuffix:o}=await this.getPreviewInfo(e);return"pdf"==o?this.previewPDF(e,r):("xls"==o||"xlsx"==o||"ms-excel"==o||"sheet"==o)&&this.previewOfficeFile(e)},reviewOnMobile(){},download(e){window.open(`/platform/v1/papi/web_file/web_download/?file_md5=${e.md5}`)},onHide(e){this.opened=!1,this.officeUrl="","function"==typeof e&&e()},onOpen(){this.opened=!0}}},h=(0,i(14486).A)(d,void 0,void 0,!1,null,null,null);h.options.__file="components/lib/bpmMulFile/src/part/lib/mixin.vue";var f=h.exports},14486:function(e,t,i){"use strict";function n(e,t,i,n,r,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}i.d(t,{A:function(){return n}})},34868:function(e){"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E"},47642:function(e){e.exports=function(){return this.ELEMENT}()},15554:function(e){e.exports=function(){return this.Vue}()},5344:function(e){e.exports=function(){return this.jQuery}()},36773:function(t){"use strict";t.exports=e},65360:function(e){"use strict";e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=i,o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.b="undefined"!=typeof document&&document.baseURI||self.location.href,o.nc=void 0;var a={};return function(){"use strict";o.r(a),o.d(a,{default:function(){return V}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._b({tag:"component",staticClass:"bpm-ocr",attrs:{fieldConf:e.fieldConf,container:e.container,row:e.row,mode:e.mode,formName:e.formName,uiType:e.uiType},on:{input:e.handleInput,change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bpm-ocr-edit"},[i("el-upload",{ref:"uploader",attrs:{action:e.uploadUrl,name:"userfile","show-file-list":!1,drag:"",multiple:"",limit:e.maxCount,accept:e.acceptExtensions,"before-upload":e.handleBeforeUpload,"on-success":e.handleUploadSuccess,"on-error":e.handleUploadError,disabled:e.disabled}},[i("i",{staticClass:"el-icon-upload"}),e._v(" "),i("div",{staticClass:"el-upload__text"},[e._v("\n "+e._s(e.$z("将文件拖到此处,或点击上传","c.drag_file_upload_tip"))+"\n ")]),e._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("\n 支持图片(JPG/PNG)及 PDF 文件,单个文件不超过 "+e._s(e.maxSize)+"MB\n ")])]),e._v(" "),e.curVal&&e.curVal.length?i("div",{staticClass:"ocr-file-list"},[i("viewer",{staticStyle:{width:"100%"},attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,function(t,n){return i("div",{key:t.id||t.md5||n,staticClass:"ocr-file-item"},[i("div",{staticClass:"ocr-file-header"},[i("div",{staticClass:"file-thumb",on:{click:function(i){e.isImageFile(t)?e.previewImg(t):e.preview(t)}}},[e.isImageFile(t)?i("img",{staticClass:"thumb-img",attrs:{src:e.fileLink(t,100),"data-source":e.fileLink(t,-1),alt:""}}):i("i",{staticClass:"fa thumb-icon",class:e.getFileTypeClass(t),attrs:{"aria-hidden":"true"}})]),e._v(" "),i("div",{staticClass:"file-meta"},[i("div",{staticClass:"file-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),e._v(" "),i("div",{staticClass:"file-status-row"},[t.ocr_status===e.OCR_STATUS.PENDING?i("span",{staticClass:"status-badge status-pending"},[i("i",{staticClass:"el-icon-time"}),e._v(" "+e._s(e.$z("等待识别","c.ocr_pending"))+"\n ")]):t.ocr_status===e.OCR_STATUS.PROCESSING?i("span",{staticClass:"status-badge status-processing"},[i("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$z("识别中","c.ocr_recognizing"))+" ("+e._s(t.ocr_progress||0)+"%)\n ")]):t.ocr_status===e.OCR_STATUS.FINISHED&&t.ocr_result===e.OCR_RESULT.SUCCESS?i("span",{staticClass:"status-badge status-success"},[i("i",{staticClass:"el-icon-circle-check"}),e._v(" "+e._s(e.$z("识别成功","c.ocr_success"))+"\n ")]):t.ocr_status===e.OCR_STATUS.FINISHED&&t.ocr_result===e.OCR_RESULT.FAILED?i("span",{staticClass:"status-badge status-failed"},[i("i",{staticClass:"el-icon-circle-close"}),e._v(" "+e._s(e.$z("识别失败","c.ocr_failed"))+"\n ")]):e._e()])]),e._v(" "),i("div",{staticClass:"file-actions"},[e.canPreview(t)?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t)}}},[e._v("\n "+e._s(e.$z("预览","c.preview"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:e.disabled||t.ocr_status===e.OCR_STATUS.PROCESSING},on:{click:function(i){return e.handleReOcr(t)}}},[e._v("\n "+e._s(e.$z("重新识别","c.re_ocr"))+"\n ")]),e._v(" "),i("el-button",{staticClass:"btn-delete",attrs:{type:"text",size:"small",disabled:e.disabled},on:{click:function(i){return e.handleRemove(t)}}},[e._v("\n "+e._s(e.$z("删除","c.delete"))+"\n ")])],1)]),e._v(" "),t.ocr_status===e.OCR_STATUS.PROCESSING?i("div",{staticClass:"ocr-progress-bar"},[i("el-progress",{attrs:{percentage:t.ocr_progress||0,status:100===t.ocr_progress?"success":void 0}})],1):e._e(),e._v(" "),t.ocr_status===e.OCR_STATUS.FINISHED&&t.ocr_result===e.OCR_RESULT.FAILED?i("div",{staticClass:"ocr-error-tip"},[i("el-alert",{attrs:{title:e.getErrorMessage(t),type:"error",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),e.showRawData&&t.ocr_raw_data&&Object.keys(t.ocr_raw_data).length>0?i("div",{staticClass:"ocr-raw-data-section"},[i("el-collapse",{model:{value:e.activeCollapseMap[t.id||t.md5],callback:function(i){e.$set(e.activeCollapseMap,t.id||t.md5,i)},expression:"activeCollapseMap[item.id || item.md5]"}},[i("el-collapse-item",{attrs:{name:"raw",title:e.$z("查看识别原始数据","c.ocr_view_raw_data")}},[i("div",{staticClass:"raw-json-container"},[i("pre",[i("code",[e._v(e._s(e.formatJson(t.ocr_raw_data)))])])])])],1)],1):e._e()])}),0)],1):e._e(),e._v(" "),i("el-drawer",{directives:[{name:"el-drawer-drag-width",rawName:"v-el-drawer-drag-width",value:{allowBackground:!0},expression:"{ allowBackground: true }"}],staticClass:"file-modal",attrs:{"append-to-body":"","custom-class":"preview-drawer","close-on-click-modal":!1,wrapperClosable:!1,visible:e.opened,"before-close":e.onHide,title:e.curPreviewItem.name||e.$z("文件预览","c.file_preview"),size:"50%",modal:!1},on:{"update:visible":function(t){e.opened=t},open:e.onOpen}},[i("iframe",{attrs:{frameborder:"0",src:e.officeUrl,width:"100%",height:e.windowH}})])],1)};t._withStripped=!0;var i=o(36773),n=o.n(i),r=o(78851),s=o(48622),l=o(65360),c=o.n(l);const u={PENDING:"pending",PROCESSING:"processing",FINISHED:"finished"},d={SUCCESS:"success",FAILED:"failed"};class h{constructor({onProgress:e,onSuccess:t,onError:i,pollingInterval:n=3e3}={}){this.onProgress=e||(()=>{}),this.onSuccess=t||(()=>{}),this.onError=i||(()=>{}),this.pollingInterval=n,this.timerMap=new Map,this.errorCountMap=new Map}async submitAsyncTask(e){if(!window.zj||!window.zj.net)throw new Error("zj.net is not available");const t=window.zj.pageParam&&window.zj.pageParam().group_id||0,i=window.zj.app&&window.zj.app.accessInfo&&window.zj.app.accessInfo.user_id||0,n=await window.zj.net.w.noapi({url:"/base_srv_module/v2/gapi/task/async_notify_submit",method:"POST",data:c().stringify({group_id:t,name:`OCR识别MD5_${e}`,vendor_code:"csmart",enable_notify:0,task_type:1,creator:i,file_md5:e})}),r=n?.task?.id;if(!r)throw new Error(n?.error_msg||n?.message||"未能获取 OCR 任务 ID");return r}startPolling(e,t){this.stop(e),this.errorCountMap.set(e,0);const i=async()=>{try{const i=await window.zj.net.w.noapi({url:"/base_srv_module/v2/gapi/task/detail",method:"POST",data:c().stringify({id:t})}),n=i?.task||{},r=Number(n.status);if(this.errorCountMap.set(e,0),[1,2,3,4,10,11,12,13,14].includes(r)){const t=Math.min(n.process||15,99);this.onProgress(e,t,n)}else if(30===r){this.stop(e);const t=n.result?.callback||n.result||{};this.onSuccess(e,t,n)}else{this.stop(e);const t=n.error_msg||n.message||"OCR 识别发生异常";this.onError(e,t,n)}}catch(t){const i=(this.errorCountMap.get(e)||0)+1;this.errorCountMap.set(e,i),i>=20&&(this.stop(e),this.onError(e,"网络请求连续异常,已中断轮询",t))}};i();const n=setInterval(i,this.pollingInterval);this.timerMap.set(e,n)}stop(e){this.timerMap.has(e)&&(clearInterval(this.timerMap.get(e)),this.timerMap.delete(e)),this.errorCountMap.delete(e)}destroy(){this.timerMap.forEach(e=>{clearInterval(e)}),this.timerMap.clear(),this.errorCountMap.clear()}}var f={name:"BpmOcrEditor",mixins:[r.A],props:{value:{type:Array,default:()=>[]},fieldConf:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},data(){return{curVal:[],OCR_STATUS:u,OCR_RESULT:d,taskManager:null,activeCollapseMap:{}}},computed:{uploadUrl(){return n().get(this.fieldConf,"options.upload_url")||"/platform/v1/papi/app_file/upload/"},syncMode(){return n().get(this.fieldConf,"options.sync_mode","async")},showRawData(){return n().get(this.fieldConf,"options.show_raw_data",!0)},maxCount(){return n().get(this.fieldConf,"options.check.max_count",10)},maxSize(){return n().get(this.fieldConf,"options.max_size",20)},acceptExtensions(){const e=n().get(this.fieldConf,"options.accept_types",[]);return e.length>0?e.join(","):".jpg,.jpeg,.png,.pdf,image/jpeg,image/png,application/pdf"},photo(){return(this.curVal||[]).filter(e=>(0,s.u)(e)).map(e=>this.fileLink(e,-1))}},watch:{value:{handler(e){Array.isArray(e)?this.curVal=e:this.curVal=[]},immediate:!0}},mounted(){this.initTaskManager(),this.resumeUnfinishedTasks()},beforeDestroy(){this.taskManager&&this.taskManager.destroy()},methods:{isImageFile(e){return(0,s.u)(e)},getFileTypeClass(e){return(0,s.cF)(e.name||"",e.type||"")},formatJson(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}},getErrorMessage(e){return e.ocr_messages&&e.ocr_messages.length>0?e.ocr_messages.join(";"):"OCR 识别失败,请检查文件清晰度或重试"},initTaskManager(){this.taskManager=new h({onProgress:(e,t)=>{const i=this.curVal.find(t=>(t.id||t.md5)===e);i&&(i.ocr_status=u.PROCESSING,i.ocr_progress=t,this.emitChange())},onSuccess:(e,t)=>{const i=this.curVal.find(t=>(t.id||t.md5)===e);i&&(i.ocr_status=u.FINISHED,i.ocr_result=d.SUCCESS,i.ocr_progress=100,i.ocr_raw_data=t,i.ocr_messages=[],this.emitChange())},onError:(e,t)=>{const i=this.curVal.find(t=>(t.id||t.md5)===e);i&&(i.ocr_status=u.FINISHED,i.ocr_result=d.FAILED,i.ocr_messages=[t],this.emitChange())}})},resumeUnfinishedTasks(){(this.curVal||[]).forEach(e=>{if(e.ocr_status===u.PROCESSING&&e.ocr_task_id){const t=e.id||e.md5;this.taskManager.startPolling(t,e.ocr_task_id)}})},handleBeforeUpload(e){return this.curVal.length>=this.maxCount?(this.$message.warning(`最多允许上传 ${this.maxCount} 个文件`),!1):!!(e.size/1024/1024<this.maxSize)||(this.$message.error(`文件大小不能超过 ${this.maxSize}MB!`),!1)},async handleUploadSuccess(e,t){const i=e?.data?.file_md5||e?.file_md5;if(!i)return void this.$message.error("上传成功但未获取到文件 MD5 标识");if(this.curVal.some(e=>e.md5===i))return void this.$message.warning("该文件已上传,请勿重复添加");const n={id:`ocr_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,md5:i,name:t.name,type:t.raw?.type||(t.name.endsWith(".pdf")?"application/pdf":"image/jpeg"),upload_time:Math.floor(Date.now()/1e3),ocr_task_id:void 0,ocr_status:u.PENDING,ocr_progress:0,ocr_result:void 0,ocr_raw_data:void 0,ocr_messages:[]};this.curVal.push(n),this.emitChange(),this.triggerOcr(n)},handleUploadError(){this.$message.error("文件上传失败,请重试")},async triggerOcr(e){const t=e.id||e.md5;if("async"===this.syncMode){e.ocr_status=u.PROCESSING,e.ocr_progress=10,this.emitChange();try{const i=await this.taskManager.submitAsyncTask(e.md5);e.ocr_task_id=i,this.emitChange(),this.taskManager.startPolling(t,i)}catch(t){e.ocr_status=u.FINISHED,e.ocr_result=d.FAILED,e.ocr_messages=[t.message||"提交 OCR 识别任务失败"],this.emitChange()}}else{e.ocr_status=u.PROCESSING,e.ocr_progress=50,this.emitChange();try{const i=await this.taskManager.submitAsyncTask(e.md5);e.ocr_task_id=i,this.taskManager.startPolling(t,i)}catch(t){e.ocr_status=u.FINISHED,e.ocr_result=d.FAILED,e.ocr_messages=[t.message||"识别失败"],this.emitChange()}}},handleReOcr(e){const t=e.id||e.md5;this.taskManager.stop(t),e.ocr_status=u.PENDING,e.ocr_progress=0,e.ocr_result=void 0,e.ocr_raw_data=void 0,e.ocr_messages=[],this.emitChange(),this.triggerOcr(e)},handleRemove(e){const t=e.id||e.md5;this.taskManager.stop(t),this.curVal=this.curVal.filter(e=>(e.id||e.md5)!==t),this.emitChange()},emitChange(){this.$emit("input",this.curVal),this.$emit("change",this.curVal)}}},p=o(85072),m=o.n(p),g=o(97825),v=o.n(g),b=o(77659),w=o.n(b),y=o(55056),x=o.n(y),_=o(10540),C=o.n(_),S=o(41113),k=o.n(S),I=o(47688),T={};T.styleTagTransform=k(),T.setAttributes=x(),T.insert=w().bind(null,"head"),T.domAPI=v(),T.insertStyleElement=C(),m()(I.A,T),I.A&&I.A.locals&&I.A.locals;var O=o(14486),E=(0,O.A)(f,t,[],!1,null,"7f6a5f5a",null);E.options.__file="components/lib/bpmOcr/src/part/editor.vue";var P=E.exports,D=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bpm-ocr-reader"},[e.curVal&&0!==e.curVal.length?i("div",{staticClass:"ocr-file-list"},[i("viewer",{staticStyle:{width:"100%"},attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,function(t,n){return i("div",{key:t.id||t.md5||n,staticClass:"ocr-file-item"},[i("div",{staticClass:"ocr-file-header"},[i("div",{staticClass:"file-thumb",on:{click:function(i){e.isImageFile(t)?e.previewImg(t):e.preview(t)}}},[e.isImageFile(t)?i("img",{staticClass:"thumb-img",attrs:{src:e.fileLink(t,100),"data-source":e.fileLink(t,-1),alt:""}}):i("i",{staticClass:"fa thumb-icon",class:e.getFileTypeClass(t),attrs:{"aria-hidden":"true"}})]),e._v(" "),i("div",{staticClass:"file-meta"},[i("div",{staticClass:"file-name",attrs:{title:t.name}},[e._v(e._s(t.name))]),e._v(" "),i("div",{staticClass:"file-status-row"},[t.ocr_status===e.OCR_STATUS.FINISHED&&t.ocr_result===e.OCR_RESULT.SUCCESS?i("span",{staticClass:"status-badge status-success"},[i("i",{staticClass:"el-icon-circle-check"}),e._v(" "+e._s(e.$z("识别成功","c.ocr_success"))+"\n ")]):t.ocr_status===e.OCR_STATUS.FINISHED&&t.ocr_result===e.OCR_RESULT.FAILED?i("span",{staticClass:"status-badge status-failed"},[i("i",{staticClass:"el-icon-circle-close"}),e._v(" "+e._s(e.$z("识别失败","c.ocr_failed"))+"\n ")]):t.ocr_status===e.OCR_STATUS.PROCESSING?i("span",{staticClass:"status-badge status-processing"},[i("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$z("识别中","c.ocr_recognizing"))+"\n ")]):i("span",{staticClass:"status-badge status-pending"},[i("i",{staticClass:"el-icon-time"}),e._v(" "+e._s(e.$z("未识别","c.ocr_unrecognized"))+"\n ")])])]),e._v(" "),i("div",{staticClass:"file-actions"},[e.canPreview(t)?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t)}}},[e._v("\n "+e._s(e.$z("预览","c.preview"))+"\n ")]):e._e()],1)]),e._v(" "),e.showRawData&&t.ocr_raw_data&&Object.keys(t.ocr_raw_data).length>0?i("div",{staticClass:"ocr-raw-data-section"},[i("el-collapse",{model:{value:e.activeCollapseMap[t.id||t.md5],callback:function(i){e.$set(e.activeCollapseMap,t.id||t.md5,i)},expression:"activeCollapseMap[item.id || item.md5]"}},[i("el-collapse-item",{attrs:{name:"raw",title:e.$z("识别原始数据","c.ocr_raw_data")}},[i("div",{staticClass:"raw-json-container"},[i("pre",[i("code",[e._v(e._s(e.formatJson(t.ocr_raw_data)))])])])])],1)],1):e._e()])}),0)],1):i("div",{staticClass:"no-files-tip"},[e._v("\n "+e._s(e.$z("暂无 OCR 文件","c.no_files"))+"\n ")]),e._v(" "),i("el-drawer",{directives:[{name:"el-drawer-drag-width",rawName:"v-el-drawer-drag-width",value:{allowBackground:!0},expression:"{ allowBackground: true }"}],staticClass:"file-modal",attrs:{"append-to-body":"","custom-class":"preview-drawer","close-on-click-modal":!1,wrapperClosable:!1,visible:e.opened,"before-close":e.onHide,title:e.curPreviewItem.name||e.$z("文件预览","c.file_preview"),size:"50%",modal:!1},on:{"update:visible":function(t){e.opened=t},open:e.onOpen}},[i("iframe",{attrs:{frameborder:"0",src:e.officeUrl,width:"100%",height:e.windowH}})])],1)};D._withStripped=!0;var A={name:"BpmOcrReader",mixins:[r.A],props:{value:{type:Array,default:()=>[]},fieldConf:{type:Object,default:()=>({})}},data(){return{curVal:[],OCR_STATUS:u,OCR_RESULT:d,activeCollapseMap:{}}},computed:{showRawData(){return n().get(this.fieldConf,"options.show_raw_data",!0)},photo(){return(this.curVal||[]).filter(e=>(0,s.u)(e)).map(e=>this.fileLink(e,-1))}},watch:{value:{handler(e){Array.isArray(e)?this.curVal=e:this.curVal=[]},immediate:!0}},methods:{isImageFile(e){return(0,s.u)(e)},getFileTypeClass(e){return(0,s.cF)(e.name||"",e.type||"")},formatJson(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}}}},z=o(53539),F={};F.styleTagTransform=k(),F.setAttributes=x(),F.insert=w().bind(null,"head"),F.domAPI=v(),F.insertStyleElement=C(),m()(z.A,F),z.A&&z.A.locals&&z.A.locals;var j=(0,O.A)(A,D,[],!1,null,"1dcc6ca9",null);j.options.__file="components/lib/bpmOcr/src/part/reader.vue";var R=j.exports,M={name:"BpmOcr",components:{editorComponent:P,readerComponent:R},props:{value:{type:Array,default:()=>[]},fieldConf:{type:Object,default:()=>({})},container:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},mode:{type:String,default:"view"},formName:{type:String},uiType:{type:String,default:"default"}},data(){return{curVal:[]}},computed:{curComponent(){return"view"===this.mode?R:P}},watch:{value:{handler(e){this.curVal=Array.isArray(e)?e:[]},immediate:!0}},methods:{handleInput(e){this.curVal=e,this.$emit("input",e)},handleChange(e){this.curVal=e,this.$emit("input",e),this.$emit("change",e)}}},$=o(8284),U={};U.styleTagTransform=k(),U.setAttributes=x(),U.insert=w().bind(null,"head"),U.domAPI=v(),U.insertStyleElement=C(),m()($.A,U),$.A&&$.A.locals&&$.A.locals;var N=(0,O.A)(M,e,[],!1,null,"6bdb94df",null);N.options.__file="components/lib/bpmOcr/src/main.vue";var L=N.exports;L.install=function(e){e.component(L.name,L)};var V=L}(),a}()});
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("qs")):"function"==typeof define&&define.amd?define(["lodash","qs"],t):"object"==typeof exports?exports.bpm2=t(require("lodash"),require("qs")):e.bpm2=t(e.lodash,e.qs)}(self,function(e,t){return function(){var n={9795:function(e,t,n){"use strict";n.d(t,{Fr:function(){return c},zC:function(){return s}});var i=n(6773),r=n.n(i),o=n(5360),a=n.n(o);function s(e,t={}){r().isFunction(e)&&(e=e(t));let n=r().get(e.match(/\?([^#]+)/),"1");if(n){let i=a().parse(n);i=function(...e){return r().assignIn({},...e)}(i,t),e=r().replace(e,n,a().stringify(i))}else e=e+"?"+a().stringify(t);return e}function c(){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,r=e.length;i<r;i++)-1!=t.indexOf(e[i])&&(n=!0);return n}},386:function(e,t,n){"use strict";var i=n(1601),r=n.n(i),o=n(6314),a=n.n(o),s=n(4417),c=n.n(s),l=new URL(n(4868),n.b),d=a()(r()),u=c()(l);d.push([e.id,"/*!\n * Viewer.js v1.11.7\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2024-11-24T04:32:14.526Z\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.A=d},8284:function(e,t,n){"use strict";var i=n(1601),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([e.id,"\n.bpm-ocr[data-v-6bdb94df] {\n width: 100%;\n}\n",""]),t.A=a},7688:function(e,t,n){"use strict";var i=n(1601),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([e.id,"\n.bpm-ocr-edit[data-v-7f6a5f5a] {\n width: 100%;\n}\n\n/* 紧凑型上传区域样式 */\n.ocr-compact-uploader[data-v-7f6a5f5a] .el-upload {\n width: 100%;\n display: block;\n}\n.ocr-compact-uploader[data-v-7f6a5f5a] .el-upload-dragger {\n width: 100%;\n height: 60px;\n background: #f8fafc;\n border: 1px dashed #dcdfe6;\n border-radius: 4px;\n cursor: pointer;\n overflow: hidden;\n transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.ocr-compact-uploader[data-v-7f6a5f5a] .el-upload-dragger:hover {\n background: #f0f7ff;\n border-color: #409eff;\n}\n.ocr-drag-content[data-v-7f6a5f5a] {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 16px;\n}\n.ocr-drag-left[data-v-7f6a5f5a] {\n display: flex;\n align-items: center;\n}\n.ocr-icon-box[data-v-7f6a5f5a] {\n width: 36px;\n height: 36px;\n background-color: #e6f1fc;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n flex-shrink: 0;\n}\n.ocr-icon-box i[data-v-7f6a5f5a] {\n font-size: 20px;\n color: #2f80ed;\n}\n.ocr-text-group[data-v-7f6a5f5a] {\n text-align: left;\n line-height: normal;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.ocr-main-title[data-v-7f6a5f5a] {\n font-size: 13px;\n font-weight: 500;\n color: #334155;\n line-height: 1.4;\n}\n.ocr-sub-tip[data-v-7f6a5f5a] {\n font-size: 11px;\n color: #94a3b8;\n line-height: 1.4;\n margin-top: 3px;\n}\n.ocr-upload-btn[data-v-7f6a5f5a] {\n background-color: #2f80ed;\n color: #ffffff;\n font-size: 12px;\n font-weight: 500;\n padding: 6px 14px;\n border-radius: 4px;\n transition: background-color 0.2s;\n display: flex;\n align-items: center;\n}\n.ocr-upload-btn i[data-v-7f6a5f5a] {\n margin-right: 4px;\n}\n.ocr-upload-btn[data-v-7f6a5f5a]:hover {\n background-color: #1d6ed8;\n}\n.ocr-upload-btn.is-disabled[data-v-7f6a5f5a] {\n background-color: #c0c4cc;\n cursor: not-allowed;\n}\n\n/* 文件列表样式 */\n.ocr-file-list[data-v-7f6a5f5a] {\n margin-top: 10px;\n}\n.ocr-file-item[data-v-7f6a5f5a] {\n background: #ffffff;\n border: 1px solid #e2e8f0;\n border-radius: 4px;\n padding: 10px 12px;\n margin-bottom: 8px;\n transition: box-shadow 0.2s, border-color 0.2s;\n}\n.ocr-file-item[data-v-7f6a5f5a]:hover {\n border-color: #cbd5e1;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);\n}\n.ocr-file-header[data-v-7f6a5f5a] {\n display: flex;\n align-items: center;\n}\n.file-thumb[data-v-7f6a5f5a] {\n width: 40px;\n height: 40px;\n border-radius: 4px;\n background-color: #f1f5f9;\n border: 1px solid #e2e8f0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n cursor: pointer;\n overflow: hidden;\n flex-shrink: 0;\n}\n.thumb-img[data-v-7f6a5f5a] {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.thumb-icon[data-v-7f6a5f5a] {\n font-size: 20px;\n color: #64748b;\n}\n.file-meta[data-v-7f6a5f5a] {\n flex: 1;\n min-width: 0;\n line-height: normal;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.file-name[data-v-7f6a5f5a] {\n font-size: 13px;\n color: #1e293b;\n font-weight: 500;\n line-height: 18px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 4px;\n}\n.file-status-row[data-v-7f6a5f5a] {\n display: flex;\n align-items: center;\n line-height: normal;\n}\n.status-badge[data-v-7f6a5f5a] {\n font-size: 11px;\n line-height: 18px;\n padding: 1px 8px;\n border-radius: 4px;\n display: inline-flex;\n align-items: center;\n}\n.status-badge i[data-v-7f6a5f5a] {\n margin-right: 4px;\n}\n.ocr-inline-error[data-v-7f6a5f5a] {\n font-size: 11px;\n line-height: 18px;\n color: #f56c6c;\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n}\n.ocr-inline-error i[data-v-7f6a5f5a] {\n margin-right: 4px;\n flex-shrink: 0;\n}\n.ocr-inline-error .err-text[data-v-7f6a5f5a] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-pending[data-v-7f6a5f5a] {\n background-color: #f4f4f5;\n color: #909399;\n border: 1px solid #e9e9eb;\n}\n.status-processing[data-v-7f6a5f5a] {\n background-color: #ecf5ff;\n color: #409eff;\n border: 1px solid #d9ecff;\n}\n.status-success[data-v-7f6a5f5a] {\n background-color: #f0f9eb;\n color: #67c23a;\n border: 1px solid #e1f3d8;\n}\n.status-confidence[data-v-7f6a5f5a] {\n margin-left: 6px;\n font-weight: 500;\n}\n.status-confidence.confidence-high[data-v-7f6a5f5a] {\n background-color: #f0f9eb;\n color: #67c23a;\n border: 1px solid #e1f3d8;\n}\n.status-confidence.confidence-medium[data-v-7f6a5f5a] {\n background-color: #fdf6ec;\n color: #e6a23c;\n border: 1px solid #faecd8;\n}\n.file-actions[data-v-7f6a5f5a] {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n}\n.file-actions .el-button[data-v-7f6a5f5a] {\n margin-left: 10px;\n font-size: 12px;\n padding: 0;\n}\n.btn-retry[data-v-7f6a5f5a] {\n color: #409eff !important;\n}\n.btn-retry i[data-v-7f6a5f5a] {\n margin-right: 2px;\n}\n.btn-retry[data-v-7f6a5f5a]:hover {\n color: #66b1ff !important;\n}\n.btn-delete[data-v-7f6a5f5a] {\n color: #f56c6c !important;\n}\n.btn-delete[data-v-7f6a5f5a]:hover {\n color: #f78989 !important;\n}\n.ocr-progress-bar[data-v-7f6a5f5a] {\n margin-top: 8px;\n}\n.ocr-raw-data-section[data-v-7f6a5f5a] {\n margin-top: 8px;\n border-top: 1px dashed #ebeef5;\n padding-top: 4px;\n}\n.ocr-raw-data-section[data-v-7f6a5f5a] .el-collapse {\n border: none;\n}\n.ocr-raw-data-section[data-v-7f6a5f5a] .el-collapse-item__header {\n height: 28px;\n line-height: 28px;\n font-size: 12px;\n color: #909399;\n border: none;\n background: transparent;\n}\n.ocr-raw-data-section[data-v-7f6a5f5a] .el-collapse-item__wrap {\n border: none;\n background: transparent;\n}\n.raw-json-container[data-v-7f6a5f5a] {\n position: relative;\n max-height: 180px;\n overflow-y: auto;\n background-color: #fafbfc;\n color: #475569;\n border: 1px solid #edf2f7;\n padding: 8px 12px;\n border-radius: 4px;\n font-size: 11px;\n line-height: 1.5;\n}\n.copy-raw-btn[data-v-7f6a5f5a] {\n position: absolute;\n top: 6px;\n right: 6px;\n width: 24px;\n height: 24px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n border: 1px solid #e2e8f0;\n background: rgba(255, 255, 255, 0.9);\n border-radius: 4px;\n color: #64748b;\n cursor: pointer;\n transition: all 0.2s ease;\n z-index: 2;\n outline: none;\n}\n.copy-raw-btn[data-v-7f6a5f5a]:hover {\n color: #409eff;\n border-color: #b3d8ff;\n background-color: #ffffff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);\n}\n.copy-raw-btn .copy-success-icon[data-v-7f6a5f5a] {\n color: #67c23a;\n font-weight: bold;\n}\n.raw-json-container pre[data-v-7f6a5f5a] {\n margin: 0;\n padding-right: 24px;\n font-family: Menlo, Monaco, Consolas, Courier, monospace;\n white-space: pre-wrap;\n word-break: break-all;\n color: #334155;\n}\n",""]),t.A=a},3539:function(e,t,n){"use strict";var i=n(1601),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([e.id,"\n.bpm-ocr-reader[data-v-1dcc6ca9] {\n width: 100%;\n}\n.no-files-tip[data-v-1dcc6ca9] {\n color: #909399;\n font-size: 13px;\n padding: 8px 0;\n}\n.ocr-file-list[data-v-1dcc6ca9] {\n margin-top: 8px;\n}\n.ocr-file-item[data-v-1dcc6ca9] {\n border: 1px solid #ebeef5;\n border-radius: 4px;\n padding: 8px 12px;\n margin-bottom: 8px;\n background-color: #ffffff;\n}\n.ocr-file-header[data-v-1dcc6ca9] {\n display: flex;\n align-items: center;\n}\n.file-thumb[data-v-1dcc6ca9] {\n width: 42px;\n height: 42px;\n border-radius: 4px;\n background: #f4f6f8;\n border: 1px solid #edf0f4;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n margin-right: 12px;\n flex-shrink: 0;\n}\n.thumb-img[data-v-1dcc6ca9] {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.thumb-icon[data-v-1dcc6ca9] {\n font-size: 20px;\n color: #909399;\n}\n.file-meta[data-v-1dcc6ca9] {\n flex: 1;\n overflow: hidden;\n margin-right: 12px;\n}\n.file-name[data-v-1dcc6ca9] {\n font-size: 13px;\n font-weight: 500;\n color: #303133;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 18px;\n margin-bottom: 4px;\n}\n.file-status-row[data-v-1dcc6ca9] {\n display: flex;\n align-items: center;\n overflow: hidden;\n max-width: 100%;\n}\n.status-badge-container[data-v-1dcc6ca9] {\n display: inline-flex;\n align-items: center;\n flex-wrap: nowrap;\n max-width: 100%;\n overflow: hidden;\n}\n.status-badge[data-v-1dcc6ca9] {\n font-size: 11px;\n padding: 2px 6px;\n border-radius: 4px;\n display: inline-flex;\n align-items: center;\n line-height: 14px;\n white-space: nowrap;\n flex-shrink: 0;\n}\n.status-badge .status-icon[data-v-1dcc6ca9] {\n margin-right: 4px;\n}\n.compact-level-1 .file-thumb[data-v-1dcc6ca9],\n.compact-level-2 .file-thumb[data-v-1dcc6ca9] {\n display: none !important;\n}\n.compact-level-1 .file-meta[data-v-1dcc6ca9],\n.compact-level-2 .file-meta[data-v-1dcc6ca9] {\n margin-right: 0;\n}\n.compact-level-2 .file-name[data-v-1dcc6ca9] {\n font-size: 12px;\n margin-bottom: 2px;\n}\n.compact-level-2.ocr-file-item[data-v-1dcc6ca9],\n.compact-level-2 .ocr-file-item[data-v-1dcc6ca9] {\n padding: 6px 8px;\n}\n.compact-level-2 .status-badge[data-v-1dcc6ca9] {\n padding: 1px 4px;\n}\n.compact-level-2 .status-confidence[data-v-1dcc6ca9] {\n margin-left: 4px;\n}\n.compact-level-2 .status-badge .status-icon[data-v-1dcc6ca9] {\n margin-right: 0;\n}\n.status-pending[data-v-1dcc6ca9] {\n background-color: #f4f4f5;\n color: #909399;\n border: 1px solid #e9e9eb;\n}\n.status-processing[data-v-1dcc6ca9] {\n background-color: #ecf5ff;\n color: #409eff;\n border: 1px solid #d9ecff;\n}\n.status-success[data-v-1dcc6ca9] {\n background-color: #f0f9eb;\n color: #67c23a;\n border: 1px solid #e1f3d8;\n}\n.status-confidence[data-v-1dcc6ca9] {\n margin-left: 6px;\n font-weight: 500;\n}\n.status-confidence.confidence-high[data-v-1dcc6ca9] {\n background-color: #f0f9eb;\n color: #67c23a;\n border: 1px solid #e1f3d8;\n}\n.status-confidence.confidence-medium[data-v-1dcc6ca9] {\n background-color: #fdf6ec;\n color: #e6a23c;\n border: 1px solid #faecd8;\n}\n.status-failed[data-v-1dcc6ca9] {\n background-color: #fef0f0;\n color: #f56c6c;\n border: 1px solid #fde2e2;\n}\n.file-actions[data-v-1dcc6ca9] {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n}\n.file-actions .el-button[data-v-1dcc6ca9] {\n margin-left: 10px;\n font-size: 12px;\n padding: 0;\n}\n.ocr-raw-data-section[data-v-1dcc6ca9] {\n margin-top: 8px;\n border-top: 1px dashed #ebeef5;\n padding-top: 4px;\n}\n.ocr-raw-data-section[data-v-1dcc6ca9] .el-collapse {\n border: none;\n}\n.ocr-raw-data-section[data-v-1dcc6ca9] .el-collapse-item__header {\n height: 28px;\n line-height: 28px;\n font-size: 12px;\n color: #909399;\n border: none;\n background: transparent;\n}\n.ocr-raw-data-section[data-v-1dcc6ca9] .el-collapse-item__wrap {\n border: none;\n background: transparent;\n}\n.raw-json-container[data-v-1dcc6ca9] {\n position: relative;\n max-height: 180px;\n overflow-y: auto;\n background-color: #fafbfc;\n color: #475569;\n border: 1px solid #edf2f7;\n padding: 8px 12px;\n border-radius: 4px;\n font-size: 11px;\n line-height: 1.5;\n}\n.copy-raw-btn[data-v-1dcc6ca9] {\n position: absolute;\n top: 6px;\n right: 6px;\n width: 24px;\n height: 24px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n border: 1px solid #e2e8f0;\n background: rgba(255, 255, 255, 0.9);\n border-radius: 4px;\n color: #64748b;\n cursor: pointer;\n transition: all 0.2s ease;\n z-index: 2;\n outline: none;\n}\n.copy-raw-btn[data-v-1dcc6ca9]:hover {\n color: #409eff;\n border-color: #b3d8ff;\n background-color: #ffffff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);\n}\n.copy-raw-btn .copy-success-icon[data-v-1dcc6ca9] {\n color: #67c23a;\n font-weight: bold;\n}\n.raw-json-container pre[data-v-1dcc6ca9] {\n margin: 0;\n padding-right: 24px;\n font-family: Menlo, Monaco, Consolas, Courier, monospace;\n white-space: pre-wrap;\n word-break: break-all;\n color: #334155;\n}\n\n/* 列表表格单元格防穿透兜底 */\n[data-v-1dcc6ca9] .el-table__row .ocr-raw-data-section,\n.bpm-td .ocr-raw-data-section[data-v-1dcc6ca9],[data-v-1dcc6ca9] .el-table__row .file-actions,\n.bpm-td .file-actions[data-v-1dcc6ca9] {\n display: none !important;\n}\n",""]),t.A=a},6314: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,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);i&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},4417: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}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},8085:function(e,t,n){"use strict";var i=n(5072),r=n.n(i),o=n(7825),a=n.n(o),s=n(7659),c=n.n(s),l=n(5056),d=n.n(l),u=n(540),h=n.n(u),f=n(1113),p=n.n(f),m=n(386),v={};v.styleTagTransform=p(),v.setAttributes=d(),v.insert=c().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=h(),r()(m.A,v),m.A&&m.A.locals&&m.A.locals},5072: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 o={},a=[],s=0;s<e.length;s++){var c=e[s],l=i.base?c[0]+i.base:c[0],d=o[l]||0,u="".concat(l," ").concat(d);o[l]=d+1;var h=n(u),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(f);else{var p=r(f,i);i.byIndex=s,t.splice(s,0,{identifier:u,updater:p,references:1})}a.push(u)}return a}function r(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,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var c=i(e,r),l=0;l<o.length;l++){var d=n(o[l]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=c}}},7659: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)}},540: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}},5056:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825: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 r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113: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))}}},8245:function(e,t,n){"use strict";n.d(t,{Ay:function(){return Xe}});var i=n(3891),r=n.n(i),o=n(5554),a=n.n(o);e=n.hmd(e);var s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),d=l.Symbol,u=Object.prototype,h=u.hasOwnProperty,f=u.toString,p=d?d.toStringTag:void 0,m=Object.prototype.toString,v=d?d.toStringTag:void 0;function g(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=h.call(e,p),n=e[p];try{e[p]=void 0;var i=!0}catch(e){}var r=f.call(e);return i&&(t?e[p]=n:delete e[p]),r}(e):function(e){return m.call(e)}(e)}function b(e){return null!=e&&"object"==typeof e}var w=Array.isArray,y=/\s/,x=/^\s+/;function _(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var C=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,z=/^0o[0-7]+$/i,O=parseInt;function T(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||b(e)&&"[object Symbol]"==g(e)}(e))return NaN;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,function(e){for(var t=e.length;t--&&y.test(e.charAt(t)););return t}(n)+1).replace(x,""):n;var i=k.test(e);return i||z.test(e)?O(e.slice(2),i?2:8):C.test(e)?NaN:+e}function S(e){return e}function j(e){if(!_(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var I,P=l["__core-js_shared__"],A=(I=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",$=Function.prototype.toString,E=/^\[object .+?Constructor\]$/,F=Function.prototype,D=Object.prototype,M=F.toString,N=D.hasOwnProperty,R=RegExp("^"+M.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var L,V,U,W=Date.now,q=function(){try{var e=function(e){return!(!_(e)||(t=e,A&&A in t))&&(j(e)?R:E).test(function(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n=null==(t=Object)?void 0:t.defineProperty)?n:void 0;return e({},"",{}),e}catch(e){}var t,n}(),X=q,Y=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:S,B=(L=Y,V=0,U=0,function(){var e=W(),t=16-(e-U);if(U=e,t>0){if(++V>=800)return arguments[0]}else V=0;return L.apply(void 0,arguments)}),H=B,G=/^(?:0|[1-9]\d*)$/;function J(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&G.test(e))&&e>-1&&e%1==0&&e<t}function Z(e,t,n){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function K(e,t){return e===t||e!=e&&t!=t}var Q=Object.prototype.hasOwnProperty;function ee(e,t,n){var i=e[t];Q.call(e,t)&&K(i,n)&&(void 0!==n||t in e)||Z(e,t,n)}var te=Math.max;function ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ie(e){return null!=e&&ne(e.length)&&!j(e)}var re=Object.prototype;function oe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)}function ae(e){return b(e)&&"[object Arguments]"==g(e)}var se=Object.prototype,ce=se.hasOwnProperty,le=se.propertyIsEnumerable,de=ae(function(){return arguments}())?ae:function(e){return b(e)&&ce.call(e,"callee")&&!le.call(e,"callee")},ue=de,he="object"==typeof exports&&exports&&!exports.nodeType&&exports,fe=he&&e&&!e.nodeType&&e,pe=fe&&fe.exports===he?l.Buffer:void 0,me=(pe?pe.isBuffer:void 0)||function(){return!1},ve={};ve["[object Float32Array]"]=ve["[object Float64Array]"]=ve["[object Int8Array]"]=ve["[object Int16Array]"]=ve["[object Int32Array]"]=ve["[object Uint8Array]"]=ve["[object Uint8ClampedArray]"]=ve["[object Uint16Array]"]=ve["[object Uint32Array]"]=!0,ve["[object Arguments]"]=ve["[object Array]"]=ve["[object ArrayBuffer]"]=ve["[object Boolean]"]=ve["[object DataView]"]=ve["[object Date]"]=ve["[object Error]"]=ve["[object Function]"]=ve["[object Map]"]=ve["[object Number]"]=ve["[object Object]"]=ve["[object RegExp]"]=ve["[object Set]"]=ve["[object String]"]=ve["[object WeakMap]"]=!1;var ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,be=ge&&e&&!e.nodeType&&e,we=be&&be.exports===ge&&s.process,ye=function(){try{return be&&be.require&&be.require("util").types||we&&we.binding&&we.binding("util")}catch(e){}}(),xe=ye&&ye.isTypedArray,_e=xe?function(e){return function(t){return e(t)}}(xe):function(e){return b(e)&&ne(e.length)&&!!ve[g(e)]},Ce=_e,ke=Object.prototype.hasOwnProperty;var ze=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Oe=ze,Te=Object.prototype.hasOwnProperty;function Se(e){return ie(e)?function(e,t){var n=w(e),i=!n&&ue(e),r=!n&&!i&&me(e),o=!n&&!i&&!r&&Ce(e),a=n||i||r||o,s=a?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=s.length;for(var l in e)!t&&!ke.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||J(l,c))||s.push(l);return s}(e):function(e){if(!oe(e))return Oe(e);var t=[];for(var n in Object(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var je,Ie=Object.prototype.hasOwnProperty,Pe=(je=function(e,t){if(oe(t)||ie(t))!function(e,t,n){var i=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var a=t[r],s=void 0;void 0===s&&(s=e[a]),i?Z(n,a,s):ee(n,a,s)}}(t,Se(t),e);else for(var n in t)Ie.call(t,n)&&ee(e,n,t[n])},function(e,t){return H(function(e,t,n){return t=te(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=te(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,S),e+"")}(function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(r=je.length>3&&"function"==typeof r?(i--,r):void 0,o&&function(e,t,n){if(!_(n))return!1;var i=typeof t;return!!("number"==i?ie(n)&&J(t,n.length):"string"==i&&t in n)&&K(n[t],e)}(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&je(e,a)}return e})),Ae=function(){return l.Date.now()},$e=Math.max,Ee=Math.min;var Fe=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default",null,{images:e.images,options:e.options})],2)},De=[];function Me(e,t,n,i,r,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}const Ne={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data(){return{}},computed:{},watch:{images(){this.$nextTick(()=>{this.onChange()})},trigger:{handler(){this.$nextTick(()=>{this.onChange()})},deep:!0},options:{handler(){this.$nextTick(()=>{this.rebuildViewer()})},deep:!0}},mounted(){this.createViewer()},unmounted(){this.destroyViewer()},methods:{onChange(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer(){this.destroyViewer(),this.createViewer()},updateViewer(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer(){this.$viewer&&this.$viewer.destroy()},createViewer(){this.$viewer=new(r())(this.$el,this.options),this.$emit("inited",this.$viewer)}}},Re={};var Le=Me(Ne,Fe,De,!1,Ve,null,null,null);function Ve(e){for(let e in Re)this[e]=Re[e]}var Ue=function(){return Le.exports}();const We=({name:e="viewer",debug:t=!1}={})=>{function n(t,n,o=!1,c=!1){a().nextTick(()=>{c&&!function(e){const t=e.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=t?t.join(""):void 0;return e.__viewerImageDiffCache===n?(s("Element change detected, but image(s) has not changed"),!1):(s("Image change detected"),e.__viewerImageDiffCache=n,!0)}(t)||(o||!t[`$${e}`]?(i(t),t[`$${e}`]=new(r())(t,n),s("Viewer created")):(t[`$${e}`].update(),s("Viewer updated")))})}function i(t){t[`$${e}`]&&(t[`$${e}`].destroy(),delete t[`$${e}`],s("Viewer destroyed"))}function o(e){e.__viewerMutationObserver&&(e.__viewerMutationObserver.disconnect(),delete e.__viewerMutationObserver,s("Observer destroyed"))}function s(){t&&console.log(...arguments)}return{bind(e,t,i){s("Viewer bind");const r=function(e,t,n){var i,r,o,a,s,c,l=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,o=r;return i=r=void 0,l=t,a=e.apply(o,n)}function p(e){var n=e-c;return void 0===c||n>=t||n<0||u&&e-l>=o}function m(){var e=Ae();if(p(e))return v(e);s=setTimeout(m,function(e){var n=t-(e-c);return u?Ee(n,o-(e-l)):n}(e))}function v(e){return s=void 0,h&&i?f(e):(i=r=void 0,a)}function g(){var e=Ae(),n=p(e);if(i=arguments,r=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(m,t),d?f(e):a}(c);if(u)return clearTimeout(s),s=setTimeout(m,t),f(c)}return void 0===s&&(s=setTimeout(m,t)),a}return t=T(t)||0,_(n)&&(d=!!n.leading,o=(u="maxWait"in n)?$e(T(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),g.cancel=function(){void 0!==s&&clearTimeout(s),l=0,i=c=r=s=void 0},g.flush=function(){return void 0===s?a:v(Ae())},g}(n,50);r(e,t.value),function(e,{expression:t},n,i){t&&/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)?(e.__viewerUnwatch=n.context.$watch(t,(n,r)=>{s("Change detected by watcher: ",t),i(e,n,!0)},{deep:!0}),s("Watcher created, expression: ",t)):s("Only simple dot-delimited paths can create watcher")}(e,t,i,r),t.modifiers.static||function(e,t,n,i){o(e);const r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!r)return void s("Observer not supported");const a=new r(r=>{r.forEach(r=>{s(`Viewer mutation:${r.type}`),n(e,t,i,!0)})});a.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__viewerMutationObserver=a,s("Observer created")}(e,t.value,r,t.modifiers.rebuild)},unbind(e,t){s("Viewer unbind"),o(e),function(e){e.__viewerUnwatch&&(e.__viewerUnwatch(),delete e.__viewerUnwatch,s("Watcher destroyed"))}(e),i(e)}}},qe=({images:e=[],options:t={}}={})=>{t=Pe(t,{inline:!1});const n=new(a().extend({render(t){return t("div",{style:{display:"none"},class:["__viewer-token"]},e.map(e=>t("img",{attrs:"string"==typeof e?{src:e}:e})))}}));n.$mount(),document.body.appendChild(n.$el);const i=new(r())(n.$el,t),o=i.destroy.bind(i);return i.destroy=function(){return o(),n.$destroy(),document.body.removeChild(n.$el),i},i.show(),n.$el.addEventListener("hidden",function(){this.viewer===i&&i.destroy()}),i};var Xe={install(e,{name:t="viewer",debug:n=!1,defaultOptions:i}={}){r().setDefaults(i),e.component(t,Pe(Ue,{name:t})),e.directive(t,We({name:t,debug:n})),e.prototype[`$${t}Api`]=qe},setDefaults(e){r().setDefaults(e)}}},3891:function(e){e.exports=function(){"use strict";function e(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,r(i.key),i)}}function t(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(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 i(e){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?n(Object(r),!0).forEach(function(n){t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function r(e){var t=function(e,t){if("object"!=typeof e||!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:t+""}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}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},s="undefined"!=typeof window&&void 0!==window.document,c=s?window:{},l=!(!s||!c.document.documentElement)&&"ontouchstart"in c.document.documentElement,d=!!s&&"PointerEvent"in c,u="viewer",h="move",f="switch",p="zoom",m="".concat(u,"-active"),v="".concat(u,"-close"),g="".concat(u,"-fade"),b="".concat(u,"-fixed"),w="".concat(u,"-fullscreen"),y="".concat(u,"-fullscreen-exit"),x="".concat(u,"-hide"),_="".concat(u,"-hide-md-down"),C="".concat(u,"-hide-sm-down"),k="".concat(u,"-hide-xs-down"),z="".concat(u,"-in"),O="".concat(u,"-invisible"),T="".concat(u,"-loading"),S="".concat(u,"-move"),j="".concat(u,"-open"),I="".concat(u,"-show"),P="".concat(u,"-transition"),A="click",$="dblclick",E="dragstart",F="focusin",D="keydown",M="load",N="error",R=d?"pointerdown":l?"touchstart":"mousedown",L=d?"pointermove":l?"touchmove":"mousemove",V=d?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",U="resize",W="transitionend",q="wheel",X="ready",Y="show",B="shown",H="hide",G="hidden",J="view",Z="viewed",K="move",Q="moved",ee="rotate",te="rotated",ne="scale",ie="scaled",re="zoom",oe="zoomed",ae="play",se="stop",ce="".concat(u,"Action"),le=/\s\s*/,de=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function ue(e){return"string"==typeof e}var he=Number.isNaN||c.isNaN;function fe(e){return"number"==typeof e&&!he(e)}function pe(e){return void 0===e}function me(e){return"object"===o(e)&&null!==e}var ve=Object.prototype.hasOwnProperty;function ge(e){if(!me(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ve.call(n,"isPrototypeOf")}catch(e){return!1}}function be(e){return"function"==typeof e}function we(e,t){if(e&&be(t))if(Array.isArray(e)||fe(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},xe=/^(?:width|height|left|top|marginLeft|marginTop)$/;function _e(e,t){var n=e.style;we(t,function(e,t){xe.test(t)&&fe(e)&&(e+="px"),n[t]=e})}function Ce(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function ke(e,t){if(e&&t)if(fe(e.length))we(e,function(e){ke(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 ze(e,t){e&&t&&(fe(e.length)?we(e,function(e){ze(e,t)}):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Oe(e,t,n){t&&(fe(e.length)?we(e,function(e){Oe(e,t,n)}):n?ke(e,t):ze(e,t))}var Te=/([a-z\d])([A-Z])/g;function Se(e){return e.replace(Te,"$1-$2").toLowerCase()}function je(e,t){return me(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Se(t)))}function Ie(e,t,n){me(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Se(t)),n)}var Pe=function(){var e=!1;if(s){var t=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,i),c.removeEventListener("test",n,i)}return e}();function Ae(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(le).forEach(function(t){if(!Pe){var o=e.listeners;o&&o[t]&&o[t][n]&&(r=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,r,i)})}function $e(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(le).forEach(function(t){if(i.once&&!Pe){var o=e.listeners,a=void 0===o?{}:o;r=function(){delete a[t][n],e.removeEventListener(t,r,i);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],i),a[t][n]=r,e.listeners=a}e.addEventListener(t,r,i)})}function Ee(e,t,n,r){var o;return be(Event)&&be(CustomEvent)?o=new CustomEvent(t,i({bubbles:!0,cancelable:!0,detail:n},r)):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(o)}function Fe(e){var t=e.rotate,n=e.scaleX,i=e.scaleY,r=e.translateX,o=e.translateY,a=[];fe(r)&&0!==r&&a.push("translateX(".concat(r,"px)")),fe(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),fe(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),fe(n)&&1!==n&&a.push("scaleX(".concat(n,")")),fe(i)&&1!==i&&a.push("scaleY(".concat(i,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var De=c.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(c.navigator.userAgent);function Me(e,t,n){var i=document.createElement("img");if(e.naturalWidth&&!De)return n(e.naturalWidth,e.naturalHeight),i;var r=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),De||r.removeChild(i)},we(t.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&i.setAttribute(t,n)}),i.src=e.src,De||(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;",r.appendChild(i)),i}function Ne(e){switch(e){case 2:return k;case 3:return C;case 4:return _;default:return""}}function Re(e,t){var n=e.pageX,r=e.pageY,o={endX:n,endY:r};return t?o:i({timeStamp:Date.now(),startX:n,startY:r},o)}var Le,Ve={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&&_e(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,i=this.list,r=[];i.innerHTML="",we(this.images,function(t,o){var a=t.src,s=t.alt||function(e){return ue(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(a),c=e.getImageURL(t);if(a||c){var l=document.createElement("li"),d=document.createElement("img");we(n.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&d.setAttribute(e,n)}),n.navbar&&(d.src=a||c),d.alt=s,d.setAttribute("data-original-url",c||a),l.setAttribute("data-index",o),l.setAttribute("data-viewer-action","view"),l.setAttribute("role","button"),n.keyboard&&l.setAttribute("tabindex",0),l.appendChild(d),i.appendChild(l),r.push(l)}}),this.items=r,we(r,function(t){var i,r,o=t.firstElementChild;Ie(o,"filled",!0),n.loading&&ke(t,T),$e(o,M,i=function(i){Ae(o,N,r),n.loading&&ze(t,T),e.loadImage(i)},{once:!0}),$e(o,N,r=function(){Ae(o,M,i),n.loading&&ze(t,T)},{once:!0})}),n.transition&&$e(t,Z,function(){ke(i,P)},{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),r=t.offsetWidth,o=r+i;_e(this.list,ye({width:o*this.length-i},Fe({translateX:(this.viewerData.width-r)/2-o*e})))}},resetList:function(){var e=this.list;e.innerHTML="",ze(e,P),_e(e,Fe({translateX:0}))},initImage:function(e){var t,n=this,i=this.options,r=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,c=Math.max(o.height-a,a),l=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Me(r,i,function(t,r){var o=t/r,a=Math.max(0,Math.min(1,i.initialCoverage)),d=s,u=c;n.imageInitializing=!1,c*o>s?u=s/o:d=c*o,a=fe(a)?a:.9,d=Math.min(d*a,t),u=Math.min(u*a,r);var h=(s-d)/2,f=(c-u)/2,p={left:h,top:f,x:h,y:f,width:d,height:u,oldRatio:1,ratio:d/t,aspectRatio:o,naturalWidth:t,naturalHeight:r},m=ye({},p);i.rotatable&&(p.rotate=l.rotate||0,m.rotate=0),i.scalable&&(p.scaleX=l.scaleX||1,p.scaleY=l.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=p,n.initialImageData=m,e&&e()})},renderImage:function(e){var t=this,n=this.image,i=this.imageData;if(_e(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&&Ce(n,P)){var r=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Ae(n,W,r)}},$e(n,W,r,{once:!0})}else e()},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},Ue={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;$e(t,A,this.onClick=this.click.bind(this)),$e(t,E,this.onDragStart=this.dragstart.bind(this)),$e(n,R,this.onPointerDown=this.pointerdown.bind(this)),$e(i,L,this.onPointerMove=this.pointermove.bind(this)),$e(i,V,this.onPointerUp=this.pointerup.bind(this)),$e(i,D,this.onKeyDown=this.keydown.bind(this)),$e(window,U,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&$e(t,q,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&$e(n,$,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;Ae(t,A,this.onClick),Ae(t,E,this.onDragStart),Ae(n,R,this.onPointerDown),Ae(i,L,this.onPointerMove),Ae(i,V,this.onPointerUp),Ae(i,D,this.onKeyDown),Ae(window,U,this.onResize),e.zoomable&&e.zoomOnWheel&&Ae(t,q,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Ae(n,$,this.onDblclick)}},We={click:function(e){var t=this.options,n=this.imageData,i=e.target,r=je(i,ce);switch(r||"img"!==i.localName||"li"!==i.parentElement.localName||(r=je(i=i.parentElement,ce)),l&&e.isTrusted&&i===this.canvas&&clearTimeout(this.clickCanvasTimeout),r){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(je(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,r=this.index,o=this.viewerData;ze(i,O),n.loading&&ze(this.canvas,T),i.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Oe(i,S,n.movable),Oe(i,P,n.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,be(n.viewed)&&$e(t,Z,n.viewed,{once:!0}),Ee(t,Z,{originalImage:e.images[r],index:r,image:i},{cancelable:!1})})})},loadImage:function(e){var t=e.target,n=t.parentNode,i=n.offsetWidth||30,r=n.offsetHeight||50,o=!!je(t,"filled");Me(t,this.options,function(e,n){var a=e/n,s=i,c=r;r*a>i?o?s=r*a:c=i/a:o?c=i/a:s=r*a,_e(t,ye({width:s,height:c},Fe({translateX:(i-s)/2,translateY:(r-c)/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,r=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(fe(i)&&1!==i||fe(r)&&0!==r||e.ctrlKey))){e.preventDefault(),e.changedTouches?we(e.changedTouches,function(e){n[e.identifier]=Re(e)}):n[e.pointerId||0]=Re(e);var o=!!t.movable&&h;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?o=p:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o=f),!t.transition||o!==h&&o!==p||ze(this.image,P),this.action=o}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?we(e.changedTouches,function(e){ye(t[e.identifier]||{},Re(e,!0))}):ye(t[e.pointerId||0]||{},Re(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,i=this.options,r=this.action,o=this.pointers;e.changedTouches?we(e.changedTouches,function(e){t=o[e.identifier],delete o[e.identifier]}):(t=o[e.pointerId||0],delete o[e.pointerId||0]),r&&(e.preventDefault(),!i.transition||r!==h&&r!==p||ke(this.image,P),this.action=!1,l&&r!==p&&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(){Ee(n.image,$,{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(){Ee(n.canvas,A,{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();we(this.player.getElementsByTagName("img"),function(t){$e(t,M,e.loadImage.bind(e),{once:!0}),Ee(t,M)})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,i=1;e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),this.zoom(-i*n,!0,null,e)}}},qe={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(be(n.show)&&$e(t,Y,n.show,{once:!0}),!1===Ee(t,Y)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(ze(i,x),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("aria-hidden"),n.transition&&!e){var r=this.shown.bind(this);this.transitioning={abort:function(){Ae(i,W,r),ze(i,z)}},ke(i,P),i.initialOffsetWidth=i.offsetWidth,$e(i,W,r,{once:!0}),ke(i,z)}else ke(i,z),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)&&$e(n,H,i.hide,{once:!0}),!1===Ee(n,H))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var r=this.viewer,o=this.image,a=function(){ze(r,z),e.hidden()};if(i.transition&&!t){var s=function(t){t&&t.target===r&&(Ae(r,W,s),e.hidden())},c=function(){Ce(r,P)?($e(r,W,s),ze(r,z)):a()};this.transitioning={abort:function(){e.viewed&&Ce(o,P)?Ae(o,W,c):Ce(r,P)&&Ae(r,W,s)}},this.viewed&&Ce(o,P)?($e(o,W,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else a();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,r=this.title,o=this.canvas,a=this.items[t],s=a.querySelector("img"),c=je(s,"originalUrl"),l=s.getAttribute("alt"),d=document.createElement("img");if(we(i.inheritedAttributes,function(e){var t=s.getAttribute(e);null!==t&&d.setAttribute(e,t)}),d.src=c,d.alt=l,be(i.view)&&$e(n,J,i.view,{once:!0}),!1===Ee(n,J,{originalImage:this.images[t],index:t,image:d})||!this.isShown||this.hiding||this.played)return this;var u=this.items[this.index];u&&(ze(u,m),u.removeAttribute("aria-selected")),ke(a,m),a.setAttribute("aria-selected",!0),i.focus&&a.focus(),this.image=d,this.viewed=!1,this.index=t,this.imageData={},ke(d,O),i.loading&&ke(o,T),o.innerHTML="",o.appendChild(d),this.renderList(),r.innerHTML="";var h,f,p=function(){var t,n=e.imageData,o=Array.isArray(i.title)?i.title[1]:i.title;r.innerHTML=ue(t=be(o)?o.call(e,d,n):"".concat(l," (").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 $e(n,Z,p,{once:!0}),this.viewing={abort:function(){Ae(n,Z,p),d.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(d.src="",Ae(d,M,h),e.timeout&&clearTimeout(e.timeout))}},d.complete?this.load():($e(d,M,h=function(){Ae(d,N,f),e.load()},{once:!0}),$e(d,N,f=function(){Ae(d,M,h),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),ze(d,O),i.loading&&ze(e.canvas,T)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){ze(d,O),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(pe(e)?e:n.x+Number(e),pe(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,r=this.element,o=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,c=a.y,l=!1;if(fe(e)?l=!0:e=s,fe(n)?l=!0:n=c,l){if(be(o.move)&&$e(r,K,o.move,{once:!0}),!1===Ee(r,K,{x:e,y:n,oldX:s,oldY:c,originalEvent:i}))return this;a.x=e,a.y=n,a.left=e,a.top=n,this.moving=!0,this.renderImage(function(){t.moving=!1,be(o.moved)&&$e(r,Q,o.moved,{once:!0}),Ee(r,Q,{x:e,y:n,oldX:s,oldY:c,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,r=this.imageData;if(fe(e=Number(e))&&this.viewed&&!this.played&&i.rotatable){var o=r.rotate;if(be(i.rotate)&&$e(n,ee,i.rotate,{once:!0}),!1===Ee(n,ee,{degree:e,oldDegree:o}))return this;r.rotate=e,this.rotating=!0,this.renderImage(function(){t.rotating=!1,be(i.rotated)&&$e(n,te,i.rotated,{once:!0}),Ee(n,te,{degree:e,oldDegree:o},{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,r=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&r.scalable){var a=o.scaleX,s=o.scaleY,c=!1;if(fe(e)?c=!0:e=a,fe(n)?c=!0:n=s,c){if(be(r.scale)&&$e(i,ne,r.scale,{once:!0}),!1===Ee(i,ne,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=e,o.scaleY=n,this.scaling=!0,this.renderImage(function(){t.scaling=!1,be(r.scaled)&&$e(i,ie,r.scaled,{once:!0}),Ee(i,ie,{scaleX:e,scaleY:n,oldScaleX:a,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,r=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(r.width*e/r.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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.element,s=this.options,c=this.pointers,l=this.imageData,d=l.x,u=l.y,h=l.width,f=l.height,p=l.naturalWidth,m=l.naturalHeight;if(fe(e=Math.max(0,e))&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var v=Math.max(.01,s.minZoomRatio),g=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,v),g)}if(r)switch(r.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 b=p*e,w=m*e,y=b-h,x=w-f,_=l.ratio;if(be(s.zoom)&&$e(a,re,s.zoom,{once:!0}),!1===Ee(a,re,{ratio:e,oldRatio:_,originalEvent:r}))return this;if(this.zooming=!0,r){var C=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),k=c&&Object.keys(c).length>0?function(e){var t=0,n=0,i=0;return we(e,function(e){var r=e.startX,o=e.startY;t+=r,n+=o,i+=1}),{pageX:t/=i,pageY:n/=i}}(c):{pageX:r.pageX,pageY:r.pageY};l.x-=y*((k.pageX-C.left-d)/h),l.y-=x*((k.pageY-C.top-u)/f)}else ge(i)&&fe(i.x)&&fe(i.y)?(l.x-=y*((i.x-d)/h),l.y-=x*((i.y-u)/f)):(l.x-=y/2,l.y-=x/2);l.left=l.x,l.top=l.y,l.width=b,l.height=w,l.oldRatio=_,l.ratio=e,this.renderImage(function(){t.zooming=!1,be(s.zoomed)&&$e(a,oe,s.zoomed,{once:!0}),Ee(a,oe,{ratio:e,oldRatio:_,originalEvent:r},{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)&&$e(n,ae,i.play,{once:!0}),!1===Ee(n,ae))return this;var r=this.player,o=this.loadImage.bind(this),a=[],s=0,c=0;if(this.played=!0,this.onLoadWhenPlay=o,t&&this.requestFullscreen(t),ke(r,I),we(this.items,function(e,t){var n=e.querySelector("img"),l=document.createElement("img");l.src=je(n,"originalUrl"),l.alt=n.getAttribute("alt"),l.referrerPolicy=n.referrerPolicy,s+=1,ke(l,g),Oe(l,P,i.transition),Ce(e,m)&&(ke(l,z),c=t),a.push(l),$e(l,M,o,{once:!0}),r.appendChild(l)}),fe(i.interval)&&i.interval>0){var l=function(){clearTimeout(e.playing.timeout),ze(a[c],z),ke(a[c=(c-=1)>=0?c:s-1],z),e.playing.timeout=setTimeout(l,i.interval)},d=function(){clearTimeout(e.playing.timeout),ze(a[c],z),ke(a[c=(c+=1)<s?c:0],z),e.playing.timeout=setTimeout(d,i.interval)};s>1&&(this.playing={prev:l,next:d,timeout:setTimeout(d,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)&&$e(t,se,n.stop,{once:!0}),!1===Ee(t,se))return this;var i=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,we(i.getElementsByTagName("img"),function(t){Ae(t,M,e.onLoadWhenPlay)}),ze(i,I),i.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,i=this.image,r=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),ke(this.button,y),t.transition&&(ze(r,P),this.viewed&&ze(i,P)),ke(n,b),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),_e(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(){ke(i,P),ke(r,P)},0)})})),this},exit:function(){var e=this,t=this.options,n=this.viewer,i=this.image,r=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),ze(this.button,y),t.transition&&(ze(r,P),this.viewed&&ze(i,P)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),ze(n,b),_e(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(){ke(i,P),ke(r,P)},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&&Ee(n,W),ke(n,I),ke(n,g),ke(n,P),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,ke(n,z)):(ke(n,I),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?($e(n,W,function(){ze(n,I),ze(n,g),ze(n,P),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),ze(n,z),e.fading=!0):(ze(n,I),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 r=[];if(we(i?[t]:t.querySelectorAll("img"),function(t){be(n.filter)?n.filter.call(e,t)&&r.push(t):e.getImageURL(t)&&r.push(t)}),!r.length)return this;if(this.images=r,this.length=r.length,this.ready){var o=[];if(we(this.items,function(e,t){var n=e.querySelector("img"),i=r[t];i&&n&&i.src===n.src&&i.alt===n.alt||o.push(t)}),_e(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];ke(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[u]?(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||Ae(e,A,this.onStart),e[u]=void 0,this):this}},Xe={getImageURL:function(e){var t=this.options.url;return ue(t)?e.getAttribute(t):be(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),$e(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&&(Ae(document,F,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;ke(e,j),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;ze(e,j),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)&&$e(e,B,t.shown,{once:!0}),!1!==Ee(e,B)&&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(),ke(n,x),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)&&$e(e,G,t.hidden,{once:!0}),Ee(e,G,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 t=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var o=r.endX-r.startX,a=r.endY-r.startY;switch(this.action){case h:0===o&&0===a||(this.pointerMoved=!0,this.move(o,a,e));break;case p:this.zoom(function(e){var t=i({},e),n=[];return we(e,function(e,i){delete t[i],we(t,function(t){var i=Math.abs(e.startX-t.startX),r=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(i*i+r*r),c=(Math.sqrt(o*o+a*a)-s)/s;n.push(c)})}),n.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),n[0]}(n),!1,null,e);break;case f:this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(t.loop):o<-1&&this.next(t.loop))}we(n,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}},Ye=c.Viewer,Be=(Le=-1,function(){return Le+=1}),He=function(){function t(e){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,t),!e||1!==e.nodeType)throw new Error("The first argument is required and must be an element.");this.element=e,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=Be(),this.init()}return n=t,r=[{key:"noConflict",value:function(){return window.Viewer=Ye,t}},{key:"setDefaults",value:function(e){ye(a,ge(e)&&e)}}],(i=[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[u]){t[u]=this,n.focus&&!n.keyboard&&(n.focus=!1);var i="img"===t.localName,r=[];if(we(i?[t]:t.querySelectorAll("img"),function(t){be(n.filter)?n.filter.call(e,t)&&r.push(t):e.getImageURL(t)&&r.push(t)}),this.isImg=i,this.length=r.length,this.images=r,this.initBody(),pe(document.createElement(u).style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var t;(o+=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(){we(r,function(e){e.complete||(Ae(e,M,a),Ae(e,N,a))})}},we(r,function(e){var t,n;e.complete?a():($e(e,M,t=function(){Ae(e,N,n),a()},{once:!0}),$e(e,N,n=function(){Ae(e,M,t),a()},{once:!0}))})}else $e(t,A,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 r=i.querySelector(".".concat(u,"-container")),o=r.querySelector(".".concat(u,"-title")),a=r.querySelector(".".concat(u,"-toolbar")),s=r.querySelector(".".concat(u,"-navbar")),c=r.querySelector(".".concat(u,"-button")),l=r.querySelector(".".concat(u,"-canvas"));if(this.parent=n,this.viewer=r,this.title=o,this.toolbar=a,this.navbar=s,this.button=c,this.canvas=l,this.footer=r.querySelector(".".concat(u,"-footer")),this.tooltipBox=r.querySelector(".".concat(u,"-tooltip")),this.player=r.querySelector(".".concat(u,"-player")),this.list=r.querySelector(".".concat(u,"-list")),r.id="".concat(u).concat(this.id),o.id="".concat(u,"Title").concat(this.id),ke(o,t.title?Ne(Array.isArray(t.title)?t.title[0]:t.title):x),ke(s,t.navbar?Ne(t.navbar):x),Oe(c,x,!t.button),t.keyboard&&c.setAttribute("tabindex",0),t.backdrop&&(ke(r,"".concat(u,"-backdrop")),t.inline||"static"===t.backdrop||Ie(l,ce,"hide")),ue(t.className)&&t.className&&t.className.split(le).forEach(function(e){ke(r,e)}),t.toolbar){var d=document.createElement("ul"),h=ge(t.toolbar),f=de.slice(0,3),p=de.slice(7,9),m=de.slice(9);h||ke(a,Ne(t.toolbar)),we(h?t.toolbar:de,function(e,n){var i=h&&ge(e),r=h?Se(n):e,o=i&&!pe(e.show)?e.show:e;if(o&&(t.zoomable||-1===f.indexOf(r))&&(t.rotatable||-1===p.indexOf(r))&&(t.scalable||-1===m.indexOf(r))){var a=i&&!pe(e.size)?e.size:e,s=i&&!pe(e.click)?e.click:e,c=document.createElement("li");t.keyboard&&c.setAttribute("tabindex",0),c.setAttribute("role","button"),ke(c,"".concat(u,"-").concat(r)),be(s)||Ie(c,ce,r),fe(o)&&ke(c,Ne(o)),-1!==["small","large"].indexOf(a)?ke(c,"".concat(u,"-").concat(a)):"play"===r&&ke(c,"".concat(u,"-large")),be(s)&&$e(c,A,s),d.appendChild(c)}}),a.appendChild(d)}else ke(a,x);if(!t.rotatable){var y=a.querySelectorAll('li[class*="rotate"]');ke(y,O),we(y,function(e){a.appendChild(e)})}if(t.inline)ke(c,w),_e(r,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&_e(n,{position:"relative"}),n.insertBefore(r,e.nextSibling);else{ke(c,v),ke(r,b),ke(r,g),ke(r,x),_e(r,{zIndex:t.zIndex});var _=t.container;ue(_)&&(_=e.ownerDocument.querySelector(_)),_||(_=this.body),_.appendChild(r)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,be(t.ready)&&$e(e,X,t.ready,{once:!0}),!1!==Ee(e,X)?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}])&&e(n.prototype,i),r&&e(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}();return ye(He.prototype,Ve,Ue,We,qe,Xe),He}()},4486:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}n.d(t,{A:function(){return i}})},4868:function(e){"use strict";e.exports="data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E"},7642:function(e){e.exports=function(){return this.ELEMENT}()},5554:function(e){e.exports=function(){return this.Vue}()},6773:function(t){"use strict";t.exports=e},5360:function(e){"use strict";e.exports=t}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=n,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.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},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})},r.b="undefined"!=typeof document&&document.baseURI||self.location.href,r.nc=void 0;var o={};return function(){"use strict";r.r(o),r.d(o,{default:function(){return ee}});var e=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.curComponent,e._b({tag:"component",staticClass:"bpm-ocr",attrs:{fieldConf:e.fieldConf,container:e.container,row:e.row,mode:e.mode,formName:e.formName,uiType:e.uiType},on:{input:e.handleInput,change:e.handleChange},model:{value:e.curVal,callback:function(t){e.curVal=t},expression:"curVal"}},"component",e.$attrs,!1))};e._withStripped=!0;var t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-ocr-edit"},[n("el-upload",{ref:"uploader",staticClass:"ocr-compact-uploader",attrs:{action:e.uploadUrl,name:"userfile","show-file-list":!1,drag:"",multiple:"",limit:e.maxCount,accept:e.acceptExtensions,"before-upload":e.handleBeforeUpload,"on-success":e.handleUploadSuccess,"on-error":e.handleUploadError,disabled:e.disabled||e.isUploading}},[n("div",{staticClass:"ocr-drag-content",attrs:{"data-testid":"ocr-drag-content"}},[n("div",{staticClass:"ocr-drag-left"},[n("div",{staticClass:"ocr-icon-box"},[n("i",{staticClass:"el-icon-document-checked"})]),e._v(" "),n("div",{staticClass:"ocr-text-group"},[n("div",{staticClass:"ocr-main-title",attrs:{"data-testid":"ocr-main-title"}},[e._v("\n "+e._s(e.$z("点击或将文件拖拽至此处识别","c.ocr_drag_upload_tip"))+"\n ")]),e._v(" "),n("div",{staticClass:"ocr-sub-tip",attrs:{"data-testid":"ocr-sub-tip"}},[e._v("\n "+e._s(e.subTip)+"\n ")])])]),e._v(" "),n("div",{staticClass:"ocr-drag-right"},[n("div",{staticClass:"ocr-upload-btn",class:{"is-disabled":e.disabled||e.isUploading},attrs:{"data-testid":"ocr-upload-btn"}},[n("i",{class:e.isUploading?"el-icon-loading":"el-icon-upload2",attrs:{"data-testid":"ocr-upload-icon"}}),e._v(" "),n("span",{attrs:{"data-testid":"ocr-upload-btn-text"}},[e._v("\n "+e._s(e.isUploading?e.$z("上传中...","c.uploading"):e.$z("上传文件","c.upload_file"))+"\n ")])])])])]),e._v(" "),e.curVal&&e.curVal.length?n("div",{staticClass:"ocr-file-list"},[n("viewer",{staticStyle:{width:"100%"},attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,function(t,i){return n("div",{key:t.md5||i,staticClass:"ocr-file-item",attrs:{"data-testid":"ocr-file-item"}},[n("div",{staticClass:"ocr-file-header"},[n("div",{staticClass:"file-thumb",on:{click:function(n){e.isImageFile(t)?e.previewImg(t):e.preview(t)}}},[e.isImageFile(t)?n("img",{staticClass:"thumb-img",attrs:{src:e.fileLink(t,100),"data-source":e.fileLink(t,-1),alt:""}}):n("i",{staticClass:"fa thumb-icon",class:e.getFileTypeClass(t),attrs:{"aria-hidden":"true"}})]),e._v(" "),n("div",{staticClass:"file-meta"},[n("div",{staticClass:"file-name",attrs:{"data-testid":"ocr-file-name",title:t.name}},[e._v(e._s(t.name))]),e._v(" "),n("div",{staticClass:"file-status-row"},[e.isOcrPending(t.ocr_status)?n("span",{staticClass:"status-badge status-pending",attrs:{"data-testid":"ocr-status-pending"}},[n("i",{staticClass:"el-icon-time"}),e._v(" "+e._s(e.$z("等待识别","c.ocr_pending"))+"\n ")]):e.isOcrProcessing(t.ocr_status)?n("span",{staticClass:"status-badge status-processing",attrs:{"data-testid":"ocr-status-processing"}},[n("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$z("识别中","c.ocr_recognizing"))+" ("+e._s(e.getOcrProgress(t))+"%)\n ")]):e.isOcrSuccess(t.ocr_status)?n("span",{staticClass:"status-badge status-success",attrs:{"data-testid":"ocr-status-success"}},[n("i",{staticClass:"el-icon-circle-check"}),e._v(" "+e._s(e.$z("识别成功","c.ocr_success"))+"\n ")]):e._e(),e._v(" "),e.isOcrSuccess(t.ocr_status)&&e.hasConfidence(t)?n("span",{staticClass:"status-badge status-confidence",class:e.getConfidenceLevelClass(t),attrs:{"data-testid":"ocr-status-confidence"}},[e._v("\n "+e._s(e.$z("可信度","c.ocr_confidence"))+": "+e._s(e.formatConfidence(t.confidence))+"\n ")]):e.isOcrFailed(t.ocr_status)?n("span",{staticClass:"ocr-inline-error status-badge status-failed",attrs:{"data-testid":"ocr-status-failed",title:e.getErrorMessage(t)}},[n("i",{staticClass:"el-icon-circle-close"}),e._v(" "),n("span",{staticClass:"err-text"},[e._v(e._s(e.getErrorMessage(t)))])]):e._e()])]),e._v(" "),n("div",{staticClass:"file-actions"},["table"!==e.uiType&&e.canPreview(t)?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.preview(t)}}},[e._v("\n "+e._s(e.$z("预览","c.preview"))+"\n ")]):e._e(),e._v(" "),n("el-button",{staticClass:"btn-delete",attrs:{type:"text",size:"small","data-testid":"ocr-btn-delete",disabled:e.disabled},on:{click:function(n){return e.handleRemove(t)}}},[e._v("\n "+e._s(e.$z("删除","c.delete"))+"\n ")])],1)]),e._v(" "),e.isOcrProcessing(t.ocr_status)?n("div",{staticClass:"ocr-progress-bar"},[n("el-progress",{attrs:{percentage:e.getOcrProgress(t),"stroke-width":3,"show-text":!1,status:100===e.getOcrProgress(t)?"success":void 0}})],1):e._e(),e._v(" "),e.hasRawData(t)?n("div",{staticClass:"ocr-raw-data-section"},[n("el-collapse",{model:{value:e.activeCollapseMap[t.md5||i],callback:function(n){e.$set(e.activeCollapseMap,t.md5||i,n)},expression:"activeCollapseMap[item.md5 || index]"}},[n("el-collapse-item",{attrs:{name:"raw",title:e.$z("查看识别原始数据","c.ocr_view_raw_data")}},[n("div",{staticClass:"raw-json-container",attrs:{"data-testid":"ocr-raw-json-container"}},[n("button",{staticClass:"copy-raw-btn",attrs:{type:"button","data-testid":"ocr-copy-raw-btn",title:e.isCopied(t,i)?e.$z("已复制","c.copied"):e.$z("复制原始数据","c.copy_raw_data")},on:{click:function(n){return n.stopPropagation(),e.copyRawJson(t,i)}}},[n("i",{class:e.isCopied(t,i)?"el-icon-check copy-success-icon":"el-icon-document-copy"})]),e._v(" "),n("pre",[n("code",[e._v(e._s(e.formatJson(t.ocr_raw_data)))])])])])],1)],1):e._e()])}),0)],1):e._e(),e._v(" "),n("el-drawer",{directives:[{name:"el-drawer-drag-width",rawName:"v-el-drawer-drag-width",value:{allowBackground:!0},expression:"{ allowBackground: true }"}],staticClass:"file-modal",attrs:{"append-to-body":"","custom-class":"preview-drawer","close-on-click-modal":!1,wrapperClosable:!1,visible:e.opened,"before-close":e.onHide,title:e.curPreviewItem.name||e.$z("文件预览","c.file_preview"),size:"50%",modal:!1},on:{"update:visible":function(t){e.opened=t},open:e.onOpen}},[n("iframe",{attrs:{frameborder:"0",src:e.officeUrl,width:"100%",height:e.windowH}})])],1)};t._withStripped=!0;var n=r(6773),i=r.n(n),a=r(5554),s=r.n(a),c=r(8245),l=r(7642),d=(r(8085),r(9795));function u(e){return!!e&&(i().startsWith(e.type,"image")||/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(e.name||""))}function h(e,t){var n="",i=e||"",r=i.lastIndexOf(".");return-1!==r&&(n=i.substring(r+1).toLowerCase()),!n&&t&&(-1!==t.indexOf("pdf")?n="pdf":-1!==t.indexOf("sheet")&&(n="sheet")),"application/pdf"===t&&(n="pdf"),n}function f(e,t){return{pdf:"fa-file-pdf-o",png:"fa-file-image-o",jpg:"fa-file-image-o",jpeg:"fa-file-image-o",gif:"fa-file-image-o",webp:"fa-file-image-o",svg:"fa-file-image-o",doc:"fa-file-word-o",docx:"fa-file-word-o",xls:"fa-file-excel-o",xlsx:"fa-file-excel-o"}[h(e,t)]||"fa-file-o"}s().use(l.Dialog),s().use(l.Drawer),s().use(c.Ay),c.Ay.setDefaults({url:"data-source"});var p={data(){return{curPreviewItem:{},officeUrl:"",opened:!1,windowH:0}},computed:{pdfViewer(){return i().get(this.fieldConf,"style.pdf_viewer","default")},perm(){return i().get(this.fieldConf,"perm",{})},pdf_annotation_perm(){return i().get(this.fieldConf,"pdf_annotation_perm",{annotatable:!1,annotations_visible:!1})},userId(){var e=this.$bpm&&this.$bpm.userInfo;return i().get(e,"user_id",0)},userName(){var e=this.$bpm&&this.$bpm.userInfo;return i().get(e,"user_name","")},photoMd5s(){var e=this;return(this.curVal||[]).filter(function(t){return e.isImageFile(t)}).map(function(e){return e.md5})}},mounted(){this.windowH=document.body.clientHeight/100*99-50},beforeDestroy(){this.$viewer&&"function"==typeof this.$viewer.destroy&&this.$viewer.destroy()},methods:{isImageFile(e){return u(e)},getFileTypeClass(e){return f(e&&e.name,e&&e.type)},canPreview(e){return!!e&&"pdf"===h(e.name||"",e.type||"")},inited(e){this.$viewer=e},fileLink(e,t){if(!e||!e.md5)return e&&e.src?e.src:"";var n={file_md5:e.md5};return t&&(n.width=t),this.isImageFile(e)||(n.is_file=1),(0,d.zC)("/platform/v1/papi/web_file/image_view/",n)},previewImg(e){var t=i().indexOf(this.photoMd5s,e&&e.md5);this.$viewer&&t>=0&&this.$viewer.view(t)},async getPreviewInfo(e){var t=await window.zj.net.w.noapi({url:"/platform/v1/papi/app_file/download/?file_md5="+e.md5+"&webp=0"}),n=i().get(t,"url_list.0.path.0",""),r=h(n||"",e.type);return"application/pdf"===e.type&&(r="pdf"),{previewUrl:n,fileSuffix:r}},buildPdfPreviewUrl(e,t){var n=e||"",i=n.lastIndexOf(".com"),r=4;if(-1===i&&(i=n.lastIndexOf(".cn"),r=3),-1!==i&&(n=n.substring(i+r,n.length)),n=encodeURIComponent(n),"inkLayer"===this.pdfViewer){var o=!1,a="view";this.pdf_annotation_perm.annotatable&&(o=!0,a="edit"),this.pdf_annotation_perm.annotations_visible&&(a="edit");var s=this.$bpm&&this.$bpm.curFormId||window.zj.pageParam&&window.zj.pageParam().form_id||"",c=window.zj.pageParam&&window.zj.pageParam().project_id||"",l=this.fieldConf&&this.fieldConf.id||"",u="/public_pdf_linklayer/index.html?mode="+a+"&user_name="+this.userName+"&user_id="+this.userId+"&can_annotate="+o+"&file="+n+"&md5="+t.md5+"&tag="+t.md5+l+c+s,h=window.zj.ui&&window.zj.ui.locale&&window.zj.ui.locale();h&&(u=u+"&lang="+h);var f=window.zj.pageParam&&window.zj.pageParam().token;return f&&(u=u+"&token="+f),u}return(0,d.Fr)()?"/public/app3/bpm/view_pdf.html?url="+n:"/public/bpm/app/view_pdf.html?url="+n},async previewPDF(e,t){var n=t;return n||(n=(await this.getPreviewInfo(e)).previewUrl),this.officeUrl=this.buildPdfPreviewUrl(n,e),this.opened=!0,!0},async openPreview(e,t){var n=(t||{}).checkPreviewable||!1;if(!e)return!1;if(n&&!this.canPreview(e))return!1;this.curPreviewItem=e;var i=await this.getPreviewInfo(e);return"pdf"===i.fileSuffix&&this.previewPDF(e,i.previewUrl)},async preview(e){return this.openPreview(e,{checkPreviewable:!0})},download(e){e&&e.md5&&window.open("/platform/v1/papi/web_file/web_download/?file_md5="+e.md5)},onHide(e){this.opened=!1,this.officeUrl="","function"==typeof e&&e()},onOpen(){this.opened=!0}}},m=r(5360),v=r.n(m);const g={PENDING:1,PROCESSING:2,SUCCESS:3,SUCCESS_LEGACY:30,FAILED:5,PARTIAL_FAILED:6},b=e=>Number(e)===g.PENDING,w=e=>Number(e)===g.PROCESSING,y=e=>{const t=Number(e);return t===g.SUCCESS||t===g.SUCCESS_LEGACY},x=e=>{const t=Number(e);return t===g.FAILED||t===g.PARTIAL_FAILED},_=e=>{if(!e||void 0===e.confidence||null===e.confidence||""===e.confidence)return!1;const t=parseFloat(e.confidence);return!isNaN(t)&&t>=0&&t<=1},C=e=>{if(null==e||""===e)return"";const t=parseFloat(e);return isNaN(t)||t<0?"":Number(t.toFixed(2))};var k={inject:{getDetailFormId:{default:()=>()=>""}},props:{container:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},formName:{type:String,default:""},formId:{type:[String,Number],default:""},orgInfo:{type:Object,default:()=>({})},uiType:{type:String,default:"default"},mode:{type:String,default:""}},data(){return{ocrPollingTimer:null,isPolling:!1,hasInitialFetched:!1,lastPolledFormId:"",pollingRetryCount:0}},computed:{ocrSetting(){return this.fieldConf&&this.fieldConf.ocr_setting||{}}},beforeDestroy(){this.stopOcrPolling()},methods:{hasWorkingFiles(){return(this.curVal||[]).some(e=>e&&(e=>{const t=Number(e);return t===g.PENDING||t===g.PROCESSING})(e.ocr_status))},isInFixedTableWrapper(){var e=this.$el;if(!e||!e.nodeType)return!1;if("function"==typeof e.closest)return!!e.closest(".el-table__fixed, .el-table__fixed-right");for(var t=e.parentElement;t;){if(t.classList&&(t.classList.contains("el-table__fixed")||t.classList.contains("el-table__fixed-right")))return!0;t=t.parentElement}return!1},getResolvedFormId(){if("function"==typeof this.getDetailFormId){var e=this.getDetailFormId();if(e)return String(e)}if("table"===this.uiType&&this.row){var t=this.row.form_id||this.row.id;if(t)return String(t)}return this.formId?String(this.formId):""},getResolvedFormDefId(){let e=this.formName||"";return!e&&this.container&&(e=this.container.cusFormId||this.container.formDefId||this.container.form&&this.container.form.cusFormId||this.container.formSchema&&this.container.formSchema.id||""),!e&&window.zj&&window.zj.pageParam&&(e=window.zj.pageParam().form_name||""),e?String(e):""},getResolvedOrgParams(){const e="undefined"!=typeof window&&window.location?v().parse((window.location.search||"").replace(/^\?/,"")):{},t=window.zj&&window.zj.pageParam&&window.zj.pageParam()||{},n=this.container&&(this.container.orgParams||this.container.orgInfo)||{},i=this.$bpm&&this.$bpm.orgInfo||{},r=this.orgInfo||{},o=Object.assign({},i,n,r,t,e),a=o.page_level||"project",s=o.group_id||("group"===a?o.team_id:""),c=o.team_id,l=o.project_id,d={page_level:a};return s&&(d.group_id=s),"team"!==a&&"project"!==a||!c||(d.team_id=c),"project"===a&&l&&(d.project_id=l),d},checkAndPollOcrStatus(){if(this.isInFixedTableWrapper())return void this.stopOcrPolling();if(!this.$el||!this.$el.nodeType)return void this.$nextTick(()=>{this.isInFixedTableWrapper()?this.stopOcrPolling():this.checkAndPollOcrStatus()});const e=this.getResolvedFormId();if(e)if(this.hasWorkingFiles()){if(this.lastPolledFormId!==e&&(this.lastPolledFormId=e,this.hasInitialFetched=!1,this.pollingRetryCount=0),this.hasInitialFetched||(this.hasInitialFetched=!0,this.fetchOcrContentByLatestTitle()),!this.ocrPollingTimer){const e=this.ocrSetting.polling_interval_time||3e3,t="table"===this.uiType?Math.floor(800*Math.random()):0;t>0?setTimeout(()=>{this.ocrPollingTimer||!this.hasWorkingFiles()||this.isInFixedTableWrapper()||(this.ocrPollingTimer=setInterval(()=>{this.fetchOcrContentByLatestTitle()},e))},t):this.ocrPollingTimer=setInterval(()=>{this.fetchOcrContentByLatestTitle()},e)}}else this.stopOcrPolling();else this.stopOcrPolling()},stopOcrPolling(){this.ocrPollingTimer&&(clearInterval(this.ocrPollingTimer),this.ocrPollingTimer=null)},async fetchOcrContentByLatestTitle(){if(this.isPolling)return;if(this.isInFixedTableWrapper())return void this.stopOcrPolling();const e=this.getResolvedFormDefId(),t=this.fieldConf&&this.fieldConf.id||"",n=this.getResolvedFormId();if(e&&t&&n)if(this.pollingRetryCount>=120)this.stopOcrPolling();else{this.pollingRetryCount++,this.isPolling=!0;try{const i=this.getResolvedOrgParams(),r=v().stringify(i),o=`/app_flow/v1/papi/assist_field_latest/${e}/${t}/list_title/${r?"?"+r:""}`,a=window.zj&&window.zj.net&&window.zj.net.w&&window.zj.net.w.noapi&&window.zj.net.w.noapi.json;let s=null;a?s=await a({url:o,method:"POST",data:{form_id:n}}):window.zj&&window.zj.net&&window.zj.net.request&&(s=await window.zj.net.request({url:o,method:"POST",headers:{"Content-Type":"application/json"},data:{form_id:n}})),this.applyOcrProcessFromFiles(s)}catch(e){console.warn("通过 assist_field_latest 获取进度异常:",e)}finally{this.isPolling=!1}}},applyOcrProcessFromFiles(e){if(!e)return;let t=e.data?e.data:e;t&&t.data&&(t=t.data),t&&t.data&&(t=t.data);let n=[];Array.isArray(t)?n=t:t&&"object"==typeof t&&(n=t.files||t.items||t.value||[]);let i=!1;if(Array.isArray(n)&&n.length>0&&n.forEach(e=>{if(!e)return;const t=(this.curVal||[]).find(t=>e.md5&&t.md5===e.md5||e.name&&t.name===e.name);if(t){if(void 0!==e.ocr_progress&&null!==e.ocr_progress&&(this.$set(t,"ocr_progress",Number(e.ocr_progress)),i=!0),void 0!==e.ocr_status&&null!==e.ocr_status&&(this.$set(t,"ocr_status",Number(e.ocr_status)),i=!0),void 0!==e.ocr_raw_data&&null!==e.ocr_raw_data&&(this.$set(t,"ocr_raw_data",e.ocr_raw_data),i=!0),void 0!==e.ocr_messages&&null!==e.ocr_messages&&(this.$set(t,"ocr_messages",e.ocr_messages),i=!0),void 0!==e.confidence&&null!==e.confidence){const n=parseFloat(e.confidence);!isNaN(n)&&n>=0&&n<=1&&(this.$set(t,"confidence",n),i=!0)}"function"==typeof this.onOcrItemUpdated&&this.onOcrItemUpdated(t)}}),i)if(!this.hasWorkingFiles()||this.isInFixedTableWrapper())this.stopOcrPolling();else if(!this.ocrPollingTimer){const e=this.ocrSetting.polling_interval_time||3e3;this.ocrPollingTimer=setInterval(()=>{this.fetchOcrContentByLatestTitle()},e)}}}},z={name:"BpmOcrEditor",mixins:[p,k],props:{value:{type:Array,default:()=>[]},fieldConf:{type:Object,default:()=>({})},container:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},formName:{type:String,default:""},disabled:{type:Boolean,default:!1}},data(){return{curVal:[],uploadingCount:0,OCR_STATUS:g,activeCollapseMap:{},copiedMap:{}}},computed:{isUploading(){return this.uploadingCount>0},formData(){return this.container&&this.container.isSubForm?this.container.container&&this.container.container.formData||{}:this.container&&this.container.formData||{}},ocrSetting(){return this.fieldConf&&this.fieldConf.ocr_setting||{}},uploadUrl(){return i().get(this.fieldConf,"options.upload_url")||"/platform/v1/papi/app_file/upload/"},syncMode(){return i().get(this.fieldConf,"options.sync_mode","async")},showRawData(){return"table"!==this.uiType&&i().get(this.fieldConf,"options.show_raw_data",!0)},maxCount(){return i().get(this.fieldConf,"options.check.max_count",10)},maxSize(){return i().get(this.fieldConf,"options.max_size",20)},formatTip(){const e=i().get(this.fieldConf,"options.accept_types",[]);if(!e||0===e.length)return"JPG/PNG/PDF";const t={"image/jpeg":"JPG","image/jpg":"JPG","image/png":"PNG","application/pdf":"PDF",".jpg":"JPG",".jpeg":"JPG",".png":"PNG",".pdf":"PDF"},n=e.map(e=>{const n=(e||"").toLowerCase();return t[n]||e.replace(/.*\//,"").replace(/^\./,"").toUpperCase()}),r=Array.from(new Set(n.filter(Boolean)));return r.length>0?r.join("/"):"JPG/PNG/PDF"},subTip(){return this.$z(`支持 ${this.formatTip},单文件 ≤ ${this.maxSize}MB`,"c.ocr_support_format_and_size",{format:this.formatTip,size:this.maxSize})},acceptExtensions(){const e=i().get(this.fieldConf,"options.accept_types",[]);return e.length>0?e.join(","):".jpg,.jpeg,.png,.pdf,image/jpeg,image/png,application/pdf"},photo(){return(this.curVal||[]).filter(e=>u(e)).map(e=>this.fileLink(e,-1))}},watch:{value:{handler(e){Array.isArray(e)?this.curVal=e:this.curVal=[],this.checkAndPollOcrStatus()},immediate:!0}},mounted(){this.checkAndPollOcrStatus()},beforeDestroy(){this.stopOcrPolling()},methods:{isOcrPending:b,isOcrProcessing:w,isOcrSuccess:y,isOcrFailed:x,isOcrFinished:e=>y(e)||x(e),hasConfidence:_,formatConfidence:C,isImageFile(e){return u(e)},getFileTypeClass(e){return f(e.name||"",e.type||"")},getOcrProgress(e){return e&&void 0!==e.ocr_progress&&null!==e.ocr_progress&&Number(e.ocr_progress)||0},hasRawData(e){return!!(this.showRawData&&e&&e.ocr_raw_data)&&("string"==typeof e.ocr_raw_data?e.ocr_raw_data.trim().length>0:Object.keys(e.ocr_raw_data).length>0)},formatJson(e){try{var t="string"==typeof e?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch(t){return String(e)}},isCopied(e,t){var n=e&&(e.md5||e.name)||t||"default";return!!this.copiedMap[n]},copyRawJson(e,t){if(e&&e.ocr_raw_data){var n=this.formatJson(e.ocr_raw_data),i=e&&(e.md5||e.name)||t||"default",r=this,o=function(){r.$set(r.copiedMap,i,!0),r.$message&&r.$message.success(r.$z("已复制到剪贴板","c.copied_to_clipboard")),setTimeout(function(){r.$set(r.copiedMap,i,!1)},2e3)};navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(n).then(o).catch(function(){r.fallbackCopyText(n,o)}):this.fallbackCopyText(n,o)}},fallbackCopyText(e,t){try{var n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.top="0",n.style.left="-9999px",n.style.opacity="0",document.body.appendChild(n),n.focus(),n.select();var i=document.execCommand("copy");document.body.removeChild(n),i&&t&&t()}catch(e){console.error("复制失败",e)}},getErrorMessage(e){return e.ocr_messages&&e.ocr_messages.length>0?e.ocr_messages.join(";"):this.$z("OCR 识别失败,请检查文件清晰度或重试","c.ocr_recognize_failed_check")},getConfidenceLevelClass(e){const t=parseFloat(e&&e.confidence);return isNaN(t)?"":t>=.85?"confidence-high":"confidence-medium"},onOcrItemUpdated(e){this.isOcrSuccess(e.ocr_status)&&e.ocr_raw_data&&this.applyFormFieldsMapping(e.ocr_raw_data)},applyFormFieldsMapping(e){this.ocrSetting.this_form&&Array.isArray(this.ocrSetting.fields)&&this.ocrSetting.fields.forEach(t=>{if(!t||!t.ocr_field||!t.target_field)return;const n=i().get(e,t.ocr_field);null!=n&&this.$set(this.formData,t.target_field,n)})},handleBeforeUpload(e){return this.curVal.length>=this.maxCount?(this.$message.warning(this.$z("最多允许上传 {maxCount} 个文件","c.ocr_max_count_limit",{maxCount:this.maxCount})),!1):e.size/1024/1024<this.maxSize?(this.uploadingCount++,!0):(this.$message.error(this.$z("文件大小不能超过 {maxSize}MB!","c.ocr_file_size_exceed",{maxSize:this.maxSize})),!1)},handleUploadSuccess(e,t){this.uploadingCount=Math.max(0,this.uploadingCount-1);const n=e&&e.data&&e.data.file_md5||e&&e.file_md5;if(!n)return void this.$message.error(this.$z("上传成功但未获取到文件 MD5 标识","c.ocr_missing_md5"));if(this.curVal.some(e=>e.md5===n))return void this.$message.warning(this.$z("该文件已上传,请勿重复添加","c.ocr_file_already_uploaded"));const i={md5:n,name:t.name,type:t.raw&&t.raw.type||(t.name.endsWith(".pdf")?"application/pdf":"image/jpeg"),upload_time:Math.floor(Date.now()/1e3),ocr_status:g.PENDING,ocr_progress:0,ocr_raw_data:void 0,ocr_messages:[]};this.curVal.push(i),this.emitChange(),this.checkAndPollOcrStatus()},handleUploadError(){this.uploadingCount=Math.max(0,this.uploadingCount-1),this.$message.error(this.$z("上传失败,请重试","c.upload_failed_try_again"))},handleReOcr(e){e.ocr_status=g.PENDING,e.ocr_progress=0,e.ocr_raw_data=void 0,e.ocr_messages=[],e.confidence=null,this.emitChange(),this.checkAndPollOcrStatus()},handleRemove(e){const t=e&&e.md5;this.curVal=this.curVal.filter(n=>t&&n.md5?n.md5!==t:n!==e),this.emitChange(),this.checkAndPollOcrStatus()},emitChange(){this.$emit("input",this.curVal),this.$emit("change",this.curVal)}}},O=r(5072),T=r.n(O),S=r(7825),j=r.n(S),I=r(7659),P=r.n(I),A=r(5056),$=r.n(A),E=r(540),F=r.n(E),D=r(1113),M=r.n(D),N=r(7688),R={};R.styleTagTransform=M(),R.setAttributes=$(),R.insert=P().bind(null,"head"),R.domAPI=j(),R.insertStyleElement=F(),T()(N.A,R),N.A&&N.A.locals&&N.A.locals;var L=r(4486),V=(0,L.A)(z,t,[],!1,null,"7f6a5f5a",null);V.options.__file="components/lib/bpmOcr/src/part/editor.vue";var U=V.exports,W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bpm-ocr-reader",attrs:{"data-testid":"bpm-ocr-reader"}},[e.curVal&&0!==e.curVal.length?n("div",{staticClass:"ocr-file-list"},[n("viewer",{staticStyle:{width:"100%"},attrs:{images:e.photo,rebuild:""},on:{inited:e.inited}},e._l(e.curVal,function(t,i){return n("div",{key:t.md5||i,staticClass:"ocr-file-item",class:"compact-level-"+e.compactLevel,attrs:{"data-testid":"ocr-reader-file-item"}},[n("div",{staticClass:"ocr-file-header"},[0===e.compactLevel?n("div",{staticClass:"file-thumb",on:{click:function(n){e.isImageFile(t)?e.previewImg(t):e.preview(t)}}},[e.isImageFile(t)?n("img",{staticClass:"thumb-img",attrs:{src:e.fileLink(t,100),"data-source":e.fileLink(t,-1),alt:""}}):n("i",{staticClass:"fa thumb-icon",class:e.getFileTypeClass(t),attrs:{"aria-hidden":"true"}})]):e._e(),e._v(" "),n("div",{staticClass:"file-meta"},[n("div",{staticClass:"file-name",attrs:{"data-testid":"ocr-reader-file-name",title:t.name}},[e._v(e._s(t.name))]),e._v(" "),n("div",{staticClass:"file-status-row"},[n("el-tooltip",{attrs:{disabled:0===e.compactLevel,content:e.getStatusTooltip(t),placement:"top"}},[n("div",{staticClass:"status-badge-container"},[e.isOcrSuccess(t.ocr_status)?[n("span",{staticClass:"status-badge status-success",attrs:{"data-testid":"ocr-reader-status-success"}},[n("i",{staticClass:"el-icon-circle-check status-icon"}),e._v(" "),e.compactLevel<2?n("span",{staticClass:"status-text"},[e._v(e._s(e.$z("识别成功","c.ocr_success")))]):e._e()]),e._v(" "),e.hasConfidence(t)?n("span",{staticClass:"status-badge status-confidence",class:e.getConfidenceLevelClass(t),attrs:{"data-testid":"ocr-reader-status-confidence"}},[0===e.compactLevel?n("span",{staticClass:"confidence-label"},[e._v(e._s(e.$z("可信度","c.ocr_confidence"))+": ")]):e._e(),e._v(" "),n("span",{staticClass:"confidence-val"},[e._v(e._s(e.formatConfidence(t.confidence)))])]):e._e()]:e.isOcrFailed(t.ocr_status)?[n("span",{staticClass:"status-badge status-failed",attrs:{"data-testid":"ocr-reader-status-failed"}},[n("i",{staticClass:"el-icon-circle-close status-icon"}),e._v(" "),e.compactLevel<2?n("span",{staticClass:"status-text"},[e._v(e._s(e.$z("识别失败","c.ocr_failed")))]):e._e()])]:e.isOcrProcessing(t.ocr_status)?[n("span",{staticClass:"status-badge status-processing",attrs:{"data-testid":"ocr-reader-status-processing"}},[n("i",{staticClass:"el-icon-loading status-icon"}),e._v(" "),e.compactLevel<2?n("span",{staticClass:"status-text"},[e._v(e._s(e.$z("识别中","c.ocr_recognizing")))]):e._e(),e._v(" "),n("span",{staticClass:"progress-val"},[e._v("("+e._s(e.getOcrProgress(t))+"%)")])])]:[n("span",{staticClass:"status-badge status-pending",attrs:{"data-testid":"ocr-reader-status-pending"}},[n("i",{staticClass:"el-icon-time status-icon"}),e._v(" "),e.compactLevel<2?n("span",{staticClass:"status-text"},[e._v(e._s(e.$z("等待识别","c.ocr_pending")))]):e._e()])]],2)])],1)]),e._v(" "),"table"!==e.uiType?n("div",{staticClass:"file-actions"},[e.canPreview(t)?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.preview(t)}}},[e._v("\n "+e._s(e.$z("预览","c.preview"))+"\n ")]):e._e()],1):e._e()]),e._v(" "),e.hasRawData(t)?n("div",{staticClass:"ocr-raw-data-section"},[n("el-collapse",{model:{value:e.activeCollapseMap[t.md5||i],callback:function(n){e.$set(e.activeCollapseMap,t.md5||i,n)},expression:"activeCollapseMap[item.md5 || index]"}},[n("el-collapse-item",{attrs:{name:"raw",title:e.$z("识别原始数据","c.ocr_raw_data")}},[n("div",{staticClass:"raw-json-container",attrs:{"data-testid":"ocr-reader-raw-json-container"}},[n("button",{staticClass:"copy-raw-btn",attrs:{type:"button","data-testid":"ocr-reader-copy-raw-btn",title:e.isCopied(t,i)?e.$z("已复制","c.copied"):e.$z("复制原始数据","c.copy_raw_data")},on:{click:function(n){return n.stopPropagation(),e.copyRawJson(t,i)}}},[n("i",{class:e.isCopied(t,i)?"el-icon-check copy-success-icon":"el-icon-document-copy"})]),e._v(" "),n("pre",[n("code",[e._v(e._s(e.formatJson(t.ocr_raw_data)))])])])])],1)],1):e._e()])}),0)],1):n("div",{staticClass:"no-files-tip",attrs:{"data-testid":"ocr-no-files-tip"}},[e._v("\n "+e._s(e.$z("暂无 OCR 文件","c.ocr_no_files"))+"\n ")]),e._v(" "),n("el-drawer",{directives:[{name:"el-drawer-drag-width",rawName:"v-el-drawer-drag-width",value:{allowBackground:!0},expression:"{ allowBackground: true }"}],staticClass:"file-modal",attrs:{"append-to-body":"","custom-class":"preview-drawer","close-on-click-modal":!1,wrapperClosable:!1,visible:e.opened,"before-close":e.onHide,title:e.curPreviewItem.name||e.$z("文件预览","c.file_preview"),size:"50%",modal:!1},on:{"update:visible":function(t){e.opened=t},open:e.onOpen}},[n("iframe",{attrs:{frameborder:"0",src:e.officeUrl,width:"100%",height:e.windowH}})])],1)};W._withStripped=!0;var q={name:"BpmOcrReader",mixins:[p,k],props:{value:{type:Array,default:()=>[]},fieldConf:{type:Object,default:()=>({})},uiType:{type:String,default:"default"}},data(){return{curVal:[],OCR_STATUS:g,activeCollapseMap:{},copiedMap:{},compactLevel:0,resizeObserver:null}},created(){this.compactLevel=this.computeInitialCompactLevel()},computed:{showRawData(){return"table"!==this.uiType&&i().get(this.fieldConf,"options.show_raw_data",!0)},photo(){return(this.curVal||[]).filter(e=>u(e)).map(e=>this.fileLink(e,-1))}},watch:{value:{handler(e){Array.isArray(e)?this.curVal=i().cloneDeep(e):this.curVal=[],this.checkAndPollOcrStatus()},immediate:!0}},mounted(){this.checkAndPollOcrStatus(),this.initResizeObserver()},beforeDestroy(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},methods:{isOcrPending:b,isOcrProcessing:w,isOcrSuccess:y,isOcrFailed:x,hasConfidence:_,formatConfidence:C,computeInitialCompactLevel(){if("table"===this.uiType){var e=parseFloat(i().get(this.fieldConf,"display.column_width",200));if(!isNaN(e)){if(e<170)return 2;if(e<240)return 1}}return 0},initResizeObserver(){if("undefined"!=typeof ResizeObserver){var e=this;this.resizeObserver=new ResizeObserver(function(t){if(t&&t.length){var n=t[0],i=n.contentRect&&n.contentRect.width||e.$el&&e.$el.clientWidth||0;i&&(e.compactLevel=i>=240?0:i>=170?1:2)}}),this.$el&&this.resizeObserver.observe(this.$el)}},getStatusTooltip(e){if(!e)return"";var t="";return t=this.isOcrSuccess(e.ocr_status)?this.$z("识别成功","c.ocr_success"):this.isOcrFailed(e.ocr_status)?this.$z("识别失败","c.ocr_failed"):this.isOcrProcessing(e.ocr_status)?this.$z("识别中","c.ocr_recognizing")+" ("+this.getOcrProgress(e)+"%)":this.$z("等待识别","c.ocr_pending"),this.isOcrSuccess(e.ocr_status)&&this.hasConfidence(e)&&(t+=" | "+this.$z("可信度","c.ocr_confidence")+": "+this.formatConfidence(e.confidence)),t},getConfidenceLevelClass(e){const t=parseFloat(e&&e.confidence);return isNaN(t)?"":t>=.85?"confidence-high":"confidence-medium"},isImageFile(e){return u(e)},getFileTypeClass(e){return f(e.name||"",e.type||"")},hasRawData(e){return!!(this.showRawData&&e&&e.ocr_raw_data)&&("string"==typeof e.ocr_raw_data?e.ocr_raw_data.trim().length>0:Object.keys(e.ocr_raw_data).length>0)},formatJson(e){try{var t="string"==typeof e?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch(t){return String(e)}},getOcrProgress(e){return e&&void 0!==e.ocr_progress&&null!==e.ocr_progress&&Number(e.ocr_progress)||0},isCopied(e,t){var n=e&&(e.md5||e.name)||t||"default";return!!this.copiedMap[n]},copyRawJson(e,t){if(e&&e.ocr_raw_data){var n=this.formatJson(e.ocr_raw_data),i=e&&(e.md5||e.name)||t||"default",r=this,o=function(){r.$set(r.copiedMap,i,!0),r.$message&&r.$message.success(r.$z("已复制到剪贴板","c.copied_to_clipboard")),setTimeout(function(){r.$set(r.copiedMap,i,!1)},2e3)};navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(n).then(o).catch(function(){r.fallbackCopyText(n,o)}):this.fallbackCopyText(n,o)}},fallbackCopyText(e,t){try{var n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.top="0",n.style.left="-9999px",n.style.opacity="0",document.body.appendChild(n),n.focus(),n.select();var i=document.execCommand("copy");document.body.removeChild(n),i&&t&&t()}catch(e){console.error("复制失败",e)}}}},X=r(3539),Y={};Y.styleTagTransform=M(),Y.setAttributes=$(),Y.insert=P().bind(null,"head"),Y.domAPI=j(),Y.insertStyleElement=F(),T()(X.A,Y),X.A&&X.A.locals&&X.A.locals;var B=(0,L.A)(q,W,[],!1,null,"1dcc6ca9",null);B.options.__file="components/lib/bpmOcr/src/part/reader.vue";var H=B.exports,G={name:"BpmOcr",components:{editorComponent:U,readerComponent:H},props:{value:{type:Array,default:()=>[]},fieldConf:{type:Object,default:()=>({})},container:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},mode:{type:String,default:"view"},formName:{type:String},uiType:{type:String,default:"default"}},data(){return{curVal:[]}},computed:{curComponent(){return"view"===this.mode?H:U}},watch:{value:{handler(e){this.curVal=Array.isArray(e)?e:[]},immediate:!0}},methods:{handleInput(e){this.curVal=e,this.$emit("input",e)},handleChange(e){this.curVal=e,this.$emit("input",e),this.$emit("change",e)}}},J=r(8284),Z={};Z.styleTagTransform=M(),Z.setAttributes=$(),Z.insert=P().bind(null,"head"),Z.domAPI=j(),Z.insertStyleElement=F(),T()(J.A,Z),J.A&&J.A.locals&&J.A.locals;var K=(0,L.A)(G,e,[],!1,null,"6bdb94df",null);K.options.__file="components/lib/bpmOcr/src/main.vue";var Q=K.exports;Q.install=function(e){e.component(Q.name,Q)};var ee=Q}(),o}()});