hzzt-kfb-slide 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{annotateCIo__OqP.js → annotateCsjd-8z3.js} +1 -1
- package/dist/components/{annotate49sBZsTN.js → annotateCuw9UNn2.js} +1 -1
- package/dist/components/{annotateBl0wovIH.js → annotateCwGjQKaP.js} +3 -3
- package/dist/components/{annotateCjWLFBqD.js → annotateDs5i2eNO.js} +1 -1
- package/dist/components/{arrowCl9QJSJj.js → arrowCBL9AzKr.js} +1 -1
- package/dist/components/{arrowCircleCtoruF4U.js → arrowCircleDwqggHev.js} +1 -1
- package/dist/components/{arrowCircle7NmwbGoq.js → arrowCirclelm3OXqGD.js} +1 -1
- package/dist/components/{arrowDownBXGzGuuT.js → arrowDownBAZ_RPEu.js} +1 -1
- package/dist/components/{arrowDownDB2yvaaD.js → arrowDownCdaul-Hd.js} +1 -1
- package/dist/components/{arrowLeftBXNnT5m8.js → arrowLeft8I3cz9ix.js} +1 -1
- package/dist/components/{arrowLeftDvMUFF8m.js → arrowLeftCY6O_JXa.js} +1 -1
- package/dist/components/{arrowCwovE-_Y.js → arrowM7YlD6Fp.js} +1 -1
- package/dist/components/{arrowRightB67m-kkE.js → arrowRightDNETqHjH.js} +1 -1
- package/dist/components/{arrowRightCk6ld1no.js → arrowRightN9DgBweY.js} +1 -1
- package/dist/components/{arrowUpNinTqfQn.js → arrowUp15GBTWCC.js} +1 -1
- package/dist/components/{arrowUpB7Uvr3R3.js → arrowUpCms_i80O.js} +1 -1
- package/dist/components/{bilateralDOwwtLaC.js → bilateralCgiGCORq.js} +1 -1
- package/dist/components/{bilateralCk-KBqyO.js → bilateralDRIzcahZ.js} +1 -1
- package/dist/components/{channelDLxoZSck.js → channel0c8ZxreJ.js} +1 -1
- package/dist/components/{channelC_7FoqpS.js → channel8wdsKWt0.js} +1 -1
- package/dist/components/{checkBf75347T.js → checkCvkYx5Zn.js} +1 -1
- package/dist/components/{checkDHACKvpf.js → checkDksrM1Ib.js} +1 -1
- package/dist/components/{configBFhzQzSB.js → configBQB-oghg.js} +1 -1
- package/dist/components/{configEppCf8vn.js → configD53ypjPd.js} +1 -1
- package/dist/components/{customBiBp4G-a.js → customAwznbb6Z.js} +1 -1
- package/dist/components/{customDOKaVCSP.js → customdA1G1T1y.js} +1 -1
- package/dist/components/{deleteBsNpbvks.js → deleteCdJCCQ6y.js} +1 -1
- package/dist/components/{deleteg7i46qXS.js → deleteChVtJN4n.js} +1 -1
- package/dist/components/{dotDCc4P8VK.js → dot16c1xNPD.js} +1 -1
- package/dist/components/{dotDHMTeCWy.js → dotBQNxsw3c.js} +1 -1
- package/dist/components/{dotBdYkwPjX.js → dotBjXKweg0.js} +1 -1
- package/dist/components/{dotBo1YUnne.js → dotC0CKM_hZ.js} +4 -4
- package/dist/components/{dotDl1co4-R.js → dotD0Gx7CRc.js} +1 -1
- package/dist/components/{dotxqpjYIOg.js → dotDJxvUSso.js} +1 -1
- package/dist/components/{downloadByFGTBBN.js → downloadBByB8lwE.js} +1 -1
- package/dist/components/{downloadBWg9kSWm.js → downloadNznR12xP.js} +3 -3
- package/dist/components/{downloadBTOl5wLU.js → downloadViyLOOrK.js} +1 -1
- package/dist/components/{downloadRDk36nBB.js → downloadZ2QzL5rO.js} +1 -1
- package/dist/components/{ellipseCJcXMiqZ.js → ellipseC2z02yg-.js} +1 -1
- package/dist/components/{ellipseDlbHI1bF.js → ellipseCBUG6Mh8.js} +1 -1
- package/dist/components/{expandLeftDUZANt4r.js → expandLeftDB8r1unh.js} +1 -1
- package/dist/components/{expandLeftqGNGPcnT.js → expandLeftDlJCG1r9.js} +1 -1
- package/dist/components/{expandRightZuTT2JzX.js → expandRightBhVI7kIo.js} +1 -1
- package/dist/components/{expandRightBgp3TM8W.js → expandRightrm3vKoq_.js} +1 -1
- package/dist/components/{flagBXkHSgl4.js → flagDLIm6S3D.js} +1 -1
- package/dist/components/{flagDo8DOzCK.js → flagDc9VAAUM.js} +1 -1
- package/dist/components/{flipC6DUnkBc.js → flipC95Pz5UL.js} +1 -1
- package/dist/components/{flipBzljeFD3.js → flipDFWc7R0p.js} +1 -1
- package/dist/components/{fontD6ZBPuPA.js → fontCZ3hGZBF.js} +1 -1
- package/dist/components/{fontCQpNKMlS.js → fontD27n3hS-.js} +1 -1
- package/dist/components/{fullscreenBFNwWrlX.js → fullscreenBrDmE4_A.js} +1 -1
- package/dist/components/{fullscreenB2eP643y.js → fullscreenCCAwhExm.js} +1 -1
- package/dist/components/{fullscreenBV4ER73M.js → fullscreenD26Fq3AJ.js} +1 -1
- package/dist/components/{fullscreenC0tDsxrL.js → fullscreenDF7FK-y9.js} +2 -2
- package/dist/components/indexBD-4Tc4b.js +4 -0
- package/dist/components/{indexCE3et5Ds.js → indexDRXmzSTr.js} +538 -535
- package/dist/components/{infoDf7UtGa7.js → infoD4ZTbsGp.js} +1 -1
- package/dist/components/{infoN-pmNAmQ.js → infoD_KSpt0x.js} +1 -1
- package/dist/components/{levelFM1mUgOC.js → levelBpo8OsbV.js} +1 -1
- package/dist/components/{levelXnWVI1Sf.js → levelDtDdq-Pg.js} +1 -1
- package/dist/components/{lineC11ySKvp.js → line2KgRRfGu.js} +1 -1
- package/dist/components/{lineCV1QeIV-.js → lineNu21t5gy.js} +1 -1
- package/dist/components/{microscopeDPBvnBTT.js → microscopeBLaPm6pb.js} +1 -1
- package/dist/components/{microscopeC7AAF-4i.js → microscopeCj4MZVX6.js} +1 -1
- package/dist/components/{microscopeDREMD0aG.js → microscopeD8c1neyn.js} +3 -3
- package/dist/components/{microscopeDy5_7IPr.js → microscopemDpbiPHg.js} +1 -1
- package/dist/components/{moveC3nOX-BZ.js → moveBONH7e1-.js} +1 -1
- package/dist/components/{moveBbGj77c6.js → moveCtlzWScv.js} +1 -1
- package/dist/components/{moveCxcLNPZF.js → moveDMF_aznf.js} +3 -3
- package/dist/components/{moveBBqduqb_.js → moveWhJ3O6uI.js} +1 -1
- package/dist/components/{nextCW5Nr0zb.js → nextBbF_v1SK.js} +1 -1
- package/dist/components/{nextBZI_aP7l.js → nextDQR6-RfD.js} +1 -1
- package/dist/components/{polygonDfByxGAP.js → polygonB1s-gscM.js} +1 -1
- package/dist/components/{polygonhwElczJV.js → polygonDLNm7Aiy.js} +1 -1
- package/dist/components/{prevBujNxx9W.js → prevBi3Jjzby.js} +1 -1
- package/dist/components/{prevD-Jb2BK5.js → prevDtGjAkiY.js} +1 -1
- package/dist/components/{processW2UX8zWN.js → processB_71-rt3.js} +1 -1
- package/dist/components/{processITdbah9T.js → processBaejbNIO.js} +1 -1
- package/dist/components/{processBKw5BJun.js → processOErCYmsz.js} +3 -3
- package/dist/components/{processDIYQWbpe.js → processZz2jg8Ii.js} +1 -1
- package/dist/components/{rectangleCD3zrJ4b.js → rectangleB_weH4OT.js} +1 -1
- package/dist/components/{rectangleDINuKV3e.js → rectangleCx7rw04r.js} +1 -1
- package/dist/components/{rotateCk4r5sz0.js → rotateC8INrLms.js} +1 -1
- package/dist/components/{rotateBK0g10v7.js → rotateCQ-njCPy.js} +4 -4
- package/dist/components/{rotateDW3tCSd4.js → rotateChAaWWwk.js} +1 -1
- package/dist/components/{rotateDaRh7p8x.js → rotateCn_yYR-9.js} +1 -1
- package/dist/components/{settingCygsrWwb.js → settingBuJ04L0g.js} +1 -1
- package/dist/components/{settingCy068wtb.js → settingDa4UFFpZ.js} +1 -1
- package/dist/components/{settingjrS0Yyzz.js → settingDc0THS-p.js} +1 -1
- package/dist/components/{settingBtYNTDMk.js → settingbBZdqUd4.js} +3 -3
- package/dist/components/{starDAzMV8hm.js → star4mf8YXXg.js} +1 -1
- package/dist/components/{starCRDtIUga.js → starCPNRqnqz.js} +1 -1
- package/dist/components/{tailorCW1DpWxU.js → tailorB7TqXg5T.js} +1 -1
- package/dist/components/{tailorCMHyqgqY.js → tailorfTcGg1n3.js} +1 -1
- package/dist/components/{useCommonDx4AkPn-.js → useCommonBcu2vBNt.js} +1 -1
- package/dist/components/{useCommonDwOO5Nl8.js → useCommonDV6XODnB.js} +1 -1
- package/dist/components/{voiceB3kLmI5d.js → voiceB8S4rKDI.js} +1 -1
- package/dist/components/{voiceClKUyNoj.js → voiceDU2Vni9x.js} +1 -1
- package/dist/components/{zoomCvUZgCsd.js → zoomBn1qhxqR.js} +1 -1
- package/dist/components/{zoomInNKDi_J_z.js → zoomInD_8Csh5g.js} +1 -1
- package/dist/components/{zoomInBPFfWRlG.js → zoomInDyv5nd6T.js} +1 -1
- package/dist/components/{zoomOutC5HvL9tr.js → zoomOutC0vB2rpg.js} +1 -1
- package/dist/components/{zoomOutBzM3kBTI.js → zoomOutDDZGVubB.js} +1 -1
- package/dist/components/{zoom1wzOC8Jb.js → zoomtmOdf1Vc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +2 -2
- package/types/components/KfbView/index.d.ts +3 -3
- package/types/components/KfbView/index.vue.d.ts +5 -5
- package/types/components/KfbView/useTailor.d.ts +1 -1
- package/dist/components/indexDMPBpE5E.js +0 -4
- package/web-types.json +0 -156
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var nt=Object.defineProperty,lt=Object.defineProperties;var at=Object.getOwnPropertyDescriptors;var De=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable;var Ae=(u,t,n)=>t in u?nt(u,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):u[t]=n,R=(u,t)=>{for(var n in t||(t={}))rt.call(t,n)&&Ae(u,n,t[n]);if(De)for(var n of De(t))it.call(t,n)&&Ae(u,n,t[n]);return u},Y=(u,t)=>lt(u,at(t));var J=(u,t,n)=>new Promise((o,w)=>{var f=v=>{try{i(n.next(v))}catch(g){w(g)}},s=v=>{try{i(n.throw(v))}catch(g){w(g)}},i=v=>v.done?o(v.value):Promise.resolve(v.value).then(f,s);i((n=n.apply(u,t)).next())});const e=require("vue"),b=require("element-plus"),M=require("kfb-view"),st=require("v-lazy-image"),we=Symbol("I18N_INJECT_KEY");function j(){const u=e.inject(we),t=n=>n;return{locale:u==null?void 0:u.locale,t:(u==null?void 0:u.t)||t}}const ut={install(u,t){u.provide(we,t==null?void 0:t.global)}},P=e.ref({annotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateCuw9UNn2.js")))),arrowCircle:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowCircleDwqggHev.js")))),check:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./checkCvkYx5Zn.js")))),dot:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dot16c1xNPD.js")))),flip:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./flipC95Pz5UL.js")))),info:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./infoD_KSpt0x.js")))),microscope:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopemDpbiPHg.js")))),move:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveWhJ3O6uI.js")))),next:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./nextDQR6-RfD.js")))),prev:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./prevDtGjAkiY.js")))),process:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processB_71-rt3.js")))),rotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateChAaWWwk.js")))),fullscreen:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenBrDmE4_A.js")))),setting:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingDa4UFFpZ.js")))),tailor:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./tailorB7TqXg5T.js")))),download:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadViyLOOrK.js")))),config:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./configD53ypjPd.js")))),arrowDown:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowDownCdaul-Hd.js")))),arrowUp:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowUp15GBTWCC.js")))),arrowLeft:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowLeftCY6O_JXa.js")))),arrowRight:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowRightN9DgBweY.js")))),zoomIn:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomInD_8Csh5g.js")))),zoomOut:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomOutC0vB2rpg.js")))),level:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./levelBpo8OsbV.js")))),channel:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./channel0c8ZxreJ.js")))),delete:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./deleteCdJCCQ6y.js")))),expandLeft:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./expandLeftDlJCG1r9.js")))),expandRight:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./expandRightrm3vKoq_.js")))),markLine:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./line2KgRRfGu.js")))),markArrow:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowM7YlD6Fp.js")))),markBilateral:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./bilateralCgiGCORq.js")))),markRectangle:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rectangleCx7rw04r.js")))),markEllipse:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ellipseCBUG6Mh8.js")))),markPolygon:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./polygonDLNm7Aiy.js")))),markFlag:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./flagDLIm6S3D.js")))),markStar:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./starCPNRqnqz.js")))),markDot:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotDJxvUSso.js")))),markFont:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fontCZ3hGZBF.js")))),markVoice:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./voiceDU2Vni9x.js"))))}),I=e.defineComponent({__name:"KfbIcon",props:{name:{type:[String,Number],required:!0}},setup(u){return(t,n)=>(e.openBlock(),e.createBlock(e.unref(b.ElIcon),e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(P)[u.name])))]),_:1},16))}}),ct={class:"hzzt-kfb-tool-config"},dt={class:"hzzt-kfb-tool-config__title margin-b-2"},ft={class:"hzzt-kfb-tool-config__block flex align-items-center"},mt={class:"hzzt-kfb-tool-config__icon flex align-items-center justify-content-center"},vt={class:"margin-l-4 flex-1"},pt={class:"hzzt-kfb-tool-config__title"},ht={class:"flex align-items-center"},gt={class:"margin-t-2 margin-b-2",style:{width:"160px"}},yt={class:"flex align-items-center"},wt={class:"margin-t-2 margin-b-2",style:{width:"160px"}},kt={class:"flex align-items-center"},_t={class:"margin-t-2 margin-b-2",style:{width:"160px"}},bt=e.defineComponent({name:"KfbToolConfig",__name:"KfbToolConfig",props:{menus:{default:()=>[]},menusModifiers:{}},emits:["update:menus"],setup(u){const t=e.useModel(u,"menus"),{t:n}=j(),o=e.computed(()=>t.value.filter(h=>h.name!=="line"&&h.name!=="config"&&h.name!=="zoom")),w={fullscreen:n("全屏"),next:n("上一张"),prev:n("上一张"),flip:n("镜像翻转"),setting:n("工具"),rotate:n("旋转"),dot:n("打点"),annotate:n("标注"),tailor:n("截图"),process:n("图像处理"),microscope:n("镜下"),move:n("快速移动"),info:n("信息"),download:n("下载")},f=e.inject("show-keyboard",e.ref(!1)),s=e.inject("show-watermark",e.ref(!1)),i=e.inject("show-menu-text",e.ref(!0));function v(h){return h in w}function g(h){var a;return((a=h.props)==null?void 0:a.text)||(v(h.name)?w[h.name]:"")}return(h,a)=>(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("h3",dt,e.toDisplayString(e.unref(n)("显示管理")),1),e.createVNode(e.unref(b.ElRow),{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,d=>(e.openBlock(),e.createBlock(e.unref(b.ElCol),{key:d.name,span:8},{default:e.withCtx(()=>{var c,l;return[e.createElementVNode("div",ft,[e.createElementVNode("div",mt,[(c=d.props)!=null&&c.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=d.props)==null?void 0:l.component),{key:1,size:24})):(e.openBlock(),e.createBlock(I,{key:0,size:24,name:d.name},null,8,["name"]))]),e.createElementVNode("p",vt,e.toDisplayString(g(d)),1),e.createVNode(e.unref(b.ElSwitch),{modelValue:d.show,"onUpdate:modelValue":m=>d.show=m,"active-text":"","inactive-text":""},null,8,["modelValue","onUpdate:modelValue"])])]}),_:2},1024))),128))]),_:1}),e.createElementVNode("div",null,[e.createElementVNode("h3",pt,e.toDisplayString(e.unref(n)("其他设置")),1),e.createElementVNode("div",ht,[e.createElementVNode("p",gt,e.toDisplayString(e.unref(n)("工具列表显示切换")),1),e.createVNode(e.unref(b.ElRadioGroup),{modelValue:e.unref(i),"onUpdate:modelValue":a[0]||(a[0]=d=>e.isRef(i)?i.value=d:null)},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("显示工具名称")),1)]),_:1}),e.createVNode(e.unref(b.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("隐藏工具名称")),1)]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",yt,[e.createElementVNode("p",wt,e.toDisplayString(e.unref(n)("小键盘显示切换")),1),e.createVNode(e.unref(b.ElRadioGroup),{modelValue:e.unref(f),"onUpdate:modelValue":a[1]||(a[1]=d=>e.isRef(f)?f.value=d:null)},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("显示小键盘")),1)]),_:1}),e.createVNode(e.unref(b.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("隐藏小键盘")),1)]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",kt,[e.createElementVNode("p",_t,e.toDisplayString(e.unref(n)("水印文字")),1),e.createVNode(e.unref(b.ElRadioGroup),{modelValue:e.unref(s),"onUpdate:modelValue":a[2]||(a[2]=d=>e.isRef(s)?s.value=d:null)},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("启用")),1)]),_:1}),e.createVNode(e.unref(b.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("禁用")),1)]),_:1})]),_:1},8,["modelValue"])])])]))}}),Ct={class:"hzzt-kfb-toolbox"},Vt={class:"hzzt-kfb-toolbox__component"},ae=e.defineComponent({name:"KfbToolbox",__name:"KfbToolbox",props:{menu:{},process:{},microscope:{},showMenuText:{type:Boolean}},emits:["tool"],setup(u,{emit:t}){const n=u,o=t,{t:w}=j(),f={prev:w("上一张"),next:w("下一张"),config:w("配置"),info:w("信息"),flip:w("镜像"),tailor:w("截图")},s=e.inject("kfbViewRef"),i=e.ref(!1),v=e.ref(a(n.menu)),g={fullscreen:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenD26Fq3AJ.js"))),line:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./linej48TZYKp.js"))),setting:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingDc0THS-p.js"))),rotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateC8INrLms.js"))),dot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotD0Gx7CRc.js"))),annotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateCsjd-8z3.js"))),process:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processZz2jg8Ii.js"))),microscope:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopeBLaPm6pb.js"))),move:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveBONH7e1-.js"))),custom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./customdA1G1T1y.js"))),zoom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomtmOdf1Vc.js"))),download:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadBByB8lwE.js")))},h=e.computed(()=>v.value.filter(c=>c.show!==!1).map(c=>({component:g[c.name],props:c.props,slots:c.slots})));e.watch(()=>n.menu,c=>{v.value=a(c)});function a(c){return c.map(l=>{const m=typeof l=="string"?l:l.name;return f[m]?{name:"custom",show:typeof l=="string"?!0:l.show!==!1,props:Y(R({text:f[m],component:e.h(I,{name:m})},typeof l=="string"?{}:l.props),{name:m})}:m==="process"?{name:m,props:typeof l=="string"?{process:n.process}:R({process:n.process},l.props),slots:typeof l=="string"?void 0:l.slots,show:typeof l=="string"?!0:l.show!==!1}:m==="microscope"?{name:m,props:typeof l=="string"?{process:n.process}:R({microscope:n.microscope},l.props),slots:typeof l=="string"?void 0:l.slots,show:typeof l=="string"?!0:l.show!==!1}:{name:m,props:typeof l=="string"?{}:l.props,slots:typeof l=="string"?void 0:l.slots,show:typeof l=="string"?!0:l.show!==!1}})}function d(c,l){const m={annotate:()=>s.value.startDraw(l),tailor:()=>s.value.shotScreen(l),process:()=>s.value.forceRedraw(l),microscope:()=>s.value.scopeChange(l),move:()=>s.value.fastMove(l),endDraw:()=>s.value.endDraw(),info:()=>s.value.info(),zoom:()=>s.value.zoomTo(l),flip:()=>s.value.toggleFlip(l),config:()=>i.value=!0,grid:()=>s.value.updateGrid(l),ruler:()=>s.value.updateGrid(l),graduation:()=>s.value.updateGraduation(l),navigator:()=>s.value.updateNavigator(l),tool:()=>{s.value.updateGrid({show:l}),s.value.updateGraduation({show:l}),s.value.updateGrid({ruler:l}),s.value.updateNavigator(l)}};m[c]?m[c]():o("tool",c,l)}return(c,l)=>(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(c.$slots,"left"),e.createElementVNode("div",Vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(m,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.component),e.mergeProps({ref_for:!0},m.props,{key:k,onTool:d}),{default:e.withCtx(()=>[m.slots?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.slots,y=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y)))),256)):e.createCommentVNode("",!0)]),_:2},1040))),128))]),e.renderSlot(c.$slots,"right"),e.createVNode(e.unref(b.ElDialog),{modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=m=>i.value=m),width:"800px",title:e.unref(w)("阅片工具设置中心")},{default:e.withCtx(()=>[e.createVNode(bt,{menus:v.value,"onUpdate:menus":l[0]||(l[0]=m=>v.value=m)},null,8,["menus"])]),_:1},8,["modelValue","title"])]))}}),ue="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3e%3cpath%20d='M556.45%20126.8H904.7c31.31%200%2056.26%2025.47%2057.3%2056.78v656.85c-0.68%2031.26-26.03%2056.35-57.3%2056.72H617.28l74.32-291.24-77.38-56.14%2032.3-27.32c8.28-6.66%2015.51-11.46%2025.7-11.46%209.96%200.24%2019.33%204.77%2025.7%2012.45h-0.06l198.87%20214.09-0.58-522.46c-0.75-13.7-12.21-24.35-25.93-24.08H542.45l14-64.19z%20m-118.47%200l-14.01%2064.24H152.41c-13.6%200-24.31%209.84-26.22%2023.44v522.63l242.33-292.28-13.08%2060.14%20204.6%20148.46-62.22%20243.77H118.15a56.398%2056.398%200%200%201-39.86-16.73A56.35%2056.35%200%200%201%2062%20840.43V183.57c0-31.25%2024.89-56.72%2056.14-56.72h319.83v-0.05z%20m203.67%20224.68c-0.86-34.98%2017.31-67.68%2047.47-85.42%2030.16-17.74%2067.56-17.74%2097.73%200%2030.16%2017.74%2048.33%2050.44%2047.47%2085.42%200%2053.22-43.15%2096.37-96.37%2096.37-53.22%200-96.37-43.14-96.37-96.37h0.07z%20m0%200'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e",ce={shape:"50%",width:.3,color:"#FA0404",borderWidth:5},ke={r:0,g:0,b:0,c:0,s:0,l:0,ga:1};function Et(u){const t=e.reactive(R(R({},ke),u.process));e.watch(()=>u.process,f=>{w(f)});const n=e.computed(()=>{const f=[1+t.r+t.l+.5*t.c,0,0,0,-.25*t.c],s=[0,1+t.g+t.l+.5*t.c,0,0,-.25*t.c],i=[0,0,1+t.b+t.l+.5*t.c,0,-.25*t.c],v=[0,0,0,1,0];return`${f.join(" ")}
|
|
2
|
+
${s.join(" ")}
|
|
3
|
+
${i.join(" ")}
|
|
4
|
+
${v.join(" ")}`}),o=e.computed(()=>String(1+t.s));function w(f){f&&Object.assign(t,f)}return{imageProcess:t,matrixValues:n,saturateValues:o,forceRedraw:w}}function Nt(u,t){function n(){t.value.$on(M.KfbView.events.EVENT_TAILORING_SCREENSHOT,o)}function o({base64:s,region:i,custom:v}){if(window.ClipboardItem&&(navigator!=null&&navigator.clipboard)){const g=w(s,"image/png");navigator.clipboard.write([new window.ClipboardItem({[g.type]:g})])}u("tool","screen-shot",{base64:s,region:i,custom:v})}function w(s,i){var d,c;const v=s.split(",");(c=(d=v[0])==null?void 0:d.match(/:(.*?);/))==null||c[1];const g=atob(v==null?void 0:v[1]);let h=g.length;const a=new Uint8Array(h);for(;h--;)a[h]=g.charCodeAt(h);return new Blob([a],{type:i})}function f(s,i){const{width:v,height:g}=t.value.$options;s?v>g?t.value.tailoring.init({left:(v-g)/2,top:0,height:g,width:g,now:!0},i):t.value.tailoring.init({left:0,top:(g-v)/2,height:v,width:v,now:!0},i):t.value.tailoring.init({left:v/2-100,top:g/2-100,height:200,width:200,color:"#ff0000"},i)}return{tailorEvent:n,shotScreen:f}}const zt=["onClick"],Bt=["src"],xt={key:2,style:{width:"18px"},class:"margin-r-3"},Tt={key:1,class:"hzzt-kfb-sub-menu"},St=["onClick"],Lt={class:"flex align-items-center"},$t=["src"],Pt={key:2,style:{width:"18px"},class:"margin-r-2"},Rt=e.defineComponent({__name:"KfbMenu",props:{menus:{}},emits:["tool"],setup(u,{emit:t}){const n=e.ref({top:"0",left:"0",display:"none"}),o=e.inject("kfbView",e.ref({})),w=e.inject("currentLabel"),f=u,s=t,{t:i}=j(),v=[{label:i("直线"),value:"line",icon:P.value.markLine},{label:i("箭头"),value:"arrow",icon:P.value.markArrow},{label:i("双箭头"),value:"bilateral",icon:P.value.markBilateral},{label:i("矩形"),value:"rectangle",icon:P.value.markRectangle},{label:i("圆形"),value:"ellipse",icon:P.value.markEllipse},{label:i("曲线"),value:"polygon",icon:P.value.markPolygon},{label:i("星星"),value:"star",icon:P.value.markStar},{label:i("旗帜"),value:"flag",icon:P.value.markFlag},{label:i("点"),value:"dot",icon:P.value.markDot},{label:i("文字"),value:"font",icon:P.value.markFont},{label:i("语音"),value:"voice",icon:P.value.markVoice}],g=e.computed(()=>{var l;return w!=null&&w.value?[{label:i("删除"),value:"delete",icon:P.value.delete}]:(l=f.menus)!=null&&l.length?f.menus.map(m=>m.value==="annotate"?Y(R({},m),{children:v}):Y(R({},m),{icon:m.icon||P.value[m.value]})):[{label:i("上一张"),value:"prev"},{label:i("下一张"),value:"next"},{label:i("标注"),value:"annotate",icon:P.value.annotate,children:v},{label:i("一键截图"),value:"tailor_now",icon:P.value.tailor},{label:i("区域截图"),value:"tailor"},{label:i("镜像翻转"),value:"flip",icon:P.value.flip},{label:i("切片信息"),value:"info",icon:P.value.info}]});e.watch(()=>o.value,(l,m)=>{m!=null&&m.viewer&&(m.viewer.removeHandler("canvas-contextmenu",h),m.viewer.removeHandler("canvas-click",a)),l!=null&&l.viewer&&(l.viewer.addHandler("canvas-contextmenu",h),l.viewer.addHandler("canvas-click",a))}),e.onMounted(()=>{var l;(l=o.value)!=null&&l.viewer&&(o.value.viewer.addHandler("canvas-contextmenu",h),o.value.viewer.addHandler("canvas-click",a)),document.body.addEventListener("click",a)}),e.onBeforeUnmount(()=>{var l;(l=o.value)!=null&&l.viewer&&(o.value.viewer.removeHandler("canvas-contextmenu",h),o.value.viewer.removeHandler("canvas-click",a)),document.body.removeEventListener("click",a)});function h(l){l.preventDefault=!0,n.value.top=`${l.position.y}px`,n.value.left=`${l.position.x}px`,n.value.display==="block"?n.value.display="none":n.value.display="block"}function a(){n.value.display="none"}function d(l,m){l.children||((m==null?void 0:m.value)==="annotate"?s("tool","annotate",{tool:l.value.substring(0,1).toLocaleUpperCase()+l.value.substring(1),once:!0}):l.value==="tailor_now"?s("tool","tailor",!0):s("tool",l.value),a())}function c(l){return l==null||typeof l!="object"&&typeof l!="function"?!1:typeof l=="function"||"render"in l||"setup"in l}return(l,m)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-menu",style:e.normalizeStyle(n.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(k,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"hzzt-kfb-menu-item"},[e.createElementVNode("div",{class:"flex align-items-center",onClick:p=>d(k)},[c(k.icon)?(e.openBlock(),e.createBlock(e.unref(b.ElIcon),{key:0,class:"margin-r-3",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.icon)))]),_:2},1024)):k.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:k.icon},null,8,Bt)):(e.openBlock(),e.createElementBlock("div",xt)),e.createElementVNode("span",null,e.toDisplayString(k.label),1)],8,zt),k.children?(e.openBlock(),e.createBlock(I,{key:0,name:"arrowRight",class:"margin-r-2",size:14})):e.createCommentVNode("",!0),k.children?(e.openBlock(),e.createElementBlock("div",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.children,(p,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"hzzt-kfb-menu-item",onClick:E=>d(p,k)},[e.createElementVNode("div",Lt,[c(p.icon)?(e.openBlock(),e.createBlock(e.unref(b.ElIcon),{key:0,class:"margin-r-2",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon)))]),_:2},1024)):p.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:p.icon},null,8,$t)):(e.openBlock(),e.createElementBlock("div",Pt)),e.createElementVNode("span",null,e.toDisplayString(p.label),1)])],8,St))),128))])):e.createCommentVNode("",!0)]))),128))],4))}}),G=(u,t)=>{const n=u.__vccOpts||u;for(const[o,w]of t)n[o]=w;return n},It=G(Rt,[["__scopeId","data-v-414722d0"]]),Dt={key:0,class:"hzzt-kfb-microscope"},At=e.defineComponent({__name:"KfbMicroscope",props:e.mergeDefaults({shape:{},width:{},color:{},borderWidth:{}},R({},ce)),setup(u,{expose:t}){const n=u,o=e.reactive(R(R({},ce),n));e.watch(()=>n,a=>{h({name:"change",value:a})});const w=e.ref("200px"),f=e.ref(!1),s=e.computed(()=>({borderRadius:o.shape,borderColor:o.color,borderWidth:o.borderWidth+"px",width:w.value,height:w.value})),i=e.inject("kfbView",e.ref({}));e.watch(()=>i.value,(a,d)=>{d!=null&&d.viewer&&d.viewer.removeHandler("zoom",v),a!=null&&a.viewer&&a.viewer.addHandler("zoom",v)}),e.onMounted(()=>{var a;(a=i.value)!=null&&a.viewer&&i.value.viewer.addHandler("zoom",v)}),e.onBeforeUnmount(()=>{var a;(a=i.value)!=null&&a.viewer&&i.value.viewer.removeHandler("zoom",v)});function v(){setTimeout(()=>{h({name:"change",value:o})},100)}function g(a){let{x:d,y:c}=i.value.viewer.viewport.getCenter(!0);a==="top"?c-=.006:a==="bottom"?c+=.006:a==="left"?d-=.006:a==="right"&&(d+=.006),i.value.area.moveToLabel({x:d,y:c})}function h({name:a,value:d}){var l,m;const c=(m=(l=i.value.$options)==null?void 0:l.pxConversion)==null?void 0:m.imageCapRes;if(a==="visible"){if(f.value=d,d){const k=i.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/c,height:o.width*1e3/c});w.value=k.width+"px"}}else if(a==="change"){Object.assign(o,d);const k=i.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/c,height:o.width*1e3/c});w.value=k.width+"px"}}return t({scopeChange:h}),(a,d)=>f.value?(e.openBlock(),e.createElementBlock("div",Dt,[e.createElementVNode("div",{class:"hzzt-kfb-microscope__container",style:e.normalizeStyle(s.value)},null,4),e.createElementVNode("div",{class:"hzzt-kfb-microscope__top",onClick:d[0]||(d[0]=c=>g("top"))},[e.createVNode(I,{size:"24",name:"arrowUp"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__bottom",onClick:d[1]||(d[1]=c=>g("bottom"))},[e.createVNode(I,{size:"24",name:"arrowDown"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__left",onClick:d[2]||(d[2]=c=>g("left"))},[e.createVNode(I,{size:"24",name:"arrowLeft"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__right",onClick:d[3]||(d[3]=c=>g("right"))},[e.createVNode(I,{size:"24",name:"arrowRight"})])])):e.createCommentVNode("",!0)}}),Mt=G(At,[["__scopeId","data-v-cf5949b8"]]),Ht={class:"hzzt-kfb-label flex column"},Ft={class:"hzzt-kfb-label__img flex justify-content-center"},qt=["src"],Ut={class:"ellipsis flex-1"},jt={class:"flex margin-b-4",style:{width:"100%"}},Kt={class:"flex margin overflow-hidden",style:{height:"132px"}},Ot=["src"],Gt=["src"],Wt=e.defineComponent({__name:"KfbLabel",props:{visible:{type:Boolean},info:{},slide:{},pathologyHandle:{type:Function}},emits:["tool"],setup(u,{emit:t}){var a;const{t:n}=j(),o=u,w=t,f=e.ref((a=o.visible)!=null?a:!0),s=e.ref(!1),i=e.computed(()=>o.slide.pathology_id?n("修改病理号"):n("绑定病理号"));function v(){o.slide.angle||(o.slide.angle=0),o.slide.angle+=90,o.slide.angle>360&&(o.slide.angle=o.slide.angle%360),w("tool","rotate",o.slide.angle)}function g(){s.value=!0}function h(){o.pathologyHandle&&o.pathologyHandle(o.slide).then(()=>{s.value=!1})}return(d,c)=>(e.openBlock(),e.createElementBlock("div",Ht,[e.withDirectives(e.createElementVNode("div",{class:"hzzt-kfb-label__title"},e.toDisplayString(e.unref(n)(`点击标签旋转${d.pathologyHandle?",点击病理号重绑":""}`)),513),[[e.vShow,f.value]]),e.withDirectives(e.createElementVNode("div",Ft,[e.createElementVNode("img",{src:d.info.labelImg,style:e.normalizeStyle({transform:`rotate(${d.slide.angle}deg)`}),onClick:v},null,12,qt)],512),[[e.vShow,f.value]]),d.pathologyHandle?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"hzzt-kfb-label__pathology flex align-items-center justify-content-between",onClick:g},[e.createElementVNode("span",Ut,e.toDisplayString(d.slide.pathology_number),1),e.createVNode(I,{size:"14",name:"annotate"})],512)),[[e.vShow,f.value]]):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:c[0]||(c[0]=l=>f.value=!f.value),style:e.normalizeStyle({transform:`translateY(${f.value?"-50%":0})`}),class:"hzzt-kfb-label__expend flex align-items-center justify-content-center"},[f.value?(e.openBlock(),e.createBlock(I,{key:0,size:"10",name:"arrowLeft"})):(e.openBlock(),e.createBlock(I,{key:1,size:"10",name:"arrowRight"}))],4),e.createVNode(e.unref(b.ElDialog),{modelValue:s.value,"onUpdate:modelValue":c[5]||(c[5]=l=>s.value=l),"append-to-body":!0,title:i.value,width:"450px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(b.ElButton),{onClick:c[4]||(c[4]=l=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("取消")),1)]),_:1}),e.createVNode(e.unref(b.ElButton),{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("确认")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",jt,[e.createElementVNode("div",Kt,[e.createElementVNode("img",{src:d.slide.labelImg},null,8,Ot),e.createElementVNode("img",{src:d.slide.previewImg},null,8,Gt)])]),e.createVNode(e.unref(b.ElForm),{class:"margin-t-2"},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElFormItem),{label:e.unref(n)("病理号")},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElInput),{modelValue:d.slide.pathology_number,"onUpdate:modelValue":c[1]||(c[1]=l=>d.slide.pathology_number=l),placeholder:e.unref(n)("输入病理号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(b.ElFormItem),{label:e.unref(n)("蜡块号")},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElInput),{modelValue:d.slide.paraffin_block_number,"onUpdate:modelValue":c[2]||(c[2]=l=>d.slide.paraffin_block_number=l),placeholder:e.unref(n)("输入蜡块号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),d.slide.slide_id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(b.ElFormItem),{key:0,label:e.unref(n)("试剂")},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElInput),{modelValue:d.slide.reagent,"onUpdate:modelValue":c[3]||(c[3]=l=>d.slide.reagent=l),placeholder:e.unref(n)("输入试剂"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]))]),_:1})]),_:1},8,["modelValue","title"])]))}}),Zt=G(Wt,[["__scopeId","data-v-e1475ef3"]]);function Yt(u,t){const n=e.ref(1),o=e.ref(null),w=e.ref(null);function f(){u.value.viewer.addHandler("canvas-drag",i=>{o.value||(o.value=i.position)}),u.value.viewer.addHandler("canvas-drag-end",i=>{if(n.value!==1){w.value=i.position;const v=u.value.viewer.viewport.containerSize.x,g=u.value.viewer.viewport.containerSize.y,h=(w.value.x-o.value.x)/(v*t.value)*(n.value-1),a=(w.value.y-o.value.y)/(g*t.value)*(n.value-1),d=u.value.viewer.viewport.getCenter(),c=new M.OpenSeadragon.Point(d.x-h,d.y-a);u.value.viewer.viewport.panTo(c),o.value=null}})}function s({name:i,value:v}){i==="ratio"&&(n.value=v/1)}return{moveEvent:f,fastMove:s}}function Xt(u,t,n,o,w){const f=e.ref(void 0),s=e.ref([]);e.watch(()=>u.aiLabelList,h);function i(){n.value.$on(M.KfbView.events.EVENT_END_PAINTING,v("add")),n.value.$on(M.KfbView.events.EVENT_AREA_MOVE_END,v("move")),n.value.$on(M.KfbView.events.EVENT_ADD_POLYGON_POINT,v("add-point")),n.value.$on(M.KfbView.events.EVENT_DELETE_POLYGON_POINT,v("delete-point")),n.value.$on(M.KfbView.events.EVENT_DELETE_LABEL,v("delete")),n.value.$on(M.KfbView.events.EVENT_SELECT_LABEL,l=>{f.value=l,c(),t("tool","select-label",f.value)}),n.value.$on(M.KfbView.events.EVENT_CANCEL_SELECT_LABEL,()=>{f.value=void 0,t("tool","cancel-select-label",f.value)}),v("list")()}function v(l){return m=>g(l,m)}function g(l,m){var k;if(l==="add"&&m&&((m==null?void 0:m.subType)||((k=m==null?void 0:m.__data__)==null?void 0:k.subType))==="voice")o(m);else return u.labelHandle(l,u.slide,m,s.value).then(y=>{s.value=y,h()}).catch(()=>{h()})}function h(){var l;if((l=n.value)!=null&&l.initLabelList){const m=[...s.value,...u.aiLabelList||[]];m.find(({id:k})=>{var y;return k===((y=f.value)==null?void 0:y.id)})||(f.value=void 0),n.value.initLabelList(m)}}function a(l,m){var y,p;f.value&&(f.value.select=!1,f.value=void 0);const k=(n.value.labelList||[]).findIndex(r=>r.id===l.id);if(k>-1){f.value=(y=n.value.labelList)==null?void 0:y[k],f.value.select=!0;const r=n.value.area.getCenterPoint(l.region);n.value.area.moveToLabel(r),(p=n.value.viewer)!=null&&p.canvas&&n.value.viewer.canvas.focus(),c()}m&&w(m)}function d(l){return u.labelHandle("add",u.slide,l,s.value).then(m=>{s.value=m,h()}).catch(()=>{h()})}function c(){var m,k,y,p;(((m=f.value)==null?void 0:m.subType)||((y=(k=f.value)==null?void 0:k.__data__)==null?void 0:y.subType))==="voice"&&((p=f.value)!=null&&p.src)&&new Audio(f.value.src).play()}return{currentLabel:f,localLabelList:s,initLabel:i,jumpToLabel:a,reloadLabelList:h,eventHandel:v,addHandle:d}}function Jt(){function u(t,n){t.save(),t.strokeStyle="rgba(0,0,0,0)",t.miterLimit=4,t.font="15px",t.fillStyle=n,t.font="15px",t.scale(.02734375,.02734375),t.save(),t.font="15px",t.beginPath(),t.moveTo(512,427.023),t.moveTo(422,427.023),t.translate(512,427.023),t.rotate(0),t.arc(0,0,90,3.141592653589793,6.283185307179586,!0),t.rotate(0),t.translate(-512,-427.023),t.translate(512,427.023),t.rotate(0),t.arc(0,0,90,0,3.141592653589793,!0),t.rotate(0),t.translate(-512,-427.023),t.fill(),t.stroke(),t.restore(),t.save(),t.font="15px",t.beginPath(),t.moveTo(512,910.402),t.bezierCurveTo(492.86,910.402,474.51800000000003,904.548,458.95799999999997,893.4730000000001),t.bezierCurveTo(444.895,883.4630000000001,434.032,869.8770000000001,427.36899999999997,854.013),t.lineTo(255.043,585.177),t.lineTo(254.889,584.927),t.bezierCurveTo(225.522,537.209,210,482.605,210,427.021),t.bezierCurveTo(210,346.35400000000004,241.414,270.515,298.454,213.47500000000002),t.bezierCurveTo(355.494,156.43500000000006,431.333,125.021,512,125.021),t.bezierCurveTo(592.6669999999999,125.021,668.506,156.435,725.546,213.475),t.bezierCurveTo(782.587,270.515,814,346.354,814,427.021),t.bezierCurveTo(814,482.87,798.345,537.692,768.726,585.56),t.lineTo(768.462,585.9789999999999),t.lineTo(596.381,854.6949999999999),t.bezierCurveTo(589.626,870.4209999999999,578.721,883.871,564.677,893.7499999999999),t.bezierCurveTo(549.192,904.6449999999999,530.977,910.4019999999999,512,910.4019999999999),t.closePath(),t.moveTo(309.246,551.141),t.lineTo(484.74,824.9209999999999),t.lineTo(485.934,828.1179999999999),t.bezierCurveTo(490.083,839.2249999999999,500.31500000000005,846.4019999999999,512,846.4019999999999),t.bezierCurveTo(523.584,846.4019999999999,533.791,839.3309999999999,538.004,828.387),t.lineTo(539.169,825.3589999999999),t.lineTo(714.43,551.678),t.bezierCurveTo(737.701,513.983,750,470.884,750,427.021),t.bezierCurveTo(750,363.449,725.244,303.682,680.2909999999999,258.72900000000004),t.bezierCurveTo(635.3389999999999,213.77800000000005,575.5719999999999,189.02100000000004,511.99999999999994,189.02100000000004),t.bezierCurveTo(448.428,189.02100000000004,388.66099999999994,213.77700000000004,343.70799999999997,258.72900000000004),t.bezierCurveTo(298.755,303.68100000000004,274,363.449,274,427.021),t.bezierCurveTo(274,470.661,286.186,513.573,309.246,551.1410000000001),t.closePath(),t.fill(),t.stroke(),t.restore(),t.restore()}return{drawDot:u}}function Qt(u,t){const{t:n}=j(),o=e.ref(!1),w=e.ref();let f=null;const s=e.ref(!1),i=e.ref(0);let v=0;const g=e.ref([]),h=e.ref(void 0);let a=!1;function d(r,E){r.save(),r.strokeStyle="rgba(0,0,0,0)",r.miterLimit=4,r.font="15px ''",r.fillStyle=E,r.font=" 15px ''",r.scale(.03125,.03125),r.save(),r.font=" 15px ''",r.beginPath(),r.moveTo(515.041727,670.617766),r.bezierCurveTo(606.625894,670.617766,681.137374,596.113511,681.137374,504.52212),r.lineTo(681.137374,229.350568),r.bezierCurveTo(681.137374,137.76640100000003,606.625894,63.254920999999996,515.041727,63.254920999999996),r.bezierCurveTo(423.44311000000005,63.254920999999996,348.93885500000005,137.766401,348.93885600000004,229.350568),r.lineTo(348.93885600000004,504.52212),r.bezierCurveTo(348.93885600000004,596.113512,423.44311100000004,670.617767,515.041727,670.617766),r.closePath(),r.fill(),r.stroke(),r.restore(),r.save(),r.font=" 15px ''",r.beginPath(),r.moveTo(801.643237,874.001665),r.lineTo(558.391759,874.001665),r.lineTo(558.391759,828.578057),r.bezierCurveTo(719.899527,807.264291,844.993269,668.7898399999999,844.993269,501.55986699999994),r.translate(801.643237,501.55986699999994),r.rotate(0),r.arc(0,0,43.350032,0,3.141592653589793,!0),r.rotate(0),r.translate(-801.643237,-501.55986699999994),r.bezierCurveTo(758.2932050000001,635.684865,649.166725,744.811345,515.0345020000001,744.811346),r.bezierCurveTo(380.9095040000001,744.811346,271.79024900000013,635.6848659999999,271.79024900000013,501.55986699999994),r.translate(228.44021750000013,501.5664510740879),r.rotate(0),r.arc(0,0,43.350032,-.00015188164315591997,-3.1414407719461273,!0),r.rotate(0),r.translate(-228.44021750000013,-501.5664510740879),r.bezierCurveTo(185.09018600000013,668.7898389999999,310.1911530000001,807.271516,471.69169500000015,828.578057),r.lineTo(471.69169500000015,874.001665),r.lineTo(228.440217,874.001665),r.translate(228.440217,917.3516970000001),r.rotate(0),r.arc(0,0,43.350032,-1.5707963267948966,1.5707963267948966,!0),r.rotate(0),r.translate(-228.440217,-917.3516970000001),r.lineTo(801.643237,960.701729),r.translate(801.643237,917.3516970000001),r.rotate(0),r.arc(0,0,43.350032,1.5707963267948966,4.71238898038469,!0),r.rotate(0),r.translate(-801.643237,-917.3516970000001),r.closePath(),r.fill(),r.stroke(),r.restore(),r.restore()}function c(){return J(this,null,function*(){try{w.value=yield navigator.mediaDevices.getUserMedia({audio:!0}),f=new MediaRecorder(w.value),g.value=[],f.addEventListener("dataavailable",r=>{g.value.push(r.data)}),f.addEventListener("stop",()=>J(this,null,function*(){if(h.value){const r=new Blob(g.value,{type:u.audioType||"audio/wav"});h.value.src=URL.createObjectURL(r)}s.value=!1,a&&(yield p())})),f.start(),s.value=!0,v=window.setInterval(()=>{i.value++},1e3)}catch(r){b.ElMessage.error(n("麦克风启用失败,请确认是否开启麦克风权限"))}})}function l(){w.value&&f?(f.stop(),w.value.getTracks().forEach(r=>r.stop()),f=null,w.value=void 0):(f=null,w.value=void 0),s.value=!1,v&&(clearInterval(v),v=0),i.value=0}function m(r){o.value=!0,h.value=r,g.value=[],a=!1}function k(){s.value&&l(),o.value=!1,s.value=!1,a=!1}function y(){return J(this,null,function*(){if(!s.value&&!g.value.length){b.ElMessage.error(n("请先录音"));return}s.value&&l(),s.value=!1,a=!0,g.value.length&&(yield p()),o.value=!1})}function p(){return J(this,null,function*(){if(u.uploadHandle&&h.value){const r=b.ElLoading.service({text:n("录音上传中")}),E=new Blob(g.value,{type:u.audioType||"audio/wav"});g.value=[];try{yield u.uploadHandle(u.slide,h.value,E).then(B=>{h.value.src=B}),r.close(),t(h.value)}catch(B){r.close()}}})}return{voiceVisible:o,voiceForm:h,recordTime:i,isRecording:s,drawVoice:d,startRecording:c,stopRecording:l,initVoice:m,cancelRecord:k,confirmRecord:y}}function eo(u,t,n){const o=e.ref([]),w=e.ref(0),f=e.ref(!1);let s=null;e.watch(()=>{var c;return(c=u.analysis)==null?void 0:c.hotmap_path},c=>{var l,m,k;if((m=(l=t.value)==null?void 0:l.viewer)!=null&&m.world){w.value=0;const y=t.value.viewer.world.getItemAt(0);y&&(y.tilesMatrix={},y.draw())}c&&((k=u.analysis)!=null&&k.zoom_roi)&&n({x:u.analysis.zoom_roi.x,y:u.analysis.zoom_roi.y,width:u.analysis.zoom_roi.w,height:u.analysis.zoom_roi.h},5)}),e.onMounted(()=>{window.addEventListener("mousemove",g),window.addEventListener("mouseup",a)}),e.onBeforeUnmount(()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",a)});function i(c,l,m){var y,p,r,E;const k=Y(R({},l),{file:(y=u.analysis)==null?void 0:y.hotmap_path});if((p=u.analysis)!=null&&p.hotmap_info){if(m[l.x+"_"+l.y+"_"+Number(l.scale)])if(((r=u.analysis)==null?void 0:r.hotmap_type)==="drag")v(c,k);else return u.tileHandle(k)}else if(((E=u.analysis)==null?void 0:E.hotmap_type)==="drag")v(c,k);else return u.tileHandle(k);return c}function v(c,l){const m=o.value.find(k=>k.url===c)||{url:c,x:l.x,y:l.y,img:void 0,load:""};if(!(m!=null&&m.img)&&(o.value.push(m),m.load!=="success")){const k=new Image;k.src=u.tileHandle(l),k.onload=()=>{m.load="success"},m.img=k}}function g(c){f.value&&s&&(w.value+=c.x-s.x,w.value<0?w.value=0:w.value>t.value.$options.width&&(w.value=t.value.$options.width,f.value=!1),t.value.viewer.forceRedraw()),s={x:c.x,y:c.y}}function h(c){const{x:l,y:m}=c;f.value=!0,s={x:l,y:m}}function a(){f.value=!1,s=null}function d(c){const{context:l,sourceWidth:m,sourceHeight:k,position:y,size:p,initRendered:r,tile:E,pixelDensityRatio:B}=c,N=E.getUrl(),H=w.value*B,q=y.original.x;if(q<H&&q+p.x>H){const L=H-q,K=p.x-L,F=o.value.find(te=>te.url===N),ee=(F==null?void 0:F.load)==="success"?F.img:r.canvas;l.drawImage(ee,0,0,m*L/p.x,k,y.x,y.y,L,p.y),l.drawImage(r.canvas,m*L/p.x,0,m*K/p.x,k,y.x+L,y.y,K,p.y)}else if(q+p.x<=H){const L=o.value.find(F=>F.url===N),K=(L==null?void 0:L.load)==="success"?L.img:r.canvas;l.drawImage(K,0,0,m,k,y.x,y.y,p.x,p.y)}else q>=H&&l.drawImage(r.canvas,0,0,m,k,y.x,y.y,p.x,p.y)}return{getHotmapUrl:i,hotmapImgs:o,handlerImage:d,hotmapLine:w,lineMouseDown:h}}function to(u,t,n){const o=e.getCurrentInstance(),w=e.ref(!1),f=new BroadcastChannel("sync_kfb_view");f.onmessage=a=>{const d=a.data;g(d)},e.onMounted(()=>{var a,d,c;(a=n.value)==null||a.addEventListener("mouseenter",s),(d=n.value)==null||d.addEventListener("mousemove",s),(c=n.value)==null||c.addEventListener("mouseleave",i)}),e.onBeforeUnmount(()=>{var a,d,c;(a=n.value)==null||a.removeEventListener("mouseenter",s),(d=n.value)==null||d.removeEventListener("mousemove",s),(c=n.value)==null||c.removeEventListener("mouseleave",i),f.close()});function s(){w.value=!0}function i(){w.value=!1}function v(){let a;t.value.viewer.addHandler("pan",d=>{var m,k,y,p;if(!a){a=(k=(m=d.center)==null?void 0:m.clone)==null?void 0:k.call(m);return}const c=d.center,l=(y=c==null?void 0:c.minus)==null?void 0:y.call(c,a);a=(p=c==null?void 0:c.clone)==null?void 0:p.call(c),u.syncPosition&&h({position:l,type:"sync_position"})}),t.value.viewer.addHandler("zoom",d=>{u.syncZoom&&h({zoom:d.zoom,type:"sync_zoom"})}),t.value.viewer.addHandler("animation-finish",()=>{var l;if(u.syncZoom&&h({zoom:t.value.viewer.viewport.getZoom(!0),type:"sync_zoom"}),!a)return;const d=t.value.viewer.viewport.getCenter(!0),c=(l=d==null?void 0:d.minus)==null?void 0:l.call(d,a);a=void 0,u.syncPosition&&h({position:c,type:"sync_position"})})}function g(a){a.uuid&&a.type==="sync_position"&&a.uuid!==(o==null?void 0:o.uid)?t.value&&t.value.viewer.viewport.panBy(a.position,!0):a.uuid&&a.type==="sync_zoom"&&a.uuid!==(o==null?void 0:o.uid)&&t.value&&t.value.viewer.viewport.zoomTo(a.zoom)}function h(a){var d;w.value&&f.postMessage(Y(R({},a),{uuid:o==null?void 0:o.uid,fileName:(d=u.slide)==null?void 0:d.file}))}return{initSync:v}}const oo={class:"hzzt-kfb-keyword flex wrap"},no=["onMouseenter"],lo=e.defineComponent({__name:"KfbKeyword",setup(u){const t=e.ref([{code:"Q",icon:"zoomIn"},{code:"W",icon:"arrowUp"},{code:"E",icon:"zoomOut"},{code:"A",icon:"arrowLeft"},{code:"S",icon:"arrowDown"},{code:"D",icon:"arrowRight"}]),n=e.inject("kfbView",e.ref({}));let o=null;function w(s,i){s.preventDefault(),o&&clearTimeout(o),o=setInterval(()=>{i==="E"&&(n.value.viewer.viewport.zoomBy(1.1),n.value.viewer.viewport.applyConstraints()),i==="Q"&&(n.value.viewer.viewport.zoomBy(.9),n.value.viewer.viewport.applyConstraints()),i==="W"&&(n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new M.OpenSeadragon.Point(0,-40))),n.value.viewer.viewport.applyConstraints()),i==="S"&&(n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new M.OpenSeadragon.Point(0,40))),n.value.viewer.viewport.applyConstraints()),i==="A"&&(n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new M.OpenSeadragon.Point(-40,0))),n.value.viewer.viewport.applyConstraints()),i==="D"&&(n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new M.OpenSeadragon.Point(40,0))),n.value.viewer.viewport.applyConstraints())},120)}function f(){o&&(clearInterval(o),o=null)}return e.onBeforeUnmount(()=>{clearTimeout(o)}),(s,i)=>(e.openBlock(),e.createElementBlock("div",oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,v=>(e.openBlock(),e.createElementBlock("div",{key:v.code,class:"hzzt-kfb-keyword__code flex column align-items-center justify-content-center",onMouseenter:g=>w(g,v.code),onMouseleave:f},[e.createElementVNode("p",null,e.toDisplayString(v.code),1),e.createVNode(I,{size:"14",name:v.icon},null,8,["name"])],40,no))),128))]))}}),ao=G(lo,[["__scopeId","data-v-c8d940f0"]]);function ro(u,t,n={}){const{panSensitivity:o=.2,zoomSensitivity:w=1.1,damping:f=.6,minThreshold:s=.05}=n;let i=!1,v=null,g=0,h=0,a=!1;const d=()=>{i=document.pointerLockElement===t.value,i||c()},c=()=>{g=0,h=0,v&&(cancelAnimationFrame(v),v=null),a=!1},l=r=>J(this,null,function*(){try{r.key==="l"&&t.value&&(document.pointerLockElement?(document.exitPointerLock(),console.log("鼠标已解锁!")):(yield t.value.requestPointerLock(),console.log("鼠标已锁定!")))}catch(E){console.error("无法锁定鼠标:",E)}}),m=r=>{if(i){r.preventDefault();const E=Math.pow(w,Math.sign(r.deltaY)*-1);u.value.viewer.viewport.zoomBy(E),u.value.viewer.viewport.applyConstraints()}},k=r=>{i&&(g+=r.movementX*o,h+=r.movementY*o,!a&&(Math.abs(g)>1||Math.abs(h)>1)&&(a=!0,v=requestAnimationFrame(y)))},y=()=>{const r=u.value.viewer.viewport;if(Math.abs(g)>s||Math.abs(h)>s){const E=r.deltaPointsFromPixels(new M.OpenSeadragon.Point(g,h));r.panBy(E),r.applyConstraints()}g*=f,h*=f,Math.abs(g)>s||Math.abs(h)>s?v=requestAnimationFrame(y):c()},p=()=>{i&&document.exitPointerLock()};return e.onMounted(()=>{var r;(r=t.value)==null||r.addEventListener("keydown",l),document.addEventListener("wheel",m,{passive:!1}),document.addEventListener("click",p),document.addEventListener("mousemove",k),document.addEventListener("pointerlockchange",d)}),e.onBeforeUnmount(()=>{var r;(r=t.value)==null||r.removeEventListener("keydown",l),document.removeEventListener("click",p),document.removeEventListener("wheel",m),document.removeEventListener("mousemove",k),document.removeEventListener("pointerlockchange",d),c()}),{setConfig:r=>{Object.assign(n,r)}}}const io=e.defineComponent({__name:"KfbLevel",props:e.mergeModels({slides:{default:()=>[]}},{"model-value":{default:0},"model-valueModifiers":{}}),emits:["update:model-value"],setup(u){const t=u,n=e.useModel(u,"model-value"),o=e.inject("kfbView",e.ref({})),w=e.computed(()=>Array.from(new Array(t.slides.length+1)).map((s,i)=>i));function f(){const s=o.value.viewer.world.getItemAt(0),i=Object.keys(s.tilesMatrix);i.forEach((v,g)=>{g>i.length-4&&(s.tilesMatrix[v]={})}),s.draw()}return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-level flex column align-items-center",s.slides.length>5?"hzzt-kfb-level--large":""])},[e.createVNode(I,{name:"level",size:"24",class:"margin-b-4 margin-t-2"}),e.createVNode(e.unref(b.ElSlider),{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=v=>n.value=v),vertical:"",min:w.value[0],step:1,max:w.value[w.value.length-1],"show-stops":"","show-tooltip":!0,placement:"left",height:s.slides.length>5?"180px":"130px",onInput:f},null,8,["modelValue","min","max","height"])],2))}}),so={key:0,class:"flex hzzt-kfb-channel"},uo=["onClick"],co=e.defineComponent({__name:"KfbChannel",props:e.mergeModels({info:{}},{"model-value":{default:()=>[]},"model-valueModifiers":{}}),emits:e.mergeModels(["load"],["update:model-value"]),setup(u,{emit:t}){const n=u,o=t,w=e.useModel(u,"model-value"),f=[{key:"DAPI",color:"#4A6CF7"},{key:"480",color:"#00BFFF"},{key:"520",color:"#32CD32"},{key:"570",color:"#FFAA33"},{key:"620",color:"#FF6347"},{key:"670",color:"#DC143C"},{key:"780",color:"#4B0082"}],s=e.computed(()=>{var v;return(((v=n.info)==null?void 0:v.channel)||[]).map(g=>{const h=f.find(a=>a.key===g.eqt_num);return{label:g.eqt_num,color:g.r?`rgb(${g.r}, ${g.g}, ${g.b})`:h==null?void 0:h.color}})});function i(v){w.value.includes(v)?w.value=w.value.filter(g=>g!==v):w.value.push(v),o("load")}return(v,g)=>s.value.length>0?(e.openBlock(),e.createElementBlock("div",so,[e.createVNode(I,{name:"channel",size:"32"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,h=>(e.openBlock(),e.createElementBlock("div",{key:h.label,style:e.normalizeStyle({background:h.color}),class:e.normalizeClass(["hzzt-kfb-channel__box",w.value.includes(h.label)?"":"hzzt-kfb-channel__box--unactive"]),onClick:a=>i(h.label)},e.toDisplayString(h.label),15,uo))),128))])):e.createCommentVNode("",!0)}}),fo={class:"flex align-items-center justify-content-between"},mo={class:"hzzt-kfb-title"},vo={class:"hzzt-kfb-annotation__container flex-1"},po=["onClick"],ho=e.defineComponent({__name:"KfbAnnotation",props:e.mergeModels({annotation:{},annotations:{}},{expand:{type:Boolean},expandModifiers:{}}),emits:e.mergeModels(["select"],["update:expand"]),setup(u,{emit:t}){const n=e.useModel(u,"expand"),o=t,{t:w}=j();function f(i){const v=i.subType||i.tool||"";return`mark${v.substring(0,1).toLocaleUpperCase()}${v.substring(1)}`}function s(i){o("select",i)}return(i,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-annotation flex column",n.value?"hzzt-kfb-annotation--expand":""])},[e.createElementVNode("div",fo,[e.withDirectives(e.createElementVNode("div",mo,[e.createElementVNode("span",null,e.toDisplayString(e.unref(w)("标注列表")),1)],512),[[e.vShow,n.value]]),e.createVNode(I,{class:"hzzt-kfb-annotation__icon",name:n.value?"expandLeft":"expandRight",onClick:v[0]||(v[0]=g=>n.value=!n.value)},null,8,["name"])]),e.withDirectives(e.createElementVNode("div",vo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.annotations,(g,h)=>{var a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-annotation__item",((a=i.annotation)==null?void 0:a.id)===g.id?"hzzt-kfb-annotation__item--active":""]),key:h,onClick:d=>s(g)},[e.createVNode(I,{size:"16",name:f(g)},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(w)("标注"))+e.toDisplayString(h+1),1)],10,po)}),128))],512),[[e.vShow,n.value]])],2))}}),go=G(ho,[["__scopeId","data-v-bfc56a3e"]]);function Me(u){const{t}=j();return e.computed(()=>{var w;const o=((w=u==null?void 0:u.analysis)==null?void 0:w.result)||"";return o.indexOf("疑似阳性")>-1?{type:"warning",name:o}:o.indexOf("阳性")>-1?{type:"danger",name:o}:o.indexOf("阴性")>-1?{type:"success",name:o}:o.indexOf("不合格")>-1?{type:"danger",name:o}:o.indexOf("合格")>-1?{type:"success",name:o}:{type:"info",name:o||t("未知")}})}const yo=["element-loading-text"],wo={key:1,class:"hzzt-kfb-view__main flex align-items-center justify-content-center"},ko={class:"hzzt-kfb-view__filter",height:"0",width:"0"},_o={id:"colorMatrixFilter"},bo=["values"],Co=["values"],Vo=["exponent"],Eo=["exponent"],No=["exponent"],zo={class:"flex nowrap justify-content-center overflow-hidden"},Bo=["src"],xo=["src"],To={class:"flex-1"},So={class:"flex-1"},Lo={class:"flex-1"},$o={class:"flex-1"},Po={class:"flex-1"},Ro={class:"flex-1"},Io=["src"],Do={key:2,class:"margin-l-2"},Ao={key:9,class:"hzzt-kfb-view__watermark"},Q=e.defineComponent({name:"HzztKfbView",__name:"index",props:{slide:{},fileHandle:{},labelHandle:{},tileHandle:{},navigatorHandle:{},pathologyHandle:{},uploadHandle:{},options:{},labelDrawing:{},process:{default:()=>R({},ke)},microscope:{default:()=>R({},ce)},menus:{},syncPosition:{type:Boolean},syncZoom:{type:Boolean},audioType:{},watermark:{},analysis:{},aiLabelList:{},showLabel:{type:Boolean}},emits:["tool"],setup(u,{expose:t,emit:n}){e.useCssVars(_=>({e3fd940a:q.value}));const o=u,w=n,{t:f,locale:s}=j(),i=e.ref(),v=e.ref(),g=e.ref(),h=e.ref(!1),a=e.ref({}),d=e.ref(!1),c=e.ref(0),l=e.ref(0),m=e.ref(0),k=e.ref([]),y=e.ref({width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}}),p=e.inject("show-kfb-label",e.ref(!0)),r=e.inject("show-keyboard",e.ref(!1)),E=e.inject("show-watermark",e.ref(!1)),B=e.ref(!1),N=b.ElLoading.directive;e.watch(()=>{var _;return(_=o.slide)==null?void 0:_.file},()=>{Qe(),setTimeout(()=>{Ee()},100)}),e.onMounted(()=>{Ee()});const H=Me(o),q=e.computed(()=>{var _,V;return`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='100'><text x='30' y='80' font-family='Arial' font-size='16' fill='${((_=o.watermark)==null?void 0:_.color)||"rgba(0,0,0,0.2)"}' transform='rotate(-30)' text-anchor='middle'>${((V=o.watermark)==null?void 0:V.text)||"水印文字"}</text></svg>")`}),{imageProcess:L,matrixValues:K,saturateValues:F,forceRedraw:ee}=Et(o),{tailorEvent:te,shotScreen:Z}=Nt(w,a),{moveEvent:re,fastMove:fe}=Yt(a,l),{initSync:me}=to(o,a,i);ro(a,i);const{drawDot:ve}=Jt(),{voiceVisible:oe,voiceForm:ne,drawVoice:pe,recordTime:C,isRecording:z,startRecording:S,stopRecording:O,initVoice:_e,cancelRecord:He,confirmRecord:Fe}=Qt(o,Oe),{currentLabel:he,localLabelList:be,initLabel:qe,jumpToLabel:Ce,reloadLabelList:Ue,eventHandel:je,addHandle:Ke}=Xt(o,w,a,_e,ge);function Oe(_){Ke(_)}const{getHotmapUrl:Ge,handlerImage:We,hotmapLine:Ze,lineMouseDown:Ve,hotmapImgs:Ye}=eo(o,a,ye);function Ee(){var _;(_=o.slide)!=null&&_.file&&o.fileHandle&&(d.value||(d.value=!0,o.fileHandle(o.slide).then(V=>{var D,U,W,$;y.value=V,k.value=(((D=y.value)==null?void 0:D.channel)||[]).map(T=>T.eqt_num),a.value=new M.KfbView(R({el:v.value,fileName:(U=o.slide)==null?void 0:U.file,scale:y.value.scanScale,lang:(s==null?void 0:s.value)==="en-US"?"en":s==null?void 0:s.value,navigator:{style:"left: 0;bottom: 0",thumbnail:y.value.thumbnailImg,width:200,height:180},grid:{show:!1,ruler:!1,pxConversion:!0},thumb:{bgColor:"rgba(0,0,0,0)"},graduation:{show:!0,right:120,bottom:($=(W=y.value)==null?void 0:W.channel)!=null&&$.length?120:30,tick:{number:3,height:8}},pxConversion:{units:["um","mm"],binary:1e3,imageCapRes:y.value.imageCapRes||y.value.scanResolution||1},openSeadragonOptions:{maxZoomLevel:y.value.scanScale*20,pixelsPerArrowPress:200,animationTime:0,tileSources:Ne()},tileDrawing:We,label:{drawing:(T,x,X)=>{var ie;if(x!=null&&x.custom){const A=T.getContext("2d");A.save(),A.beginPath();const le=(x==null?void 0:x.subType)||((ie=x==null?void 0:x.__data__)==null?void 0:ie.subType);le==="count"?(A.translate(X.x-14,X.y-22),ve(A,(x==null?void 0:x.strokeStyle)||"")):le==="voice"?(A.translate(X.x-16,X.y-18),pe(A,(x==null?void 0:x.strokeStyle)||"")):o.labelDrawing&&o.labelDrawing(A,x),A.restore()}}}},o.options||{})),a.value.viewer.drawer.canvas.style.filter="url(#colorMatrixFilter)",qe(),Je(),me(),setTimeout(()=>{var T,x;(T=o.analysis)!=null&&T.hotmap_path&&((x=o.analysis)!=null&&x.zoom_roi)&&ye({x:o.analysis.zoom_roi.x,y:o.analysis.zoom_roi.y,width:o.analysis.zoom_roi.w,height:o.analysis.zoom_roi.h},5)},200)}).finally(()=>{d.value=!1,p.value||(Te({show:!1,ruler:!1}),Se({show:!1}),setTimeout(()=>{Le(!1)},100))})))}function Xe(){const _=a.value.viewer;if(_.world){const V=_.world.getItemAt(0),D=_.viewport.getZoom(),U=_.viewport.getCenter();_.world.removeItem(V),_.addTiledImage({tileSource:Ne(),success:function(){_.viewport.zoomTo(D),_.viewport.panTo(U)}})}}function Ne(){var W,$;const _=y.value.tileWidth||y.value.imageBlockLen||256,V=y.value.tileHeight||y.value.imageBlockLen||256,D={};(W=o.analysis)!=null&&W.hotmap_path&&((($=o.analysis)==null?void 0:$.hotmap_info)||[]).forEach(T=>{D[T[0]/_+"_"+T[1]/V+"_"+T[2]]=!0});let U=10;return Object.keys(y.value.ratiomap).forEach(T=>{const x=y.value.fileNum-Math.sqrt(y.value.scanScale/Number(T));x>0&&(U=U?Math.min(U,x):x)}),{height:y.value.height,width:y.value.width,tileWidth:_,tileHeight:V,minLevel:Math.floor(U||8),getTileUrl:(T,x,X)=>{var $e,Pe,Re,Ie;const ie=T,A={file:(($e=o.slide)==null?void 0:$e.file)||"",x,y:X,scale:"0",level:T,channel:JSON.stringify(k.value)};y.value.fileNum===T?(T=y.value.scanScale,A.scale=T.toFixed(6)):(T=y.value.scanScale/Math.pow(2,y.value.fileNum-T),A.scale=T.toFixed(6)),A.level=ie,A.file=m.value===0?A.file:((Re=(Pe=o.slide)==null?void 0:Pe.children)==null?void 0:Re[m.value-1])||"";const le=o.tileHandle(A);return(Ie=o.analysis)!=null&&Ie.hotmap_path?Ge(le,A,D):le}}}function Je(){a.value.viewer.addHandler("rotate",_=>{c.value=_.degrees||0}),a.value.viewer.addHandler("zoom",_=>{const V=a.value.viewer.viewport.viewportToImageZoom(_.zoom||0)*Number(a.value.$options.scale);l.value=Number(V.toFixed(2))}),a.value.$on(M.KfbView.events.EVENT_NAVIGATOR_VESTIGE,_=>{o.navigatorHandle&&o.navigatorHandle("add",o.slide,_)}),o.navigatorHandle&&o.navigatorHandle("list",o.slide).then(_=>{var V,D;(D=(V=a.value.navigator)==null?void 0:V.drawPointList)==null||D.call(V,_)}),te(),re()}function Qe(){var _;(_=a.value)!=null&&_.destroy&&(a.value.destroy(),a.value={},y.value={width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}},Ye.value=[],k.value=[],l.value=0,c.value=0,m.value=0)}function ze(_,V){_==="annotate"?Be(V):_==="tailor"?Z(V):_==="info"?h.value=!0:_==="flip"?xe():_==="delete"?je("delete")(he.value):w("tool",_,V)}function Be(_){_.tool==="Voice"&&(_.subType="voice",_.tool="Dot",_.custom=!0),a.value.board.startDraw(_)}function et(){a.value.board.endDraw()}function xe(){a.value.viewer.viewport.toggleFlip()}function tt(_){var V,D;(D=(V=g.value)==null?void 0:V.scopeChange)==null||D.call(V,_)}function ot(){h.value=!0}function Te(_){var V;(V=a.value)!=null&&V.grid&&a.value.grid.updated(_)}function Se(_){var V;(V=a.value)!=null&&V.graduation&&a.value.graduation.updated(_)}function Le(_){var V;(V=a.value)!=null&&V.navigator&&(a.value.navigator.element.style.display=_?"flex":"none")}function ge(_){const V=a.value.viewer.viewport.imageToViewportZoom(Number(_/a.value.$options.scale));a.value.viewer.viewport.zoomTo(V)}function ye(_,V){a.value.area&&(a.value.area.moveToLabel(a.value.viewer.viewport.imageToViewportCoordinates(_.x+_.width/2,_.y+_.height/2)),ge(V))}return e.provide("kfbView",a),e.provide("currentLabel",he),t({kfbView:a,degrees:c,zoom:l,forceRedraw:ee,toggleFlip:xe,startDraw:Be,endDraw:et,shotScreen:Z,info:ot,scopeChange:tt,updateGrid:Te,updateGraduation:Se,updateNavigator:Le,fastMove:fe,zoomTo:ge,jumpToLabel:Ce,jumpToPosition:ye,reloadLabelList:Ue}),(_,V)=>{var D,U,W;return e.openBlock(),e.createElementBlock("div",{ref_key:"mainKfbViewRef",ref:i,class:"hzzt-kfb-view"},[_.slide.file?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"kfbViewMainRef",ref:v,class:"hzzt-kfb-view__main","element-loading-text":e.unref(f)("加载中"),"element-loading-background":"rgba(0, 0, 0, 0.8)"},null,8,yo)),[[e.unref(N),d.value]]):(e.openBlock(),e.createElementBlock("div",wo,V[5]||(V[5]=[e.createElementVNode("img",{style:{width:"50%"},src:ue},null,-1)]))),_.analysis&&_.analysis.result?(e.openBlock(),e.createBlock(e.unref(b.ElTag),{key:2,class:"hzzt-kfb-view__tag",type:e.unref(H).type},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(H).name),1)]),_:1},8,["type"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",ko,[e.createElementVNode("filter",_o,[e.createElementVNode("feColorMatrix",{values:e.unref(K),type:"matrix"},null,8,bo),e.createElementVNode("feColorMatrix",{values:e.unref(F),type:"saturate"},null,8,Co),e.createElementVNode("feComponentTransfer",null,[e.createElementVNode("feFuncR",{id:"feFuncR",type:"gamma",exponent:e.unref(L).ga,amplitude:"1",offset:"0"},null,8,Vo),e.createElementVNode("feFuncG",{id:"feFuncG",type:"gamma",exponent:e.unref(L).ga,amplitude:"1",offset:"0"},null,8,Eo),e.createElementVNode("feFuncB",{id:"feFuncB",type:"gamma",exponent:e.unref(L).ga,amplitude:"1",offset:"0"},null,8,No)])])])),e.createVNode(It,{menus:_.menus,onTool:ze},null,8,["menus"]),e.createVNode(Mt,e.mergeProps(_.microscope,{ref_key:"microscopeRef",ref:g}),null,16),e.unref(p)&&_.slide.file&&y.value.labelImg?(e.openBlock(),e.createBlock(Zt,{key:3,visible:_.showLabel,info:y.value,slide:_.slide,pathologyHandle:_.pathologyHandle,onTool:ze},null,8,["visible","info","slide","pathologyHandle"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createBlock(ao,{key:4})):e.createCommentVNode("",!0),(D=_.slide.children)!=null&&D.length?(e.openBlock(),e.createBlock(io,{key:5,modelValue:m.value,"onUpdate:modelValue":V[0]||(V[0]=$=>m.value=$),slides:_.slide.children},null,8,["modelValue","slides"])):e.createCommentVNode("",!0),(W=(U=y.value)==null?void 0:U.channel)!=null&&W.length?(e.openBlock(),e.createBlock(co,{key:6,modelValue:k.value,"onUpdate:modelValue":V[1]||(V[1]=$=>k.value=$),info:y.value,onLoad:Xe},null,8,["modelValue","info"])):e.createCommentVNode("",!0),e.unref(be).length?(e.openBlock(),e.createBlock(go,{key:7,expand:B.value,"onUpdate:expand":V[2]||(V[2]=$=>B.value=$),style:e.normalizeStyle({top:_.analysis&&_.analysis.result?"24px":"4px"}),annotation:e.unref(he),annotations:e.unref(be),onSelect:e.unref(Ce)},null,8,["expand","style","annotation","annotations","onSelect"])):e.createCommentVNode("",!0),e.createVNode(e.unref(b.ElDialog),{modelValue:h.value,"onUpdate:modelValue":V[3]||(V[3]=$=>h.value=$),"append-to-body":!0,title:e.unref(f)("图像信息"),width:"700px",top:"5vh"},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElForm),{"label-position":"left"},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ElFormItem),{class:"flex","label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",zo,[e.createElementVNode("img",{src:y.value.labelImg,style:{height:"180px"}},null,8,Bo),e.createElementVNode("img",{src:y.value.previewImg,style:{height:"180px"},class:"flex-1"},null,8,xo)])]),_:1}),e.createVNode(e.unref(b.ElFormItem),{label:e.unref(f)("文件名")},{default:e.withCtx(()=>[e.createElementVNode("span",To,e.toDisplayString(y.value.fileName),1)]),_:1},8,["label"]),e.createVNode(e.unref(b.ElFormItem),{label:e.unref(f)("图像像素")},{default:e.withCtx(()=>[e.createElementVNode("span",So,e.toDisplayString(y.value.width)+"Pixel - "+e.toDisplayString(y.value.height)+"Pixel",1)]),_:1},8,["label"]),e.createVNode(e.unref(b.ElFormItem),{label:e.unref(f)("扫描倍率")},{default:e.withCtx(()=>[e.createElementVNode("span",Lo,e.toDisplayString(y.value.scanScale),1)]),_:1},8,["label"]),e.createVNode(e.unref(b.ElFormItem),{label:e.unref(f)("扫描时刻")},{default:e.withCtx(()=>[e.createElementVNode("span",$o,e.toDisplayString(y.value.scanTime),1)]),_:1},8,["label"]),e.createVNode(e.unref(b.ElFormItem),{label:e.unref(f)("扫描时间")},{default:e.withCtx(()=>[e.createElementVNode("span",Po,e.toDisplayString(y.value.scanDuration||0)+"s",1)]),_:1},8,["label"]),y.value.ext?(e.openBlock(),e.createBlock(e.unref(b.ElFormItem),{key:0,label:e.unref(f)("扫描设备")},{default:e.withCtx(()=>[e.createElementVNode("span",Ro,e.toDisplayString(y.value.ext.machineNum||""),1)]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"]),e.createVNode(e.unref(b.ElDialog),{modelValue:e.unref(oe),"onUpdate:modelValue":V[4]||(V[4]=$=>e.isRef(oe)?oe.value=$:null),"append-to-body":!0,title:e.unref(f)("语音输入"),width:"500px",top:"5vh"},{footer:e.withCtx(()=>[e.createVNode(e.unref(b.ElButton),{onClick:e.unref(He)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("取消")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(b.ElButton),{type:"primary",onClick:e.unref(Fe)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("确定")),1)]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(e.unref(b.ElForm),{"label-position":"left"},{default:e.withCtx(()=>{var $;return[e.createVNode(e.unref(b.ElFormItem),null,{default:e.withCtx(()=>{var T;return[(T=e.unref(ne))!=null&&T.src?(e.openBlock(),e.createElementBlock("audio",{key:0,class:"width-100%",src:e.unref(ne).src,controls:"",preload:"auto"},null,8,Io)):e.createCommentVNode("",!0)]}),_:1}),($=e.unref(ne))!=null&&$.src?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(b.ElFormItem),{key:0},{default:e.withCtx(()=>[e.unref(z)?(e.openBlock(),e.createBlock(e.unref(b.ElButton),{key:1,type:"danger",onClick:e.unref(O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("结束录音")),1)]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(b.ElButton),{key:0,type:"primary",onClick:e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("开始录音")),1)]),_:1},8,["onClick"])),e.unref(z)?(e.openBlock(),e.createElementBlock("span",Do,e.toDisplayString(e.unref(f)("录音时长"))+":"+e.toDisplayString(e.unref(C))+"s",1)):e.createCommentVNode("",!0)]),_:1}))]}),_:1})]),_:1},8,["modelValue","title"]),_.analysis&&_.analysis.hotmap_path&&_.analysis.hotmap_type!=="switch"?(e.openBlock(),e.createElementBlock("div",{key:8,class:"hzzt-kfb-view__hotmap",style:e.normalizeStyle({left:e.unref(Ze)+"px"})},[e.createVNode(e.unref(b.ElIcon),{class:"icon-caret-left",size:"30",onMousedown:e.unref(Ve)},{default:e.withCtx(()=>V[6]||(V[6]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})],-1)])),_:1,__:[6]},8,["onMousedown"]),e.createVNode(e.unref(b.ElIcon),{class:"icon-caret-right",size:"30",onMousedown:e.unref(Ve)},{default:e.withCtx(()=>V[7]||(V[7]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})],-1)])),_:1,__:[7]},8,["onMousedown"])],4)):e.createCommentVNode("",!0),e.unref(E)?(e.openBlock(),e.createElementBlock("div",Ao)):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"default")],512)}}});function Mo(u,t){var k,y;const n=e.ref(!!((k=u.ai)!=null&&k.default)),o=e.ref(!!((y=u.ai)!=null&&y.default)),w=e.ref([]),f=e.computed(()=>{var p,r,E,B;return(p=t.value)!=null&&p.analysis?Object.prototype.toString.call((r=t.value)==null?void 0:r.analysis)==="[object Array]"?(E=t.value)==null?void 0:E.analysis:[(B=t.value)==null?void 0:B.analysis]:[]}),s=e.computed(()=>f.value.find(p=>(p==null?void 0:p.class)==="IQC")),i=e.computed(()=>!!s.value),v=e.computed(()=>f.value.find(p=>(p==null?void 0:p.class)!=="IQC")),g=e.computed(()=>!!v.value),h=e.computed(()=>n.value?v.value:o.value?s.value:void 0);e.watch(()=>{var p;return(p=u.ai)==null?void 0:p.default},()=>{a()}),e.watch(()=>{var p;return(p=t==null?void 0:t.value)==null?void 0:p.id},()=>{a(!1),d()}),e.onMounted(()=>{a(),d()});function a(p=!0){var r,E,B;p&&(n.value=!!((r=u.ai)!=null&&r.default),o.value=!!((E=u.ai)!=null&&E.default)),g.value&&n.value&&(o.value=!1),i.value&&o.value&&(n.value=!1),(B=t.value)!=null&&B.id&&(g.value||(n.value=!1),i.value||(o.value=!1))}function d(){var p;(p=t.value)!=null&&p.id&&f.value.length?n.value||o.value?c():w.value=[]:w.value=[]}function c(){u.ai.handle(t.value,h.value).then(p=>{w.value=p}).catch(()=>{w.value=[]})}function l(){o.value=!1,d()}function m(){n.value=!1,d()}return{hasAi:g,hasIqc:i,currentAnalysis:h,aiLabelList:w,enableAi:n,enableIqc:o,toggleIqc:m,toggleAi:l}}const Ho=["src","fit"],Fo=["src","fit"],se=e.defineComponent({name:"KfbImage",__name:"KfbImage",props:{src:{type:String,required:!0,default:""},fit:{type:String,validator:u=>["","contain","cover","fill","none","scale-down"].includes(u),default:""},retryTimes:{type:Number,default:0},load:{type:Function,default:()=>({})},hover:{type:Boolean,default:!1}},setup(u){const t=u;let n=0;const o=e.ref(!1),w=e.reactive({x:0,y:0}),f=e.computed(()=>({top:`${w.y+10}px`,left:`${w.x}px`,transform:"translateY(-50%)",width:`${4*300/3}px`,height:"300px",background:"rgba(0,0,0,0.8)",zIndex:"10000"}));function s(h){const a=h.target;n<t.retryTimes?(a.src=t.src,n++):a.src=ue}function i(h){if(!t.hover)return;if(h.target){const m=h.target,k=m.tagName;let y="";if(m.tagName==="IMG"?y=m.src||"":k==="DIV"&&(y=m.children[0].src||""),y.indexOf(ue)>-1)return}const{x:a,y:d}=v(h),c=4*300/3,l=300;w.x=Math.min(Math.max(a,c/2),window.innerWidth-c/2),w.y=Math.min(Math.max(d,l/2),window.innerHeight-l/2),o.value=!0}function v(h){const a=h.target,d=h.offsetX,c=h.offsetY,l=a.clientWidth,m=a.clientHeight;return{x:h.clientX+l-d,y:h.clientY-c+m/2}}function g(){o.value=!1}return(h,a)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",onMouseenter:i,onMouseleave:g},[e.createElementVNode("img",{src:u.src,fit:u.fit,onError:s,style:{height:"100%",width:"100%"}},null,40,Ho),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed hzzt-kfb-img-triangle-left",style:e.normalizeStyle(f.value)},[e.createElementVNode("img",{src:u.src,fit:u.fit,style:{objectFit:"contain",height:"100%",width:"100%"},onMouseenter:a[0]||(a[0]=()=>{o.value=!0}),onMouseleave:g},null,40,Fo)],4)):e.createCommentVNode("",!0)]))],32))}}),qo={},Uo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function jo(u,t){return e.openBlock(),e.createElementBlock("svg",Uo,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"},null,-1)]))}const Ko=G(qo,[["render",jo]]),Oo={},Go={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wo(u,t){return e.openBlock(),e.createElementBlock("svg",Go,t[0]||(t[0]=[e.createElementVNode("g",{id:"Frame"},[e.createElementVNode("path",{id:"Vector",d:"M5.33333 2.66659H14V3.99992H5.33333V2.66659ZM2 2.33325H4V4.33325H2V2.33325ZM2 6.99992H4V8.99992H2V6.99992ZM2 11.6666H4V13.6666H2V11.6666ZM5.33333 7.33325H14V8.66659H5.33333V7.33325ZM5.33333 11.9999H14V13.3333H5.33333V11.9999Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const Zo=G(Oo,[["render",Wo]]),Yo={class:"hzzt-kfb-slides"},Xo={class:"hzzt-kfb-slides__row"},Jo={class:"hzzt-kfb-slides__top"},Qo={class:"text-primary"},en={class:"flex align-items-center"},tn={key:0},on=["data-index","onClick"],nn={class:"hzzt-kfb-slides__gallery"},ln=["onClick"],an={key:0,class:"hzzt-kfb-slides__read"},rn=["onClick"],sn={key:1,class:"flex column"},un={class:"hzzt-kfb-slides__header"},cn={class:"w-30%"},dn={class:"w-40%"},fn={class:"w-20%"},mn=["data-index","onClick"],vn={class:"w-30% flex"},pn={class:"hzzt-kfb-slides__gallery"},hn={key:0,class:"hzzt-kfb-slides__read"},gn={class:"w-40% flex"},yn=["onClick"],wn=["onClick"],kn={key:0,class:"flex column py-2"},_n={class:"flex align-items-center justify-content-center"},bn={class:"margin-r-1"},Cn={key:0,class:"margin-r-1 margin-l-2"},Vn=e.defineComponent({__name:"KfbSlideList",props:{slides:{}},emits:["select","tool"],setup(u,{expose:t,emit:n}){const o=u,w=n,f=e.inject("file-index",{value:0}),s=e.inject("divide",{value:!1}),i=e.inject("sync",{value:!1}),v=e.ref(!1),g=e.ref(),h=e.computed(()=>o.slides.filter(({read:k})=>k)),a=e.computed(()=>o.slides.filter(({check:k})=>k)),{t:d}=j();function c(k){f.value=k,w("select",k)}function l(k){k.check=!k.check}function m(k){var p,r,E;const y=((E=(r=(p=g.value.querySelector('[data-index="0"]'))==null?void 0:p.getBoundingClientRect)==null?void 0:r.call(p))==null?void 0:E.y)||0;g.value.scrollTop=g.value.querySelector(`[data-index="${k}"]`).getBoundingClientRect().y-y}return t({jumpToSlide:m}),(k,y)=>(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("div",Xo,[e.createElementVNode("div",Jo,[e.createElementVNode("span",null,[y[4]||(y[4]=e.createTextVNode("已读:")),e.createElementVNode("span",Qo,e.toDisplayString(h.value.length),1),e.createTextVNode("/"+e.toDisplayString(k.slides.length),1)]),e.createElementVNode("div",en,[e.createVNode(e.unref(b.ElIcon),{class:"margin-r-2 pointer",size:"16",color:v.value?"#999":"#000",onClick:y[0]||(y[0]=p=>v.value=!v.value)},{default:e.withCtx(()=>[e.createVNode(Ko)]),_:1},8,["color"]),e.createVNode(e.unref(b.ElIcon),{class:"pointer",name:"cus-list",size:"16",color:v.value?"#000":"#999",onClick:y[1]||(y[1]=p=>v.value=!v.value)},{default:e.withCtx(()=>[e.createVNode(Zo)]),_:1},8,["color"])])]),e.createElementVNode("div",{class:"flex-1 overflow-auto",style:{width:"100%"},ref_key:"slidesRef",ref:g},[v.value?(e.openBlock(),e.createElementBlock("ul",sn,[e.createElementVNode("li",un,[y[5]||(y[5]=e.createElementVNode("div",{class:"w-10%"},null,-1)),e.createElementVNode("div",cn,e.toDisplayString(e.unref(d)("缩略图")),1),e.createElementVNode("div",dn,e.toDisplayString(e.unref(d)("切片名")),1),e.createElementVNode("div",fn,e.toDisplayString(e.unref(d)("评分")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.slides,(p,r)=>(e.openBlock(),e.createElementBlock("li",{key:r,"data-index":r,class:"flex align-items-center overflow-hidden",style:e.normalizeStyle({backgroundColor:e.unref(f)===r?"rgba(6, 85, 195, 0.1)":"#fff"}),onClick:E=>c(r)},[e.createElementVNode("div",{class:"w-10% text-center",onClick:e.withModifiers(()=>{},["stop"])},[e.createVNode(e.unref(b.ElCheckbox),{modelValue:p.check,"onUpdate:modelValue":E=>p.check=E,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",vn,[e.createElementVNode("div",pn,[e.createVNode(se,{style:e.normalizeStyle([{transform:`rotate(${p.angle}deg)`},{height:"45px"}]),"retry-times":1,src:p.labelImg,fit:"cover",class:"flex-1"},null,8,["style","src"]),e.createVNode(se,{"retry-times":1,fit:"cover",src:p.previewImg,style:{height:"45px"},class:"flex-1"},null,8,["src"]),p.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hn,e.toDisplayString(e.unref(d)("未读")),1))])]),e.createElementVNode("div",gn,[e.createVNode(e.unref(b.ElTooltip),{effect:"dark",placement:"bottom",content:`${p.name}`},{default:e.withCtx(()=>[e.createElementVNode("span",{style:{"line-height":"16px"},class:"margin-l-1 ellipsis hzzt-kfb-slides__text",dir:"rtl",onClick:e.withModifiers(E=>l(p),["stop"])},e.toDisplayString(p.name),9,yn)]),_:2},1032,["content"])]),e.createElementVNode("div",{class:"w-20% flex text-center pointer",style:e.normalizeStyle({color:p.gradeColor}),onClick:E=>w("tool","grade",p)},e.toDisplayString(p.grade),13,wn)],12,mn))),128))])):(e.openBlock(),e.createElementBlock("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.slides,(p,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["hzzt-kfb-slides__box",e.unref(f)===r?"hzzt-kfb-slides__box--active":""]),"data-index":r,onClick:E=>c(r)},[e.createElementVNode("div",nn,[e.createVNode(se,{style:e.normalizeStyle({transform:`rotate(${p.angle}deg)`}),"retry-times":1,src:p.labelImg,class:"hzzt-kfb-slides__img",fit:"cover",hover:""},null,8,["style","src"]),e.createVNode(se,{"retry-times":1,src:p.previewImg,class:"flex-1 hzzt-kfb-slides__img1",fit:"cover"},null,8,["src"])]),e.createElementVNode("div",{class:"flex justify-content-between align-items-center",onClick:e.withModifiers(()=>{},["stop"])},[e.createVNode(e.unref(b.ElCheckbox),{modelValue:p.check,"onUpdate:modelValue":E=>p.check=E,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(b.ElTooltip),{effect:"dark",placement:"bottom",content:`${p.name}`},{default:e.withCtx(()=>[e.createElementVNode("span",{style:{"line-height":"16px","text-align":"center",width:"calc(100% - 14px)"},class:"margin-l-1 ellipsis",onClick:e.withModifiers(E=>l(p),["stop"])},e.toDisplayString(p.name),9,ln)]),_:2},1032,["content"])]),p.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(e.unref(d)("未读")),1)),p.grade?(e.openBlock(),e.createElementBlock("div",{key:1,class:"hzzt-kfb-slides__grade",style:e.normalizeStyle({background:p.gradeColor}),onClick:E=>w("tool","grade",p)},e.toDisplayString(p.grade),13,rn)):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"slide",{slide:p},void 0,!0)],10,on))),128))]))],512),a.value.length>1?(e.openBlock(),e.createElementBlock("div",kn,[e.createElementVNode("div",_n,[e.createElementVNode("span",bn,e.toDisplayString(e.unref(d)("分屏")),1),e.createVNode(e.unref(b.ElSwitch),{modelValue:e.unref(s),"onUpdate:modelValue":y[2]||(y[2]=p=>e.isRef(s)?s.value=p:null)},null,8,["modelValue"]),e.unref(s)?(e.openBlock(),e.createElementBlock("span",Cn,e.toDisplayString(e.unref(d)("同步")),1)):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createBlock(e.unref(b.ElSwitch),{key:1,modelValue:e.unref(i),"onUpdate:modelValue":y[3]||(y[3]=p=>e.isRef(i)?i.value=p:null)},null,8,["modelValue"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])]))}}),En=G(Vn,[["__scopeId","data-v-35358d3a"]]),Nn={class:"hzzt-kfb-ai overflow-hidden"},zn={class:"flex align-items-center margin-t-1"},Bn={style:{color:"var(--el-color-success)"}},xn={class:"flex-1 flex overflow-auto wrap margin-t-1"},Tn=["onClick"],Sn={key:0,style:{"margin-left":"2px"}},Ln=e.defineComponent({name:"KfbAiList",__name:"list",props:{data:{default:()=>[]},analysis:{}},setup(u,{expose:t}){const n=u,{t:o}=j(),w=e.inject("kfbViewRef"),f=e.ref(-1),s=e.ref(1),i=e.ref(100),v=e.ref(!0),g=e.ref([]),h=e.computed(()=>n.data.filter(E=>g.value.includes(E.cls||""))),a=e.computed(()=>h.value.slice((s.value-1)*i.value,s.value*i.value)),d=e.computed(()=>{const E=new Set;return n.data.forEach(B=>{const N=B.cls||"";N&&!E.has(N)&&E.add(N)}),Array.from(E)}),c=e.computed(()=>g.value.length!==0&&g.value.length!==d.value.length),l=Me(n);e.watch(()=>d.value,E=>{m(),g.value=[...E]}),e.onMounted(()=>{g.value=[...d.value]});function m(){f.value=-1,s.value=1,i.value=100,v.value=!0}function k(E){const B=h.value.findIndex(N=>N.id===E.id);f.value=B,w.value.jumpToLabel(E,5)}function y(E){const B=n.data.filter(N=>N.cls===E);return B.length?`(${B.length})`:""}function p(){f.value=-1,v.value=g.value.length==d.value.length}function r(E){g.value=E?[...d.value]:[],f.value=-1}return t({labelList:h}),(E,B)=>(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",zn,[e.createVNode(e.unref(b.ElPopover),{placement:"bottom",trigger:"click",width:"160"},{reference:e.withCtx(()=>[e.createVNode(e.unref(b.ElButton),{class:"margin-r-1",type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("分类"))+" ",1),e.createVNode(I,{name:"arrowDown"})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(b.ElCheckbox),{modelValue:v.value,"onUpdate:modelValue":B[0]||(B[0]=N=>v.value=N),indeterminate:c.value,onChange:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("全选")),1)]),_:1},8,["modelValue","indeterminate"]),e.createVNode(e.unref(b.ElCheckboxGroup),{modelValue:g.value,"onUpdate:modelValue":B[1]||(B[1]=N=>g.value=N),class:"flex column",onChange:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,N=>(e.openBlock(),e.createBlock(e.unref(b.ElCheckbox),{key:N,value:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N)+" ",1),e.createElementVNode("span",Bn,e.toDisplayString(y(N)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(e.unref(b.ElTag),{type:e.unref(l).type,class:"margin-l-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l).name),1)]),_:1},8,["type"])]),e.createElementVNode("div",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(N,H)=>(e.openBlock(),e.createElementBlock("div",{key:H+(s.value-1)*i.value,class:e.normalizeClass(`hzzt-kfb-ai__img ${f.value===H+(s.value-1)*i.value?"hzzt-kfb-ai__img--active":""}`),onClick:q=>k(N)},[e.createVNode(e.unref(st),{"retry-times":1,src:N.imageUrl,"error-src":e.unref(ue)},null,8,["src","error-src"]),e.createElementVNode("div",{style:e.normalizeStyle({color:N.strokeStyle}),class:"ellipsis"},[e.createTextVNode(e.toDisplayString(N.cls)+" ",1),N.score?(e.openBlock(),e.createElementBlock("span",Sn,e.toDisplayString(N.score),1)):e.createCommentVNode("",!0)],4)],10,Tn))),128))]),e.createVNode(e.unref(b.ElPagination),{class:"wrap","current-page":s.value,"onUpdate:currentPage":B[2]||(B[2]=N=>s.value=N),"page-size":i.value,"onUpdate:pageSize":B[3]||(B[3]=N=>i.value=N),"page-sizes":[100,200,300,400],layout:"total, sizes, prev, pager, next",total:h.value.length},null,8,["current-page","page-size","total"])]))}}),$n={class:"hzzt-kfb-slide"},Pn={class:"flex flex-1 overflow-hidden"},Rn={class:"flex flex-1"},In={key:0,style:{height:"100%",width:"100%"},class:"flex wrap"},Dn=["onClick"],de=e.defineComponent({name:"HzztKfbSlide",__name:"HzztKfbSlide",props:e.mergeModels({menus:{default:()=>[]},kfb:{},slides:{default:()=>[]},ai:{},teleport:{type:Boolean,default:!1},watermark:{},process:{},microscope:{},showList:{type:Boolean,default:!0},showKfbLabel:{type:Boolean,default:!0},showKeyboard:{type:Boolean,default:!1},showMenuText:{type:Boolean,default:!0},showWatermark:{type:Boolean,default:!1}},{index:{default:0},indexModifiers:{}}),emits:e.mergeModels(["tool"],["update:index"]),setup(u,{expose:t,emit:n}){const o=u,w=n,f=e.useModel(u,"index"),s=e.computed(()=>o.slides[f.value]),i=e.computed(()=>o.slides.filter(({check:C})=>C)),v=e.ref(),g=e.ref(),h=e.ref(),a=e.ref(),d=e.ref(o.showKeyboard),c=e.ref(o.showKfbLabel),l=e.ref(o.showWatermark),m=e.ref(o.showMenuText),k=e.ref(!1),y=e.ref(!1),{t:p}=j(),r=e.computed(()=>{var C;if(k.value){const z=i.value.findIndex(({id:S})=>{var O;return S===((O=s.value)==null?void 0:O.id)});return((C=h.value)==null?void 0:C[z])||g.value}else return g.value}),E=e.computed(()=>i.value.length<=1?{height:"100%",width:"100%"}:i.value.length<=2?{height:"100%",width:"calc((100% - 4px) / 2)"}:i.value.length<=4?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px) / 2)"}:i.value.length<=6?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px * 2) / 3)"}:i.value.length<=9?{height:"calc((100% - 4px * 2) / 3)",width:"calc((100% - 4px * 2) / 3)"}:{height:"100%",width:"100%"});e.watch(()=>i.value,C=>{k.value&&C.length<=1&&(k.value=!1)}),e.watch(()=>s.value,C=>{if(C){const z=C.read;C.read=!0,w("tool","choose",{slide:C,read:z})}}),Object.entries({keyboard:d,kfbLabel:c,watermark:l,menuText:m}).forEach(([C,z])=>{e.watch(()=>z.value,S=>{w("tool",C,S)})});const{hasAi:N,hasIqc:H,currentAnalysis:q,aiLabelList:L,enableAi:K,enableIqc:F,toggleIqc:ee,toggleAi:te}=Mo(o,s);function Z(C,z){C==="next"&&o.slides[f.value+1]&&f.value++,C==="prev"&&o.slides[f.value-1]&&f.value--,(C==="label"||C==="tool")&&(c.value=z),w("tool",C,z)}function re(C){var S,O;const z=Y(R({},o.kfb),{watermark:o.watermark,process:o.process,microscope:o.microscope,slide:C,aiLabelList:s.value.id===C.id?((S=a.value)==null?void 0:S.labelList)||[]:[],syncPosition:y.value,syncZoom:y.value,handle:void 0,analysis:s.value.id===C.id?q.value:void 0});return(O=o.kfb)!=null&&O.handle?o.kfb.handle(C,z):z}function fe(C){f.value=o.slides.findIndex(z=>z.id===C.id)}function me(C){k.value&&(o.slides[C].check=!0)}function ve(){var C;(C=k.value?h.value:[g.value])==null||C.forEach(z=>{c.value||(z.updateGrid({show:c.value,ruler:c.value}),d.value=c.value),z.updateGraduation({show:c.value}),z.updateNavigator(c.value)})}function oe(C){f.value=C,v.value&&v.value.jumpToSlide(C)}function ne(C,z){r.value&&r.value.jumpToLabel(C,z)}function pe(C,z){r.value&&r.value.jumpToPosition(C,z)}return e.provide("kfbViewRef",r),e.provide("show-keyboard",d),e.provide("show-kfb-label",c),e.provide("show-menu-text",m),e.provide("show-watermark",l),e.provide("file-index",f),e.provide("divide",k),e.provide("sync",y),t({divide:k,slide:s,kfbViewRef:r,jumpToSlide:oe,jumpToLabel:ne,jumpToPosition:pe,analysis:q,enableAi:K,enableIqc:F,showAiList:e.computed(()=>{var C;return!!((C=o.ai)!=null&&C.enable)&&L.value.length})}),(C,z)=>(e.openBlock(),e.createElementBlock("div",$n,[C.menus.length?(e.openBlock(),e.createBlock(ae,{key:0,menu:C.menus,process:C.process,microscope:C.microscope,onTool:Z},{left:e.withCtx(()=>[e.renderSlot(C.$slots,"left")]),right:e.withCtx(()=>[e.createVNode(e.unref(b.ElSwitch),{modelValue:c.value,"onUpdate:modelValue":z[0]||(z[0]=S=>c.value=S),"active-text":e.unref(p)("隐藏标签"),"active-value":!1,"inactive-value":!0,class:"margin-r-2",onChange:ve},null,8,["modelValue","active-text"]),C.ai&&C.ai.enable&&e.unref(H)?(e.openBlock(),e.createBlock(e.unref(b.ElSwitch),{key:0,modelValue:e.unref(F),"onUpdate:modelValue":z[1]||(z[1]=S=>e.isRef(F)?F.value=S:null),"active-text":e.unref(p)("AI质控"),class:"margin-r-2",onChange:e.unref(ee)},null,8,["modelValue","active-text","onChange"])):e.createCommentVNode("",!0),C.ai&&C.ai.enable&&e.unref(N)?(e.openBlock(),e.createBlock(e.unref(b.ElSwitch),{key:1,modelValue:e.unref(K),"onUpdate:modelValue":z[2]||(z[2]=S=>e.isRef(K)?K.value=S:null),"active-text":e.unref(p)("AI分析"),class:"margin-r-2",onChange:e.unref(te)},null,8,["modelValue","active-text","onChange"])):e.createCommentVNode("",!0),e.renderSlot(C.$slots,"right")]),_:3},8,["menu","process","microscope"])):e.createCommentVNode("",!0),e.createElementVNode("div",Pn,[C.showList?(e.openBlock(),e.createBlock(e.Teleport,{key:0,defer:"",to:"#kfb-slide-list",disabled:!C.teleport},[e.createVNode(En,{ref_key:"slidesRef",ref:v,style:e.normalizeStyle(C.teleport?"":"width: 250px"),slides:C.slides,onSelect:me,onTool:Z},{slide:e.withCtx(({slide:S})=>[e.renderSlot(C.$slots,"list",{slide:S})]),_:3},8,["style","slides"])],8,["disabled"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Teleport,{defer:"",to:"#kfb-slide-view",disabled:!C.teleport},[e.createElementVNode("div",Rn,[i.value.length&&k.value?(e.openBlock(),e.createElementBlock("ul",In,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(S,O)=>(e.openBlock(),e.createElementBlock("li",{key:O,style:e.normalizeStyle(E.value),class:e.normalizeClass(s.value.id===S.id?"hzzt-kfb-view-screen-active":""),onClick:_e=>fe(S)},[(e.openBlock(),e.createBlock(Q,e.mergeProps({ref_for:!0,ref_key:"kfbViewRefs",ref:h,key:`kfb-${O}`},{ref_for:!0},re(S),{onTool:Z}),{default:e.withCtx(()=>[e.renderSlot(C.$slots,"kfb",{slide:S})]),_:2},1040))],14,Dn))),128))])):s.value?(e.openBlock(),e.createBlock(Q,e.mergeProps({key:1,ref_key:"kfbViewRef",ref:g},re(s.value),{onTool:Z}),{default:e.withCtx(()=>[e.renderSlot(C.$slots,"kfb",{slide:s.value})]),_:3},16)):e.createCommentVNode("",!0)])],8,["disabled"])),C.ai&&C.ai.enable&&e.unref(L).length?(e.openBlock(),e.createBlock(e.Teleport,{key:1,defer:"",to:"#kfb-slide-ai",disabled:!C.teleport},[e.createVNode(Ln,{style:e.normalizeStyle(C.teleport?"":"width: 350px"),ref_key:"kfbAiRef",ref:a,data:e.unref(L),slide:s.value,analysis:e.unref(q)},null,8,["style","data","slide","analysis"])],8,["disabled"])):e.createCommentVNode("",!0),e.renderSlot(C.$slots,"default")])]))}});de.name="HzztKfbSlide";Q.name="HzztKfbView";ae.name="HzztKfbToolbox";const An=(u,t)=>{u.use(ut,t==null?void 0:t.i18n),u.component(de.name,de),u.component(Q.name,Q),u.component(ae.name,ae)},Mn={install:An};exports.DEFAULT_MICROSCOPE=ce;exports.DEFAULT_PROCESS=ke;exports.I18N_INJECT_KEY=we;exports._export_sfc=G;exports._sfc_main=I;exports._sfc_main$1=de;exports._sfc_main$2=Q;exports._sfc_main$3=ae;exports.index=Mn;exports.useLocalI18n=j;
|