text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3345c179"],{"0808":function(t,e,i){},"2e87":function(t,e,i){},6944:function(t,e,i){(function(e,n){t.exports=n(i("c82c"))})(0,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(e,i){e.exports=t},function(t,e,i){"use strict";(function(t){var n=i(0),a=i.n(n),o=i(5),s=function(e,n){var s=n.name,r=void 0===s?"viewer":s,c=n.debug,l=void 0!==c&&c;function h(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.nextTick((function(){n||!t["$"+r]?(f(t),t["$"+r]=new a.a(t,i),p("viewer created")):(t["$"+r].update(),p("viewer updated"))}))}function u(e,i,n,a){v(e);var o=t.MutationObserver||t.WebKitMutationObserver||t.MozMutationObserver;if(o){var s=new o((function(t){t.forEach((function(t){p("viewer mutation:"+t.type),n(e,i,a)}))})),r={attributes:!0,childList:!0,characterData:!0,subtree:!0};s.observe(e,r),e["$viewerMutationObserver"]=s,p("observer created")}else p("observer not supported")}function d(t,e,i,n){var a=e.expression,o=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;a&&o.test(a)?(t["$viewerUnwatch"]=i.context.$watch(a,(function(e,i){p("change detected by watcher: ",a),n(t,e,!0)}),{deep:!0}),p("watcher created, expression: ",a)):p("only simple dot-delimited paths can create watcher")}function f(t){t["$"+r]&&(t["$"+r].destroy(),delete t["$"+r],p("viewer destroyed"))}function v(t){t["$viewerMutationObserver"]&&(t["$viewerMutationObserver"].disconnect(),delete t["$viewerMutationObserver"],p("observer destroyed"))}function m(t){t["$viewerUnwatch"]&&(t["$viewerUnwatch"](),delete t["$viewerUnwatch"],p("watcher destroyed"))}function p(){var t;l&&(t=console).log.apply(t,arguments)}e.directive("viewer",{bind:function(t,e,n){p("viewer bind");var a=i.i(o["a"])(50,h);a(t,e.value),d(t,e,n,a),e.modifiers.static||u(t,e.value,a,e.modifiers.rebuild)},unbind:function(t,e){p("viewer unbind"),v(t),m(t),f(t)}})};e["a"]={install:s}}).call(e,i(7))},function(t,e,i){"use strict";function n(){var t={},e=!1,i=0,a=arguments.length;function o(i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e&&"[object Object]"===Object.prototype.toString.call(i[a])?t[a]=n(!0,t[a],i[a]):t[a]=i[a])}for("[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],i++);i<a;i++){var s=arguments[i];o(s)}return t}e["a"]=n},function(t,e,i){var n=i(8)(i(6),i(9),null,null);n.options.__file="C:\\Workspaces\\Web\\Git\\v-viewer\\src\\component.vue",n.esModule&&Object.keys(n.esModule).some((function(t){return"default"!==t&&"__esModule"!==t}))&&console.error("named exports are not supported in *.vue files."),n.options.functional&&console.error("[vue-loader] component.vue: functional components are not supported with templates, they should use render functions."),t.exports=n.exports},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),a=i(3),o=i.n(a),s=i(1),r=i(0),c=i.n(r);e["default"]={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.name,r=void 0===a?"viewer":a,l=e.debug,h=void 0!==l&&l,u=e.defaultOptions;c.a.setDefaults(u),t.component(r,i.i(n["a"])(o.a,{name:r})),t.use(s["a"],{name:r,debug:h})},setDefaults:function(t){c.a.setDefaults(t)}}},function(t,e,i){"use strict";function n(t,e,i,n){var a,o=!1,s=0;function r(){a&&clearTimeout(a)}function c(){r(),o=!0}function l(){var c=this,l=Date.now()-s,h=arguments;function u(){s=Date.now(),i.apply(c,h)}function d(){a=void 0}o||(n&&!a&&u(),r(),void 0===n&&l>t?u():!0!==e&&(a=setTimeout(n?d:u,void 0===n?t-l:t)))}return"boolean"!==typeof e&&(n=i,i=e,e=void 0),l.cancel=c,l}function a(t,e,i){return void 0===i?n(t,e,!1):n(t,i,!1!==e)}i.d(e,"a",(function(){return a}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),a=i.n(n);e["default"]={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data:function(){return{}},computed:{},methods:{onChange:function(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer:function(){this.destroyViewer(),this.createViewer()},updateViewer:function(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer:function(){this.$viewer&&this.$viewer.destroy()},createViewer:function(){this.$viewer=new a.a(this.$el,this.options),this.$emit("inited",this.$viewer)}},watch:{images:function(){var t=this;this.$nextTick((function(){t.onChange()}))},trigger:{handler:function(){var t=this;this.$nextTick((function(){t.onChange()}))},deep:!0},options:{handler:function(){var t=this;this.$nextTick((function(){t.rebuildViewer()}))},deep:!0}},mounted:function(){this.createViewer()},destroyed:function(){this.destroyViewer()}}},function(t,e){var i,n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(a){"object"===("undefined"===typeof window?"undefined":n(window))&&(i=window)}t.exports=i},function(t,e){t.exports=function(t,e,i,n){var a,o=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(a=t,o=t.default);var r="function"===typeof o?o.options:o;if(e&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns),i&&(r._scopeId=i),n){var c=Object.create(r.computed||null);Object.keys(n).forEach((function(t){var e=n[t];c[t]=function(){return e}})),r.computed=c}return{esModule:a,exports:o,options:r}}},function(t,e,i){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._t("default",null,{images:t.images,options:t.options})],2)},staticRenderFns:[]},t.exports.render._withStripped=!0}])}))},"6d75":function(t,e,i){"use strict";var n=i("2e87"),a=i.n(n);a.a},"8f2c":function(t,e,i){"use strict";var n=i("f42e"),a=i.n(n);a.a},b85f:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-row",[t.cha_data?i("v-row",[i("div",{staticClass:"col-9"},[i("ads_banner_list",{staticClass:"mb-2"}),i("div",{staticClass:"user_top xs_le entry-content box pa-5 cl"},[i("h1",[t._v(t._s(t.cha_data.title))]),i("div",{staticClass:"uer_title_tab"},[i("span",[t._v("浏览："+t._s(t.formatNumber(t.cha_data.view_count)))]),i("span",[t._v("发布于："+t._s(t.showDate(t.cha_data.release_time)))])]),i("div",{staticClass:"con_tab xs_le"},[i("div",{staticClass:"list-group-item color_lis_con cont_float",attrs:{href:"#"}},[i("div",{staticClass:"content-callout bs-callout-info"},[i("span",[t._v("基础信息")])]),i("ul",{staticClass:"content_pire_box"},[i("li",[i("span",{staticClass:"con_pr_tit"},[t._v("城市区域：")]),i("span",[i("v-icon",{attrs:{small:""}},[t._v("location_on")]),i("router-link",{attrs:{to:"/cha/list?r="+t.cha_data.region[0]}},[t._v(t._s(t.cha_data.region[0]))])],1),t.cha_data.region&&t.cha_data.region[1]?i("span",{staticClass:"ml-1 mr-1"},[t._v("-"),i("router-link",{attrs:{to:"/cha/list?r="+t.cha_data.region[1]}},[t._v(t._s(t.cha_data.region[1]))])],1):t._e()]),i("li",[t.zh_type?i("span",{staticClass:"con_pr_tit"},[t._v("信息种类：")]):t._e(),i("span",{staticClass:"con_sen"},[t._v(t._s(t.zh_type))])]),i("li",[t.cha_data.price?i("span",{staticClass:"con_pr_tit"},[t._v("消费情况：")]):t._e(),i("span",{staticClass:"con_sen"},[t._v(t._s(t.cha_data.price))])])])])]),i("cha_show",{staticClass:"mt-2",attrs:{cha_data:t.cha_data}}),i("cha_tab",{staticClass:"mt-2",attrs:{cha_data:t.cha_data}})],1),t.cha_data.content?i("div",{staticClass:"con_tab xs_le box pa-5 mt-3"},[i("div",{staticClass:"list-group-item color_lis_con cont_float"},[i("div",{staticClass:"content-callout bs-callout-info"},[i("span",[t._v("细节描述")])]),i("div",{staticClass:"desc-content"},[t._v(" "+t._s(t.cha_data.content)+" ")])])]):t._e(),i("cha_images",{staticClass:"mt-4",attrs:{cha_data:t.cha_data},on:{"update:cha_data":function(e){t.cha_data=e}}})],1),i("div",{staticClass:"col-3"},[i("item_tip"),t.province_latest?i("v-row",{staticClass:"index-playlist"},[i("div",{staticClass:"card-header title"},[t._v("最新")]),i("v-row",{staticClass:"w-100"},[i("div",{staticClass:" row pr-4 mpr-0 cha-container"},t._l(t.province_latest,(function(t){return i("cha_item",{key:t.id,staticClass:"w-100",attrs:{cha_data:t}})})),1)])],1):t._e(),i("ads_box_list")],1)]):i("div",{staticClass:"flex-center w-100"},[i("page_loading")],1)],1)},a=[],o=i("d8fa"),s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.images.length>0?i("div",{staticClass:"user_top xs_le entry-content box pa-5 cl"},[t._m(0),i("div",{staticClass:"content-pic",staticStyle:{"padding-top":"0px"}},[i("div",{staticClass:"row"},[i("div",{directives:[{name:"viewer",rawName:"v-viewer",value:{movable:!1},expression:"{movable: false}"}],staticClass:"images"},t._l(t.images,(function(t){return i("img",{key:t,attrs:{src:t}})})),0)])])]):t._e()},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content-callout mb-2"},[i("span",[t._v("图片信息")])])}],c=(i("0808"),i("6944")),l=i.n(c),h=i("a026");h["a"].use(l.a);var u={name:"cha_images",mixins:[o["a"]],props:{cha_data:void 0},computed:{},created:function(){if(this.cha_data&&this.cha_data.images)for(var t=0;t<this.cha_data.images.length;++t){var e=this.generate_image_url(this.cha_data.images[t],"i");this.images.push(e)}},data:function(){return{images:[]}}},d=u,f=(i("cf64"),i("2877")),v=Object(f["a"])(d,s,r,!1,null,"5abcd300",null),m=v.exports,p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loaded_tabinfo?i("v-row",{staticClass:"video_tab"},[t.show_reqport_dialog?i("cha_report_dialog",{attrs:{cha_data:t.cha_data,show:t.show_reqport_dialog},on:{"update:show":function(e){t.show_reqport_dialog=e}}}):t._e(),i("div",{staticClass:"opts full-width"},[i("a",{staticClass:"bookmark",class:{active:t.tabinfo.is_star},attrs:{title:"收藏"},on:{click:t.on_star}},[i("i",{staticClass:"fa fa-bookmark"}),t._v(" "+t._s(t.tabinfo.is_star?"已收藏":"收藏")+" ")]),i("a",{staticClass:"bookmark",attrs:{title:"反馈"},on:{click:t.on_report}},[i("i",{staticClass:"fas fa-flag"}),t._v(" "+t._s(t.$l("view.report"))+" ")]),t.$store.state.hasLogin&&t.is_manager?i("span",{staticClass:"pull-right opts"},[i("router-link",{staticClass:"fa fa-edit",attrs:{title:"修改",to:"/release/thread?edit_id="+t.cha_data.id}},[i("q-tooltip",[t._v(" 修改 ")])],1),i("a",{staticClass:"fa fa-trash",attrs:{title:"删除",rel:"nofollow"}},[i("q-tooltip",[t._v(" 删除 ")])],1)],1):t._e()])],1):t._e()},g=[],b=(i("d3b7"),{name:"cha_tab",components:{cha_report_dialog:function(){return Promise.all([i.e("chunk-0a0e100c"),i.e("chunk-08105f6f")]).then(i.bind(null,"4ed3"))}},props:{cha_data:void 0},computed:{is_manager:function(){try{return this.$store.state.user.userinfo.is_manager}catch(t){}return!1}},data:function(){return{show_reqport_dialog:!1,defalut_tabinfo:{is_like:!1,is_dislike:!1,is_star:!1,like_count:0},tabinfo:Object.assign({},this.defalut_tabinfo),loaded_tabinfo:!1}},created:function(){this.load_tabinfo()},methods:{load_tabinfo:function(){var t=this;console.log("call load_tabinfo:",this.tabinfo),this.$axios.get("/app/cha/tabinfo",{params:{id:this.cha_data.id}}).then((function(e){t.loaded_tabinfo=!0,e.data.tabinfo&&(t.tabinfo=e.data.tabinfo)})).catch((function(t){}))},on_video_like:function(){var t=this;if(!this.$store.state.hasLogin)return this.$app._userbar.show_login_dialog();var e={action:!this.tabinfo.is_like,hash_id:this.online_video.hash_id};console.log("on_video_like:",e),this.$axios.post("/app/video/like",e).then((function(e){t.tabinfo.is_like=!0,t.tabinfo.is_dislike=!1,t.$forceUpdate()})).catch((function(t){console.log("error:",t)}))},on_video_dislike:function(){var t=this;if(!this.$store.state.hasLogin)return this.$app._userbar.show_login_dialog();var e={action:!this.tabinfo.is_dislike,hash_id:this.online_video.hash_id};console.log("on_video_like:",e),this.$axios.post("/app/video/dislike",e).then((function(e){t.tabinfo.is_like=!0,t.tabinfo.is_dislike=!1})).catch((function(t){console.log("error:",t)}))},on_report:function(){var t=this;if(!this.$store.state.hasLogin)return this.show_no_login_dialog();this.show_reqport_dialog=!1,this.$nextTick((function(){t.show_reqport_dialog=!0}))},on_star:function(){var t=this;if(!this.$store.state.hasLogin)return this.show_no_login_dialog();var e={action:!this.tabinfo.is_star,id:this.cha_data.id};this.$axios.post("/app/cha/star",e).then((function(e){t.tabinfo.is_star=!t.tabinfo.is_star,t.$forceUpdate()})).catch((function(t){console.log("error:",t)}))}}}),_=b,w=(i("8f2c"),i("fe09")),y=i("6544"),x=i.n(y),k=i("0fd9"),C=Object(f["a"])(_,p,g,!1,null,"5f3bd8ca",null),z=C.exports;C.options.components=Object.assign(Object.create(C.options.components||null),C.options.components||{},{QTooltip:w["J"]}),x()(C,{VRow:k["a"]});var O=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-row",[t.contact_info?i("div",[t.contact_info?i("div",{staticClass:"contact_info"},[i("div",{staticClass:"content-callout bs-callout-info mb-2"},[i("span",[t._v("联系:")])]),t.contact_info.phone?i("li",[i("span",{staticClass:"con_pr_tit"},[t._v("手机/电话：")]),i("span",{staticClass:"con_sen"},[t._v(t._s(t.contact_info.phone))])]):t._e(),t.contact_info.qq?i("li",[i("span",{staticClass:"con_pr_tit"},[t._v("QQ：")]),i("span",{staticClass:"con_sen"},[t._v(t._s(t.contact_info.qq))])]):t._e(),t.contact_info.wechat?i("li",[i("span",{staticClass:"con_pr_tit"},[t._v("微信：")]),i("span",{staticClass:"con_sen"},[t._v(t._s(t.contact_info.wechat))])]):t._e(),t.contact_info.addr?i("li",[i("span",{staticClass:"con_pr_tit"},[t._v("地址：")]),i("span",{staticClass:"con_sen"},[t._v(t._s(t.contact_info.addr))])]):t._e()]):t._e()]):i("div",{staticClass:"contact_info w-100 mb-2 "},[i("li",[i("span",{staticClass:"con_pr_tit"},[t._v("联系方式：")]),i("span",{staticClass:"con_sen"},[i("a",{attrs:{href:"/buy/vip"}},[t._v("需要购买或成为VIP后显示")])])]),i("li",[i("span",{staticClass:"con_pr_tit"},[t._v("详细地址：")]),i("span",{staticClass:"con_sen"},[i("a",{attrs:{href:"/buy/vip"}},[t._v("需要购买或成为VIP后显示")])])])]),t.contact_info?t._e():i("div",[t.$store.state.hasLogin&&t.$store.state.user.userinfo.is_vip?i("v-row",{},[i("v-alert",{attrs:{dense:"",text:"",type:"success"}},[t._v(" VIP用户可免费查看，请点击查看。 ")]),i("v-btn",{attrs:{loading:t.loading,disabled:t.loading,color:"primary"},on:{click:t.on_get_contact}},[t._v(" 查看 ")])],1):i("v-row",[i("cha_buy",{attrs:{cha_data:t.cha_data},on:{on_contact_info:t.on_contact_info}})],1)],1)])},D=[],E=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.cha_data?i("div",[i("v-alert",{staticClass:"mb-0",attrs:{dense:"",text:"",type:"success",outlined:""}},[i("div",[i("span",{staticClass:"con_pr_tit"},[t._v("信息价格：")]),i("span",{staticClass:"con_sen",staticStyle:{"margin-top":"-6px"}},[i("span",{staticClass:"font-weight-bold buy_gold_num"},[t._v(" "+t._s(t.buy_gold_num)+"金币 ")]),t._v(" "),i("span",[i("router-link",{attrs:{to:"/buy/vip"}},[t._v(" 升级VIP? ")])],1)])])]),t.is_check?i("v-btn",{staticClass:"mt-2",attrs:{loading:t.buy_loading,disabled:t.buy_loading,color:"primary"},on:{click:t.on_buy}},[t._v(" 点击购买 ")]):i("q-card",{staticClass:"none",attrs:{flat:""}},[i("q-skeleton",{staticClass:"mb-2",attrs:{height:"40px",square:""}})],1)],1):t._e()},T=[],$={name:"cha_buy",mixins:[o["a"]],props:{cha_data:void 0},data:function(){return{buy_gold_num:20,buy_loading:!1,is_check:!1}},created:function(){this.check_is_buy()},methods:{check_is_buy:function(){var t=this;if(!this.$store.state.hasLogin)return this.is_check=!0;this.$axios.get("/app/cha/buy",{params:{id:this.cha_data.id}}).then((function(e){console.log("[check_is_buy]response:",e);var i=e.data.contact_info;t.$emit("on_contact_info",i),t.is_check=!0})).catch((function(t){}))},on_buy:function(){if(!this.$store.state.hasLogin)return this.show_no_login_dialog("尚未登录，不能购买",!1);this.buy_loading=!0,this.buy({id:this.cha_data.id,cb:this.on_buy_callback})},on_buy_callback:function(t){if(console.log("on_buy_callback:",t),this.buy_loading=!1,200==t.code){var e=t.data.contact_info;this.$emit("on_contact_info",e)}t.code}}},S=$,I=(i("6d75"),i("0798")),A=i("8336"),L=Object(f["a"])(S,E,T,!1,null,"1a886da3",null),M=L.exports;L.options.components=Object.assign(Object.create(L.options.components||null),L.options.components||{},{QCard:w["f"],QSkeleton:w["B"]}),x()(L,{VAlert:I["a"],VBtn:A["a"]});var j={name:"cha_show",mixins:[o["a"]],data:function(){return{loading:!1,contact_info:void 0}},props:{cha_data:void 0},components:{cha_buy:M},created:function(){this.$store.state.hasLogin&&this.$store.state.user.userinfo.is_vip},methods:{on_contact_info:function(t){console.log("on_contact_info:",t),this.contact_info=t,this.$forceUpdate()},on_get_contact:function(){var t=this;this.loading=!0,this.$axios.get("/app/cha/contact",{params:{id:this.cha_data.id}}).then((function(e){console.log("[get_contact]response:",e),t.contact_info=e.data.contact_info,t.loading=!1})).catch((function(e){t.loading=!1,console.log("error:",e)}))}}},R=j,q=Object(f["a"])(R,O,D,!1,null,"65ad9d3e",null),F=q.exports;x()(q,{VAlert:I["a"],VBtn:A["a"],VRow:k["a"]});var P={name:"view",mixins:[o["a"]],components:{cha_images:m,cha_tab:z,cha_show:F,cha_buy:M},data:function(){return{start:0,limit:this._g.PER_PAGE_COUNT,cha_data:void 0,province_latest:void 0}},created:function(){this.load_data(),window._cha_view=this},computed:{zh_type:function(){}},methods:{load_data:function(){var t=this.$route.params.id;this.get_cha({id:t,province_latest:!0,cb:this.on_thread,error_cb:this.on_error_thread})},on_thread:function(t,e){this.cha_data=t,console.log("cha_data:",this.cha_data),this.province_latest=e,this.update_thread()},on_error_thread:function(){},update_thread:function(){this.set_title(this.cha_data.title)}},watch:{$route:function(t,e){this.cha_data=void 0,this.$nextTick(this.load_data)}}},N=P,Y=i("132d"),X=Object(f["a"])(N,n,a,!1,null,"f3aafeda",null);e["default"]=X.exports;x()(X,{VIcon:Y["a"],VRow:k["a"]})},c82c:function(t,e,i){
  /*!
   * Viewer.js v1.9.0
   * https://fengyuanchen.github.io/viewerjs
   *
   * Copyright 2015-present Chen Fengyuan
   * Released under the MIT license
   *
   * Date: 2020-12-06T11:25:15.688Z
   */
  (function(e,i){t.exports=i()})(0,(function(){"use strict";function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var r={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"],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},c='<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>',l="undefined"!==typeof window&&"undefined"!==typeof window.document,h=l?window:{},u=!(!l||!h.document.documentElement)&&"ontouchstart"in h.document.documentElement,d=!!l&&"PointerEvent"in h,f="viewer",v="move",m="switch",p="zoom",g="".concat(f,"-active"),b="".concat(f,"-close"),_="".concat(f,"-fade"),w="".concat(f,"-fixed"),y="".concat(f,"-fullscreen"),x="".concat(f,"-fullscreen-exit"),k="".concat(f,"-hide"),C="".concat(f,"-hide-md-down"),z="".concat(f,"-hide-sm-down"),O="".concat(f,"-hide-xs-down"),D="".concat(f,"-in"),E="".concat(f,"-invisible"),T="".concat(f,"-loading"),$="".concat(f,"-move"),S="".concat(f,"-open"),I="".concat(f,"-show"),A="".concat(f,"-transition"),L="click",M="dblclick",j="dragstart",R="focusin",q="keydown",F="load",P=u?"touchend touchcancel":"mouseup",N=u?"touchmove":"mousemove",Y=u?"touchstart":"mousedown",X=d?"pointerdown":Y,V=d?"pointermove":N,W=d?"pointerup pointercancel":P,B="resize",H="transitionend",U="wheel",Z="ready",K="show",Q="shown",J="hide",G="hidden",tt="view",et="viewed",it="move",nt="moved",at="rotate",ot="rotated",st="scale",rt="scaled",ct="zoom",lt="zoomed",ht="play",ut="stop",dt="".concat(f,"Action"),ft=/\s\s*/,vt=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function mt(t){return"string"===typeof t}var pt=Number.isNaN||h.isNaN;function gt(t){return"number"===typeof t&&!pt(t)}function bt(t){return"undefined"===typeof t}function _t(e){return"object"===t(e)&&null!==e}var wt=Object.prototype.hasOwnProperty;function yt(t){if(!_t(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&wt.call(i,"isPrototypeOf")}catch(n){return!1}}function xt(t){return"function"===typeof t}function kt(t,e){if(t&&xt(e))if(Array.isArray(t)||gt(t.length)){var i,n=t.length;for(i=0;i<n;i+=1)if(!1===e.call(t,t[i],i,t))break}else _t(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}));return t}var Ct=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return _t(t)&&i.length>0&&i.forEach((function(e){_t(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},zt=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Ot(t,e){var i=t.style;kt(e,(function(t,e){zt.test(e)&&gt(t)&&(t+="px"),i[e]=t}))}function Dt(t){return mt(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function Et(t,e){return!(!t||!e)&&(t.classList?t.classList.contains(e):t.className.indexOf(e)>-1)}function Tt(t,e){if(t&&e)if(gt(t.length))kt(t,(function(t){Tt(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function $t(t,e){t&&e&&(gt(t.length)?kt(t,(function(t){$t(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function St(t,e,i){e&&(gt(t.length)?kt(t,(function(t){St(t,e,i)})):i?Tt(t,e):$t(t,e))}var It=/([a-z\d])([A-Z])/g;function At(t){return t.replace(It,"$1-$2").toLowerCase()}function Lt(t,e){return _t(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(At(e)))}function Mt(t,e,i){_t(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(At(e)),i)}var jt=function(){var t=!1;if(l){var e=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});h.addEventListener("test",i,n),h.removeEventListener("test",i,n)}return t}();function Rt(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;e.trim().split(ft).forEach((function(e){if(!jt){var o=t.listeners;o&&o[e]&&o[e][i]&&(a=o[e][i],delete o[e][i],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,a,n)}))}function qt(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;e.trim().split(ft).forEach((function(e){if(n.once&&!jt){var o=t.listeners,s=void 0===o?{}:o;a=function(){delete s[e][i],t.removeEventListener(e,a,n);for(var o=arguments.length,r=new Array(o),c=0;c<o;c++)r[c]=arguments[c];i.apply(t,r)},s[e]||(s[e]={}),s[e][i]&&t.removeEventListener(e,s[e][i],n),s[e][i]=a,t.listeners=s}t.addEventListener(e,a,n)}))}function Ft(t,e,i,n){var a;return xt(Event)&&xt(CustomEvent)?a=new CustomEvent(e,s({bubbles:!0,cancelable:!0,detail:i},n)):(a=document.createEvent("CustomEvent"),a.initCustomEvent(e,!0,!0,i)),t.dispatchEvent(a)}function Pt(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function Nt(t){var e=t.rotate,i=t.scaleX,n=t.scaleY,a=t.translateX,o=t.translateY,s=[];gt(a)&&0!==a&&s.push("translateX(".concat(a,"px)")),gt(o)&&0!==o&&s.push("translateY(".concat(o,"px)")),gt(e)&&0!==e&&s.push("rotate(".concat(e,"deg)")),gt(i)&&1!==i&&s.push("scaleX(".concat(i,")")),gt(n)&&1!==n&&s.push("scaleY(".concat(n,")"));var r=s.length?s.join(" "):"none";return{WebkitTransform:r,msTransform:r,transform:r}}function Yt(t){return mt(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var Xt=h.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(h.navigator.userAgent);function Vt(t,e,i){var n=document.createElement("img");if(t.naturalWidth&&!Xt)return i(t.naturalWidth,t.naturalHeight),n;var a=document.body||document.documentElement;return n.onload=function(){i(n.width,n.height),Xt||a.removeChild(n)},kt(e.inheritedAttributes,(function(e){var i=t.getAttribute(e);null!==i&&n.setAttribute(e,i)})),n.src=t.src,Xt||(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;",a.appendChild(n)),n}function Wt(t){switch(t){case 2:return O;case 3:return z;case 4:return C;default:return""}}function Bt(t){var e=s({},t),i=[];return kt(t,(function(t,n){delete e[n],kt(e,(function(e){var n=Math.abs(t.startX-e.startX),a=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),s=Math.abs(t.endY-e.endY),r=Math.sqrt(n*n+a*a),c=Math.sqrt(o*o+s*s),l=(c-r)/r;i.push(l)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}function Ht(t,e){var i=t.pageX,n=t.pageY,a={endX:i,endY:n};return e?a:s({timeStamp:Date.now(),startX:i,startY:n},a)}function Ut(t){var e=0,i=0,n=0;return kt(t,(function(t){var a=t.startX,o=t.startY;e+=a,i+=o,n+=1})),e/=n,i/=n,{pageX:e,pageY:i}}var Zt={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,e=t.body||t.documentElement;this.body=e,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=e.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(e).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t,e=this.options,i=this.parent;e.inline&&(t={width:Math.max(i.offsetWidth,e.minWidth),height:Math.max(i.offsetHeight,e.minHeight)},this.parentData=t),!this.fulled&&t||(t=this.containerData),this.viewerData=Ct({},t)},renderViewer:function(){this.options.inline&&!this.fulled&&Ot(this.viewer,this.viewerData)},initList:function(){var t=this,e=this.element,i=this.options,n=this.list,a=[];n.innerHTML="",kt(this.images,(function(e,o){var s=e.src,r=e.alt||Yt(s),c=t.getImageURL(e);if(s||c){var l=document.createElement("li"),h=document.createElement("img");kt(i.inheritedAttributes,(function(t){var i=e.getAttribute(t);null!==i&&h.setAttribute(t,i)})),h.src=s||c,h.alt=r,h.setAttribute("data-original-url",c||s),l.setAttribute("data-index",o),l.setAttribute("data-viewer-action","view"),l.setAttribute("role","button"),i.keyboard&&l.setAttribute("tabindex",0),l.appendChild(h),n.appendChild(l),a.push(l)}})),this.items=a,kt(a,(function(e){var n=e.firstElementChild;Mt(n,"filled",!0),i.loading&&Tt(e,T),qt(n,F,(function(n){i.loading&&$t(e,T),t.loadImage(n)}),{once:!0})})),i.transition&&qt(e,et,(function(){Tt(n,A)}),{once:!0})},renderList:function(t){var e=t||this.index,i=this.items[e].offsetWidth||30,n=i+1;Ot(this.list,Ct({width:n*this.length},Nt({translateX:(this.viewerData.width-i)/2-n*e})))},resetList:function(){var t=this.list;t.innerHTML="",$t(t,A),Ot(t,Nt({translateX:0}))},initImage:function(t){var e,i=this,n=this.options,a=this.image,o=this.viewerData,s=this.footer.offsetHeight,r=o.width,c=Math.max(o.height-s,s),l=this.imageData||{};this.imageInitializing={abort:function(){e.onload=null}},e=Vt(a,n,(function(e,a){var o=e/a,s=r,h=c;i.imageInitializing=!1,c*o>r?h=r/o:s=c*o,s=Math.min(.9*s,e),h=Math.min(.9*h,a);var u=(r-s)/2,d=(c-h)/2,f={left:u,top:d,x:u,y:d,width:s,height:h,ratio:s/e,aspectRatio:o,naturalWidth:e,naturalHeight:a},v=Ct({},f);n.rotatable&&(f.rotate=l.rotate||0,v.rotate=0),n.scalable&&(f.scaleX=l.scaleX||1,f.scaleY=l.scaleY||1,v.scaleX=1,v.scaleY=1),i.imageData=f,i.initialImageData=v,t&&t()}))},renderImage:function(t){var e=this,i=this.image,n=this.imageData;if(Ot(i,Ct({width:n.width,height:n.height,marginLeft:n.x,marginTop:n.y},Nt(n))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&Et(i,A)){var a=function(){e.imageRendering=!1,t()};this.imageRendering={abort:function(){Rt(i,H,a)}},qt(i,H,a,{once:!0})}else t()},resetImage:function(){if(this.viewing||this.viewed){var t=this.image;this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null}}},Kt={bind:function(){var t=this.options,e=this.viewer,i=this.canvas,n=this.element.ownerDocument;qt(e,L,this.onClick=this.click.bind(this)),qt(e,j,this.onDragStart=this.dragstart.bind(this)),qt(i,X,this.onPointerDown=this.pointerdown.bind(this)),qt(n,V,this.onPointerMove=this.pointermove.bind(this)),qt(n,W,this.onPointerUp=this.pointerup.bind(this)),qt(n,q,this.onKeyDown=this.keydown.bind(this)),qt(window,B,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&qt(e,U,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&qt(i,M,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,e=this.viewer,i=this.canvas,n=this.element.ownerDocument;Rt(e,L,this.onClick),Rt(e,j,this.onDragStart),Rt(i,X,this.onPointerDown),Rt(n,V,this.onPointerMove),Rt(n,W,this.onPointerUp),Rt(n,q,this.onKeyDown),Rt(window,B,this.onResize),t.zoomable&&t.zoomOnWheel&&Rt(e,U,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&Rt(i,M,this.onDblclick)}},Qt={click:function(t){var e=this.options,i=this.imageData,n=t.target,a=Lt(n,dt);switch(a||"img"!==n.localName||"li"!==n.parentElement.localName||(n=n.parentElement,a=Lt(n,dt)),u&&t.isTrusted&&n===this.canvas&&clearTimeout(this.clickCanvasTimeout),a){case"mix":this.played?this.stop():e.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(Lt(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(e.loop);break;case"play":this.play(e.fullscreen);break;case"next":this.next(e.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(t){t.preventDefault(),this.viewed&&t.target===this.image&&(u&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle())},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var e=this.element,i=this.options,n=this.image,a=this.index,o=this.viewerData;$t(n,E),i.loading&&$t(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:absolute;width:0;",this.initImage((function(){St(n,$,i.movable),St(n,A,i.transition),t.renderImage((function(){t.viewed=!0,t.viewing=!1,xt(i.viewed)&&qt(e,et,i.viewed,{once:!0}),Ft(e,et,{originalImage:t.images[a],index:a,image:n},{cancelable:!1})}))}))},loadImage:function(t){var e=t.target,i=e.parentNode,n=i.offsetWidth||30,a=i.offsetHeight||50,o=!!Lt(e,"filled");Vt(e,this.options,(function(t,i){var s=t/i,r=n,c=a;a*s>n?o?r=a*s:c=n/s:o?c=n/s:r=a*s,Ot(e,Ct({width:r,height:c},Nt({translateX:(n-r)/2,translateY:(a-c)/2})))}))},keydown:function(t){var e=this.options;if(e.keyboard){var i=t.keyCode||t.which||t.charCode;switch(i){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(i){case 27:this.played?this.stop():e.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(e.loop);break;case 38:t.preventDefault(),this.zoom(e.zoomRatio,!0);break;case 39:this.next(e.loop);break;case 40:t.preventDefault(),this.zoom(-e.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){"img"===t.target.localName&&t.preventDefault()},pointerdown:function(t){var e=this.options,i=this.pointers,n=t.buttons,a=t.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(gt(n)&&1!==n||gt(a)&&0!==a||t.ctrlKey))){t.preventDefault(),t.changedTouches?kt(t.changedTouches,(function(t){i[t.identifier]=Ht(t)})):i[t.pointerId||0]=Ht(t);var o=!!e.movable&&v;e.zoomOnTouch&&e.zoomable&&Object.keys(i).length>1?o=p:e.slideOnTouch&&("touch"===t.pointerType||"touchstart"===t.type)&&this.isSwitchable()&&(o=m),!e.transition||o!==v&&o!==p||$t(this.image,A),this.action=o}},pointermove:function(t){var e=this.pointers,i=this.action;this.viewed&&i&&(t.preventDefault(),t.changedTouches?kt(t.changedTouches,(function(t){Ct(e[t.identifier]||{},Ht(t,!0))})):Ct(e[t.pointerId||0]||{},Ht(t,!0)),this.change(t))},pointerup:function(t){var e,i=this,n=this.options,a=this.action,o=this.pointers;t.changedTouches?kt(t.changedTouches,(function(t){e=o[t.identifier],delete o[t.identifier]})):(e=o[t.pointerId||0],delete o[t.pointerId||0]),a&&(t.preventDefault(),!n.transition||a!==v&&a!==p||Tt(this.image,A),this.action=!1,u&&a!==p&&e&&Date.now()-e.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),n.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){Ft(i.image,M)}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){i.imageClicked=!1}),500)):(this.imageClicked=!1,n.backdrop&&"static"!==n.backdrop&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){Ft(i.canvas,L)}),50)))))},resize:function(){var t=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(){t.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();kt(this.player.getElementsByTagName("img"),(function(e){qt(e,F,t.loadImage.bind(t),{once:!0}),Ft(e,F)}))}},wheel:function(t){var e=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50);var i=Number(this.options.zoomRatio)||.1,n=1;t.deltaY?n=t.deltaY>0?1:-1:t.wheelDelta?n=-t.wheelDelta/120:t.detail&&(n=t.detail>0?1:-1),this.zoom(-n*i,!0,t)}}},Jt={show:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=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(t),this;if(xt(i.show)&&qt(e,K,i.show,{once:!0}),!1===Ft(e,K)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var n=this.viewer;if($t(n,k),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("aria-hidden"),i.transition&&!t){var a=this.shown.bind(this);this.transitioning={abort:function(){Rt(n,H,a),$t(n,D)}},Tt(n,A),n.initialOffsetWidth=n.offsetWidth,qt(n,H,a,{once:!0}),Tt(n,D)}else Tt(n,D),this.shown();return this},hide:function(){var t=this,e=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(xt(n.hide)&&qt(i,J,n.hide,{once:!0}),!1===Ft(i,J))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var a=this.viewer,o=this.image,s=function(){$t(a,D),t.hidden()};if(n.transition&&!e){var r=function e(i){i&&i.target===a&&(Rt(a,H,e),t.hidden())},c=function(){Et(a,A)?(qt(a,H,r),$t(a,D)):s()};this.transitioning={abort:function(){t.viewed&&Et(o,A)?Rt(o,H,c):Et(a,A)&&Rt(a,H,r)}},this.viewed&&Et(o,A)?(qt(o,H,c,{once:!0}),this.zoomTo(0,!1,!1,!0)):c()}else s();return this},view:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(e=Number(e)||0,this.hiding||this.played||e<0||e>=this.length||this.viewed&&e===this.index)return this;if(!this.isShown)return this.index=e,this.show();this.viewing&&this.viewing.abort();var i=this.element,n=this.options,a=this.title,o=this.canvas,s=this.items[e],r=s.querySelector("img"),c=Lt(r,"originalUrl"),l=r.getAttribute("alt"),h=document.createElement("img");if(kt(n.inheritedAttributes,(function(t){var e=r.getAttribute(t);null!==e&&h.setAttribute(t,e)})),h.src=c,h.alt=l,xt(n.view)&&qt(i,tt,n.view,{once:!0}),!1===Ft(i,tt,{originalImage:this.images[e],index:e,image:h})||!this.isShown||this.hiding||this.played)return this;var u=this.items[this.index];$t(u,g),u.removeAttribute("aria-selected"),Tt(s,g),s.setAttribute("aria-selected",!0),n.focus&&s.focus(),this.image=h,this.viewed=!1,this.index=e,this.imageData={},Tt(h,E),n.loading&&Tt(o,T),o.innerHTML="",o.appendChild(h),this.renderList(),a.innerHTML="";var d,f=function(){var e=t.imageData,i=Array.isArray(n.title)?n.title[1]:n.title;a.innerHTML=Dt(xt(i)?i.call(t,h,e):"".concat(l," (").concat(e.naturalWidth," × ").concat(e.naturalHeight,")"))};return qt(i,et,f,{once:!0}),this.viewing={abort:function(){Rt(i,et,f),h.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(h.src="",Rt(h,F,d),t.timeout&&clearTimeout(t.timeout))}},h.complete?this.load():(qt(h,F,d=this.load.bind(this),{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){$t(h,E),t.timeout=!1}),1e3)),this},prev:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.index-1;return e<0&&(e=t?this.length-1:0),this.view(e),this},next:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.length-1,i=this.index+1;return i>e&&(i=t?0:e),this.view(i),this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData;return this.moveTo(bt(t)?t:i.x+Number(t),bt(e)?e:i.y+Number(e)),this},moveTo:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.element,o=this.options,s=this.imageData;if(t=Number(t),i=Number(i),this.viewed&&!this.played&&o.movable){var r=s.x,c=s.y,l=!1;if(gt(t)?l=!0:t=r,gt(i)?l=!0:i=c,l){if(xt(o.move)&&qt(a,it,o.move,{once:!0}),!1===Ft(a,it,{x:t,y:i,oldX:r,oldY:c,originalEvent:n}))return this;s.x=t,s.y=i,s.left=t,s.top=i,this.moving=!0,this.renderImage((function(){e.moving=!1,xt(o.moved)&&qt(a,nt,o.moved,{once:!0}),Ft(a,nt,{x:t,y:i,oldX:r,oldY:c,originalEvent:n},{cancelable:!1})}))}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var e=this,i=this.element,n=this.options,a=this.imageData;if(t=Number(t),gt(t)&&this.viewed&&!this.played&&n.rotatable){var o=a.rotate;if(xt(n.rotate)&&qt(i,at,n.rotate,{once:!0}),!1===Ft(i,at,{degree:t,oldDegree:o}))return this;a.rotate=t,this.rotating=!0,this.renderImage((function(){e.rotating=!1,xt(n.rotated)&&qt(i,ot,n.rotated,{once:!0}),Ft(i,ot,{degree:t,oldDegree:o},{cancelable:!1})}))}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.element,a=this.options,o=this.imageData;if(t=Number(t),i=Number(i),this.viewed&&!this.played&&a.scalable){var s=o.scaleX,r=o.scaleY,c=!1;if(gt(t)?c=!0:t=s,gt(i)?c=!0:i=r,c){if(xt(a.scale)&&qt(n,st,a.scale,{once:!0}),!1===Ft(n,st,{scaleX:t,scaleY:i,oldScaleX:s,oldScaleY:r}))return this;o.scaleX=t,o.scaleY=i,this.scaling=!0,this.renderImage((function(){e.scaling=!1,xt(a.scaled)&&qt(n,rt,a.scaled,{once:!0}),Ft(n,rt,{scaleX:t,scaleY:i,oldScaleX:s,oldScaleY:r},{cancelable:!1})}))}}return this},zoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.imageData;return t=Number(t),t=t<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,e,i),this},zoomTo:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.element,s=this.options,r=this.pointers,c=this.imageData,l=c.x,h=c.y,u=c.width,d=c.height,f=c.naturalWidth,v=c.naturalHeight;if(t=Math.max(0,t),gt(t)&&this.viewed&&!this.played&&(a||s.zoomable)){if(!a){var m=Math.max(.01,s.minZoomRatio),p=Math.min(100,s.maxZoomRatio);t=Math.min(Math.max(t,m),p)}n&&s.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);var g=f*t,b=v*t,_=g-u,w=b-d,y=u/f;if(xt(s.zoom)&&qt(o,ct,s.zoom,{once:!0}),!1===Ft(o,ct,{ratio:t,oldRatio:y,originalEvent:n}))return this;if(this.zooming=!0,n){var x=Pt(this.viewer),k=r&&Object.keys(r).length?Ut(r):{pageX:n.pageX,pageY:n.pageY};c.x-=_*((k.pageX-x.left-l)/u),c.y-=w*((k.pageY-x.top-h)/d)}else c.x-=_/2,c.y-=w/2;c.left=c.x,c.top=c.y,c.width=g,c.height=b,c.ratio=t,this.renderImage((function(){e.zooming=!1,xt(s.zoomed)&&qt(o,lt,s.zoomed,{once:!0}),Ft(o,lt,{ratio:t,oldRatio:y,originalEvent:n},{cancelable:!1})})),i&&this.tooltip()}return this},play:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var i=this.element,n=this.options;if(xt(n.play)&&qt(i,ht,n.play,{once:!0}),!1===Ft(i,ht))return this;var a=this.player,o=this.loadImage.bind(this),s=[],r=0,c=0;if(this.played=!0,this.onLoadWhenPlay=o,e&&this.requestFullscreen(),Tt(a,I),kt(this.items,(function(t,e){var i=t.querySelector("img"),l=document.createElement("img");l.src=Lt(i,"originalUrl"),l.alt=i.getAttribute("alt"),l.referrerPolicy=i.referrerPolicy,r+=1,Tt(l,_),St(l,A,n.transition),Et(t,g)&&(Tt(l,D),c=e),s.push(l),qt(l,F,o,{once:!0}),a.appendChild(l)})),gt(n.interval)&&n.interval>0){var l=function e(){t.playing=setTimeout((function(){$t(s[c],D),c+=1,c=c<r?c:0,Tt(s[c],D),e()}),n.interval)};r>1&&l()}return this},stop:function(){var t=this;if(!this.played)return this;var e=this.element,i=this.options;if(xt(i.stop)&&qt(e,ut,i.stop,{once:!0}),!1===Ft(e,ut))return this;var n=this.player;return this.played=!1,clearTimeout(this.playing),kt(n.getElementsByTagName("img"),(function(e){Rt(e,F,t.onLoadWhenPlay)})),$t(n,I),n.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,e=this.options,i=this.viewer,n=this.image,a=this.list;return!this.isShown||this.played||this.fulled||!e.inline||(this.fulled=!0,this.open(),Tt(this.button,x),e.transition&&($t(a,A),this.viewed&&$t(n,A)),Tt(i,w),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("style"),Ot(i,{zIndex:e.zIndex}),e.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Ct({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){t.renderImage((function(){e.transition&&setTimeout((function(){Tt(n,A),Tt(a,A)}),0)}))}))),this},exit:function(){var t=this,e=this.options,i=this.viewer,n=this.image,a=this.list;return this.isShown&&!this.played&&this.fulled&&e.inline?(this.fulled=!1,this.close(),$t(this.button,x),e.transition&&($t(a,A),this.viewed&&$t(n,A)),e.focus&&this.clearEnforceFocus(),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),$t(i,w),Ot(i,{zIndex:e.zIndexInline}),this.viewerData=Ct({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){t.renderImage((function(){e.transition&&setTimeout((function(){Tt(n,A),Tt(a,A)}),0)}))})),this):this},tooltip:function(){var t=this,e=this.options,i=this.tooltipBox,n=this.imageData;return this.viewed&&!this.played&&e.tooltip?(i.textContent="".concat(Math.round(100*n.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):e.transition?(this.fading&&Ft(i,H),Tt(i,I),Tt(i,_),Tt(i,A),i.removeAttribute("aria-hidden"),i.initialOffsetWidth=i.offsetWidth,Tt(i,D)):(Tt(i,I),i.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){e.transition?(qt(i,H,(function(){$t(i,I),$t(i,_),$t(i,A),i.setAttribute("aria-hidden",!0),t.fading=!1}),{once:!0}),$t(i,D),t.fading=!0):($t(i,I),i.setAttribute("aria-hidden",!0)),t.tooltipping=!1}),1e3),this):this},toggle:function(){return 1===this.imageData.ratio?this.zoomTo(this.initialImageData.ratio,!0):this.zoomTo(1,!0),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Ct({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,e=this.element,i=this.options,n=this.isImg;if(n&&!e.parentNode)return this.destroy();var a=[];if(kt(n?[e]:e.querySelectorAll("img"),(function(e){xt(i.filter)?i.filter.call(t,e)&&a.push(e):t.getImageURL(e)&&a.push(e)})),!a.length)return this;if(this.images=a,this.length=a.length,this.ready){var o=[];if(kt(this.items,(function(t,e){var i=t.querySelector("img"),n=a[e];n&&i&&n.src===i.src&&n.alt===i.alt||o.push(e)})),Ot(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=o.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var r=this.items[this.index];Tt(r,g),r.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 t=this.element,e=this.options;return t[f]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),e.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)):e.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),e.inline||Rt(t,L,this.onStart),t[f]=void 0,this):this}},Gt={getImageURL:function(t){var e=this.options.url;return e=mt(e)?t.getAttribute(e):xt(e)?e.call(this,t):"",e},enforceFocus:function(){var t=this;this.clearEnforceFocus(),qt(document,R,this.onFocusin=function(e){var i=e.target,n=t.viewer;i===document||i===n||n.contains(i)||n.focus()})},clearEnforceFocus:function(){this.onFocusin&&(Rt(document,R,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;Tt(t,S),t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px")},close:function(){var t=this.body;$t(t,S),t.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var t=this.element,e=this.options,i=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,e.focus&&(i.focus(),this.enforceFocus()),xt(e.shown)&&qt(t,Q,e.shown,{once:!0}),!1!==Ft(t,Q)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,e=this.options,i=this.viewer;e.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),Tt(i,k),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),i.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(xt(e.hidden)&&qt(t,G,e.hidden,{once:!0}),Ft(t,G,null,{cancelable:!1}))},requestFullscreen:function(){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var e=t.documentElement;e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var e=this.options,i=this.pointers,n=i[Object.keys(i)[0]];if(n){var a=n.endX-n.startX,o=n.endY-n.startY;switch(this.action){case v:this.move(a,o,t);break;case p:this.zoom(Bt(i),!1,t);break;case m:this.action="switched";var s=Math.abs(a);s>1&&s>Math.abs(o)&&(this.pointers={},a>1?this.prev(e.loop):a<-1&&this.next(e.loop));break}kt(i,(function(t){t.startX=t.endX,t.startY=t.endY}))}},isSwitchable:function(){var t=this.imageData,e=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=e.width&&t.height<=e.height}},te=h.Viewer,ee=function(t){return function(){return t+=1,t}}(-1),ie=function(){function t(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!i||1!==i.nodeType)throw new Error("The first argument is required and must be an element.");this.element=i,this.options=Ct({},r,yt(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.id=ee(),this.init()}return n(t,[{key:"init",value:function(){var t=this,e=this.element,i=this.options;if(!e[f]){e[f]=this,i.focus&&!i.keyboard&&(i.focus=!1);var n="img"===e.localName,a=[];if(kt(n?[e]:e.querySelectorAll("img"),(function(e){xt(i.filter)?i.filter.call(t,e)&&a.push(e):t.getImageURL(e)&&a.push(e)})),this.isImg=n,this.length=a.length,this.images=a,this.initBody(),bt(document.createElement(f).style.transition)&&(i.transition=!1),i.inline){var o=0,s=function(){var e;(o+=1,o===t.length)&&(t.initializing=!1,t.delaying={abort:function(){clearTimeout(e)}},e=setTimeout((function(){t.delaying=!1,t.build()}),0))};this.initializing={abort:function(){kt(a,(function(t){t.complete||Rt(t,F,s)}))}},kt(a,(function(t){t.complete?s():qt(t,F,s,{once:!0})}))}else qt(e,L,this.onStart=function(e){var n=e.target;"img"!==n.localName||xt(i.filter)&&!i.filter.call(t,n)||t.view(t.images.indexOf(n))})}}},{key:"build",value:function(){if(!this.ready){var t=this.element,e=this.options,i=t.parentNode,n=document.createElement("div");n.innerHTML=c;var a=n.querySelector(".".concat(f,"-container")),o=a.querySelector(".".concat(f,"-title")),s=a.querySelector(".".concat(f,"-toolbar")),r=a.querySelector(".".concat(f,"-navbar")),l=a.querySelector(".".concat(f,"-button")),h=a.querySelector(".".concat(f,"-canvas"));if(this.parent=i,this.viewer=a,this.title=o,this.toolbar=s,this.navbar=r,this.button=l,this.canvas=h,this.footer=a.querySelector(".".concat(f,"-footer")),this.tooltipBox=a.querySelector(".".concat(f,"-tooltip")),this.player=a.querySelector(".".concat(f,"-player")),this.list=a.querySelector(".".concat(f,"-list")),a.id="".concat(f).concat(this.id),o.id="".concat(f,"Title").concat(this.id),Tt(o,e.title?Wt(Array.isArray(e.title)?e.title[0]:e.title):k),Tt(r,e.navbar?Wt(e.navbar):k),St(l,k,!e.button),e.keyboard&&l.setAttribute("tabindex",0),e.backdrop&&(Tt(a,"".concat(f,"-backdrop")),e.inline||"static"===e.backdrop||Mt(h,dt,"hide")),mt(e.className)&&e.className&&e.className.split(ft).forEach((function(t){Tt(a,t)})),e.toolbar){var u=document.createElement("ul"),d=yt(e.toolbar),v=vt.slice(0,3),m=vt.slice(7,9),p=vt.slice(9);d||Tt(s,Wt(e.toolbar)),kt(d?e.toolbar:vt,(function(t,i){var n=d&&yt(t),a=d?At(i):t,o=n&&!bt(t.show)?t.show:t;if(o&&(e.zoomable||-1===v.indexOf(a))&&(e.rotatable||-1===m.indexOf(a))&&(e.scalable||-1===p.indexOf(a))){var s=n&&!bt(t.size)?t.size:t,r=n&&!bt(t.click)?t.click:t,c=document.createElement("li");e.keyboard&&c.setAttribute("tabindex",0),c.setAttribute("role","button"),Tt(c,"".concat(f,"-").concat(a)),xt(r)||Mt(c,dt,a),gt(o)&&Tt(c,Wt(o)),-1!==["small","large"].indexOf(s)?Tt(c,"".concat(f,"-").concat(s)):"play"===a&&Tt(c,"".concat(f,"-large")),xt(r)&&qt(c,L,r),u.appendChild(c)}})),s.appendChild(u)}else Tt(s,k);if(!e.rotatable){var g=s.querySelectorAll('li[class*="rotate"]');Tt(g,E),kt(g,(function(t){s.appendChild(t)}))}if(e.inline)Tt(l,y),Ot(a,{zIndex:e.zIndexInline}),"static"===window.getComputedStyle(i).position&&Ot(i,{position:"relative"}),i.insertBefore(a,t.nextSibling);else{Tt(l,b),Tt(a,w),Tt(a,_),Tt(a,k),Ot(a,{zIndex:e.zIndex});var x=e.container;mt(x)&&(x=t.ownerDocument.querySelector(x)),x||(x=this.body),x.appendChild(a)}e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,xt(e.ready)&&qt(t,Z,e.ready,{once:!0}),!1!==Ft(t,Z)?this.ready&&e.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=te,t}},{key:"setDefaults",value:function(t){Ct(r,yt(t)&&t)}}]),t}();return Ct(ie.prototype,Zt,Kt,Qt,Jt,Gt),ie}))},cf64:function(t,e,i){"use strict";var n=i("dfd5"),a=i.n(n);a.a},dfd5:function(t,e,i){},f42e:function(t,e,i){}}]);
  //# sourceMappingURL=chunk-3345c179.b6fea3fc.js.map