twcpt 0.0.23 → 0.0.25
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/j-tw-dialog/index.d.ts +8 -0
- package/dist/components/j-tw-dialog/types.d.ts +5 -0
- package/dist/components/j-tw-messages/MessageItem.d.ts +1 -1
- package/dist/components/j-tw-messages/index.d.ts +1 -1
- package/dist/components/j-tw-pdf-view/index.d.ts +3 -0
- package/dist/components/j-tw-pdf-view/types.d.ts +97 -0
- package/dist/components/j-tw-permission/types.d.ts +8 -2
- package/dist/components/j-tw-popup-proxy/index.d.ts +3 -0
- package/dist/components/j-tw-popup-proxy/types.d.ts +137 -0
- package/dist/global.d.ts +20 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/pdf-DNv6W857.js +18274 -0
- package/dist/pdf-DaVs5dNL.cjs +55 -0
- package/dist/twcpt.cjs.js +7 -7
- package/dist/twcpt.es.js +5047 -4291
- package/package.json +3 -1
package/dist/twcpt.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),fe=require("element-plus"),l1=require("./resolver.cjs"),ue={LARGE:"large",NORMAL:"normal",SMALL:"small"},ge={BUTTON:"button",TEXT:"text"},Ut={PRIMARY:"primary",GREEN:"green",ORANGE:"orange",RED:"red",CYAN:"cyan",BROWN:"brown",YELLOW:"yellow",BLUE:"blue",PURPLE:"purple",LIME:"lime",MAGENTA:"magenta",PINK:"pink"},cn=t.defineComponent({name:"JTWBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},color:{type:String,default:"primary",validator:e=>Object.values(Ut).includes(e)},textColor:{type:String,default:void 0,validator:e=>!e||Object.values(Ut).includes(e)},outline:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0}},emits:{click:e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.computed(()=>e.tips!=null?String(e.tips):""),s=t.computed(()=>({"j-tw-btn":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline&&!e.flat,"j-tw-btn--outline":e.outline&&!e.flat,"j-tw-btn--flat":e.flat,"j-tw-btn--text":e.type===ge.TEXT&&!e.flat})),l=t.computed(()=>{const h=e.color||"primary",Q={"--j-btn-color":`var(--j-color-${h})`,"--j-btn-color-1":`var(--j-color-${h}-1)`,"--j-btn-color-2":`var(--j-color-${h}-2)`,"--j-btn-color-3":`var(--j-color-${h}-3)`,"--j-btn-color-4":`var(--j-color-${h}-4)`,"--j-btn-color-5":`var(--j-color-${h}-5)`,"--j-btn-color-6":`var(--j-color-${h}-6)`};return e.textColor&&(Q["--j-btn-text-color"]=`var(--j-color-${e.textColor})`),Q}),a={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},c=t.computed(()=>({...a,...e.tooltipConfig})),w=h=>{n("click",h)};return r({get $el(){var h;return(h=o.value)==null?void 0:h.$el},click:()=>{var h,Q;(Q=(h=o.value)==null?void 0:h.$el)==null||Q.click()}}),{elBtnRef:o,tooltipContent:i,computedClass:s,computedStyle:l,mergedTooltipConfig:c,handleClick:w}}}),ce=(e,n)=>{const r=e.__vccOpts||e;for(const[o,i]of n)r[o]=i;return r};function un(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"elBtnRef",class:e.computedClass,style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleClick}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[0]||(n[0]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",viewBox:"0 0 16 16",class:"j-tw-btn__loading-icon"},[t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"master_svg0_37_06013"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0"})])]),t.createElementVNode("g",{"clip-path":"url(#master_svg0_37_06013)"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0",fill:"transparent",style:{"mix-blend-mode":"passthrough"}}),t.createElementVNode("path",{d:"M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z","fill-rule":"evenodd",fill:"currentColor"})])],-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"])}const ze=ce(cn,[["render",un]]),dn=t.defineComponent({name:"JTWDropdownBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},options:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:void 0}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),w=t.computed(()=>e.tips!=null?String(e.tips):""),g=t.computed(()=>{if(e.modelValue!=null){const D=e.options.find(j=>j.value===e.modelValue);if(D)return D.label}return e.label}),h=t.computed(()=>({"j-tw-dropdown-btn":!0,"j-tw-dropdown-btn--large":e.size===ue.LARGE,"j-tw-dropdown-btn--normal":e.size===ue.NORMAL,"j-tw-dropdown-btn--small":e.size===ue.SMALL})),Q=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__main":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),p=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__trigger":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),v=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-dropdown-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),u={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},y=t.computed(()=>({...u,...e.tooltipConfig})),d=()=>{if(!o.value||!l.value)return;const D=o.value.getBoundingClientRect(),j=l.value.getBoundingClientRect(),C=window.innerHeight-D.bottom,S=D.top;let m=D.bottom+4;j.height>50&&C<j.height+20&&S>j.height+20&&(m=D.top-j.height-4),c.value={top:`${m}px`,left:`${D.left}px`}},k=()=>{a.value=!0,t.nextTick(()=>{t.nextTick(()=>{d()})})},_=()=>{a.value=!1},A=()=>{a.value?_():k()},M=D=>{n("click",D),A()},T=D=>{D.disabled||(n("update:modelValue",D.value),n("select",D),_())},E=D=>{if(!o.value||!l.value)return;const j=D.target;!o.value.contains(j)&&!l.value.contains(j)&&_()};return t.watch(a,D=>{D?(document.addEventListener("click",E),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0)):(document.removeEventListener("click",E),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",E),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}),r({get $el(){return o.value},click:()=>{var D,j;(j=(D=i.value)==null?void 0:D.$el)==null||j.click()},openDropdown:k,closeDropdown:_}),{dropdownRef:o,mainBtnRef:i,dropdownBtnRef:s,dropdownMenuRef:l,dropdownVisible:a,dropdownMenuStyle:c,tooltipContent:w,displayLabel:g,dropdownClass:h,mainBtnClass:Q,dropdownBtnClass:p,computedStyle:v,mergedTooltipConfig:y,handleMainClick:M,toggleDropdown:A,handleOptionClick:T}}}),a1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",s1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-dropdown-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",fn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096497'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096497)'%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.409602997126058,4.475219065789133)'%3e%3cpath%20d='M1.947415595,8.767578125Q1.947415595,8.693724342,1.961823825,8.621289645Q1.976231935,8.548854945,2.004494545,8.480622945Q2.032757165,8.412390945,2.073788165,8.350983795Q2.114819105,8.289576615,2.167041595,8.237354095Q2.219264115,8.185131605,2.280671295,8.144100665Q2.342078445,8.103069665,2.410310445,8.074807045Q2.478542445,8.046544435,2.550977145,8.032136325Q2.623411842,8.017728095,2.697265625,8.017728095Q2.771119408,8.017728095,2.843554105,8.032136325Q2.915988805,8.046544435,2.984220805,8.074807045Q3.052452805,8.103069665,3.113859955,8.144100665Q3.175267135,8.185131605,3.227489655,8.237354095Q3.279712145,8.289576615,3.320743085,8.350983795Q3.361774085,8.412390945,3.390036705,8.480622945Q3.418299315,8.548854945,3.4327074250000003,8.621289645Q3.447115655,8.693724342,3.447115655,8.767578125L3.447265625,8.767578125L3.447265625,13.017578125L12.697265625,13.017578125L12.697265625,13.017727825Q12.771118625,13.017727825,12.843553625,13.032135925Q12.915987625,13.046544125,12.984220625,13.074806725Q13.052451625,13.103069325,13.113859625,13.144100224999999Q13.175266625,13.185131025,13.227489625,13.237353825Q13.279710625,13.289576525000001,13.320741625,13.350983625Q13.361772625,13.412390725,13.390035625,13.480622324999999Q13.418298625,13.548854825,13.432706625,13.621289225Q13.447114625,13.693724625,13.447115625,13.767578125Q13.447114625,13.841431625,13.432706625,13.913866025Q13.418298625,13.986300425,13.390035625,14.054533025Q13.361772625,14.122764625,13.320741625,14.184171724999999Q13.279710625,14.245578725,13.227489625,14.297801925Q13.175266625,14.350024225,13.113859625,14.391055125000001Q13.052451625,14.432086025,12.984220625,14.460349125Q12.915987625,14.488611725,12.843553625,14.503020325Q12.771118625,14.517428425,12.697265625,14.517428425L12.697265625,14.517578125L2.697265625,14.517578125Q2.623397082,14.517578125,2.550947905,14.503167125000001Q2.478498745,14.488756225,2.410253105,14.460487825000001Q2.342007455,14.432219525,2.280588005,14.391180025Q2.219168545,14.350140525,2.166935565,14.297907825Q2.114702645,14.245674625,2.073663475,14.184255125Q2.032624305,14.122835625,2.004356025,14.054590225Q1.976087745,13.986344325000001,1.9616767149999998,13.913895625Q1.947265625,13.841446925,1.947265625,13.767578125L1.947265625,8.767578125L1.947415595,8.767578125Z'%20fill-rule='evenodd'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",hn={class:"j-tw-dropdown-btn__label"},pn=["onClick"],mn={class:"j-tw-dropdown-btn__option-label"},gn={key:0,src:fn,class:"j-tw-dropdown-btn__selected-icon",alt:"Selected"};function wn(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",{ref:"dropdownRef",class:t.normalizeClass(e.dropdownClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-dropdown-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",hn,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),t.createElementVNode("img",{src:s1,class:t.normalizeClass(["j-tw-dropdown-btn__arrow",{"j-tw-dropdown-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[1]||(n[1]=t.createElementVNode("img",{src:a1,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-dropdown-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-dropdown-btn__menu",style:t.normalizeStyle({...e.dropdownMenuStyle,...e.computedStyle}),onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,c=>(t.openBlock(),t.createElementBlock("div",{key:c.value,class:t.normalizeClass(["j-tw-dropdown-btn__option",{"j-tw-dropdown-btn__option--selected":c.value===e.modelValue,"j-tw-dropdown-btn__option--disabled":c.disabled}]),onClick:w=>e.handleOptionClick(c)},[t.createElementVNode("span",mn,t.toDisplayString(c.label),1),c.value===e.modelValue?(t.openBlock(),t.createElementBlock("img",gn)):t.createCommentVNode("",!0)],10,pn))),128))],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const yn=ce(dn,[["render",wn]]),vn=t.defineComponent({name:"JTWCheckbox",components:{ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,setup(){return{}}});function Qn(e,n,r,o,i,s){const l=t.resolveComponent("el-checkbox");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elCheckboxRef",class:"j-tw-checkbox"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const bt=ce(vn,[["render",Qn]]);/*! Element Plus Icons Vue v2.3.2 */var kn=t.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),bn=kn;const Mn=t.defineComponent({name:"JTWInput",components:{ElInput:fe.ElInput,ElIcon:fe.ElIcon,CircleClose:bn},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0},wordLimitVisible:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},setup(e,{expose:n}){const r=t.useAttrs(),o=t.ref(null),i=t.computed(()=>r.type==="textarea"),s=t.computed(()=>r.maxlength),l=t.computed(()=>{const g=r.modelValue;return g?String(g).length:0}),a=t.computed(()=>{const{"show-word-limit":g,showWordLimit:h,clearable:Q,...p}=r;return p}),c=()=>{var Q;const g=r["onUpdate:modelValue"],h=r.onClear;g&&g(""),h&&h(),(Q=o.value)==null||Q.focus()};return n({get input(){var g;return(g=o.value)==null?void 0:g.input},get textareaStyle(){var g;return(g=o.value)==null?void 0:g.textareaStyle},focus:()=>{var g;return(g=o.value)==null?void 0:g.focus()},blur:()=>{var g;return(g=o.value)==null?void 0:g.blur()},select:()=>{var g;return(g=o.value)==null?void 0:g.select()},clear:()=>{var g;return(g=o.value)==null?void 0:g.clear()},resizeTextarea:()=>{var g;return(g=o.value)==null?void 0:g.resizeTextarea()}}),{elInputRef:o,isTextarea:i,maxlength:s,currentLength:l,attrsWithoutWordLimit:a,handleTextareaClear:c}}}),Cn={key:0,class:"tw-input-wrap__textarea-inner"},_n={key:2,class:"tw-input-wrap__count"};function Dn(e,n,r,o,i,s){const l=t.resolveComponent("el-input"),a=t.resolveComponent("CircleClose"),c=t.resolveComponent("el-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tw-input-wrap",{"tw-input-wrap--textarea":e.isTextarea}])},[e.isTextarea?(t.openBlock(),t.createElementBlock("div",Cn,[t.createVNode(l,t.mergeProps({ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.attrsWithoutWordLimit,{"show-word-limit":!1,clearable:!1}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class"]),e.isTextarea&&e.clearable&&e.currentLength>0?(t.openBlock(),t.createElementBlock("button",{key:0,class:"tw-input-wrap__textarea-clear",type:"button",onMousedown:n[0]||(n[0]=t.withModifiers(()=>{},["prevent"])),onClick:n[1]||(n[1]=(...w)=>e.handleTextareaClear&&e.handleTextareaClear(...w))},[t.createVNode(c,null,{default:t.withCtx(()=>[t.createVNode(a)]),_:1})],32)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createBlock(l,t.mergeProps({key:1,ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.attrsWithoutWordLimit,{"show-word-limit":!1}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class"])),e.isTextarea&&e.wordLimitVisible&&e.maxlength?(t.openBlock(),t.createElementBlock("div",_n,[t.createElementVNode("span",null,t.toDisplayString(e.currentLength)+" / "+t.toDisplayString(e.maxlength),1)])):t.createCommentVNode("",!0)],2)}const c1=ce(Mn,[["render",Dn]]),Nn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDQuMDAwMDAxTDgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxWiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",An="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDY4QzgsNzAuMjA5MTM3LDkuNzkwODYxMSw3MiwxMi4wMDAwMDEwMDAwMDAwMDEsNzJMNjAsNzJDNjIuMjA5MTQxLDcyLDY0LDcwLjIwOTEzNyw2NCw2OEw2NCw0LjAwMDAwMDVDNjQsMS43OTA4NjExLDYyLjIwOTE0MSwwLDYwLDBMMTIuMDAwMDAwNDk5OTk5OTk5LDBDOS43OTA4NjExLDAsOCwxLjc5MDg2MTEsOCw0LjAwMDAwMUw4LDY4WiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",Sn="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='24'%20cy='24'%20r='20'%20stroke='%23E5E6EB'%20stroke-width='4'/%3e%3cpath%20d='M24%204C35.0457%204%2044%2012.9543%2044%2024'%20stroke='%23165DFF'%20stroke-width='4'%20stroke-linecap='round'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0%2024%2024'%20to='360%2024%2024'%20dur='1s'%20repeatCount='indefinite'/%3e%3c/path%3e%3c/svg%3e",In=t.defineComponent({name:"JTWStatusImg",props:{name:{type:String,default:"default"},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(e){const n={default:Nn,empty:An,loading:Sn},r=t.computed(()=>n[e.name]||n.default),o=t.computed(()=>{const i={};return e.width!==void 0&&(i.width=typeof e.width=="number"?`${e.width}px`:e.width),e.height!==void 0&&(i.height=typeof e.height=="number"?`${e.height}px`:e.height),i});return{imageSrc:r,imageStyle:o}}}),Tn={class:"j-tw-status-img"},Ln=["src","alt"];function En(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",Tn,[t.createElementVNode("img",{src:e.imageSrc,alt:e.name,style:t.normalizeStyle(e.imageStyle),class:"j-tw-status-img__image"},null,12,Ln)])}const We=ce(In,[["render",En]]),xn=t.defineComponent({name:"JTWMultiSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWCheckbox:bt,JTWInput:c1,JTWStatusImg:We},inheritAttrs:!1,props:{data:{type:Array,default:()=>[]},dropdownMaxHeight:{type:Number,default:360},dropdownWidth:{type:Number,default:320},fetchOptions:{type:Function,default:void 0},filterMethod:{type:Function,default:void 0},label:{type:String,default:""},loading:{type:Boolean,default:!1},modelValue:{type:Array,default:()=>[]},noDataText:{type:String,default:"暂无数据"},outline:{type:Boolean,default:!0},searchDebounce:{type:Number,default:300},searchPlaceholder:{type:String,default:"请输入设备名称"},size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)}},emits:{click:e=>!0,search:e=>!0,select:e=>!0,"update:modelValue":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref({}),s=t.ref(!1),l=t.ref(!1),a=t.ref(!1),c=t.ref(null),w=t.ref(null),g=t.ref([]),h=t.ref(""),Q=t.ref([]),p=t.ref(void 0),v=t.ref(0),u={closeDelay:200,effect:"dark",offset:5,openDelay:0,placement:"top",showArrow:!0,trigger:"hover"},y=t.computed(()=>({...u,...e.tooltipConfig})),d=t.computed(()=>e.tips!=null?String(e.tips):""),k=t.computed(()=>{const L=new Map;return e.data.forEach(J=>L.set(J.value,J)),g.value.forEach(J=>L.set(J.value,J)),L}),_=t.computed(()=>{const L=h.value.trim().toLowerCase();return L?e.filterMethod?e.data.filter(J=>{var oe;return(oe=e.filterMethod)==null?void 0:oe.call(e,J,h.value)}):e.data.filter(J=>J.label.toLowerCase().includes(L)):e.data}),A=t.computed(()=>e.fetchOptions?g.value:_.value),M=t.computed(()=>{const L=Q.value.length;if(L===0)return e.label;const J=Q.value.map(oe=>{var ie;return(ie=k.value.get(oe))==null?void 0:ie.label}).filter(oe=>!!oe);return J.length===1?J[0]:`已选择 ${L} 项`}),T=t.computed(()=>({"j-tw-multi-select-btn":!0,"j-tw-multi-select-btn--large":e.size===ue.LARGE,"j-tw-multi-select-btn--normal":e.size===ue.NORMAL,"j-tw-multi-select-btn--small":e.size===ue.SMALL})),E=t.computed(()=>({"j-tw-btn":!0,"j-tw-multi-select-btn__main":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),P=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-btn-text-color":"var(--j-color-grey-1)"})),D=t.computed(()=>Q.value.length>0),j=L=>Q.value.includes(L),V=L=>{const J=L.map(oe=>k.value.get(oe)).filter(oe=>!!oe);n("update:modelValue",L),n("select",J)},C=()=>{Q.value=[],V([])},S=(L,J)=>{if(L.disabled)return;const oe=new Set(Q.value);J?oe.add(L.value):oe.delete(L.value),Q.value=Array.from(oe),V(Q.value)},m=(L,J)=>{S(L,!!J)},R=L=>{L.disabled||S(L,!j(L.value))},q=()=>{if(!w.value||!o.value)return;const L=w.value.getBoundingClientRect(),J=o.value.getBoundingClientRect(),oe=window.innerHeight,ie=L.top,U=oe-L.bottom;let ee=L.bottom+4;J.height>50&&U<J.height+20&&ie>J.height+20&&(ee=L.top-J.height-4),i.value={left:`${L.left}px`,maxHeight:`${e.dropdownMaxHeight}px`,top:`${ee}px`,width:`${e.dropdownWidth}px`}},Y=async L=>{if(!e.fetchOptions)return;const J=v.value+1;v.value=J,l.value=!0;try{const oe=await e.fetchOptions(L);J===v.value&&(g.value=oe??[])}finally{J===v.value&&(l.value=!1)}},le=L=>{h.value=L,n("search",L),e.fetchOptions&&(p.value&&window.clearTimeout(p.value),p.value=window.setTimeout(()=>{Y(h.value.trim())},e.searchDebounce))},G=async()=>{s.value=!0,h.value="",e.fetchOptions&&await Y(""),await t.nextTick(),await t.nextTick(),q()},F=()=>{s.value=!1,p.value&&(window.clearTimeout(p.value),p.value=void 0)},I=()=>{s.value?F():G()},z=L=>{n("click",L),I()},ne=L=>{if(!w.value||!o.value)return;const J=L.target;!w.value.contains(J)&&!o.value.contains(J)&&F()};return t.watch(()=>e.modelValue,L=>{Q.value=[...L??[]]},{immediate:!0}),t.watch(s,L=>{L?(document.addEventListener("click",ne),window.addEventListener("resize",q),window.addEventListener("scroll",q,!0)):(document.removeEventListener("click",ne),window.removeEventListener("resize",q),window.removeEventListener("scroll",q,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("click",ne),window.removeEventListener("resize",q),window.removeEventListener("scroll",q,!0),p.value&&window.clearTimeout(p.value)}),r({get $el(){return w.value},click:()=>{var L,J;(J=(L=c.value)==null?void 0:L.$el)==null||J.click()},closeDropdown:F,openDropdown:G}),{computedStyle:P,displayLabel:M,displayOptions:A,dropdownMenuRef:o,dropdownMenuStyle:i,dropdownVisible:s,handleMainClick:z,handleOptionChange:m,handleOptionClick:R,handleSearchInput:le,isFetching:l,isHovering:a,isOptionSelected:j,mainBtnClass:E,mainBtnRef:c,mergedTooltipConfig:y,multiSelectClass:T,multiSelectRef:w,noDataText:e.noDataText,searchKeyword:h,searchPlaceholder:e.searchPlaceholder,showClearIcon:D,tooltipContent:d,dropdownMaxHeight:e.dropdownMaxHeight,handleClear:C}}}),jn={class:"j-tw-multi-select-btn__label"},zn={class:"j-tw-multi-select-btn__search"},Bn={key:0,class:"j-tw-multi-select-btn__loading"},On=["onClick"],Fn={class:"j-tw-multi-select-btn__option-label"},Pn={key:2,class:"j-tw-multi-select-btn__empty"},$n={class:"j-tw-multi-select-btn__empty-text"};function Rn(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWInput"),w=t.resolveComponent("JTWCheckbox"),g=t.resolveComponent("JTWStatusImg");return t.openBlock(),t.createElementBlock("div",{ref:"multiSelectRef",class:t.normalizeClass(e.multiSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-multi-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=h=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=h=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",jn,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-multi-select-btn__clear",{"j-tw-multi-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...n[7]||(n[7]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-multi-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("img",{src:s1,class:t.normalizeClass(["j-tw-multi-select-btn__arrow",{"j-tw-multi-select-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[6]||(n[6]=t.createElementVNode("img",{src:a1,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-multi-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-multi-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[5]||(n[5]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",zn,[t.createVNode(c,{modelValue:e.searchKeyword,"onUpdate:modelValue":[n[3]||(n[3]=h=>e.searchKeyword=h),e.handleSearchInput],placeholder:e.searchPlaceholder,clearable:""},{suffix:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",class:"j-tw-multi-select-btn__search-icon","aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:"M447.98 64C236.42 64 64 236.42 64 447.98S236.42 832 447.98 832c90.08 0 172.94-31.24 238.34-83.4l197.06 197.1c12.48 12.48 32.74 12.48 45.22 0s12.48-32.74 0-45.22L731.56 703.42C783.74 638.02 815 555.16 815 465.08 815 253.52 642.58 81.1 431.02 81.1zm0 704C271.7 768 128 624.3 128 447.98S271.7 128 447.98 128 768 271.7 768 447.98 624.3 768 447.98 768z"})],-1)])]),_:1},8,["modelValue","placeholder","onUpdate:modelValue"])]),t.createElementVNode("div",{class:"j-tw-multi-select-btn__list",style:t.normalizeStyle({maxHeight:`${e.dropdownMaxHeight-62}px`})},[e.isFetching?(t.openBlock(),t.createElementBlock("div",Bn,[...n[9]||(n[9]=[t.createElementVNode("span",{class:"j-tw-multi-select-btn__loading-spinner"},null,-1),t.createElementVNode("p",{class:"j-tw-multi-select-btn__loading-text"},"加载中...",-1)])])):e.displayOptions.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.displayOptions,h=>(t.openBlock(),t.createElementBlock("div",{key:h.value,class:t.normalizeClass(["j-tw-multi-select-btn__option",{"j-tw-multi-select-btn__option--active":e.isOptionSelected(h.value),"j-tw-multi-select-btn__option--disabled":h.disabled}]),onClick:Q=>e.handleOptionClick(h)},[t.createVNode(w,{class:"j-tw-multi-select-btn__checkbox",disabled:h.disabled,"model-value":e.isOptionSelected(h.value),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"])),onChange:Q=>e.handleOptionChange(h,Q)},null,8,["disabled","model-value","onChange"]),t.createElementVNode("span",Fn,t.toDisplayString(h.label),1)],10,On))),128)):(t.openBlock(),t.createElementBlock("div",Pn,[t.createVNode(g,{width:32,height:32}),t.createElementVNode("p",$n,t.toDisplayString(e.noDataText),1)]))],4)],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const Vn=ce(xn,[["render",Rn]]),Un=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},tempSelectedValue:{type:[String,Number],default:void 0},tempSelectedValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),Wn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Zn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Yn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Gn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Hn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",Jn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Xn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Kn={key:0,src:Wn,alt:"collapse",class:"j-tw-tree-select-btn__expand-icon"},qn={key:1,src:Zn,alt:"expand",class:"j-tw-tree-select-btn__expand-icon"},e0={key:2,class:"j-tw-tree-select-btn__expand-placeholder"},t0={class:"j-tw-tree-select-btn__radio"},n0={key:0,src:Yn,alt:"indeterminate",class:"j-tw-tree-select-btn__radio-icon"},r0={key:1,src:Gn,alt:"checked",class:"j-tw-tree-select-btn__radio-icon"},o0={key:2,src:Hn,alt:"unchecked",class:"j-tw-tree-select-btn__radio-icon"},i0={key:0,src:Jn,alt:"selected",class:"j-tw-tree-select-btn__radio-icon"},l0={key:1,src:Xn,alt:"unselected",class:"j-tw-tree-select-btn__radio-icon"},a0={class:"j-tw-tree-select-btn__node-label"};function s0(e,n,r,o,i,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__node",{"j-tw-tree-select-btn__node--disabled":e.node.disabled},{"j-tw-tree-select-btn__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select-btn__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"}),onClick:n[1]||(n[1]=a=>e.handleNodeClick(e.node))},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select-btn__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select-btn__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",Kn)):(t.openBlock(),t.createElementBlock("img",qn))])):(t.openBlock(),t.createElementBlock("div",e0)),t.createElementVNode("div",t0,[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",n0)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",r0)):(t.openBlock(),t.createElementBlock("img",o0))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.tempSelectedValue===e.node.value?(t.openBlock(),t.createElementBlock("img",i0)):(t.openBlock(),t.createElementBlock("img",l0))],64))]),t.createElementVNode("span",a0,[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])])],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:w})=>[t.renderSlot(e.$slots,"default",{node:w},()=>[t.createTextVNode(t.toDisplayString(w.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const u1=ce(Un,[["render",s0]]),c0=t.defineComponent({name:"JTWTreeSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWBtn:ze,TreeNode:u1,JTWStatusImg:We},inheritAttrs:!1,props:{size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),w=t.ref(""),g=t.ref(new Set),h=t.ref(void 0),Q=t.ref(new Set),p=t.ref(!1);e.defaultExpandFirst&&e.data.length>0&&g.value.add(e.data[0].value),t.watch(()=>e.data,U=>{e.defaultExpandFirst&&U.length>0&&g.value.size===0&&g.value.add(U[0].value)},{immediate:!0});const v=t.computed(()=>e.tips!=null?String(e.tips):""),u=(U,ee)=>{for(const re of U){if(re.value===ee)return re;if(re.children){const de=u(re.children,ee);if(de)return de}}return null},y=U=>{if(!U.children||U.children.length===0)return[];const ee=[];for(const re of U.children)ee.push(re.value),ee.push(...y(re));return ee},d=(U,ee)=>{for(const re of U)if(re.children){if(re.children.some(pe=>pe.value===ee))return re;const de=d(re.children,ee);if(de)return de}return null},k=U=>{const ee=d(e.data,U);return ee&&ee.children?ee.children.map(re=>re.value).filter(re=>re!==U):e.data.map(re=>re.value).filter(re=>re!==U)},_=U=>{const ee=d(e.data,U);ee&&ee.children&&(ee.children.every(de=>Q.value.has(de.value))?Q.value.add(ee.value):Q.value.delete(ee.value))},A=U=>e.multiple?Q.value.has(U):h.value===U,M=U=>{if(!U.children||U.children.length===0)return[];const ee=[];for(const re of U.children)ee.push(re.value),ee.push(...M(re));return ee},T=U=>{if(!e.multiple||!U.children||U.children.length===0)return!1;const ee=M(U),re=ee.filter(de=>Q.value.has(de)).length;return re>0&&re<ee.length},E=U=>e.multiple?Q.value.has(U):h.value===U,P=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue)){const U=e.modelValue.length;return U>0?`已选择 ${U} 项`:e.label}else if(!Array.isArray(e.modelValue)){const U=u(e.data,e.modelValue);if(U)return U.label}}return e.label}),D=(U,ee)=>{if(!ee)return U;const re=[];for(const de of U){const pe=de.label.toLowerCase().includes(ee.toLowerCase()),f=de.children?D(de.children,ee):[];(pe||f.length>0)&&(re.push({...de,children:f.length>0?f:de.children}),f.length>0&&g.value.add(de.value))}return re},j=t.computed(()=>D(e.data,w.value)),V=t.computed(()=>({"j-tw-tree-select-btn":!0,"j-tw-tree-select-btn--large":e.size===ue.LARGE,"j-tw-tree-select-btn--normal":e.size===ue.NORMAL,"j-tw-tree-select-btn--small":e.size===ue.SMALL})),C=t.computed(()=>({"j-tw-btn":!0,"j-tw-tree-select-btn__main":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),S=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-tree-select-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),m={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},R=t.computed(()=>({...m,...e.tooltipConfig})),q=()=>{if(!o.value||!s.value)return;const U=o.value.getBoundingClientRect(),ee=s.value.getBoundingClientRect(),de=window.innerHeight-U.bottom,pe=U.top;let f=U.bottom+4;ee.height>50&&de<ee.height+20&&pe>ee.height+20&&(f=U.top-ee.height-4),c.value={top:`${f}px`,left:`${U.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},Y=()=>{a.value=!0,e.multiple&&Array.isArray(e.modelValue)?Q.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),w.value="",t.nextTick(()=>{t.nextTick(()=>{q()})})},le=()=>{a.value=!1,w.value=""},G=()=>{a.value?le():Y()},F=U=>{n("click",U),G()},I=U=>{g.value.has(U)?g.value.delete(U):(e.accordion&&k(U).forEach(re=>{g.value.delete(re)}),g.value.add(U))},z=U=>{if(!U.disabled)if(e.multiple){const ee=Q.value.has(U.value),re=y(U);ee?(Q.value.delete(U.value),re.forEach(pe=>Q.value.delete(pe))):(Q.value.add(U.value),re.forEach(pe=>Q.value.add(pe))),_(U.value);const de=e.data.filter(pe=>Q.value.has(pe.value));n("select",de)}else h.value=U.value,n("select",U)},ne=()=>{if(e.multiple){const U=Array.from(Q.value),ee=U.map(re=>u(e.data,re)).filter(re=>re!==null);n("update:modelValue",U),n("confirm",ee.length>0?ee:null)}else if(h.value!=null){const U=u(e.data,h.value);n("update:modelValue",h.value),n("confirm",U)}else n("update:modelValue",void 0),n("confirm",null);le()},B=()=>{n("cancel"),le()},L=()=>{e.multiple?(Q.value.clear(),n("update:modelValue",[]),n("confirm",null)):(h.value=void 0,n("update:modelValue",void 0),n("confirm",null))},J=t.computed(()=>e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null),oe=U=>{if(!o.value||!s.value)return;const ee=U.target;!o.value.contains(ee)&&!s.value.contains(ee)&&le()};return t.watch(a,U=>{U?(document.addEventListener("click",oe),window.addEventListener("resize",q),window.addEventListener("scroll",q,!0)):(document.removeEventListener("click",oe),window.removeEventListener("resize",q),window.removeEventListener("scroll",q,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",oe),window.removeEventListener("resize",q),window.removeEventListener("scroll",q,!0)}),r({get $el(){return o.value},click:()=>{var U,ee;(ee=(U=i.value)==null?void 0:U.$el)==null||ee.click()},openDropdown:Y,closeDropdown:le}),{treeSelectRef:o,mainBtnRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:w,expandedKeys:g,tempSelectedValue:h,tempSelectedValues:Q,tooltipContent:v,displayLabel:P,filteredData:j,treeSelectClass:V,mainBtnClass:C,computedStyle:S,mergedTooltipConfig:R,handleMainClick:F,toggleDropdown:G,toggleExpand:I,handleNodeClick:z,handleConfirm:ne,handleCancel:B,handleClear:L,showClearIcon:J,isHovering:p,isNodeChecked:A,isNodeIndeterminate:T,isNodeSelected:E}}}),u0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",d0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-tree-select-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",f0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",h0={class:"j-tw-tree-select-btn__label"},p0={class:"j-tw-tree-select-btn__search"},m0=["placeholder"],g0={class:"j-tw-tree-select-btn__tree",ref:"treeContainerRef"},w0={key:0,class:"j-tw-tree-select-btn__empty"},y0={class:"j-tw-tree-select-btn__footer"};function v0(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWStatusImg"),w=t.resolveComponent("TreeNode"),g=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(e.treeSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-tree-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=h=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=h=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",h0,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-tree-select-btn__clear",{"j-tw-tree-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...n[6]||(n[6]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-tree-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__arrow",{"j-tw-tree-select-btn__arrow--open":e.dropdownVisible}])},[...n[7]||(n[7]=[t.createElementVNode("img",{src:d0,alt:"Dropdown arrow"},null,-1)])],2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[5]||(n[5]=t.createElementVNode("img",{src:u0,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",p0,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-btn__search-input",placeholder:e.searchPlaceholder},null,8,m0),[[t.vModelText,e.searchText]]),n[8]||(n[8]=t.createElementVNode("img",{src:f0,alt:"search",class:"j-tw-tree-select-btn__search-icon"},null,-1))]),t.createElementVNode("div",g0,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",w0,[t.createVNode(c,{width:32,height:32}),n[9]||(n[9]=t.createElementVNode("p",{class:"j-tw-tree-select-btn__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,h=>(t.openBlock(),t.createBlock(w,{key:h.value,node:h,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:Q})=>[t.renderSlot(e.$slots,"default",{node:Q},()=>[t.createTextVNode(t.toDisplayString(Q.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),t.createElementVNode("div",y0,[t.createVNode(g,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(g,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])])],4)):t.createCommentVNode("",!0)]),_:3})]))],6)}const Q0=ce(c0,[["render",v0]]),k0=t.defineComponent({name:"JTWTreeSelectInput",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption,JTWBtn:ze,TreeNode:u1,JTWStatusImg:We},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{type:String,default:"default"},autoFill:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},allowRadioDeselect:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!1},bgGrey:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0,change:e=>!0,clear:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),w=t.ref(""),g=t.ref(new Set),h=t.ref(void 0),Q=t.ref(new Set);t.watch(()=>e.data,B=>{e.defaultExpandFirst&&B.length>0&&g.value.size===0&&g.value.add(B[0].value)},{immediate:!0});const p=(B,L)=>{for(const J of B){if(J.value===L)return J;if(J.children){const oe=p(J.children,L);if(oe)return oe}}return null},v=B=>{if(!B.children||B.children.length===0)return[];const L=[];for(const J of B.children)L.push(J.value),L.push(...v(J));return L},u=(B,L)=>{for(const J of B)if(J.children){if(J.children.some(ie=>ie.value===L))return J;const oe=u(J.children,L);if(oe)return oe}return null},y=B=>{const L=u(e.data,B);return L&&L.children?L.children.map(J=>J.value).filter(J=>J!==B):e.data.map(J=>J.value).filter(J=>J!==B)},d=B=>{const L=u(e.data,B);L&&L.children&&(L.children.every(oe=>Q.value.has(oe.value))?Q.value.add(L.value):Q.value.delete(L.value))},k=B=>e.multiple?Q.value.has(B):h.value===B,_=B=>{if(!B.children||B.children.length===0)return[];const L=[];for(const J of B.children)L.push(J.value),L.push(..._(J));return L},A=B=>{if(!e.multiple||!B.children||B.children.length===0)return!1;const L=_(B),J=L.filter(oe=>Q.value.has(oe)).length;return J>0&&J<L.length},M=B=>e.multiple?Q.value.has(B):h.value===B,T=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue.map(B=>{const L=p(e.data,B);return L?{value:L.value,label:L.label}:null}).filter(B=>B!==null);if(!Array.isArray(e.modelValue)){const B=p(e.data,e.modelValue);return B?[{value:B.value,label:B.label}]:[]}}return[]}),E=t.computed(()=>{if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue;if(!Array.isArray(e.modelValue))return e.modelValue}),P=(B,L)=>{if(!L)return B;const J=[];for(const oe of B){const ie=oe.label.toLowerCase().includes(L.toLowerCase()),U=oe.children?P(oe.children,L):[];(ie||U.length>0)&&(J.push({...oe,children:U.length>0?U:oe.children}),U.length>0&&g.value.add(oe.value))}return J},D=t.computed(()=>P(e.data,w.value)),j=t.computed(()=>e.autoFill?e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null:e.clearable),V=()=>{if(!o.value||!s.value)return;const B=o.value.getBoundingClientRect(),L=s.value.getBoundingClientRect(),oe=window.innerHeight-B.bottom,ie=B.top;let U=B.bottom+4;L.height>50&&oe<L.height+20&&ie>L.height+20&&(U=B.top-L.height-4),c.value={top:`${U}px`,left:`${B.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},C=()=>{e.disabled||(a.value=!0,e.multiple&&Array.isArray(e.modelValue)?Q.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),w.value="",t.nextTick(()=>{t.nextTick(()=>{V()})}))},S=()=>{a.value=!1,w.value=""},m=B=>{B.target.closest(".el-select__clear")||B.preventDefault()},R=B=>{B.stopPropagation(),a.value||C()},q=B=>{B&&t.nextTick(()=>{var L;(L=i.value)==null||L.blur()})},Y=()=>{e.multiple?Q.value.clear():h.value=void 0,n("update:modelValue",e.multiple?[]:void 0),n("clear"),n("change",e.multiple?[]:void 0),S()},le=B=>{g.value.has(B)?g.value.delete(B):(e.accordion&&y(B).forEach(J=>{g.value.delete(J)}),g.value.add(B))},G=B=>{if(!B.disabled)if(e.multiple){const L=Q.value.has(B.value),J=v(B);L?(Q.value.delete(B.value),J.forEach(ie=>Q.value.delete(ie))):(Q.value.add(B.value),J.forEach(ie=>Q.value.add(ie))),d(B.value);const oe=e.data.filter(ie=>Q.value.has(ie.value));if(n("select",oe),e.autoFill){const ie=Array.from(Q.value);n("update:modelValue",ie),n("change",ie)}e.autoClose&&S()}else h.value=B.value,n("select",B),e.autoFill&&(h.value!=null?(n("update:modelValue",h.value),n("change",h.value)):(n("update:modelValue",void 0),n("change",void 0))),e.autoClose&&h.value!=null&&S()},F=()=>{if(e.multiple){const B=Array.from(Q.value),L=B.map(J=>p(e.data,J)).filter(J=>J!==null);n("update:modelValue",B),n("confirm",L.length>0?L:null),n("change",B)}else if(h.value!=null){const B=p(e.data,h.value);n("update:modelValue",h.value),n("confirm",B),n("change",h.value)}else n("update:modelValue",void 0),n("confirm",null),n("change",void 0);S()},I=()=>{n("cancel"),S()},z=B=>{if(!o.value||!s.value)return;const L=B.target;!o.value.contains(L)&&!s.value.contains(L)&&S()};return t.watch(a,B=>{B?(setTimeout(()=>{document.addEventListener("mousedown",z)},100),window.addEventListener("resize",V),window.addEventListener("scroll",V,!0)):(document.removeEventListener("mousedown",z),window.removeEventListener("resize",V),window.removeEventListener("scroll",V,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",z),window.removeEventListener("resize",V),window.removeEventListener("scroll",V,!0)}),r({get $el(){return o.value},focus:()=>{var B;(B=i.value)==null||B.focus()},blur:()=>{var B;(B=i.value)==null||B.blur()},openDropdown:C,closeDropdown:S}),{treeSelectInputRef:o,selectRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:w,expandedKeys:g,tempSelectedValue:h,tempSelectedValues:Q,displayOptions:T,selectDisplayValue:E,filteredData:D,computedClearable:j,handleMouseDown:m,handleSelectClick:R,handleVisibleChange:q,handleClear:Y,toggleExpand:le,handleNodeClick:G,handleConfirm:F,handleCancel:I,isNodeChecked:k,isNodeIndeterminate:A,isNodeSelected:M}}}),b0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",M0={class:"j-tw-tree-select-input__search"},C0=["placeholder"],_0={class:"j-tw-tree-select-input__tree",ref:"treeContainerRef"},D0={key:0,class:"j-tw-tree-select-input__empty"},N0={key:0,class:"j-tw-tree-select-input__footer"};function A0(e,n,r,o,i,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select"),c=t.resolveComponent("JTWStatusImg"),w=t.resolveComponent("TreeNode"),g=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectInputRef",class:t.normalizeClass(["j-tw-tree-select-input",{"j-tw-tree-select-input--open":e.dropdownVisible,"j-tw-tree-select-input--bg-grey":e.bgGrey}]),onMousedown:n[2]||(n[2]=(...h)=>e.handleMouseDown&&e.handleMouseDown(...h))},[t.createVNode(a,{ref:"selectRef","model-value":e.selectDisplayValue,placeholder:e.placeholder,disabled:e.disabled,clearable:e.computedClearable,size:e.size,"popper-class":"j-tw-tree-select-input__hidden-popper",onClick:t.withModifiers(e.handleSelectClick,["stop"]),onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displayOptions,h=>(t.openBlock(),t.createBlock(l,{key:h.value,label:h.label,value:h.value,style:{display:"none"}},null,8,["label","value"]))),128))]),_:1},8,["model-value","placeholder","disabled","clearable","size","onClick","onClear","onVisibleChange"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-input__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",M0,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-input__search-input",placeholder:e.searchPlaceholder},null,8,C0),[[t.vModelText,e.searchText]]),n[3]||(n[3]=t.createElementVNode("img",{src:b0,alt:"search",class:"j-tw-tree-select-input__search-icon"},null,-1))]),t.createElementVNode("div",_0,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",D0,[t.createVNode(c,{width:32,height:32}),n[4]||(n[4]=t.createElementVNode("p",{class:"j-tw-tree-select-input__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,h=>(t.openBlock(),t.createBlock(w,{key:h.value,node:h,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:Q})=>[t.renderSlot(e.$slots,"default",{node:Q},()=>[t.createTextVNode(t.toDisplayString(Q.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",N0,[t.createVNode(g,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(g,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])]))],4)):t.createCommentVNode("",!0)]),_:3})]))],34)}const S0=ce(k0,[["render",A0]]),I0=t.defineComponent({name:"JTWDatePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD"},valueFormat:{type:String,default:"YYYY-MM-DD"},placeholder:{type:String,default:"选择日期范围"},startPlaceholder:{type:String,default:"开始日期"},endPlaceholder:{type:String,default:"结束日期"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var k;n("change",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"change"))},c=d=>{var k;n("blur",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"blur"))},w=d=>{n("focus",d)},g=()=>{n("clear")},h=d=>{n("visible-change",d)},Q=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),p=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"本周",value:()=>{const d=new Date,k=d.getDay(),_=k===0?6:k-1,A=new Date(d);A.setDate(d.getDate()-_),A.setHours(0,0,0,0);const M=new Date(A);return M.setDate(A.getDate()+6),M.setHours(23,59,59,999),[A,M]}},{text:"本月",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),1),_=new Date(d.getFullYear(),d.getMonth()+1,0,23,59,59,999);return[k,_]}},{text:"本年度",value:()=>{const d=new Date,k=new Date(d.getFullYear(),0,1),_=new Date(d.getFullYear(),11,31,23,59,59,999);return[k,_]}}]});return r({get $el(){return i.value},focus:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.focus()},blur:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.blur()}}),{datePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:Q,computedShortcuts:p,handleChange:a,handleBlur:c,handleFocus:w,handleClear:g,handleVisibleChange:h}}}),T0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",L0={class:"j-tw-date-picker__separator"};function E0(e,n,r,o,i,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"datePickerRef",class:t.normalizeClass(["j-tw-date-picker",{"j-tw-date-picker--bg-grey":e.bgGrey,"j-tw-date-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"daterange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-date-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-date-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:T0,alt:"calendar",class:"j-tw-date-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",L0,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const x0=ce(I0,[["render",E0]]),j0=t.defineComponent({name:"JTWDateTimePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},placeholder:{type:String,default:"选择时间范围"},startPlaceholder:{type:String,default:"开始时间"},endPlaceholder:{type:String,default:"结束时间"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var k;n("change",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"change"))},c=d=>{var k;n("blur",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"blur"))},w=d=>{n("focus",d)},g=()=>{n("clear")},h=d=>{n("visible-change",d)},Q=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),p=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"最近1小时",value:()=>{const d=new Date;return[new Date(d.getTime()-3600*1e3),d]}},{text:"今日",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),d.getDate(),0,0,0,0),_=new Date(d.getFullYear(),d.getMonth(),d.getDate(),23,59,59,999);return[k,_]}},{text:"昨日",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,0,0,0,0),_=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,23,59,59,999);return[k,_]}}]});return r({get $el(){return i.value},focus:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.focus()},blur:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.blur()}}),{dateTimePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:Q,computedShortcuts:p,handleChange:a,handleBlur:c,handleFocus:w,handleClear:g,handleVisibleChange:h}}}),z0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",B0={class:"j-tw-datetime-picker__separator"};function O0(e,n,r,o,i,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"dateTimePickerRef",class:t.normalizeClass(["j-tw-datetime-picker",{"j-tw-datetime-picker--bg-grey":e.bgGrey,"j-tw-datetime-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"datetimerange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-datetime-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-datetime-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:z0,alt:"calendar",class:"j-tw-datetime-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",B0,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const F0=ce(j0,[["render",O0]]),P0=t.defineComponent({name:"JTWRadio",components:{ElRadio:fe.ElRadio},inheritAttrs:!1,setup(){return{}}});function $0(e,n,r,o,i,s){const l=t.resolveComponent("el-radio");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elRadioRef",class:"j-tw-radio"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const d1=ce(P0,[["render",$0]]),R0=t.defineComponent({name:"JTWPagination",components:{ElPagination:fe.ElPagination},props:{page:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0},pageSizes:{type:Array,default:()=>[10,20,50,100]},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},pagerCount:{type:Number,default:5},background:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:{sizeChange:e=>!0,currentChange:e=>!0,"update:page":e=>!0,"update:pageSize":e=>!0},setup(e,{emit:n}){return{handleSizeChange:i=>{n("sizeChange",i),n("update:pageSize",i),n("update:page",1)},handleCurrentChange:i=>{n("currentChange",i),n("update:page",i)}}}}),V0={class:"j-tw-pagination"};function U0(e,n,r,o,i,s){const l=t.resolveComponent("el-pagination");return t.openBlock(),t.createElementBlock("div",V0,[t.createVNode(l,{"pager-count":e.pagerCount,"page-sizes":e.pageSizes,"current-page":e.page,"page-size":e.pageSize,total:e.total,layout:e.layout,background:e.background,disabled:e.disabled,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["pager-count","page-sizes","current-page","page-size","total","layout","background","disabled","onSizeChange","onCurrentChange"])])}const f1=ce(R0,[["render",U0]]),Wt={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},Zt={DARK:"dark",LIGHT:"light"},Yt={HOVER:"hover",CLICK:"click",FOCUS:"focus",CONTEXTMENU:"contextmenu"},W0=t.defineComponent({name:"JTWTooltip",components:{ElTooltip:fe.ElTooltip},props:{content:{type:[String,Number],default:""},placement:{type:String,default:Wt.TOP,validator:e=>Object.values(Wt).includes(e)},effect:{type:String,default:Zt.DARK,validator:e=>Object.values(Zt).includes(e)},trigger:{type:String,default:Yt.HOVER,validator:e=>Object.values(Yt).includes(e)},showArrow:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},offset:{type:Number,default:5},disabled:{type:Boolean,default:!1},popperClass:{type:String,default:void 0},popperStyle:{type:[String,Object],default:void 0}},emits:{"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.computed(()=>e.content!=null?String(e.content):""),s=t.computed(()=>{const c=["j-tw-tooltip-popper"];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),l=c=>{n("visible-change",c)};return r({get $el(){var c;return(c=o.value)==null?void 0:c.$el},show:()=>{var c,w,g;(g=(w=(c=o.value)==null?void 0:c.popperRef)==null?void 0:w.show)==null||g.call(w)},hide:()=>{var c,w,g;(g=(w=(c=o.value)==null?void 0:c.popperRef)==null?void 0:w.hide)==null||g.call(w)}}),{computedPopperClass:s,elTooltipRef:o,handleVisibleChange:l,tooltipContent:i}}});function Z0(e,n,r,o,i,s){const l=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(l,{ref:"elTooltipRef",content:e.tooltipContent,placement:e.placement,effect:e.effect,trigger:e.trigger,"show-arrow":e.showArrow,"show-after":e.openDelay,"hide-after":e.closeDelay,offset:e.offset,disabled:e.disabled,"popper-class":e.computedPopperClass,"popper-style":e.popperStyle,onVisibleChange:e.handleVisibleChange},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.content?{name:"content",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"content")]),key:"0"}:void 0]),1032,["content","placement","effect","trigger","show-arrow","show-after","hide-after","offset","disabled","popper-class","popper-style","onVisibleChange"])}const Mt=ce(W0,[["render",Z0]]),Y0=t.defineComponent({name:"JTWTable",components:{ElPopover:fe.ElPopover,JTWCheckbox:bt,JTWRadio:d1,JTWPagination:f1,JTWBtn:ze,JTWTooltip:Mt},props:{rows:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},loading:{type:Boolean,default:!1},height:{type:[String,Number],default:void 0},pagination:{type:[Object,Boolean],default:!1},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},bordered:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}},emits:{selectionChange:e=>!0,sortChange:e=>!0,filterChange:e=>!0,sizeChange:e=>!0,currentChange:e=>!0,"update:pagination":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref([]),s=t.ref({}),l=t.ref({}),a=t.ref({prop:"",order:null}),c=t.ref({}),w=t.ref({}),g=(F,I)=>{c.value[I]=F},h=F=>{const I=c.value[F];I&&(w.value[F]=I.scrollWidth>I.clientWidth)},Q=F=>!!w.value[F],p=(F,I)=>typeof e.rowKey=="function"?e.rowKey(F):F[e.rowKey]??I,v=F=>{const I={};return F.width&&(I.width=typeof F.width=="number"?`${F.width}px`:F.width),F.minWidth&&(I.minWidth=typeof F.minWidth=="number"?`${F.minWidth}px`:F.minWidth),F.width||(I.flex="1"),I},u=F=>i.value.some(I=>p(I,-1)===p(F,-1)),y=t.computed(()=>e.rows.length>0&&e.rows.every(F=>u(F))),d=t.computed(()=>{const F=e.rows.filter(I=>u(I)).length;return F>0&&F<e.rows.length}),k=F=>{i.value=F?[...e.rows]:[],n("selectionChange",i.value)},_=(F,I)=>{I?u(F)||i.value.push(F):i.value=i.value.filter(z=>p(z,-1)!==p(F,-1)),n("selectionChange",i.value)},A=F=>{n("sortChange",F)},M=F=>({"is-asc":a.value.prop===F.prop&&a.value.order==="asc","is-desc":a.value.prop===F.prop&&a.value.order==="desc"}),T=F=>{a.value.prop!==F.prop?a.value={prop:F.prop,order:"desc"}:a.value.order==="desc"?a.value={prop:F.prop,order:"asc"}:a.value.order==="asc"?a.value={prop:"",order:null}:a.value={prop:F.prop,order:"desc"},n("sortChange",{column:F,prop:a.value.prop,order:a.value.order??""})},E=F=>!!F.filteredValue&&F.filteredValue.length>0,P=(F,I)=>{const z=s.value[F.prop];return z!==void 0?z.includes(I):!!F.filteredValue&&F.filteredValue.includes(I)},D=(F,I,z)=>{s.value[F.prop]||(s.value[F.prop]=F.filteredValue?[...F.filteredValue]:[]);const ne=s.value[F.prop];if(z)ne.includes(I)||ne.push(I);else{const B=ne.indexOf(I);B>-1&&ne.splice(B,1)}},j=F=>{const I=s.value[F.prop];return I!==void 0&&I.length>0?I[0]:F.filteredValue&&F.filteredValue.length>0?F.filteredValue[0]:void 0},V=(F,I)=>{s.value[F.prop]=[I]},C=F=>{const I=s.value[F.prop]||[],z={};z[F.prop]=I,n("filterChange",z),l.value[F.prop]=!1},S=F=>{s.value[F.prop]=[];const I={};I[F.prop]=[],n("filterChange",I),l.value[F.prop]=!1},m=()=>{const F=e.pagination;return F||null},R=F=>{n("sizeChange",F);const I=m();I&&n("update:pagination",{...I,pageSize:F,page:1})},q=F=>{n("currentChange",F);const I=m();I&&n("update:pagination",{...I,page:F})};return r({get $el(){return o.value},tableRef:o,clearSelection:()=>{i.value=[],n("selectionChange",[])},toggleRowSelection:(F,I)=>{const z=I??!u(F);_(F,z)}}),{tableRef:o,selectedRows:i,filterPopoverVisible:l,isAllSelected:y,isIndeterminate:d,isRowSelected:u,getRowKey:p,getColStyle:v,emptyText:e.emptyText,handleSelectAll:k,handleRowSelect:_,handleSortChange:A,sortState:a,getSortClass:M,handleSortClick:T,isFilterActive:E,isFilterSelected:P,handleFilterSelect:D,getSingleFilterValue:j,handleSingleFilterSelect:V,handleFilterConfirm:C,handleFilterReset:S,handleSizeChange:R,handleCurrentChange:q,setLabelRef:g,checkOverflow:h,isLabelOverflowing:Q}}}),G0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzBfMjcwXzUzODIzIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjODBBNkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMxNjVERkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJiZ2JsdXJfbWFzdGVyX3N2ZzFfMTMxM18wOTQ3NzFfY2xpcF9wYXRoIj48cGF0aCBkPSJNMjQgNEMyMi40ODY3NCA0IDIxLjE2OTc0NiAzLjE1OTY4MzIgMjAuNDkwMTkyIDEuOTIwMjI0MUMxOS45NTkxNjkgMC45NTE2NzQxIDE5LjEwNDU3IDAgMTggMEwyLjAwMDAwMDUgMEMwLjg5NTQzMDU2IDAgMCAwLjg5NTQzMDU2IDAgMi4wMDAwMDAyTDAgMjBDMCAyMi4yMDkxMzkgMS43OTA4NjExIDI0IDQuMDAwMDAxIDI0TDY4IDI0QzcwLjIwOTEzNyAyNCA3MiAyMi4yMDkxMzkgNzIgMjBMNzIgMi4wMDAwMDA1QzcyIDAuODk1NDMwNTYgNzEuMTA0NTY4IDAgNzAgMEw1NCAwQzUyLjg5NTQzMiAwIDUyLjA0MDgyOSAwLjk1MTY3NDIyIDUxLjUwOTgwOCAxLjkyMDIyNDFDNTAuODMwMjU0IDMuMTU5NjgzMiA0OS41MTMyNiA0IDQ4IDRMMjQgNFoiLz48L2NsaXBQYXRoPjxsaW5lYXJHcmFkaWVudCB4MT0iMC41IiB5MT0iMCIgeDI9IjAuNSIgeTI9IjEiIGlkPSJtYXN0ZXJfc3ZnMl8yNzBfNTM4MTciPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNDQ0RCRkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzk5QjhGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxTDgsNjhaIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcwXzI3MF81MzgyMykiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcxXzEzMTNfMDk0NzcxX2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcyXzI3MF81MzgxNykiIGZpbGwtb3BhY2l0eT0iMSIvPjwvc3ZnPg==",H0={class:"j-tw-table__header"},J0={key:0,class:"j-tw-table__header-cell j-tw-table__header-cell--selection"},X0={key:1,class:"j-tw-table__header-cell",style:{width:"60px","flex-shrink":"0"}},K0={class:"j-tw-table__header-label"},q0=["onClick"],e2={key:0,class:"j-tw-table__filter-dot"},t2={class:"j-tw-table__filter-content"},n2={class:"j-tw-table__filter-list"},r2=["onMouseenter"],o2=["onMouseenter"],i2={class:"j-tw-table__filter-actions"},l2={key:2,class:"j-tw-table__header-cell j-tw-table__header-cell--action"},a2={class:"j-tw-table__body-wrapper"},s2={key:0,class:"j-tw-table__body"},c2={key:0,class:"j-tw-table__cell j-tw-table__cell--selection"},u2={key:1,class:"j-tw-table__cell",style:{width:"60px","flex-shrink":"0"}},d2={key:1},f2={key:2,class:"j-tw-table__cell j-tw-table__cell--action"},h2={key:1,class:"j-tw-table__empty"},p2={class:"j-tw-table__empty-text"},m2={key:0,class:"j-tw-table__pagination"};function g2(e,n,r,o,i,s){const l=t.resolveComponent("JTWCheckbox"),a=t.resolveComponent("JTWTooltip"),c=t.resolveComponent("JTWRadio"),w=t.resolveComponent("JTWBtn"),g=t.resolveComponent("el-popover"),h=t.resolveComponent("JTWPagination"),Q=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-table",{"j-tw-table--dense":e.dense,"j-tw-table--fixed":e.height}]),style:t.normalizeStyle(e.height?{height:typeof e.height=="number"?`${e.height}px`:e.height}:{})},[t.renderSlot(e.$slots,"header"),t.createElementVNode("div",H0,[e.selection?(t.openBlock(),t.createElementBlock("div",J0,[t.createVNode(l,{"model-value":e.isAllSelected,indeterminate:e.isIndeterminate,onChange:n[0]||(n[0]=p=>e.handleSelectAll(!!p))},null,8,["model-value","indeterminate"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",X0," 序号 ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"j-tw-table__header-cell",style:t.normalizeStyle(e.getColStyle(p))},[t.createElementVNode("span",K0,t.toDisplayString(p.label),1),p.sortable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["j-tw-table__sort-icon",e.getSortClass(p)]),onClick:v=>e.handleSortClick(p)},[...n[1]||(n[1]=[t.createElementVNode("svg",{class:"j-tw-table__sort-asc",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"7",viewBox:"0 0 7 5",fill:"none"},[t.createElementVNode("path",{d:"M3.5 0L6.53109 4.5H0.468911L3.5 0Z",fill:"currentColor"})],-1),t.createElementVNode("svg",{class:"j-tw-table__sort-desc",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"7",viewBox:"0 0 7 5",fill:"none"},[t.createElementVNode("path",{d:"M3.5 5L0.468911 0.5H6.53109L3.5 5Z",fill:"currentColor"})],-1)])],10,q0)):t.createCommentVNode("",!0),p.filters&&p.filters.length>0?(t.openBlock(),t.createBlock(g,{key:1,visible:e.filterPopoverVisible[p.prop],"onUpdate:visible":v=>e.filterPopoverVisible[p.prop]=v,placement:p.filterPlacement||"bottom-end",width:200,trigger:"click","popper-class":"j-tw-table__filter-popover"},{reference:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["j-tw-table__filter-icon",{"is-active":e.isFilterActive(p)}])},[n[2]||(n[2]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[t.createElementVNode("path",{d:"M2 2H12L8 7V11L6 12V7L2 2Z",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),e.isFilterActive(p)?(t.openBlock(),t.createElementBlock("span",e2)):t.createCommentVNode("",!0)],2)]),default:t.withCtx(()=>[t.createElementVNode("div",t2,[t.createElementVNode("div",n2,[p.filterMultiple!==!1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(p.filters,v=>(t.openBlock(),t.createBlock(l,{key:v.value,"model-value":e.isFilterSelected(p,v.value),onChange:u=>e.handleFilterSelect(p,v.value,!!u),class:"j-tw-table__filter-item"},{default:t.withCtx(()=>[t.createVNode(a,{content:v.label,placement:"top",disabled:!e.isLabelOverflowing(v.value+p.prop)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"j-tw-table__filter-label",ref_for:!0,ref:u=>e.setLabelRef(u,v.value+p.prop),onMouseenter:u=>e.checkOverflow(v.value+p.prop)},t.toDisplayString(v.label),41,r2)]),_:2},1032,["content","disabled"])]),_:2},1032,["model-value","onChange"]))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(p.filters,v=>(t.openBlock(),t.createBlock(c,{key:v.value,"model-value":e.getSingleFilterValue(p),label:v.value,onChange:u=>e.handleSingleFilterSelect(p,v.value),class:"j-tw-table__filter-item"},{default:t.withCtx(()=>[t.createVNode(a,{content:v.label,placement:"top",disabled:!e.isLabelOverflowing(v.value+p.prop)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"j-tw-table__filter-label",ref_for:!0,ref:u=>e.setLabelRef(u,v.value+p.prop),onMouseenter:u=>e.checkOverflow(v.value+p.prop)},t.toDisplayString(v.label),41,o2)]),_:2},1032,["content","disabled"])]),_:2},1032,["model-value","label","onChange"]))),128))]),t.createElementVNode("div",i2,[t.createVNode(w,{size:"small",onClick:v=>e.handleFilterConfirm(p)},{default:t.withCtx(()=>[...n[3]||(n[3]=[t.createTextVNode(" 筛选 ",-1)])]),_:1},8,["onClick"]),t.createVNode(w,{size:"small",flat:"",onClick:v=>e.handleFilterReset(p)},{default:t.withCtx(()=>[...n[4]||(n[4]=[t.createTextVNode(" 重置 ",-1)])]),_:1},8,["onClick"])])])]),_:2},1032,["visible","onUpdate:visible","placement"])):t.createCommentVNode("",!0)],4))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",l2," 操作 ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",a2,[e.rows&&e.rows.length>0?(t.openBlock(),t.createElementBlock("div",s2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rows,(p,v)=>(t.openBlock(),t.createElementBlock("div",{key:e.getRowKey(p,v),class:t.normalizeClass(["j-tw-table__row",{"j-tw-table__row--selected":e.isRowSelected(p)}])},[e.selection?(t.openBlock(),t.createElementBlock("div",c2,[t.createVNode(l,{"model-value":e.isRowSelected(p),onChange:u=>e.handleRowSelect(p,!!u)},null,8,["model-value","onChange"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",u2,t.toDisplayString(v+1),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,u=>(t.openBlock(),t.createElementBlock("div",{key:u.prop,class:t.normalizeClass(["j-tw-table__cell",`j-tw-table__cell--align-${u.align||"left"}`]),style:t.normalizeStyle(e.getColStyle(u))},[u.type==="slot"?t.renderSlot(e.$slots,`col-${u.prop}`,{key:0,row:p,$index:v,column:u}):(t.openBlock(),t.createElementBlock("span",d2,t.toDisplayString(p[u.prop]??"-"),1))],6))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",f2,[t.renderSlot(e.$slots,"action",{row:p,$index:v})])):t.createCommentVNode("",!0)],2))),128))])):(t.openBlock(),t.createElementBlock("div",h2,[t.renderSlot(e.$slots,"empty",{},()=>[n[5]||(n[5]=t.createElementVNode("img",{class:"j-tw-table__empty-img",src:G0,alt:"no data"},null,-1)),t.createElementVNode("span",p2,t.toDisplayString(e.emptyText),1)])]))]),e.pagination!==!1&&e.pagination?(t.openBlock(),t.createElementBlock("div",m2,[t.createVNode(h,{page:e.pagination.page,"page-size":e.pagination.pageSize,total:e.pagination.total,"page-sizes":e.pagination.pageSizes,layout:e.pagination.layout,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])):t.createCommentVNode("",!0)],6)),[[Q,e.loading]])}const w2=ce(Y0,[["render",g2]]),y2=t.defineComponent({name:"JTWMessageItem",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},content:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},duration:{type:Number,default:3e3},showClose:{type:Boolean,default:!1},offset:{type:Number,default:52},onClose:{type:Function,default:void 0}},emits:{destroy:e=>!0},setup(e,{emit:n}){const r=t.ref(!1);let o;const i=t.computed(()=>({"j-tw-message":!0,[`j-tw-message--${e.type}`]:!0})),s=t.computed(()=>({top:`${e.offset}px`})),l=()=>{e.duration>0&&(o=window.setTimeout(()=>{c()},e.duration))},a=()=>{o&&(clearTimeout(o),o=void 0)},c=()=>{var Q;r.value=!1,(Q=e.onClose)==null||Q.call(e)},w=()=>{n("destroy",e.id)},g=()=>{a()},h=()=>{l()};return t.onMounted(()=>{r.value=!0,l()}),{visible:r,computedClass:i,computedStyle:s,handleClose:c,handleAfterLeave:w,handleMouseEnter:g,handleMouseLeave:h}}}),v2={class:"j-tw-message__icon"},Q2={key:0,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k2={key:1,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b2={key:2,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M2={key:3,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C2={key:4,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_2=["innerHTML"],D2={key:2,class:"j-tw-message__content"};function N2(e,n,r,o,i,s){return t.openBlock(),t.createBlock(t.Transition,{name:"j-tw-message-fade",onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.computedClass),style:t.normalizeStyle(e.computedStyle),onMouseenter:n[1]||(n[1]=(...l)=>e.handleMouseEnter&&e.handleMouseEnter(...l)),onMouseleave:n[2]||(n[2]=(...l)=>e.handleMouseLeave&&e.handleMouseLeave(...l))},[t.createElementVNode("div",v2,[e.type==="success"?(t.openBlock(),t.createElementBlock("svg",Q2,[...n[3]||(n[3]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M11.5 5.5L7 10.5L4.5 8",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.type==="warning"?(t.openBlock(),t.createElementBlock("svg",k2,[...n[4]||(n[4]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M8 4.5V8.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"11",r:"0.75",fill:"white"},null,-1)])])):e.type==="error"?(t.openBlock(),t.createElementBlock("svg",b2,[...n[5]||(n[5]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M10.5 5.5L5.5 10.5M5.5 5.5L10.5 10.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):e.type==="info"?(t.openBlock(),t.createElementBlock("svg",M2,[...n[6]||(n[6]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):(t.openBlock(),t.createElementBlock("svg",C2,[...n[7]||(n[7]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))]),e.html&&typeof e.content=="string"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-message__content",innerHTML:e.content},null,8,_2)):typeof e.content=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:1,class:"j-tw-message__content"})):(t.openBlock(),t.createElementBlock("div",D2,t.toDisplayString(e.content),1)),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-message__close",onClick:n[0]||(n[0]=(...l)=>e.handleClose&&e.handleClose(...l))},[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})],-1)])])):t.createCommentVNode("",!0)],38)):t.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])}const A2=ce(y2,[["render",N2]]),Se=t.ref([]),S2=t.defineComponent({name:"JTWMessages",components:{MessageItem:A2},setup(){const e=r=>{const o=Se.value.findIndex(i=>i.id===r);o!==-1&&Se.value.splice(o,1)};return{messages:t.computed(()=>Se.value.filter(r=>r.visible)),handleDestroy:e}}}),I2={class:"j-tw-message-container"};function T2(e,n,r,o,i,s){const l=t.resolveComponent("MessageItem");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createElementVNode("div",I2,[t.createVNode(t.TransitionGroup,{name:"j-tw-message-list"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.messages,a=>(t.openBlock(),t.createBlock(l,{key:a.id,id:a.id,type:a.type,content:a.content,duration:a.duration,"show-close":a.showClose,offset:a.offset,"on-close":a.onClose,html:a.html,onDestroy:e.handleDestroy},null,8,["id","type","content","duration","show-close","offset","on-close","html","onDestroy"]))),128))]),_:1})])])}const h1=ce(S2,[["render",T2]]),p1={WARN:"warn",INFO:"info",SUCCESS:"success",ERROR:"error"},L2=t.defineComponent({name:"JTWConfirmDialog",components:{JTWBtn:ze},props:{visible:{type:Boolean,default:!1},message:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},icon:{type:String,default:p1.WARN},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},showCancel:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0}},emits:{confirm:()=>!0,cancel:()=>!0},setup(e,{emit:n}){const r=()=>{n("confirm")},o=()=>{n("cancel")},i=()=>{n("cancel")},s={warn:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10.001" cy="10" rx="8.333" ry="8.333" fill="#FF7D00"/><path d="M9.25,6 L9.25,11 Q9.25,11.75,10,11.75 Q10.75,11.75,10.75,11 L10.75,6 Q10.75,5.25,10,5.25 Q9.25,5.25,9.25,6 Z" fill="#FFFFFF"/><circle cx="10" cy="14" r="1" fill="#FFFFFF"/></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10" cy="10" rx="8" ry="8" fill="#165DFF"/><path d="M9.25,9 L9.25,14 Q9.25,14.75,10,14.75 Q10.75,14.75,10.75,14 L10.75,9 Q10.75,8.25,10,8.25 Q9.25,8.25,9.25,9 Z" fill="#FFFFFF"/><circle cx="10" cy="6.5" r="1" fill="#FFFFFF"/></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#00B42A"/><path d="M6 10 L9 13 L14 7" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#F53F3F"/><path d="M7 7 L13 13 M13 7 L7 13" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round"/></svg>'};return{iconSvg:t.computed(()=>typeof e.icon!="string"?"":s[e.icon]??e.icon),handleConfirm:r,handleCancel:o,handleMaskClick:i}}}),E2={class:"j-tw-confirm-dialog__header"},x2=["innerHTML"],j2=["innerHTML"],z2={key:3,class:"j-tw-confirm-dialog__message"},B2={class:"j-tw-confirm-dialog__footer"};function O2(e,n,r,o,i,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-confirm-dialog-fade"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__mask",onClick:n[1]||(n[1]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a))},[t.createElementVNode("div",{class:"j-tw-confirm-dialog__wrapper",onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",E2,[e.showIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:"j-tw-confirm-dialog__icon",innerHTML:e.iconSvg},null,8,x2)):t.createCommentVNode("",!0),e.html&&typeof e.message=="string"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-confirm-dialog__message",innerHTML:e.message},null,8,j2)):typeof e.message=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.message),{key:2,class:"j-tw-confirm-dialog__message"})):(t.openBlock(),t.createElementBlock("span",z2,t.toDisplayString(e.message),1))]),t.createElementVNode("div",B2,[e.showCancel?(t.openBlock(),t.createBlock(l,{key:0,label:e.cancelText||"取消",flat:"",onClick:e.handleCancel},null,8,["label","onClick"])):t.createCommentVNode("",!0),e.showConfirm?(t.openBlock(),t.createBlock(l,{key:1,label:e.confirmText||"确定",onClick:e.handleConfirm},null,8,["label","onClick"])):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0)]),_:1})])}const m1=ce(L2,[["render",O2]]),g1={CENTER:"center",RIGHT:"right"},w1={SM:"sm",MD:"md",LG:"lg"},y1={BOTH:"both",CANCEL_ONLY:"cancel-only",CONFIRM_ONLY:"confirm-only"};var F2={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const $e=new Map;let De={};const Ve={configure(e){De=e},async register(e){try{console.log("[twDialog] 开始注册 dialog, props:",e);const n=e.dialogId||Math.random().toString(36).slice(2),r={...e,dialogId:n},o=t.ref(null),i=De.locale||F2;console.log("[twDialog] 创建 WrapperComponent...");const s={setup(){return{dialogRef:o}},render(){return t.h(fe.ElConfigProvider,{locale:i},{default:()=>t.h(v1,{...r,ref:w=>{console.log("[twDialog] ref 回调被调用, el:",w),o.value=w}})})}};console.log("[twDialog] 创建 Vue app...");const l=t.createApp(s);De.router&&l.use(De.router),De.store&&l.use(De.store),De.i18n&&l.use(De.i18n),De.plugins&&De.plugins.forEach(w=>l.use(w)),console.log("[twDialog] 挂载 app...");const a=document.createElement("div");l.mount(a),console.log("[twDialog] app 已挂载, mountEl:",a),await t.nextTick(),console.log("[twDialog] nextTick 后, dialogRef.value:",o.value);const c=o.value;if(!c)throw new Error("dialogRef.value 为 null,组件可能没有正确挂载");return $e.set(n,{app:l,appInstance:c}),t.nextTick(()=>{c&&(console.log("[twDialog] 调用 appInstance.open()"),c.open())}),console.log("[twDialog] 注册成功, 返回 appInstance"),c}catch(n){throw console.error("[twDialog] 注册失败:",n),console.error("[twDialog] 错误堆栈:",n instanceof Error?n.stack:"无堆栈信息"),n}},destroy(e){const n=$e.get(e);if(n){try{const r=n.app._container;n.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}$e.delete(e)}},destroyAll(){$e.forEach((e,n)=>{try{const r=e.app._container;e.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}}),$e.clear()}};async function P2(e){return Ve.register(e)}const $2=t.defineComponent({name:"JTWDialog",components:{JTWBtn:ze},props:{dialogId:{type:String},title:{type:String,default:""},position:{type:String,default:g1.CENTER},size:{type:String,default:w1.MD},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},footerMode:{type:String,default:y1.BOTH},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},component:{default:null},componentBind:{type:Object,default:()=>({})},componentOn:{type:Object,default:()=>({})},closeOnMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},footerExtra:{type:Object,default:null},bodyPadded:{type:Boolean,default:!0},width:{type:String,default:""},topOffset:{type:String,default:"0px"}},setup(e,{expose:n}){var C;const r=t.ref(!1),o=t.ref(null),i=t.ref(null),s=t.ref(!1),l=t.ref(e.cancelText),a=t.ref(e.confirmText),c=t.ref(((C=e.footerExtra)==null?void 0:C.bind)||{}),w=t.ref(e.width),g=t.computed(()=>e.position==="right"?"j-tw-dialog-slide-right":"j-tw-dialog-fade"),h=t.computed(()=>`j-tw-dialog__wrapper--${e.size}`),Q=t.computed(()=>{const S={};return e.topOffset!=="0px"&&(S.height=`calc(100vh - ${e.topOffset})`,S.top=e.topOffset),S}),p=t.computed(()=>{const S={};return w.value&&(S.width=w.value,S.maxWidth=w.value),e.position==="right"&&e.topOffset!=="0px"&&(S.height=`calc(100vh - ${e.topOffset})`,S.maxHeight=`calc(100vh - ${e.topOffset})`),S}),v=t.computed(()=>{var S;return{...e.componentBind,dialogInstance:{...((S=e.componentBind)==null?void 0:S.dialogInstance)||{},open:y,close:d,setLoading:k,changeCancelText:_,changeConfirmText:A,setFooterExtraBind:M,setDialogWidth:T}}}),u=t.computed(()=>{var S;return{...(S=e.footerExtra)==null?void 0:S.bind,...c.value}}),y=()=>{r.value=!0,t.nextTick(()=>{var S;(S=o.value)==null||S.focus()})},d=()=>{r.value=!1},k=S=>{s.value=S},_=S=>{l.value=S},A=S=>{a.value=S},M=S=>{c.value={...c.value,...S}},T=S=>{w.value=S},E=()=>{e.closeOnMask&&d()},P=()=>{e.closeOnEsc&&d()},D=()=>{const S=i.value;S!=null&&S.handleClickCancel?S.handleClickCancel():d()},j=()=>{const S=i.value;S!=null&&S.handleClickConfirm&&S.handleClickConfirm()},V=()=>{e.dialogId&&Ve.destroy(e.dialogId)};return t.onErrorCaptured((S,m,R)=>(console.error("[JTWDialog] Component error captured:",S,R),!1)),n({open:y,close:d,setLoading:k,changeCancelText:_,changeConfirmText:A,setFooterExtraBind:M,setDialogWidth:T,loading:s}),{visible:r,maskRef:o,dynamicCompRef:i,loading:s,cancelText:l,confirmText:a,transitionName:g,sizeClass:h,maskStyle:Q,wrapperStyle:p,computedComponentBind:v,computedFooterExtraBind:u,open:y,close:d,setLoading:k,changeCancelText:_,changeConfirmText:A,handleMaskClick:E,handleEscKey:P,handleClickCancel:D,handleClickConfirm:j,handleAfterLeave:V}}}),R2={key:0,class:"j-tw-dialog__header"},V2={class:"j-tw-dialog__title"},U2={class:"j-tw-dialog__error"},W2={style:{"font-size":"12px",color:"#999","margin-top":"8px"}},Z2={key:2,class:"j-tw-dialog__loading"},Y2={key:1,class:"j-tw-dialog__footer-extra"},G2={key:2,class:"j-tw-dialog__footer"};function H2(e,n,r,o,i,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:e.transitionName,onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-dialog__mask",{"j-tw-dialog__mask--right":e.position==="right"}]),style:t.normalizeStyle(e.maskStyle),onClick:n[2]||(n[2]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a)),onKeydown:n[3]||(n[3]=t.withKeys((...a)=>e.handleEscKey&&e.handleEscKey(...a),["esc"])),tabindex:"-1",ref:"maskRef"},[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__wrapper",`j-tw-dialog__wrapper--${e.position}`,e.sizeClass]),style:t.normalizeStyle(e.wrapperStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[e.showHeader?(t.openBlock(),t.createElementBlock("div",R2,[t.createElementVNode("span",V2,[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createElementVNode("button",{class:"j-tw-dialog__close",onClick:n[0]||(n[0]=(...a)=>e.close&&e.close(...a)),type:"button"},[...n[4]||(n[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__body",{"j-tw-dialog__body--no-padding":!e.bodyPadded}])},[e.component?(t.openBlock(),t.createBlock(t.Suspense,{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component),t.mergeProps(e.computedComponentBind,t.toHandlers(e.componentOn||{}),{ref:"dynamicCompRef"}),null,16))]),fallback:t.withCtx(()=>[...n[5]||(n[5]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),error:t.withCtx(({error:a})=>[t.createElementVNode("div",U2,[n[6]||(n[6]=t.createElementVNode("p",null,"组件加载失败",-1)),t.createElementVNode("p",W2,t.toDisplayString((a==null?void 0:a.message)||"请刷新页面重试"),1)])]),_:1})):t.renderSlot(e.$slots,"default",{key:1}),e.loading?(t.openBlock(),t.createElementBlock("div",Z2,[...n[7]||(n[7]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})],-1)])])):t.createCommentVNode("",!0)],2),e.footerExtra?(t.openBlock(),t.createElementBlock("div",Y2,[(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.footerExtra.component),t.normalizeProps(t.guardReactiveProps(e.computedFooterExtraBind)),null,16))]),fallback:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),_:1}))])):t.createCommentVNode("",!0),e.showFooter?(t.openBlock(),t.createElementBlock("div",G2,[e.footerMode==="both"||e.footerMode==="cancel-only"?(t.openBlock(),t.createBlock(l,{key:0,label:e.cancelText||"取消",flat:"",onClick:e.handleClickCancel},null,8,["label","onClick"])):t.createCommentVNode("",!0),e.footerMode==="both"||e.footerMode==="confirm-only"?(t.openBlock(),t.createBlock(l,{key:1,label:e.confirmText||"确定",onClick:e.handleClickConfirm},null,8,["label","onClick"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6)],38)):t.createCommentVNode("",!0)]),_:3},8,["name","onAfterLeave"])])}const v1=ce($2,[["render",H2]]),J2=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},innerValue:{type:[String,Number,Array],default:void 0},innerValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},shouldShowCheckbox:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),X2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",K2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",q2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",er="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",tr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",nr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",rr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",or={key:0,src:X2,alt:"collapse",class:"j-tw-tree-select__expand-icon"},ir={key:1,src:K2,alt:"expand",class:"j-tw-tree-select__expand-icon"},lr={key:2,class:"j-tw-tree-select__expand-placeholder"},ar={key:0,src:q2,alt:"indeterminate",class:"j-tw-tree-select__checkbox-icon"},sr={key:1,src:er,alt:"checked",class:"j-tw-tree-select__checkbox-icon"},cr={key:2,src:tr,alt:"unchecked",class:"j-tw-tree-select__checkbox-icon"},ur={key:0,src:nr,alt:"selected",class:"j-tw-tree-select__checkbox-icon"},dr={key:1,src:rr,alt:"unselected",class:"j-tw-tree-select__checkbox-icon"};function fr(e,n,r,o,i,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select__node",{"j-tw-tree-select__node--disabled":e.node.disabled},{"j-tw-tree-select__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"})},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",or)):(t.openBlock(),t.createElementBlock("img",ir))])):(t.openBlock(),t.createElementBlock("div",lr)),e.shouldShowCheckbox(e.node)?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-tree-select__checkbox",onClick:n[1]||(n[1]=t.withModifiers(a=>e.handleNodeClick(e.node),["stop"]))},[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",ar)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",sr)):(t.openBlock(),t.createElementBlock("img",cr))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.innerValue===e.node.value?(t.openBlock(),t.createElementBlock("img",ur)):(t.openBlock(),t.createElementBlock("img",dr))],64))])):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"j-tw-tree-select__node-label",onClick:n[2]||(n[2]=a=>e.handleNodeClick(e.node))},[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])]),e.node.count?(t.openBlock(),t.createElementBlock("span",{key:4,class:"j-tw-tree-select__node-count",onClick:n[3]||(n[3]=a=>e.handleNodeClick(e.node))},t.toDisplayString(e.node.count),1)):t.createCommentVNode("",!0)],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:w})=>[t.renderSlot(e.$slots,"default",{node:w},()=>[t.createTextVNode(t.toDisplayString(w.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const hr=ce(J2,[["render",fr]]),pr=t.defineComponent({name:"JTWTreeSelect",components:{TreeNode:hr,JTWStatusImg:We},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入关键词搜索"},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},checkIndependently:{type:Boolean,default:!1},nodeDataMap:{type:Object,default:()=>({})},selectedDataValues:{type:Array,default:()=>[]},maxHeight:{type:Number,default:void 0},externalSearchText:{type:String,default:""},bordered:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},validateEvent:{type:Boolean,default:!0},defaultExpandFirst:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,n)=>!0,blur:e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(""),l=t.ref(new Set),a=t.ref(e.modelValue),c=t.ref(new Set),w=D=>{if(!D||D.length===0)return;const j=C=>C.find(S=>S.children&&Array.isArray(S.children)&&S.children.length>0);let V=j(D);for(;V&&(V.children&&Array.isArray(V.children)&&V.children.length>0);)l.value.add(V.value),V=j(V.children)};t.watch(()=>e.data,D=>{e.defaultExpandFirst&&D.length>0&&l.value.size===0&&w(D)},{immediate:!0,deep:!0}),t.watch(()=>e.modelValue,D=>{a.value=D,e.multiple&&Array.isArray(D)&&(c.value=new Set(D))},{immediate:!0});const g=(D,j)=>{for(const V of D){if(V.value===j)return V;if(V.children){const C=g(V.children,j);if(C)return C}}return null},h=D=>{if(!D.children||D.children.length===0)return[];const j=[];for(const V of D.children)j.push(V.value),j.push(...h(V));return j},Q=(D,j)=>{for(const V of D)if(V.children){if(V.children.some(S=>S.value===j))return V;const C=Q(V.children,j);if(C)return C}return null},p=D=>{const j=Q(e.data,D);return j&&j.children?j.children.map(V=>V.value).filter(V=>V!==D):e.data.map(V=>V.value).filter(V=>V!==D)},v=D=>{if(!e.checkStrictly)return;const j=Q(e.data,D);j&&j.children&&(j.children.every(C=>c.value.has(C.value))?c.value.add(j.value):c.value.delete(j.value),v(j.value))},u=D=>e.multiple?c.value.has(D):a.value===D,y=D=>{if(!e.multiple||!D.children||D.children.length===0||!e.checkStrictly)return!1;const j=D.children.map(C=>C.value),V=j.filter(C=>c.value.has(C)).length;return V>0&&V<j.length},d=D=>e.multiple?c.value.has(D):a.value===D,k=D=>e.checkStrictly||e.checkIndependently?!0:!D.children||D.children.length===0,_=(D,j)=>{if(!j)return D;const V=[];for(const C of D){const S=C.label.toLowerCase().includes(j.toLowerCase()),m=C.children?_(C.children,j):[];(S||m.length>0)&&(V.push({...C,children:m.length>0?m:C.children}),m.length>0&&l.value.add(C.value))}return V},A=D=>{if(!e.nodeDataMap||Object.keys(e.nodeDataMap).length===0)return D;const j=new Set(e.selectedDataValues);return D.map(V=>{const C=e.nodeDataMap[V.value];let S="";if(C&&Array.isArray(C)){const m=C.length;S=`(${C.filter(q=>j.has(q.value)).length}/${m})`}return{...V,count:S,children:V.children?A(V.children):V.children}})},M=t.computed(()=>{const D=e.externalSearchText||s.value,j=_(e.data,D);return A(j)});t.watch(()=>e.externalSearchText,D=>{D!=null&&(s.value="")});const T=D=>{l.value.has(D)?l.value.delete(D):(e.accordion&&p(D).forEach(V=>{l.value.delete(V)}),l.value.add(D))},E=D=>{var j,V;if(!D.disabled){if(!e.checkStrictly&&!e.checkIndependently&&D.children&&D.children.length>0){T(D.value);return}if(e.multiple){const C=c.value.has(D.value),S=h(D);C?(c.value.delete(D.value),e.checkStrictly&&!e.checkIndependently&&S.forEach(q=>c.value.delete(q))):(c.value.add(D.value),e.checkStrictly&&!e.checkIndependently&&S.forEach(q=>c.value.add(q))),e.checkStrictly&&!e.checkIndependently&&v(D.value);const m=Array.from(c.value),R=m.map(q=>g(e.data,q)).filter(q=>q!==null);n("update:modelValue",m),n("change",m,R.length>0?R:null),e.validateEvent&&o&&((j=o.validate)==null||j.call(o,"change"))}else if(a.value!==D.value){a.value=D.value;const C=g(e.data,D.value);n("update:modelValue",D.value),n("change",D.value,C),e.validateEvent&&o&&((V=o.validate)==null||V.call(o,"change"))}}};return r({get $el(){return i.value}}),{treeSelectRef:i,searchText:s,expandedKeys:l,innerValue:a,innerValues:c,filteredData:M,toggleExpand:T,handleNodeClick:E,isNodeChecked:u,isNodeIndeterminate:y,isNodeSelected:d,shouldShowCheckbox:k}}}),mr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",gr={key:0,class:"j-tw-tree-select__search"},wr=["placeholder"],yr={key:0,class:"j-tw-tree-select__empty"};function vr(e,n,r,o,i,s){const l=t.resolveComponent("JTWStatusImg"),a=t.resolveComponent("TreeNode");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(["j-tw-tree-select",{"j-tw-tree-select--borderless":!e.bordered,"j-tw-tree-select--no-search":!e.showSearch}])},[e.showSearch?(t.openBlock(),t.createElementBlock("div",gr,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=c=>e.searchText=c),type:"text",class:"j-tw-tree-select__search-input",placeholder:e.searchPlaceholder},null,8,wr),[[t.vModelText,e.searchText]]),n[1]||(n[1]=t.createElementVNode("img",{src:mr,alt:"search",class:"j-tw-tree-select__search-icon"},null,-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"j-tw-tree-select__tree",style:t.normalizeStyle({maxHeight:e.maxHeight?`${e.maxHeight}px`:"none"})},[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",yr,[t.createVNode(l,{width:32,height:32}),n[2]||(n[2]=t.createElementVNode("p",{class:"j-tw-tree-select__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,c=>(t.openBlock(),t.createBlock(a,{key:c.value,node:c,level:0,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:w})=>[t.renderSlot(e.$slots,"default",{node:w},()=>[t.createTextVNode(t.toDisplayString(w.label),1)])]),_:3},8,["node","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128))],4)],2)}const Qr=ce(pr,[["render",vr]]),kr=t.defineComponent({name:"JTWFormLabel",props:{label:{type:String},labelClass:{type:[String,Object,Array]},valueClass:{type:[String,Object,Array]},vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},slots:Object,setup(e,{slots:n}){const r=t.computed(()=>{const i=!!e.label||!!n.label;return e.horizontal?!0:i});return{directionClass:t.computed(()=>e.vertical?"form-label--vertical":e.horizontal?"form-label--horizontal":"form-label--vertical"),showLabel:r,slots:n}}}),br={class:"label-content"},Mr={class:"form-content"},Cr={class:"form-value__inner"},_r={class:"form-item-detail-wrapper"};function Dr(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-form-label",[e.directionClass,{required:e.required}]])},[e.showLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-label",[e.labelClass,{required:e.required}]])},[t.createElementVNode("div",br,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(e.$slots,"label-hint")])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",Mr,[t.createElementVNode("div",{class:t.normalizeClass(["form-value",e.valueClass])},[t.createElementVNode("div",Cr,[t.renderSlot(e.$slots,"default")])],2),t.createElementVNode("div",_r,[t.renderSlot(e.$slots,"form-item-detail")])])],2)}const Nr=ce(kr,[["render",Dr]]),Ar=t.defineComponent({name:"JTWForm",components:{ElForm:fe.ElForm},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({validate:(...i)=>r.value.validate(...i),validateField:(...i)=>r.value.validateField(...i),resetFields:(...i)=>r.value.resetFields(...i),scrollToField:(...i)=>r.value.scrollToField(...i),clearValidate:(...i)=>r.value.clearValidate(...i)}),{elFormRef:r}}});function Sr(e,n,r,o,i,s){const l=t.resolveComponent("el-form");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormRef"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const Ir=ce(Ar,[["render",Sr]]),Tr=t.defineComponent({name:"JTWFormItem",components:{ElFormItem:fe.ElFormItem},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({get size(){var i;return((i=r.value)==null?void 0:i.size)||""},get validateMessage(){var i;return((i=r.value)==null?void 0:i.validateMessage)||""},get validateState(){var i;return((i=r.value)==null?void 0:i.validateState)||""},validate:(...i)=>r.value.validate(...i),clearValidate:()=>r.value.clearValidate(),resetField:()=>r.value.resetField()}),{elFormItemRef:r}}});function Lr(e,n,r,o,i,s){const l=t.resolveComponent("el-form-item");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormItemRef"},e.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.label?{name:"label",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"label")]),key:"0"}:void 0,e.$slots.error?{name:"error",fn:t.withCtx(({error:a})=>[t.renderSlot(e.$slots,"error",{error:a})]),key:"1"}:void 0]),1040)}const Er=ce(Tr,[["render",Lr]]),xr=t.defineComponent({name:"JTWSelect",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})}},setup(e,{expose:n,attrs:r}){const o=t.ref(null),i=t.ref(!1),s=t.computed(()=>{var g;return((g=e.props)==null?void 0:g.label)||"label"}),l=t.computed(()=>{var g;return((g=e.props)==null?void 0:g.value)||"value"}),a=t.computed(()=>r.multiple!==void 0&&r.multiple!==!1),c=g=>{i.value=g};return n({focus:()=>{var g;return(g=o.value)==null?void 0:g.focus()},blur:()=>{var g;return(g=o.value)==null?void 0:g.blur()}}),{elSelectRef:o,dropdownVisible:i,labelKey:s,valueKey:l,isMultiple:a,handleVisibleChange:c}}});function jr(e,n,r,o,i,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elSelectRef",class:["tw-select",{"tw-select--bg-grey":e.bgGrey,"tw-select--open":e.dropdownVisible,"tw-select--multiple":e.isMultiple}],"popper-class":"tw-select-popper"},e.$attrs,{onVisibleChange:e.handleVisibleChange}),t.createSlots({default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:c[e.valueKey],label:c[e.labelKey],value:c[e.valueKey],disabled:c.disabled},null,8,["label","value","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.header?{name:"header",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"header")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"footer")]),key:"3"}:void 0]),1040,["class","onVisibleChange"])}const zr=ce(xr,[["render",jr]]),Br=t.defineComponent({name:"JTWCheckboxGroup",components:{ElCheckboxGroup:fe.ElCheckboxGroup,ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function Or(e,n,r,o,i,s){const l=t.resolveComponent("el-checkbox"),a=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elCheckboxGroupRef",class:"j-tw-checkbox-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const Fr=ce(Br,[["render",Or]]),Pr=t.defineComponent({name:"JTWRadioGroup",components:{ElRadioGroup:fe.ElRadioGroup,ElRadio:fe.ElRadio},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function $r(e,n,r,o,i,s){const l=t.resolveComponent("el-radio"),a=t.resolveComponent("el-radio-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elRadioGroupRef",class:"j-tw-radio-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const Rr=ce(Pr,[["render",$r]]),Vr=t.defineComponent({name:"JTWToggle",components:{ElSwitch:fe.ElSwitch},props:{modelValue:{type:[Boolean,String,Number],default:!1},trueValue:{type:[Boolean,String,Number],default:!0},falseValue:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0},leftLabel:{type:Boolean,default:!1},color:{type:String,default:void 0},keepColor:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:void 0},icon:{type:String,default:void 0},checkedIcon:{type:String,default:void 0},uncheckedIcon:{type:String,default:void 0},iconColor:{type:String,default:void 0},size:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:n}){const r=t.computed(()=>e.size&&["","default","small","large"].includes(e.size)?e.size:e.dense?"small":"default"),o=t.computed(()=>{const a={};return e.color&&(a["--el-switch-on-color"]=e.color,e.keepColor&&(a["--el-switch-off-color"]=e.color)),a}),i=t.computed(()=>{const a=[];return e.dense&&a.push("j-tw-toggle--dense"),e.readonly&&a.push("j-tw-toggle--readonly"),a});return{computedSize:r,computedStyle:o,computedClass:i,handleUpdateModelValue:a=>{e.readonly||n("update:modelValue",a)},handleChange:a=>{e.readonly||n("change",a)}}}});function Ur(e,n,r,o,i,s){const l=t.resolveComponent("el-switch");return t.openBlock(),t.createBlock(l,{"model-value":e.modelValue,"active-value":e.trueValue,"inactive-value":e.falseValue,"active-text":e.leftLabel?e.label:void 0,"inactive-text":!e.leftLabel&&e.label?e.label:void 0,"active-icon":e.checkedIcon,"inactive-icon":e.uncheckedIcon,disabled:e.disable,size:e.computedSize,name:e.name,id:e.id,tabindex:e.tabindex,"validate-event":e.validateEvent,style:t.normalizeStyle(e.computedStyle),class:t.normalizeClass(e.computedClass),"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange},t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),key:"0"}:void 0]),1032,["model-value","active-value","inactive-value","active-text","inactive-text","active-icon","inactive-icon","disabled","size","name","id","tabindex","validate-event","style","class","onUpdate:modelValue","onChange"])}const Wr=ce(Vr,[["render",Ur],["__scopeId","data-v-8bf04c8a"]]);let Gt=!1,Zr=0;function Yr(){return`j-tw-message-${Date.now()}-${++Zr}`}function Gr(){if(Gt)return;Gt=!0;const e=document.createElement("div");document.body.appendChild(e),t.createApp(h1).mount(e)}function Hr(e){Gr();const n=Yr(),r=56,o=e.offset??52,i=Se.value.filter(a=>a.visible).length,s=o+i*r,l={id:n,type:e.type??"info",content:e.content,duration:e.duration??3e3,showClose:e.showClose??!1,offset:s,onClose:e.onClose,visible:!0,html:e.html??!1};return Se.value.push(l),{id:n,close:()=>{const a=Se.value.findIndex(c=>c.id===n);a!==-1&&(Se.value[a].visible=!1)}}}const xe={show(e){return Hr(e)},closeAll(){Se.value.forEach(e=>{e.visible=!1})}},Jr=t.defineComponent({name:"JTWFileUpload",components:{JTWTooltip:Mt},props:{modelValue:{type:Array,default:()=>[]},accept:{type:String,default:".png,.jpg,.jpeg"},maxSize:{type:Number,default:5*1024*1024},maxFiles:{type:Number,default:1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,exceed:e=>!0,error:e=>!0},setup(e,{emit:n}){const r=t.ref(),o=t.ref(!1),i=t.ref([...e.modelValue]),s=t.ref(),l=t.inject(fe.formItemContextKey,{}),a=t.computed(()=>e.multiple?i.value.length>=e.maxFiles:i.value.length>=1),c=t.computed(()=>`${e.maxSize/1048576}MB`),w=t.computed(()=>e.accept.split(",").map(M=>M.trim().replace(/^\./,"")).join("/")),g=t.computed(()=>e.multiple&&e.maxFiles>1?`,最多支持${e.maxFiles}张`:"");t.watch(()=>e.modelValue,M=>{i.value=[...M],t.nextTick(()=>{var T,E;M.length>0?(T=l==null?void 0:l.clearValidate)==null||T.call(l):(E=l==null?void 0:l.validate)==null||E.call(l,"change")})},{deep:!0});const h=M=>{if(e.accept&&!e.accept.split(",").some(T=>M.name.toLowerCase().endsWith(T.trim().toLowerCase()))){const T=`文件格式不支持,请上传 ${w.value} 格式的文件`;return xe.show({type:"error",content:T}),{valid:!1,error:T}}if(M.size>e.maxSize){const T=`文件大小超出限制,请上传小于 ${c.value} 的文件`;return xe.show({type:"error",content:T}),{valid:!1,error:T}}return{valid:!0}},Q=M=>{const T=Array.from(M),E=[];for(const D of T){const j=h(D);if(!j.valid){n("error",{type:"validation",message:j.error,file:D});continue}E.push(D)}if(E.length===0)return;let P=[...i.value];if(e.multiple){const D=e.maxFiles-P.length;if(D<=0){xe.show({type:"error",content:`最多只能上传 ${e.maxFiles} 个文件`}),n("exceed",E);return}const j=E.slice(0,D);j.length<E.length&&(xe.show({type:"warning",content:`已达到文件数量上限,只能再上传 ${D} 个文件`}),n("exceed",E.slice(D))),P.push(...j)}else P=[E[0]];i.value=P,n("update:modelValue",P),t.nextTick(()=>{var D,j;P.length>0?(D=l==null?void 0:l.clearValidate)==null||D.call(l):(j=l==null?void 0:l.validate)==null||j.call(l,"change")})};return{fileInputRef:r,fileListRef:s,isDragging:o,fileList:i,isMaxFiles:a,maxSizeText:c,acceptText:w,maxFilesText:g,handleClick:()=>{var M;e.disabled||a.value||(M=r.value)==null||M.click()},handleFileChange:M=>{var E;const T=M.target;(E=T.files)!=null&&E.length&&Q(T.files),T.value=""},handleDragEnter:M=>{e.disabled||a.value||(M.preventDefault(),o.value=!0)},handleDragOver:M=>{e.disabled||a.value||(M.preventDefault(),o.value=!0)},handleDragLeave:M=>{if(e.disabled||a.value)return;M.preventDefault();const T=M.currentTarget,E=M.relatedTarget;T!=null&&T.contains(E)||(o.value=!1)},handleDrop:M=>{var E;if(e.disabled||a.value)return;M.preventDefault(),o.value=!1;const T=(E=M.dataTransfer)==null?void 0:E.files;T!=null&&T.length&&Q(T)},handleRemove:M=>{const T=[...i.value];T.splice(M,1),i.value=T,n("update:modelValue",T),t.nextTick(()=>{var E,P;T.length>0?(E=l==null?void 0:l.clearValidate)==null||E.call(l):(P=l==null?void 0:l.validate)==null||P.call(l,"change")})},isFileNameTruncated:M=>{if(!s.value)return!1;const T=document.createElement("span");T.style.visibility="hidden",T.style.position="absolute",T.style.fontSize="14px",T.style.fontFamily=getComputedStyle(document.body).fontFamily,T.textContent=M,document.body.appendChild(T);const E=T.offsetWidth;document.body.removeChild(T);const j=s.value.clientWidth-72;return E>j}}}}),Xr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1487_075623'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1487_075623)'%3e%3cpath%20d='M2.3333332538604736,2.666663273069763C2.3333332538604736,1.9302852130697632,2.9302847938604737,1.3333333730697632,3.6666625538604736,1.3333333730697632C3.6666625538604736,1.3333333730697632,10.942774053860473,1.3333333730697632,10.942774053860473,1.3333333730697632C10.942774053860473,1.3333333730697632,13.666633253860473,4.057182873069763,13.666633253860473,4.057182873069763C13.666633253860473,4.057182873069763,13.666633253860473,13.333302373069763,13.666633253860473,13.333302373069763C13.666633253860473,14.069667373069763,13.069667253860473,14.666633373069763,12.333302753860474,14.666633373069763C12.333302753860474,14.666633373069763,3.6666625538604736,14.666633373069763,3.6666625538604736,14.666633373069763C2.9302847938604737,14.666633373069763,2.3333332538604736,14.069667373069763,2.3333332538604736,13.333302373069763C2.3333332538604736,13.333302373069763,2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763C2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763ZM10.390508853860474,2.666663273069763C10.390508853860474,2.666663273069763,3.6666625538604736,2.666663273069763,3.6666625538604736,2.666663273069763C3.6666625538604736,2.666663273069763,3.6666625538604736,13.333302373069763,3.6666625538604736,13.333302373069763C3.6666625538604736,13.333302373069763,12.333302753860474,13.333302373069763,12.333302753860474,13.333302373069763C12.333302753860474,13.333302373069763,12.333302753860474,4.609468373069763,12.333302753860474,4.609468373069763C12.333302753860474,4.609468373069763,10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763C10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763ZM10.666641453860473,7.666650673069763C10.666641453860473,7.666650673069763,5.333324153860474,7.666650673069763,5.333324153860474,7.666650673069763C5.333324153860474,7.666650673069763,5.333324153860474,6.333320473069763,5.333324153860474,6.333320473069763C5.333324153860474,6.333320473069763,10.666641453860473,6.333320473069763,10.666641453860473,6.333320473069763C10.666641453860473,6.333320473069763,10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763C10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763ZM8.666647653860473,10.333310473069764C8.666647653860473,10.333310473069764,5.333324153860474,10.333310473069764,5.333324153860474,10.333310473069764C5.333324153860474,10.333310473069764,5.333324153860474,8.999980373069764,5.333324153860474,8.999980373069764C5.333324153860474,8.999980373069764,8.666647653860473,8.999980373069764,8.666647653860473,8.999980373069764C8.666647653860473,8.999980373069764,8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764C8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Kr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1487_075606'%3e%3crect%20x='-0.6666666865348816'%20y='-0.6666666865348816'%20width='17.333333373069763'%20height='17.333333373069763'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1487_075606)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cg%3e%3cpath%20d='M1.3339843725,4.0001628875L2.3333332125,4.0001628875L2.3333332125,14.6668301875Q2.3333331125,14.7324901875,2.3461429125,14.7968881875Q2.3589526125,14.8612881875,2.3840800125,14.9219511875Q2.4092073125,14.9826131875,2.4456866125000003,15.0372081875Q2.4821658125,15.0918031875,2.5285952125,15.1382331875Q2.5750245124999998,15.1846621875,2.6296196125,15.2211421875Q2.6842146125,15.2576211875,2.7448773125,15.2827491875Q2.8055401125,15.3078761875,2.8699396125,15.3206861875Q2.9343390125,15.3334971875,3.0000000125,15.3334981875L13.0000003125,15.3334981875Q13.0656603125,15.3334971875,13.1300593125,15.3206861875Q13.1944583125,15.3078761875,13.2551213125,15.2827481875Q13.3157843125,15.2576211875,13.3703793125,15.2211421875Q13.4249743125,15.1846631875,13.4714053125,15.1382341875Q13.5178333125,15.0918041875,13.5543113125,15.0372081875Q13.5907913125,14.9826141875,13.6159183125,14.9219511875Q13.6410453125,14.8612881875,13.6538553125,14.7968881875Q13.6666663125,14.7324901875,13.6666673125,14.6668301875L13.6666673125,4.0001628875L14.6673183125,4.0001628875L14.6673183125,3.9983629875Q14.7328013125,3.9983629875,14.7970273125,3.9855875875Q14.8612523125,3.9728123875,14.9217513125,3.9477529875Q14.9822503125,3.9226932875,15.0366973125,3.8863124875Q15.0911453125,3.8499316875,15.1374503125,3.8036276875Q15.1837543125,3.7573237875,15.2201343125,3.7028760875Q15.2565153125,3.6484284875,15.2815753125,3.5879292875Q15.3066353125,3.5274302875,15.3194103125,3.4632050875Q15.3321853125,3.3989796875,15.3321853125,3.3334960875Q15.3321853125,3.2680124875,15.3194103125,3.2037868875Q15.3066353125,3.1395613875,15.2815753125,3.0790621875Q15.2565153125,3.0185632875,15.2201343125,2.9641155875Q15.1837543125,2.9096679875,15.1374513125,2.8633639875Q15.0911463125,2.8170599875,15.0366973125,2.7806791875Q14.9822503125,2.7442984875,14.9217513125,2.7192389875Q14.8612523125,2.6941794875,14.7970273125,2.6814043875Q14.7328013125,2.6686291875,14.6673183125,2.6686291875L14.6673183125,2.6668293875L11.0659743125,2.6668293875L10.1803198125,1.0180267674999999Q10.1375561125,0.9384148675,10.0751419125,0.8730604475Q10.0127277125,0.8077060175,9.9351673125,0.7613259405Q9.8576050125,0.7149458675,9.7704964125,0.6908876395Q9.6833877125,0.66682940722,9.5930176125,0.66682940722L6.4303179125,0.66682946682Q6.3406696125,0.66682946682,6.2542057125,0.6905115455Q6.1677427125,0.7141936235,6.0906067125,0.7598752605Q6.0134706125,0.8055568975,5.9511423125,0.8699925875Q5.8888140125,0.9344282775,5.8457217125,1.0130400975L4.9391699125,2.6668293875L1.3339843725,2.6668293875L1.3339843725,2.6686291875Q1.2685006825,2.6686291875,1.2042752525,2.6814043875Q1.1400497525,2.6941794875,1.0795507125000001,2.7192389875Q1.0190516725,2.7442984875,0.9646039925000001,2.7806791875Q0.9101563225,2.8170599875,0.8638523625,2.8633639875Q0.8175483925,2.9096679875,0.7811676125,2.9641155875Q0.7447868285,3.0185632875,0.7197273115,3.0790621875Q0.6946677935,3.1395613875,0.6818925625,3.2037868875Q0.6691173315,3.2680124875,0.6691173315,3.3334960875Q0.6691173315,3.3989796875,0.6818925625,3.4632048875Q0.6946677935,3.5274302875,0.7197273115,3.5879292875Q0.7447868285,3.6484284875,0.7811676225,3.7028760875Q0.8175483925,3.7573237875,0.8638523625,3.8036276875Q0.9101563225,3.8499316875,0.9646039925000001,3.8863124875Q1.0190516725,3.9226932875,1.0795507125000001,3.9477529875Q1.1400497525,3.9728123875,1.2042752525,3.9855875875Q1.2685006825,3.9983629875,1.3339843725,3.9983629875L1.3339843725,4.0001628875ZM6.4596882125,2.6668293875L9.5524616125,2.6668293875L9.1943617125,2.0001628875L6.8251324125,2.0001628875L6.4596882125,2.6668293875ZM12.3333333125,4.0001628875L3.6666667125,4.0001628875L3.6666667125,14.0001631875L12.3333333125,14.0001631875L12.3333333125,4.0001628875ZM6.0021253125,6.6665038875Q6.0021248125,6.6010198875,6.0148997125,6.5367941875Q6.0276747125,6.4725684875,6.0527344125,6.4120697875Q6.0777941125,6.3515710875,6.1141753125,6.2971233875Q6.1505561125,6.2426757875,6.1968603125,6.1963715875Q6.2431641125,6.1500672875,6.2976117125,6.1136870875Q6.3520594125,6.0773057875,6.4125585125,6.0522465875Q6.4730573125,6.0271873875,6.5372825125,6.0144118875Q6.6015081125,6.0016369875,6.6669922125,6.0016369875Q6.7324753125,6.0016369875,6.7967005125,6.0144118875Q6.8609257125,6.0271873875,6.9214249125,6.0522465875Q6.9819240125,6.0773057875,7.0363722125,6.1136870875Q7.0908198125,6.1500672875,7.1371240125,6.1963715875Q7.1834278125,6.2426757875,7.2198086125,6.2971229875Q7.2561889125,6.3515710875,7.2812486125,6.4120697875Q7.3063078125,6.4725684875,7.3190832125,6.5367941875Q7.3318586125,6.6010198875,7.3318591125,6.6665038875L7.3336587125,6.6665038875L7.3336587125,10.9998381875L7.3318591125,10.9998381875Q7.3318586125,11.0653211875,7.3190832125,11.1295461875Q7.3063078125,11.1937711875,7.2812481125,11.2542701875Q7.2561884125,11.3147701875,7.2198081125,11.3692171875Q7.1834278125,11.4236641875,7.1371240125,11.4699691875Q7.0908198125,11.5162721875,7.0363717125,11.5526531875Q6.9819240125,11.5890341875,6.9214249125,11.6140941875Q6.8609257125,11.6391521875,6.7967005125,11.6519291875Q6.7324753125,11.6647031875,6.6669922125,11.6647041875Q6.6015081125,11.6647031875,6.5372825125,11.6519291875Q6.4730568125,11.6391521875,6.4125576125,11.6140941875Q6.3520584125,11.5890341875,6.2976112125,11.5526531875Q6.2431641125,11.5162721875,6.1968603125,11.4699691875Q6.1505561125,11.4236641875,6.1141748125,11.3692171875Q6.0777941125,11.3147701875,6.0527348125,11.2542701875Q6.0276751125,11.1937711875,6.0149002125,11.1295461875Q6.0021248125,11.0653211875,6.0021253125,10.9998381875L6.0003257125,10.9998381875L6.0003257125,6.6665038875L6.0021253125,6.6665038875ZM8.6691170125,6.6665038875Q8.6691170125,6.6010198875,8.6818924125,6.5367941875Q8.6946678125,6.4725684875,8.7197265125,6.4120697875Q8.7447863125,6.3515710875,8.7811670125,6.2971233875Q8.8175478125,6.2426757875,8.8638515125,6.1963715875Q8.9101553125,6.1500672875,8.9646025125,6.1136870875Q9.0190506125,6.0773057875,9.0795498125,6.0522465875Q9.1400490125,6.0271873875,9.2042751125,6.0144118875Q9.2685003125,6.0016369875,9.3339844125,6.0016369875Q9.3994675125,6.0016369875,9.4636936125,6.0144118875Q9.5279178125,6.0271873875,9.5884170125,6.0522465875Q9.6489162125,6.0773057875,9.7033634125,6.1136870875Q9.7578125125,6.1500672875,9.8041162125,6.1963715875Q9.8504200125,6.2426757875,9.8868008125,6.2971229875Q9.9231815125,6.3515710875,9.9482412125,6.4120697875Q9.9733009125,6.4725684875,9.9860763125,6.5367941875Q9.9988518125,6.6010198875,9.9988518125,6.6665038875L10.0006513125,6.6665038875L10.0006513125,10.9998381875L9.9988518125,10.9998381875Q9.9988518125,11.0653211875,9.9860763125,11.1295461875Q9.9733009125,11.1937711875,9.9482412125,11.2542701875Q9.9231815125,11.3147701875,9.8868008125,11.3692171875Q9.8504200125,11.4236641875,9.8041153125,11.4699691875Q9.7578115125,11.5162721875,9.7033644125,11.5526531875Q9.6489162125,11.5890341875,9.5884170125,11.6140941875Q9.5279178125,11.6391521875,9.4636936125,11.6519291875Q9.3994675125,11.6647031875,9.3339844125,11.6647041875Q9.2685003125,11.6647031875,9.2042742125,11.6519291875Q9.1400490125,11.6391521875,9.0795498125,11.6140941875Q9.0190506125,11.5890341875,8.9646034125,11.5526531875Q8.9101553125,11.5162721875,8.8638515125,11.4699691875Q8.8175478125,11.4236641875,8.7811670125,11.3692171875Q8.7447863125,11.3147701875,8.7197265125,11.2542701875Q8.6946678125,11.1937711875,8.6818924125,11.1295461875Q8.6691170125,11.0653211875,8.6691170125,10.9998381875L8.6673179125,10.9998381875L8.6673179125,6.6665038875L8.6691170125,6.6665038875Z'%20fill-rule='evenodd'%20fill='%23F53F3F'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qr={class:"j-tw-file-upload"},eo={class:"upload-content"},to={class:"upload-text"},no={class:"upload-desc"},ro={key:0,ref:"fileListRef",class:"file-list"},oo={class:"file-name-wrapper"},io={class:"file-name"},lo=["onClick"],ao=["accept","multiple"];function so(e,n,r,o,i,s){const l=t.resolveComponent("JTWTooltip");return t.openBlock(),t.createElementBlock("div",qr,[t.createElementVNode("div",{class:t.normalizeClass(["upload-area",{"upload-area--dragging":e.isDragging,"upload-area--disabled":e.disabled||e.isMaxFiles}]),onDragenter:n[0]||(n[0]=t.withModifiers((...a)=>e.handleDragEnter&&e.handleDragEnter(...a),["prevent"])),onDragover:n[1]||(n[1]=t.withModifiers((...a)=>e.handleDragOver&&e.handleDragOver(...a),["prevent"])),onDragleave:n[2]||(n[2]=t.withModifiers((...a)=>e.handleDragLeave&&e.handleDragLeave(...a),["prevent"])),onDrop:n[3]||(n[3]=t.withModifiers((...a)=>e.handleDrop&&e.handleDrop(...a),["prevent"])),onClick:n[4]||(n[4]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.createElementVNode("div",eo,[t.createElementVNode("div",to,[t.renderSlot(e.$slots,"upload-text",{},()=>[n[6]||(n[6]=t.createElementVNode("p",{class:"upload-title"},[t.createTextVNode("将文件拖到此处,或 "),t.createElementVNode("span",{class:"click"},"点击上传")],-1))])])])],34),t.createElementVNode("div",no,[t.renderSlot(e.$slots,"upload-desc",{},()=>[t.createElementVNode("p",null," 请上传大小不超过"+t.toDisplayString(e.maxSizeText)+",格式为"+t.toDisplayString(e.acceptText)+t.toDisplayString(e.maxFilesText)+"。 ",1)])]),e.fileList.length?(t.openBlock(),t.createElementBlock("div",ro,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(a,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"file-item"},[n[7]||(n[7]=t.createElementVNode("img",{src:Xr,alt:"file",class:"file-icon"},null,-1)),t.createElementVNode("div",oo,[t.createVNode(l,{content:a.name,disabled:!e.isFileNameTruncated(a.name),placement:"top","popper-style":{maxWidth:"400px"}},{default:t.withCtx(()=>[t.createElementVNode("span",io,t.toDisplayString(a.name),1)]),_:2},1032,["content","disabled"])]),t.createElementVNode("img",{src:Kr,alt:"delete",class:"delete-icon",onClick:w=>e.handleRemove(c)},null,8,lo)]))),128))],512)):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"fileInputRef",type:"file",accept:e.accept,multiple:e.multiple,style:{display:"none"},onChange:n[5]||(n[5]=(...a)=>e.handleFileChange&&e.handleFileChange(...a))},null,40,ao)])}const co=ce(Jr,[["render",so]]);var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Je={exports:{}},uo=Je.exports,Ht;function fo(){return Ht||(Ht=1,(function(e){(function(n,r){e.exports?e.exports=r():n.coordtransform=r()})(uo,function(){var n=52.35987755982988,r=3.141592653589793,o=6378245,i=.006693421622965943,s=function(u,y){var u=+u,y=+y,d=u-.0065,k=y-.006,_=Math.sqrt(d*d+k*k)-2e-5*Math.sin(k*n),A=Math.atan2(k,d)-3e-6*Math.cos(d*n),M=_*Math.cos(A),T=_*Math.sin(A);return[M,T]},l=function(y,u){var u=+u,y=+y,d=Math.sqrt(y*y+u*u)+2e-5*Math.sin(u*n),k=Math.atan2(u,y)+3e-6*Math.cos(y*n),_=d*Math.cos(k)+.0065,A=d*Math.sin(k)+.006;return[_,A]},a=function(y,u){var u=+u,y=+y;if(h(y,u))return[y,u];var d=w(y-105,u-35),k=g(y-105,u-35),_=u/180*r,A=Math.sin(_);A=1-i*A*A;var M=Math.sqrt(A);d=d*180/(o*(1-i)/(A*M)*r),k=k*180/(o/M*Math.cos(_)*r);var T=u+d,E=y+k;return[E,T]},c=function(y,u){var u=+u,y=+y;if(h(y,u))return[y,u];var d=w(y-105,u-35),k=g(y-105,u-35),_=u/180*r,A=Math.sin(_);A=1-i*A*A;var M=Math.sqrt(A);d=d*180/(o*(1-i)/(A*M)*r),k=k*180/(o/M*Math.cos(_)*r);var T=u+d,E=y+k;return[y*2-E,u*2-T]},w=function(y,u){var u=+u,y=+y,d=-100+2*y+3*u+.2*u*u+.1*y*u+.2*Math.sqrt(Math.abs(y));return d+=(20*Math.sin(6*y*r)+20*Math.sin(2*y*r))*2/3,d+=(20*Math.sin(u*r)+40*Math.sin(u/3*r))*2/3,d+=(160*Math.sin(u/12*r)+320*Math.sin(u*r/30))*2/3,d},g=function(y,u){var u=+u,y=+y,d=300+y+2*u+.1*y*y+.1*y*u+.1*Math.sqrt(Math.abs(y));return d+=(20*Math.sin(6*y*r)+20*Math.sin(2*y*r))*2/3,d+=(20*Math.sin(y*r)+40*Math.sin(y/3*r))*2/3,d+=(150*Math.sin(y/12*r)+300*Math.sin(y/30*r))*2/3,d},h=function(y,u){var u=+u,y=+y;return!(y>73.66&&y<135.05&&u>3.86&&u<53.55)};return{bd09togcj02:s,gcj02tobd09:l,wgs84togcj02:a,gcj02towgs84:c}})})(Je)),Je.exports}var ho=fo();const Q1=Ct(ho);function Ue(e){if(!e||!Array.isArray(e)||e.length<2)return!1;const[n,r]=e;return!isNaN(n)&&!isNaN(r)&&n!==null&&r!==null}function Le(e){return!e||!Array.isArray(e)||e.length===0?[]:e.filter(n=>Ue(n)).map(n=>{if(n.length>=2)try{const[r,o]=Q1.wgs84togcj02(n[0],n[1]);return[r,o]}catch(r){return console.warn("Coordinate transformation failed:",n,r),n}return n})}function ht(e){return Array.isArray(e)&&e.length>0&&Array.isArray(e[0])&&e[0].length>0&&Array.isArray(e[0][0])}function _t(e,n){if(!Number.isFinite(e)||!Number.isFinite(n))return null;try{const[r,o]=Q1.wgs84togcj02(e,n);return[r,o]}catch{return null}}var Xe={exports:{}},po=Xe.exports,Jt;function mo(){return Jt||(Jt=1,(function(e,n){(function(r,o){e.exports=o()})(po,function(){function r(h){var Q=[];return h.AMapUI&&Q.push(o(h.AMapUI)),h.Loca&&Q.push(i(h.Loca)),Promise.all(Q)}function o(h){return new Promise(function(Q,p){var v=[];if(h.plugins)for(var u=0;u<h.plugins.length;u+=1)l.AMapUI.plugins.indexOf(h.plugins[u])==-1&&v.push(h.plugins[u]);if(a.AMapUI===s.failed)p("前次请求 AMapUI 失败");else if(a.AMapUI===s.notload){a.AMapUI=s.loading,l.AMapUI.version=h.version||l.AMapUI.version,u=l.AMapUI.version;var y=document.body||document.head,d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/ui/"+u+"/main.js",d.onerror=function(k){a.AMapUI=s.failed,p("请求 AMapUI 失败")},d.onload=function(){if(a.AMapUI=s.loaded,v.length)window.AMapUI.loadUI(v,function(){for(var k=0,_=v.length;k<_;k++){var A=v[k].split("/").slice(-1)[0];window.AMapUI[A]=arguments[k]}for(Q();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()});else for(Q();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()},y.appendChild(d)}else a.AMapUI===s.loaded?h.version&&h.version!==l.AMapUI.version?p("不允许多个版本 AMapUI 混用"):v.length?window.AMapUI.loadUI(v,function(){for(var k=0,_=v.length;k<_;k++){var A=v[k].split("/").slice(-1)[0];window.AMapUI[A]=arguments[k]}Q()}):Q():h.version&&h.version!==l.AMapUI.version?p("不允许多个版本 AMapUI 混用"):c.AMapUI.push(function(k){k?p(k):v.length?window.AMapUI.loadUI(v,function(){for(var _=0,A=v.length;_<A;_++){var M=v[_].split("/").slice(-1)[0];window.AMapUI[M]=arguments[_]}Q()}):Q()})})}function i(h){return new Promise(function(Q,p){if(a.Loca===s.failed)p("前次请求 Loca 失败");else if(a.Loca===s.notload){a.Loca=s.loading,l.Loca.version=h.version||l.Loca.version;var v=l.Loca.version,u=l.AMap.version.startsWith("2"),y=v.startsWith("2");if(u&&!y||!u&&y)p("JSAPI 与 Loca 版本不对应!!");else{u=l.key,y=document.body||document.head;var d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/loca?v="+v+"&key="+u,d.onerror=function(k){a.Loca=s.failed,p("请求 AMapUI 失败")},d.onload=function(){for(a.Loca=s.loaded,Q();c.Loca.length;)c.Loca.splice(0,1)[0]()},y.appendChild(d)}}else a.Loca===s.loaded?h.version&&h.version!==l.Loca.version?p("不允许多个版本 Loca 混用"):Q():h.version&&h.version!==l.Loca.version?p("不允许多个版本 Loca 混用"):c.Loca.push(function(k){k?p(k):p()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var s;(function(h){h.notload="notload",h.loading="loading",h.loaded="loaded",h.failed="failed"})(s||(s={}));var l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMapUI:[],Loca:[]},w=[],g=function(h){typeof h=="function"&&(a.AMap===s.loaded?h(window.AMap):w.push(h))};return{load:function(h){return new Promise(function(Q,p){if(a.AMap==s.failed)p("");else if(a.AMap==s.notload){var v=h.key,u=h.version,y=h.plugins;v?(window.AMap&&location.host!=="lbs.amap.com"&&p("禁止多种API加载方式混用"),l.key=v,l.AMap.version=u||l.AMap.version,l.AMap.plugins=y||l.AMap.plugins,a.AMap=s.loading,u=document.body||document.head,window.___onAPILoaded=function(k){if(delete window.___onAPILoaded,k)a.AMap=s.failed,p(k);else for(a.AMap=s.loaded,r(h).then(function(){Q(window.AMap)}).catch(p);w.length;)w.splice(0,1)[0]()},y=document.createElement("script"),y.type="text/javascript",y.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+l.AMap.version+"&key="+v+"&plugin="+l.AMap.plugins.join(","),y.onerror=function(k){a.AMap=s.failed,p(k)},u.appendChild(y)):p("请填写key")}else if(a.AMap==s.loaded)if(h.key&&h.key!==l.key)p("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)p("不允许多个版本 JSAPI 混用");else{if(v=[],h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&v.push(h.plugins[u]);v.length?window.AMap.plugin(v,function(){r(h).then(function(){Q(window.AMap)}).catch(p)}):r(h).then(function(){Q(window.AMap)}).catch(p)}else if(h.key&&h.key!==l.key)p("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)p("不允许多个版本 JSAPI 混用");else{var d=[];if(h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&d.push(h.plugins[u]);g(function(){d.length?window.AMap.plugin(d,function(){r(h).then(function(){Q(window.AMap)}).catch(p)}):r(h).then(function(){Q(window.AMap)}).catch(p)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMap:[],AMapUI:[],Loca:[]}}}})})(Xe)),Xe.exports}var go=mo();const wo=Ct(go);let et="",pt="";const yo="2.0";function vo(e){et=e.key,pt=e.securityCode}function Qo(){typeof window<"u"&&pt&&(window._AMapSecurityConfig={securityJsCode:pt})}function ko(){typeof window<"u"&&(window.forceWebGL=!0)}let Re=null,ct=null;const ut=new Set;function bo(e){return e!=null&&e.length?Array.from(new Set(e.filter(Boolean))):[]}async function Mo(){if(!(typeof window.Loca<"u")){if(!ct){const e=`https://webapi.amap.com/loca?v=2.0.0&key=${et}`;ct=new Promise((n,r)=>{const o=document.createElement("script");o.type="text/javascript",o.src=e,o.onload=()=>n(),o.onerror=i=>r(i),document.head.appendChild(o)})}await ct}}async function Co(e={}){const{plugins:n=[],withLoca:r=!1}=e,o=bo(n),i=typeof window<"u"?window:null;if(i!=null&&i.AMap&&!Re&&(console.warn("[AMap Loader] 检测到已存在的 AMap 实例,将复用现有实例"),Re=Promise.resolve(i.AMap)),!Re){if(!et)throw new Error("AMap key 未配置,请在 twcptInit 中设置 amap.key");Qo(),ko(),o.forEach(a=>ut.add(a)),Re=wo.load({key:et,version:yo,plugins:o})}const s=await Re;if(typeof window<"u"){const a=window;a.AMap||(a.AMap=s)}const l=o.filter(a=>!ut.has(a));return l.length&&typeof(s==null?void 0:s.plugin)=="function"&&(await new Promise(a=>{s.plugin(l,()=>a())}),l.forEach(a=>ut.add(a))),r&&await Mo(),s}const _o=[116.407428,39.91923];function Do(e){const{center:n,zoom:r,viewMode:o,mapType:i,isDark:s}=e;let l=null,a=null,c=null;async function w(y){if(!y)return null;try{await Co({plugins:["AMap.DistrictSearch"]})}catch(E){return console.error("AMap 加载失败:",E),null}const d=window.AMap;if(!d)return null;const k=n.value;let _=_o;const A=_t(k[0],k[1]);A&&Ue(A)&&(_=A);const M=o.value,T=M==="3D";return l=new d.Map(y,{zoom:r.value,center:_,mapStyle:s.value?"amap://styles/dark":"amap://styles/whitesmoke",viewMode:M,...T&&{pitch:50,rotateEnable:!0,pitchEnable:!0}}),i.value==="satellite"&&(a=new d.TileLayer.Satellite,l.add(a)),c=new d.InfoWindow({isCustom:!0,offset:new d.Pixel(0,-40),closeWhenClickMap:!0}),l}function g(){l&&(c&&(c.close(),c=null),a&&(l.remove(a),a=null),l.destroy(),l=null)}function h(){return l}function Q(){return c}function p(y){l&&l.setMapStyle(y?"amap://styles/dark":"amap://styles/whitesmoke")}function v(y){l&&typeof l.setViewMode=="function"&&l.setViewMode(y)}function u(y){if(!l)return;const d=window.AMap;y==="satellite"?(a||(a=new d.TileLayer.Satellite),l.add(a)):(a&&(l.remove(a),a=null),l.setMapStyle(s.value?"amap://styles/dark":"amap://styles/whitesmoke"))}return{initMap:w,destroyMap:g,getMap:h,getInfoWindow:Q,setMapStyle:p,setViewMode:v,setMapType:u}}const No=[116.398,39.92],Te={completed:"#00B42A",notCollected:"#E6A23C",defaultHighlight:"#165dff",single:"#00B42A"},Ao="#FF8C00",ve={polyline:40,polylineHighlight:45,polylineBorder:44,track:50,startMarker:60,pointLabel:10};function So(e){const{getMap:n,lineArr:r,mapLineArr:o,trackLineArr:i,highlightLineIndex:s,highlightStrokeColor:l,routeCompletedList:a,startPointIcon:c}=e;let w=null;const g=[];let h=null;function Q(){const v=n();v&&(w&&(v.remove(w),w=null),g.forEach(u=>v.remove(u)),g.length=0,h&&(v.remove(h),h=null))}function p(){const v=n();if(!v)return;Q();const u=r.value||[],y=o.value||[],d=i.value||[],k=s.value,_=l.value||Te.defaultHighlight,A=y.length>0||d.length>0;if(!A&&(!u||u.length===0))return;const M=window.AMap;if(A){const E=ve.polyline;if([y,d].forEach((P,D)=>{if(!P||P.length===0)return;const j=D===0;P.forEach(V=>{const C=Le(V);if(C.length===0)return;const S=new M.Polyline({path:C,strokeColor:j?Te.completed:Te.notCollected,strokeWeight:2,strokeOpacity:.85,strokeStyle:j?"solid":"dashed",lineJoin:"round",lineCap:"round",zIndex:E});g.push(S),v.add(S)})}),k>=0&&Array.isArray(u[k])&&u[k].length>0){const P=Le(u[k]);if(P.length>0){const D=new M.Polyline({path:P,strokeColor:_,strokeWeight:3,strokeOpacity:.95,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});g.push(D),v.add(D)}}if(u[0]&&u[0].length>0){const P=Le(u[0]);P.length>0&&(h=new M.Marker({position:P[0],icon:new M.Icon({image:c,size:new M.Size(70,70),imageSize:new M.Size(70,70)}),offset:new M.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),v.add(h))}g.length>0&&v.setFitView(g)}else if(u&&u.length>0&&ht(u)){const T=a.value||[],E=T.length>0,P=E?Te.notCollected:Te.completed,D=E?3:2,j=3,V=10,C=[];if(u.forEach((S,m)=>{const R=Le(S);if(R.length===0)return;const q=m===k,Y=E&&(T[m]===!0||T[m]===2),le=E&&Y?Te.completed:P;if(E&&q){const G=new M.Polyline({path:R,strokeColor:_,strokeWeight:V,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineBorder}),F=new M.Polyline({path:R,strokeColor:le,strokeWeight:D,strokeOpacity:1,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});g.push(G,F),C.push({polyline:G,isHighlight:!0}),C.push({polyline:F,isHighlight:!0})}else{const G=new M.Polyline({path:R,strokeColor:le,strokeWeight:q?j:D,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:q?ve.polylineHighlight:ve.polyline});g.push(G),C.push({polyline:G,isHighlight:q})}}),C.filter(S=>!S.isHighlight).forEach(S=>v.add(S.polyline)),C.filter(S=>S.isHighlight).forEach(S=>v.add(S.polyline)),u[0]&&u[0].length>0){const S=Le(u[0]);S.length>0&&(h=new M.Marker({position:S[0],icon:new M.Icon({image:c,size:new M.Size(70,70),imageSize:new M.Size(70,70)}),offset:new M.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),v.add(h))}g.length>0&&v.setFitView(g)}else{const T=Le(u);T.length>0&&(w=new M.Polyline({path:T,strokeColor:Te.single,strokeWeight:3,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polyline}),v.add(w),h=new M.Marker({position:T[0],icon:new M.Icon({image:c,size:new M.Size(70,70),imageSize:new M.Size(70,70)}),offset:new M.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),v.add(h),v.setFitView(w)),w&&v.setFitView([w])}}return{drawPolyline:p,clear:Q}}const k1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='48'%20height='96'%20viewBox='0%200%2048%2096'%3e%3cdefs%3e%3cfilter%20id='master_svg0_421_65730'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.25'%20y='-0.1875'%20width='1.5'%20height='1.5'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='master_svg1_421_65786'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.2222222222222222'%20y='-0.12830338404351957'%20width='1.4444444444444444'%20height='1.3421423574493856'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3cg%3e%3cg%3e%3cg%20filter='url(%23master_svg0_421_65730)'%3e%3cellipse%20cx='24'%20cy='70'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,70Q42,70.441875,41.978317,70.883217Q41.956638,71.324562,41.91333,71.764309Q41.870018,72.20405600000001,41.805176,72.641148Q41.740341,73.078239,41.654137,73.511623Q41.567928,73.945007,41.460564,74.373642Q41.353195,74.802277,41.22493,75.225124Q41.096657,75.647972,40.947792,76.064016Q40.798927,76.480061,40.629829,76.8883Q40.460732,77.296539,40.271805,77.695992Q40.082878,78.09544199999999,39.874582000000004,78.485142Q39.666283,78.87484,39.439114000000004,79.253849Q39.211945,79.632858,38.966452000000004,80.000263Q38.720959,80.367668,38.457733000000005,80.722586Q38.19451,81.07750300000001,37.914187999999996,81.419079Q37.633865,81.760653,37.337118000000004,82.08806Q37.040373,82.415466,36.727920999999995,82.727921Q36.415465999999995,83.040373,36.08806,83.337118Q35.760653000000005,83.633865,35.419078999999996,83.914188Q35.077503,84.19451000000001,34.722586,84.457733Q34.367667999999995,84.720959,34.000263000000004,84.966452Q33.632858,85.211945,33.253849,85.439114Q32.87484,85.66628299999999,32.485141999999996,85.874582Q32.095442,86.082878,31.69599,86.271805Q31.296539,86.46073200000001,30.8883,86.629829Q30.480061,86.79892699999999,30.064016,86.94779199999999Q29.647972,87.096657,29.225124,87.22492600000001Q28.802277,87.353195,28.373642,87.460564Q27.945007,87.567928,27.511623,87.65413699999999Q27.078239,87.740341,26.641148,87.80518000000001Q26.204056,87.870018,25.764309,87.91333Q25.324562,87.956638,24.883219,87.978321Q24.441875,88,24,88Q23.558125,88,23.116781,87.978317Q22.675439,87.956638,22.235692,87.91333Q21.795944,87.870018,21.358851,87.805176Q20.921759,87.740341,20.488374999999998,87.65413699999999Q20.05499,87.567928,19.626357,87.460564Q19.197724,87.353195,18.774877,87.22493Q18.352028,87.096657,17.9359827,86.94779199999999Q17.519937499999997,86.79892699999999,17.1116982,86.629829Q16.7034588,86.46073200000001,16.3040075,86.271805Q15.9045577,86.082878,15.5148587,85.874582Q15.1251593,85.66628299999999,14.74615,85.439114Q14.3671408,85.211945,13.9997349,84.966452Q13.632329,84.720959,13.2774119,84.457733Q12.9224939,84.19451000000001,12.580920200000001,83.914188Q12.239346000000001,83.633865,11.9119382,83.337118Q11.5845304,83.040373,11.2720778,82.727921Q10.9596248,82.415466,10.6628797,82.08806Q10.3661346,81.760653,10.0858119,81.419079Q9.805489099999999,81.07750300000001,9.5422643,80.722586Q9.2790396,80.367668,9.0335469,80.000263Q8.78805423,79.632858,8.56088501,79.253849Q8.33371574,78.87484,8.12541722,78.485142Q7.917118691,78.09544199999999,7.72819272,77.69599Q7.53926674,77.296539,7.3701684499999995,76.8883Q7.20107013,76.480061,7.05220687,76.064016Q6.9033437,75.647972,6.775074,75.225124Q6.6468045,74.802277,6.5394375,74.373642Q6.4320707,73.945007,6.3458651,73.511623Q6.2596595,73.078239,6.1948229999999995,72.641148Q6.1299863000000006,72.20405600000001,6.0866749,71.764309Q6.0433636,71.324562,6.0216818,70.883219Q6,70.441875,6,70Q6,69.558125,6.0216818,69.116781Q6.0433636,68.675439,6.0866748,68.235692Q6.1299863000000006,67.795944,6.1948229,67.358851Q6.2596595,66.921759,6.3458651,66.488375Q6.4320707,66.05499,6.5394375,65.626357Q6.6468045,65.197724,6.775074,64.774877Q6.9033437,64.352028,7.05220693,63.9359827Q7.20107019,63.5199375,7.37016851,63.1116982Q7.53926679,62.7034588,7.72819275,62.3040075Q7.917118743,61.9045577,8.12541726,61.5148587Q8.33371574,61.1251593,8.56088495,60.74615Q8.78805423,60.3671408,9.0335469,59.9997349Q9.2790396,59.632329,9.5422645,59.2774119Q9.805489099999999,58.9224939,10.0858119,58.5809202Q10.3661346,58.239346,10.6628797,57.9119382Q10.9596248,57.5845304,11.2720778,57.2720778Q11.5845304,56.9596248,11.9119382,56.6628797Q12.239346000000001,56.3661346,12.580920200000001,56.0858119Q12.9224939,55.8054891,13.2774115,55.5422643Q13.632329,55.2790396,13.9997349,55.0335469Q14.3671408,54.78805423,14.74615,54.56088501Q15.125158800000001,54.33371574,15.5148578,54.12541722Q15.9045568,53.917118691,16.3040066,53.72819272Q16.7034569,53.53926674,17.111697200000002,53.37016845Q17.5199366,53.20107013,17.9359818,53.05220687Q18.352027,52.9033437,18.774876,52.775074000000004Q19.197723,52.6468045,19.626356,52.5394375Q20.054989,52.4320707,20.488374,52.3458651Q20.921759,52.2596595,21.35885,52.194823Q21.795944,52.1299863,22.235692,52.0866749Q22.675439,52.0433636,23.116781,52.0216818Q23.558125,52,24,52Q24.441875,52,24.883217,52.0216818Q25.324562,52.0433636,25.764309,52.0866748Q26.204056,52.1299863,26.641148,52.1948229Q27.078239,52.2596595,27.511623,52.3458651Q27.945007,52.4320707,28.373642,52.5394375Q28.802277,52.6468045,29.225124,52.775074000000004Q29.647972,52.9033437,30.064016,53.05220693Q30.480061,53.20107019,30.8883,53.37016851Q31.296539,53.53926679,31.695992,53.72819275Q32.095442,53.917118743,32.485141999999996,54.12541726Q32.87484,54.33371574,33.253849,54.56088495Q33.632858,54.78805423,34.000263000000004,55.0335469Q34.367667999999995,55.2790396,34.722586,55.5422645Q35.077503,55.8054891,35.419078999999996,56.0858119Q35.760653000000005,56.3661346,36.08806,56.6628797Q36.415465999999995,56.9596248,36.727920999999995,57.2720778Q37.040373,57.5845304,37.337118000000004,57.9119382Q37.633865,58.239346,37.914187999999996,58.5809202Q38.19451,58.9224939,38.457733000000005,59.2774115Q38.720959,59.632329,38.966452000000004,59.9997349Q39.211945,60.3671408,39.439114000000004,60.74615Q39.666283,61.1251588,39.874582000000004,61.5148578Q40.082878,61.9045568,40.271805,62.3040066Q40.460732,62.7034569,40.629829,63.1116972Q40.798927,63.5199366,40.947792,63.9359818Q41.096657,64.35202699999999,41.224926,64.774876Q41.353195,65.197723,41.460564,65.626356Q41.567928,66.054989,41.654137,66.488374Q41.740341,66.921759,41.80518,67.35885Q41.870018,67.795944,41.91333,68.235692Q41.956638,68.675439,41.978321,69.116781Q42,69.558125,42,70ZM40,70Q40,69.60722200000001,39.980726000000004,69.214917Q39.961454,68.822613,39.922956,68.431726Q39.884457,68.04083800000001,39.826824,67.652311Q39.769189999999995,67.263784,39.692561999999995,66.878554Q39.615933999999996,66.493323,39.520496,66.11231599999999Q39.42506,65.73131000000001,39.311043,65.355445Q39.197025,64.979579,39.064701,64.609761Q38.932377,64.239943,38.782067999999995,63.8770638Q38.63176,63.514184,38.463825,63.1591167Q38.295891,62.8040504,38.110737,62.4576511Q37.925583,62.1112518,37.723653999999996,61.7743554Q37.521725,61.4374585,37.303509,61.1108756Q37.085293,60.7842927,36.851316,60.468811Q36.61734,60.1533289,36.368164,59.8497076Q36.118988,59.5460863,35.855215,59.2550569Q35.591442,58.9640274,35.313705,58.6862912Q35.035969,58.408555,34.744942,58.1447821Q34.453911000000005,57.8810084,34.150290999999996,57.6318328Q33.846668,57.3826571,33.531185,57.1486793Q33.215702,56.9147017,32.889117999999996,56.696486Q32.562534,56.4782701,32.225639,56.2763419Q31.888744,56.0744138,31.542347,55.8892597Q31.195946,55.7041054,30.840878,55.5361711Q30.485809,55.3682369,30.122932,55.2179273Q29.760052,55.0676178,29.390236,54.93529487Q29.020416,54.80297196,28.644554,54.68895459Q28.268688,54.57493716,27.88768,54.47949991Q27.506674,54.38406265,27.121443,54.30743548Q26.736212,54.2308083,26.347687,54.17317583Q25.95916,54.11554334,25.568275,54.077044368Q25.177387,54.038545396,24.785082,54.019272698Q24.392776,54,24,54Q23.607222,54,23.214917,54.019272698Q22.822613,54.038545396,22.431725999999998,54.077044368Q22.040838,54.11554334,21.652310999999997,54.17317581Q21.263784,54.2308083,20.878554,54.30743548Q20.493323,54.38406265,20.112316,54.47949988Q19.73131,54.57493716,19.355445,54.68895459Q18.979579,54.80297196,18.609761,54.93529487Q18.239943,55.0676178,17.877063800000002,55.2179273Q17.514184,55.3682369,17.1591167,55.5361711Q16.8040504,55.7041053,16.4576511,55.8892596Q16.111251799999998,56.0744138,15.774355400000001,56.2763419Q15.4374585,56.4782701,15.1108756,56.696486Q14.7842927,56.9147017,14.468810999999999,57.1486793Q14.1533289,57.3826568,13.8497076,57.6318326Q13.546086299999999,57.8810081,13.2550569,58.1447816Q12.964027399999999,58.408555,12.6862912,58.6862912Q12.408555,58.9640274,12.1447821,59.2550569Q11.881008399999999,59.5460863,11.6318328,59.8497076Q11.3826571,60.1533289,11.1486793,60.468811Q10.9147017,60.7842932,10.696486,61.1108761Q10.4782701,61.437459,10.2763419,61.7743554Q10.0744138,62.1112518,9.8892597,62.4576511Q9.7041054,62.8040504,9.5361711,63.1591167Q9.3682369,63.514184,9.2179273,63.8770638Q9.0676178,64.239943,8.93529487,64.60976Q8.80297196,64.979579,8.68895459,65.355445Q8.57493716,65.73131000000001,8.47949991,66.11231599999999Q8.38406265,66.493323,8.30743548,66.878554Q8.2308083,67.263784,8.17317583,67.652311Q8.11554334,68.04083800000001,8.077044368,68.431726Q8.038545396,68.822613,8.019272698,69.214918Q8,69.60722200000001,8,70Q8,70.392776,8.019272698,70.785082Q8.038545396,71.177387,8.077044368,71.568274Q8.11554334,71.95916,8.17317581,72.347685Q8.2308083,72.736212,8.30743548,73.121443Q8.38406265,73.506674,8.47949988,73.88768Q8.57493716,74.268688,8.68895459,74.644554Q8.80297196,75.020416,8.93529487,75.39023399999999Q9.0676178,75.760052,9.2179273,76.12293199999999Q9.3682369,76.485809,9.5361711,76.840878Q9.7041053,77.19594599999999,9.889259599999999,77.542345Q10.0744138,77.888744,10.2763419,78.225639Q10.4782701,78.562534,10.696486,78.889118Q10.9147017,79.215702,11.1486793,79.531185Q11.3826568,79.846668,11.6318326,80.150291Q11.881008099999999,80.453911,12.1447816,80.74494Q12.408555,81.035969,12.6862912,81.313705Q12.964027399999999,81.591442,13.2550569,81.855215Q13.546086299999999,82.118988,13.8497076,82.36816400000001Q14.1533289,82.61734,14.468810999999999,82.851316Q14.7842932,83.08529300000001,15.110876099999999,83.30350899999999Q15.437459,83.521725,15.774355400000001,83.723654Q16.111251799999998,83.925583,16.4576511,84.110739Q16.8040504,84.295891,17.1591167,84.463827Q17.514184,84.63176,17.877063800000002,84.78207Q18.239943,84.93238099999999,18.60976,85.06470300000001Q18.979579,85.197025,19.355445,85.31104500000001Q19.73131,85.42506,20.112316,85.520498Q20.493323,85.615936,20.878554,85.692562Q21.263784,85.76919,21.652310999999997,85.82682199999999Q22.040838,85.884457,22.431725999999998,85.922956Q22.822613,85.961454,23.214918,85.980728Q23.607222,86,24,86Q24.392776,86,24.785082,85.980726Q25.177387,85.961454,25.568274,85.922956Q25.95916,85.884457,26.347685,85.826824Q26.736212,85.76919,27.121443,85.692562Q27.506674,85.615934,27.88768,85.52049600000001Q28.268688,85.42506,28.644554,85.311043Q29.020416,85.197025,29.390234,85.064701Q29.760052,84.932377,30.122932,84.782068Q30.485809,84.63176,30.840878,84.463825Q31.195946,84.295891,31.542345,84.110737Q31.888744,83.925583,32.225639,83.723654Q32.562534,83.521725,32.889117999999996,83.30350899999999Q33.215702,83.08529300000001,33.531185,82.851316Q33.846668,82.61734,34.150290999999996,82.36816400000001Q34.453911000000005,82.118988,34.74494,81.855215Q35.035969,81.591442,35.313705,81.313705Q35.591442,81.035969,35.855215,80.74494200000001Q36.118988,80.453911,36.368164,80.150291Q36.61734,79.846668,36.851316,79.531185Q37.085293,79.215702,37.303509,78.889118Q37.521725,78.562534,37.723653999999996,78.225639Q37.925583,77.888744,38.110738999999995,77.542347Q38.295891,77.19594599999999,38.463826999999995,76.840878Q38.63176,76.485809,38.782070000000004,76.12293199999999Q38.932381,75.760052,39.064703,75.390236Q39.197025,75.020416,39.311045,74.644554Q39.42506,74.268688,39.520498,73.88768Q39.615936000000005,73.506674,39.692561999999995,73.121443Q39.769189999999995,72.736212,39.826822,72.34768700000001Q39.884457,71.95916,39.922956,71.568275Q39.961454,71.177387,39.980728,70.785082Q40,70.392776,40,70Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='16'%20y='62'%20width='16'%20height='16'%20rx='1'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M16,63.0000001L16,64L32,64L32,63.0000001C32,62.44771528,31.552284999999998,62,31,62L17.0000001,62C16.44771528,62,16,62.44771528,16,63.0000001Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='26'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='16'%20y='64'%20width='16'%20height='1'%20rx='0'%20fill='%2300D4FF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M19,64L20.25,65L27.75,65L29,64L19,64Z'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='23.75'%20y='62'%20width='0.5'%20height='16'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%20filter='url(%23master_svg1_421_65786)'%3e%3cpath%20d='M32.232849,38.006882Q32.781176,37.724861,33.308915999999996,37.405979Q33.836655,37.087097,34.341335,36.732849Q34.846019999999996,36.378601,35.325277,35.990648Q35.804535,35.602694,36.256119,35.182852Q36.707706,34.763014,37.129503,34.313255Q37.5513,33.863499000000004,37.94133,33.385929000000004Q38.331364,32.908363,38.687801,32.405226Q39.044235,31.902086,39.365406,31.375734Q39.686577,30.849384,39.970978,30.302292Q40.255379,29.755196,40.501671,29.18992Q40.747971,28.624649,40.955002,28.043846Q41.162037,27.463043,41.328838,26.869432Q41.495644,26.275826,41.621441,25.672194Q41.747231,25.068562,41.831421,24.457733Q41.915615,23.846909,41.957809,23.231754Q42,22.6166,42,22Q42,21.558125,41.978317,21.116783Q41.956635,20.675438,41.913326,20.235691Q41.870014,19.795943,41.805176,19.358851Q41.740341,18.921759,41.654133,18.488374Q41.567924,18.054989,41.46056,17.626356Q41.353195,17.197723,41.224926,16.774877Q41.096657,16.352028,40.947792,15.935983Q40.798927,15.519938,40.629829,15.111698Q40.460728,14.703459,40.271801,14.304008Q40.082878,13.9045582,39.87458,13.5148592Q39.666283,13.1251593,39.43911,12.74615Q39.211945,12.3671408,38.96645,11.9997349Q38.720955,11.632329,38.457729,11.2774119Q38.194508,10.9224944,37.914185,10.580920200000001Q37.633862,10.2393465,37.337116,9.9119387Q37.040371,9.5845308,36.727920999999995,9.2720776Q36.415465999999995,8.9596248,36.08806,8.662879499999999Q35.760653000000005,8.366134599999999,35.419078999999996,8.0858121Q35.077503,7.8054891,34.722586,7.5422642Q34.367667999999995,7.2790394,34.000263000000004,7.0335464000000005Q33.632858,6.788054,33.253849,6.5608847Q32.87484,6.3337154,32.48514,6.1254170000000006Q32.095439999999996,5.9171184,31.69599,5.7281923Q31.296539,5.5392665,30.888298,5.3701682Q30.480059,5.2010698,30.064014,5.0522066Q29.647972,4.90334344,29.225124,4.77507389Q28.802277,4.64680433,28.373642,4.53943741Q27.945007,4.43207049,27.511623,4.34586489Q27.078239,4.25965932,26.641148,4.19482279Q26.204056,4.12998626,25.764309,4.086674914Q25.324562,4.043363571,24.883219,4.021681786Q24.441875,4,24,4Q23.558125,4,23.116783,4.021681786Q22.675438,4.043363571,22.235691,4.086674914Q21.795943,4.12998626,21.358851,4.19482279Q20.921759,4.25965932,20.488374,4.34586489Q20.054989,4.43207049,19.626356,4.53943741Q19.197723,4.64680433,18.774877,4.77507389Q18.352028,4.90334344,17.935983,5.0522068Q17.519938,5.2010698,17.111698,5.3701682Q16.703459000000002,5.5392665,16.304008,5.7281924Q15.9045582,5.9171185,15.5148592,6.125417199999999Q15.1251593,6.3337157,14.74615,6.560885Q14.3671408,6.788054,13.9997349,7.0335467000000005Q13.632329,7.2790394,13.2774119,7.542263999999999Q12.9224944,7.8054888,12.580920200000001,8.0858116Q12.2393465,8.366134200000001,11.9119387,8.662879499999999Q11.5845308,8.9596248,11.2720776,9.2720776Q10.9596248,9.5845308,10.662879499999999,9.9119387Q10.366134599999999,10.2393465,10.0858121,10.580920200000001Q9.805489099999999,10.9224944,9.5422642,11.2774115Q9.2790394,11.632329,9.0335464,11.9997349Q8.788053999999999,12.3671398,8.560884699999999,12.7461491Q8.333715399999999,13.1251583,8.125417,13.5148582Q7.9171184,13.9045563,7.7281923,14.304007Q7.5392665,14.703457,7.3701682,15.111697Q7.2010698,15.519937,7.0522066,15.935982Q6.90334344,16.352028,6.77507389,16.774877Q6.64680433,17.197723,6.53943741,17.626356Q6.43207049,18.054989,6.34586489,18.488374Q6.25965932,18.921759,6.19482279,19.358851Q6.12998626,19.795944,6.086674914,20.235693Q6.043363571,20.67544,6.021681786,21.116783Q6,21.558125,6,22Q6,22.61661,6.042195804,23.231773Q6.084391609,23.846939,6.16858539,24.457773Q6.25277919,25.068609,6.37857616,25.672251Q6.50437319,26.27589,6.67118365,26.869509Q6.8379940999999995,27.463127,7.045036,28.043938Q7.2520778,28.624748,7.4983803,29.190029Q7.7446828,29.75531,8.0290914,30.302412Q8.3134997,30.849514,8.6346805,31.37587Q8.9558616,31.902225,9.312308999999999,32.405369Q9.6687565,32.908512,10.0587993,33.386082Q10.4488425,33.863655,10.8706522,34.313414Q11.2924619,34.763174,11.7440605,35.183014Q12.195659599999999,35.602856,12.6749306,35.990807000000004Q13.154201,36.378761,13.6588964,36.733006Q14.1635923,37.08725,14.6913471,37.406132Q15.219101,37.72501,15.7674398,38.007027L21.316826,49.105801Q22.146006,50.76416,24.000107,50.76416Q25.85421,50.76416,26.68339,49.105801L32.232849,38.006882Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%20transform='matrix(-1,0,0,-1,64,100)'%3e%3cpath%20d='M40.894427300000004,51.7888544L47.276393,64.552786C47.608844,65.217687,47.125348,66,46.381966,66L33.6180344,66C32.87465209,66,32.39115629,65.217687,32.72360682,64.552786L39.105572699999996,51.7888546C39.4740968,51.0518059,40.5259027,51.0518059,40.894427300000004,51.7888544'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M30.9347535,63.658358Q30.1867377,65.154384,31.06608164,66.577192Q31.945424803,68,33.6180344,68L46.381967,68Q48.054579000000004,68,48.93392,66.57719Q49.813261,65.154384,49.065247,63.65836L42.683282,50.89442706Q41.8541021,49.23606777,40,49.23606795Q38.1458969,49.23606819,37.3167186,50.89442742L30.9347535,63.658358ZM47.276393,64.552786L40.894427300000004,51.7888544C40.5259027,51.0518059,39.4740968,51.0518059,39.105572699999996,51.7888546L32.72360682,64.552786C32.39115629,65.217687,32.87465209,66,33.6180344,66L46.381966,66C47.125348,66,47.608844,65.217687,47.276393,64.552786Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cellipse%20cx='24'%20cy='22'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,22Q42,22.441875,41.978317,22.883217Q41.956638,23.324562,41.91333,23.764309Q41.870018,24.204056,41.805176,24.641148Q41.740341,25.078239,41.654137,25.511623Q41.567928,25.945007,41.460564,26.373642Q41.353195,26.802277,41.22493,27.225124Q41.096657,27.647972,40.947792,28.064016Q40.798927,28.480061,40.629829,28.8883Q40.460732,29.296539,40.271805,29.695992Q40.082878,30.095442,39.874582000000004,30.485142Q39.666283,30.87484,39.439114000000004,31.253849Q39.211945,31.632858,38.966452000000004,32.000263000000004Q38.720959,32.367667999999995,38.457733000000005,32.722586Q38.19451,33.077503,37.914187999999996,33.419078999999996Q37.633865,33.760653000000005,37.337118000000004,34.08806Q37.040373,34.415465999999995,36.727920999999995,34.727920999999995Q36.415465999999995,35.040373,36.08806,35.337118000000004Q35.760653000000005,35.633865,35.419078999999996,35.914187999999996Q35.077503,36.19451,34.722586,36.457733000000005Q34.367667999999995,36.720959,34.000263000000004,36.966452000000004Q33.632858,37.211945,33.253849,37.439114000000004Q32.87484,37.666283,32.485141999999996,37.874582000000004Q32.095442,38.082878,31.69599,38.271805Q31.296539,38.460732,30.8883,38.629829Q30.480061,38.798927,30.064016,38.947792Q29.647972,39.096657,29.225124,39.224926Q28.802277,39.353195,28.373642,39.460564Q27.945007,39.567928,27.511623,39.654137Q27.078239,39.740341,26.641148,39.80518Q26.204056,39.870018,25.764309,39.91333Q25.324562,39.956638,24.883219,39.978321Q24.441875,40,24,40Q23.558125,40,23.116781,39.978317Q22.675439,39.956638,22.235692,39.91333Q21.795944,39.870018,21.358851,39.805176Q20.921759,39.740341,20.488374999999998,39.654137Q20.05499,39.567928,19.626357,39.460564Q19.197724,39.353195,18.774877,39.22493Q18.352028,39.096657,17.9359827,38.947792Q17.519937499999997,38.798927,17.1116982,38.629829Q16.7034588,38.460732,16.3040075,38.271805Q15.9045577,38.082878,15.5148587,37.874582000000004Q15.1251593,37.666283,14.74615,37.439114000000004Q14.3671408,37.211945,13.9997349,36.966452000000004Q13.632329,36.720959,13.2774119,36.457733000000005Q12.9224939,36.19451,12.580920200000001,35.914187999999996Q12.239346000000001,35.633865,11.9119382,35.337118000000004Q11.5845304,35.040373,11.2720778,34.727920999999995Q10.9596248,34.415465999999995,10.6628797,34.08806Q10.3661346,33.760653000000005,10.0858119,33.419078999999996Q9.805489099999999,33.077503,9.5422643,32.722586Q9.2790396,32.367667999999995,9.0335469,32.000263000000004Q8.78805423,31.632858,8.56088501,31.253849Q8.33371574,30.87484,8.12541722,30.485142Q7.917118691,30.095442,7.72819272,29.69599Q7.53926674,29.296539,7.3701684499999995,28.8883Q7.20107013,28.480061,7.05220687,28.064016Q6.9033437,27.647972,6.775074,27.225124Q6.6468045,26.802277,6.5394375,26.373642Q6.4320707,25.945007,6.3458651,25.511623Q6.2596595,25.078239,6.1948229999999995,24.641148Q6.1299863000000006,24.204056,6.0866749,23.764309Q6.0433636,23.324562,6.0216818,22.883219Q6,22.441875,6,22Q6,21.558125,6.0216818,21.116781Q6.0433636,20.675439,6.0866748,20.235692Q6.1299863000000006,19.795944,6.1948229,19.358851Q6.2596595,18.921759,6.3458651,18.488374999999998Q6.4320707,18.05499,6.5394375,17.626357Q6.6468045,17.197724,6.775074,16.774877Q6.9033437,16.352028,7.05220693,15.9359827Q7.20107019,15.5199375,7.37016851,15.1116982Q7.53926679,14.7034588,7.72819275,14.3040075Q7.917118743,13.9045577,8.12541726,13.5148587Q8.33371574,13.1251593,8.56088495,12.74615Q8.78805423,12.3671408,9.0335469,11.9997349Q9.2790396,11.632329,9.5422645,11.2774119Q9.805489099999999,10.9224939,10.0858119,10.580920200000001Q10.3661346,10.239346000000001,10.6628797,9.9119382Q10.9596248,9.5845304,11.2720778,9.2720778Q11.5845304,8.9596248,11.9119382,8.6628797Q12.239346000000001,8.3661346,12.580920200000001,8.0858119Q12.9224939,7.8054891,13.2774115,7.5422643Q13.632329,7.2790396,13.9997349,7.0335469Q14.3671408,6.78805423,14.74615,6.56088501Q15.125158800000001,6.33371574,15.5148578,6.12541722Q15.9045568,5.917118691,16.3040066,5.72819272Q16.7034569,5.53926674,17.111697200000002,5.3701684499999995Q17.5199366,5.20107013,17.9359818,5.05220687Q18.352027,4.9033437,18.774876,4.775074Q19.197723,4.6468045,19.626356,4.5394375Q20.054989,4.4320707,20.488374,4.3458651Q20.921759,4.2596595,21.35885,4.1948229999999995Q21.795944,4.1299863000000006,22.235692,4.0866749Q22.675439,4.0433636,23.116781,4.0216818Q23.558125,4,24,4Q24.441875,4,24.883217,4.0216818Q25.324562,4.0433636,25.764309,4.0866748Q26.204056,4.1299863000000006,26.641148,4.1948229Q27.078239,4.2596595,27.511623,4.3458651Q27.945007,4.4320707,28.373642,4.5394375Q28.802277,4.6468045,29.225124,4.775074Q29.647972,4.9033437,30.064016,5.05220693Q30.480061,5.20107019,30.8883,5.37016851Q31.296539,5.53926679,31.695992,5.72819275Q32.095442,5.917118743,32.485141999999996,6.12541726Q32.87484,6.33371574,33.253849,6.56088495Q33.632858,6.78805423,34.000263000000004,7.0335469Q34.367667999999995,7.2790396,34.722586,7.5422645Q35.077503,7.8054891,35.419078999999996,8.0858119Q35.760653000000005,8.3661346,36.08806,8.6628797Q36.415465999999995,8.9596248,36.727920999999995,9.2720778Q37.040373,9.5845304,37.337118000000004,9.9119382Q37.633865,10.239346000000001,37.914187999999996,10.580920200000001Q38.19451,10.9224939,38.457733000000005,11.2774115Q38.720959,11.632329,38.966452000000004,11.9997349Q39.211945,12.3671408,39.439114000000004,12.74615Q39.666283,13.125158800000001,39.874582000000004,13.5148578Q40.082878,13.9045568,40.271805,14.3040066Q40.460732,14.7034569,40.629829,15.1116972Q40.798927,15.5199366,40.947792,15.9359818Q41.096657,16.352027,41.224926,16.774876Q41.353195,17.197723,41.460564,17.626356Q41.567928,18.054989,41.654137,18.488374Q41.740341,18.921759,41.80518,19.35885Q41.870018,19.795944,41.91333,20.235692Q41.956638,20.675439,41.978321,21.116781Q42,21.558125,42,22ZM40,22Q40,21.607222,39.980726000000004,21.214917Q39.961454,20.822613,39.922956,20.431725999999998Q39.884457,20.040838,39.826824,19.652310999999997Q39.769189999999995,19.263784,39.692561999999995,18.878554Q39.615933999999996,18.493323,39.520496,18.112316Q39.42506,17.73131,39.311043,17.355445Q39.197025,16.979579,39.064701,16.609761Q38.932377,16.239943,38.782067999999995,15.8770638Q38.63176,15.514184,38.463825,15.1591167Q38.295891,14.8040504,38.110737,14.4576511Q37.925583,14.1112518,37.723653999999996,13.774355400000001Q37.521725,13.4374585,37.303509,13.1108756Q37.085293,12.7842927,36.851316,12.468810999999999Q36.61734,12.1533289,36.368164,11.8497076Q36.118988,11.546086299999999,35.855215,11.2550569Q35.591442,10.964027399999999,35.313705,10.6862912Q35.035969,10.408555,34.744942,10.1447821Q34.453911000000005,9.881008399999999,34.150290999999996,9.6318328Q33.846668,9.3826571,33.531185,9.1486793Q33.215702,8.9147017,32.889117999999996,8.696486Q32.562534,8.4782701,32.225639,8.2763419Q31.888744,8.0744138,31.542347,7.8892597Q31.195946,7.7041053999999995,30.840878,7.5361711Q30.485809,7.3682369,30.122932,7.2179272999999995Q29.760052,7.0676178,29.390236,6.93529487Q29.020416,6.80297196,28.644554,6.68895459Q28.268688,6.57493716,27.88768,6.47949991Q27.506674,6.38406265,27.121443,6.30743548Q26.736212,6.2308083,26.347687,6.17317583Q25.95916,6.11554334,25.568275,6.077044368Q25.177387,6.038545396,24.785082,6.019272698Q24.392776,6,24,6Q23.607222,6,23.214917,6.019272698Q22.822613,6.038545396,22.431725999999998,6.077044368Q22.040838,6.11554334,21.652310999999997,6.17317581Q21.263784,6.2308083,20.878554,6.30743548Q20.493323,6.38406265,20.112316,6.47949988Q19.73131,6.57493716,19.355445,6.68895459Q18.979579,6.80297196,18.609761,6.93529487Q18.239943,7.0676178,17.877063800000002,7.2179272999999995Q17.514184,7.3682369,17.1591167,7.5361711Q16.8040504,7.7041053,16.4576511,7.8892596Q16.111251799999998,8.0744138,15.774355400000001,8.2763419Q15.4374585,8.4782701,15.1108756,8.696486Q14.7842927,8.9147017,14.468810999999999,9.1486793Q14.1533289,9.3826568,13.8497076,9.6318326Q13.546086299999999,9.881008099999999,13.2550569,10.1447816Q12.964027399999999,10.408555,12.6862912,10.6862912Q12.408555,10.964027399999999,12.1447821,11.2550569Q11.881008399999999,11.546086299999999,11.6318328,11.8497076Q11.3826571,12.1533289,11.1486793,12.468810999999999Q10.9147017,12.7842932,10.696486,13.110876099999999Q10.4782701,13.437459,10.2763419,13.774355400000001Q10.0744138,14.1112518,9.8892597,14.4576511Q9.7041054,14.8040504,9.5361711,15.1591167Q9.3682369,15.514184,9.2179273,15.8770638Q9.0676178,16.239943,8.93529487,16.60976Q8.80297196,16.979579,8.68895459,17.355445Q8.57493716,17.73131,8.47949991,18.112316Q8.38406265,18.493323,8.30743548,18.878554Q8.2308083,19.263784,8.17317583,19.652310999999997Q8.11554334,20.040838,8.077044368,20.431725999999998Q8.038545396,20.822613,8.019272698,21.214918Q8,21.607222,8,22Q8,22.392776,8.019272698,22.785082Q8.038545396,23.177387,8.077044368,23.568274Q8.11554334,23.95916,8.17317581,24.347685Q8.2308083,24.736212,8.30743548,25.121443Q8.38406265,25.506674,8.47949988,25.88768Q8.57493716,26.268688,8.68895459,26.644554Q8.80297196,27.020416,8.93529487,27.390234Q9.0676178,27.760052,9.2179273,28.122932Q9.3682369,28.485809,9.5361711,28.840878Q9.7041053,29.195946,9.889259599999999,29.542345Q10.0744138,29.888744,10.2763419,30.225639Q10.4782701,30.562534,10.696486,30.889118Q10.9147017,31.215702,11.1486793,31.531185Q11.3826568,31.846668,11.6318326,32.150290999999996Q11.881008099999999,32.453911000000005,12.1447816,32.74494Q12.408555,33.035969,12.6862912,33.313705Q12.964027399999999,33.591442,13.2550569,33.855215Q13.546086299999999,34.118988,13.8497076,34.368164Q14.1533289,34.61734,14.468810999999999,34.851316Q14.7842932,35.085293,15.110876099999999,35.303509Q15.437459,35.521725,15.774355400000001,35.723653999999996Q16.111251799999998,35.925583,16.4576511,36.110738999999995Q16.8040504,36.295891,17.1591167,36.463826999999995Q17.514184,36.63176,17.877063800000002,36.782070000000004Q18.239943,36.932381,18.60976,37.064703Q18.979579,37.197025,19.355445,37.311045Q19.73131,37.42506,20.112316,37.520498Q20.493323,37.615936000000005,20.878554,37.692561999999995Q21.263784,37.769189999999995,21.652310999999997,37.826822Q22.040838,37.884457,22.431725999999998,37.922956Q22.822613,37.961454,23.214918,37.980728Q23.607222,38,24,38Q24.392776,38,24.785082,37.980726000000004Q25.177387,37.961454,25.568274,37.922956Q25.95916,37.884457,26.347685,37.826824Q26.736212,37.769189999999995,27.121443,37.692561999999995Q27.506674,37.615933999999996,27.88768,37.520496Q28.268688,37.42506,28.644554,37.311043Q29.020416,37.197025,29.390234,37.064701Q29.760052,36.932377,30.122932,36.782067999999995Q30.485809,36.63176,30.840878,36.463825Q31.195946,36.295891,31.542345,36.110737Q31.888744,35.925583,32.225639,35.723653999999996Q32.562534,35.521725,32.889117999999996,35.303509Q33.215702,35.085293,33.531185,34.851316Q33.846668,34.61734,34.150290999999996,34.368164Q34.453911000000005,34.118988,34.74494,33.855215Q35.035969,33.591442,35.313705,33.313705Q35.591442,33.035969,35.855215,32.744942Q36.118988,32.453911000000005,36.368164,32.150290999999996Q36.61734,31.846668,36.851316,31.531185Q37.085293,31.215702,37.303509,30.889118Q37.521725,30.562534,37.723653999999996,30.225639Q37.925583,29.888744,38.110738999999995,29.542347Q38.295891,29.195946,38.463826999999995,28.840878Q38.63176,28.485809,38.782070000000004,28.122932Q38.932381,27.760052,39.064703,27.390236Q39.197025,27.020416,39.311045,26.644554Q39.42506,26.268688,39.520498,25.88768Q39.615936000000005,25.506674,39.692561999999995,25.121443Q39.769189999999995,24.736212,39.826822,24.347687Q39.884457,23.95916,39.922956,23.568275Q39.961454,23.177387,39.980728,22.785082Q40,22.392776,40,22Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='14'%20y='12.00048828125'%20width='20'%20height='20'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M26.916738098831175,16.955627096116636Q26.917956098831176,16.97814789611664,26.917956098831176,17.000701796116637Q26.91795509883118,17.082941896116637,26.901911098831178,17.163601796116637Q26.885865098831175,17.244261896116637,26.85439409883118,17.32024179611664Q26.822921098831177,17.39622249611664,26.777231098831177,17.464602796116637Q26.731541098831176,17.53298319611664,26.673389098831176,17.59113589611664Q26.615235098831178,17.64928849611664,26.546855098831177,17.69497809611664Q26.478475098831176,17.74066869611664,26.402495098831174,17.77214039611664Q26.326514098831176,17.803612596116636,26.24585509883118,17.819657196116637Q26.165195098831177,17.83570139611664,26.082956098831175,17.835701796116638Q26.000714098831175,17.83570139611664,25.920055098831178,17.819657196116637Q25.83939409883118,17.80361309611664,25.763414098831177,17.77214089611664Q25.68743309883118,17.74066869611664,25.619053098831177,17.69497809611664Q25.550674098831177,17.64928849611664,25.49252009883118,17.59113589611664Q25.434367098831174,17.53298319611664,25.38867809883118,17.464602796116637Q25.342987098831177,17.39622249611664,25.311515098831176,17.32024179611664Q25.280044098831176,17.244261896116637,25.263999098831178,17.163601796116637Q25.247955098831177,17.082941896116637,25.247955098831177,17.000701796116637Q25.247955098831177,16.97110709611664,25.25005109883118,16.94158689611664Q25.266079098831177,15.838474896116638,25.881616098831177,14.917299896116639Q26.513639098831177,13.971449856116639,27.564559098831175,13.536153736116638Q28.61553309883118,13.100826326116637,29.731208098831175,13.322761953116638Q30.84693909883118,13.544684176116638,31.651273098831176,14.349075396116639Q32.45564209883118,15.153410196116639,32.677570098831175,16.26912839611664Q32.89950109883118,17.384794596116638,32.46419409883117,18.43576039611664Q32.02881209883118,19.486707596116638,31.08303909883118,20.11870179611664Q30.161805098831177,20.73424469611664,29.058736098831176,20.750273096116636Q29.029216098831178,20.75236829611664,28.999622098831175,20.75236829611664Q28.917380098831178,20.75236829611664,28.836721098831177,20.73632369611664Q28.756060098831178,20.720279096116638,28.680080098831176,20.68880689611664Q28.604100098831175,20.65733469611664,28.535720098831177,20.611644596116637Q28.467340098831176,20.56595459611664,28.409187098831175,20.50780189611664Q28.351033098831177,20.44964919611664,28.305343098831177,20.381268896116637Q28.259653098831176,20.31288849611664,28.228182098831176,20.23690829611664Q28.196710098831176,20.16092809611664,28.180666098831175,20.08026829611664Q28.164622098831178,19.99960839611664,28.164622098831178,19.91736829611664Q28.164622098831178,19.835127196116638,28.180665098831177,19.75446689611664Q28.196710098831176,19.673806596116638,28.22818109883118,19.597826396116638Q28.259652098831175,19.521846196116638,28.305343098831177,19.453466796116636Q28.351033098831177,19.385086396116638,28.409187098831175,19.32693369611664Q28.467339098831175,19.268781096116637,28.535719098831176,19.22309049611664Q28.604099098831178,19.177399996116637,28.680080098831176,19.145928296116637Q28.756060098831178,19.114456496116638,28.836721098831177,19.098412396116636Q28.917380098831178,19.082368296116638,28.999622098831175,19.082368296116638Q29.022178098831176,19.082368296116638,29.044702098831177,19.08358609611664Q29.650397098831178,19.07147629611664,30.157039098831177,18.73295249611664Q30.68251609883118,18.38181199611664,30.924386098831178,17.79797589611664Q31.166225098831177,17.214102396116637,31.04292709883118,16.594275796116637Q30.91963509883118,15.974441696116639,30.472720098831175,15.527544896116638Q30.025900098831176,15.080692696116639,29.406037098831177,14.957399996116639Q28.786235098831177,14.834105896116638,28.20235409883118,15.075957796116638Q27.618518098831174,15.317785096116637,27.267379098831178,15.843278796116639Q26.928846098831176,16.349906096116637,26.916738098831175,16.955627096116636ZM22.751288698831175,17.000701796116637Q22.751288698831175,16.97110829611664,22.749193398831178,16.94158899611664Q22.733165498831177,15.838476096116638,22.117629798831178,14.917300596116638Q21.485606398831177,13.971450746116638,20.434686398831175,13.536153916116639Q19.383711098831178,13.100826506116638,18.268037598831178,13.322761953116638Q17.152344798831177,13.544676006116639,16.347971398831177,14.349057596116639Q15.543596328831176,15.153424296116638,15.321678459831176,16.269134396116637Q15.099746468831176,17.384791696116636,15.535076438831176,18.435770896116637Q15.970370588831177,19.48668469611664,16.916220098831175,20.118708996116638Q17.837403998831178,20.73424519611664,18.94050909883118,20.750273096116636Q18.970028398831175,20.75236829611664,18.999622098831175,20.75236829611664Q19.08186219883118,20.75236829611664,19.162522298831178,20.73632369611664Q19.243182398831177,20.720279096116638,19.319162598831177,20.68880689611664Q19.395142798831177,20.65733469611664,19.463522698831177,20.611644596116637Q19.53190299883118,20.56595459611664,19.590055698831176,20.50780189611664Q19.648208398831176,20.44964919611664,19.693898398831177,20.381268896116637Q19.739588998831177,20.31288849611664,19.771061198831177,20.23690829611664Q19.802533398831176,20.16092809611664,19.818577498831175,20.08026829611664Q19.834621698831178,19.99960839611664,19.834622098831176,19.91736829611664Q19.834621698831178,19.835127196116638,19.818577498831175,19.75446689611664Q19.802533398831176,19.673806596116638,19.771061198831177,19.597826396116638Q19.739588998831177,19.521846196116638,19.693898898831176,19.453466796116636Q19.648208398831176,19.385086396116638,19.590055698831176,19.32693369611664Q19.53190299883118,19.268781096116637,19.463522698831177,19.22309049611664Q19.395142298831175,19.177399996116637,19.31916209883118,19.145928296116637Q19.243182198831178,19.114456496116638,19.162522298831178,19.098412396116636Q19.08186219883118,19.082368296116638,18.999622098831175,19.082368296116638Q18.977065798831177,19.082368296116638,18.954542598831175,19.08358609611664Q18.348829298831177,19.071475896116638,17.842198098831176,18.73294489611664Q17.316706198831177,18.381806696116637,17.074875598831177,17.797965396116638Q16.833026098831176,17.21408929611664,16.956323598831176,16.59426989611664Q17.079610098831175,15.974436896116638,17.526488498831178,15.527562996116638Q17.973357198831177,15.080689896116638,18.593208098831177,14.957399996116639Q19.213009398831176,14.834106096116638,19.796891498831176,15.075957696116639Q20.380727098831176,15.317785596116638,20.731865198831176,15.843278296116639Q21.070396698831175,16.34990419611664,21.08250639883118,16.955622296116637Q21.081288598831176,16.97814549611664,21.081288598831176,17.000701796116637Q21.081288598831176,17.082941896116637,21.097332198831175,17.163601796116637Q21.113376898831177,17.244261896116637,21.144848598831178,17.32024179611664Q21.17632029883118,17.39622249611664,21.222010898831176,17.464602796116637Q21.26770139883118,17.53298319611664,21.325854098831176,17.59113589611664Q21.384006698831175,17.64928849611664,21.452387098831178,17.69497809611664Q21.520767498831177,17.74066869611664,21.596747598831175,17.77214039611664Q21.672727798831176,17.803612596116636,21.753387698831176,17.819657196116637Q21.834047998831178,17.83570139611664,21.916288598831176,17.835701796116638Q21.998528698831176,17.83570139611664,22.079188598831177,17.819657196116637Q22.159848498831177,17.80361309611664,22.235828598831176,17.77214089611664Q22.311808798831176,17.74066869611664,22.380189198831175,17.69497809611664Q22.448569498831176,17.64928849611664,22.506722698831176,17.59113589611664Q22.564874898831178,17.53298319611664,22.61056489883118,17.464602796116637Q22.656254998831177,17.39622249611664,22.687727198831176,17.32024179611664Q22.719199398831176,17.244261896116637,22.735243998831177,17.163601796116637Q22.751288698831175,17.082941896116637,22.751288698831175,17.000701796116637ZM18.44797869883118,17.62708129611664Q18.313028298831178,17.50819289611664,18.238987898831176,17.344290596116636Q18.164947698831178,17.18038859611664,18.164947698831178,17.000539196116637Q18.164947498831175,16.91829859611664,18.180991898831177,16.837638296116637Q18.197035798831177,16.756978396116637,18.228507798831178,16.68099819611664Q18.259979998831177,16.605017996116636,18.305670298831178,16.53663769611664Q18.351360598831178,16.46825729611664,18.409513498831178,16.41010489611664Q18.46766589883118,16.35195199611664,18.536046298831177,16.306261896116638Q18.604426598831175,16.26057139611664,18.68040679883118,16.229099396116638Q18.756386998831175,16.197627396116637,18.837047098831178,16.18158329611664Q18.917707198831177,16.16553909611664,18.999947798831176,16.16553909611664Q19.179797198831178,16.16553909611664,19.343699198831175,16.239579296116638Q19.50760149883118,16.31361969611664,19.626489898831178,16.44857009611664L22.261629298831178,19.083709596116638L25.738267098831177,19.083709596116638L28.373404098831177,16.44857249611664Q28.49229209883118,16.313621396116638,28.656196098831177,16.23958029611664Q28.820098098831174,16.16553909611664,28.999948098831176,16.16553909611664Q29.082187098831177,16.16553909611664,29.16284709883118,16.18158329611664Q29.243507098831177,16.197627396116637,29.319487098831175,16.229099396116638Q29.395467098831176,16.26057139611664,29.463847098831177,16.306261896116638Q29.532228098831176,16.35195199611664,29.590381098831177,16.41010489611664Q29.648532098831176,16.46825729611664,29.694223098831177,16.53663769611664Q29.739913098831178,16.605017996116636,29.771385098831175,16.68099819611664Q29.802858098831177,16.756978396116637,29.818902098831177,16.83763849611664Q29.83494709883118,16.91829859611664,29.834948098831177,17.000539196116637Q29.834949098831174,17.18038979611664,29.760907098831176,17.344292496116637Q29.686866098831175,17.50819529611664,29.551914098831176,17.627083196116637L26.916940098831176,20.26205809611664L26.916940098831176,23.73901949611664L29.551911098831177,26.37399249611664Q29.686864098831176,26.49288049611664,29.760906098831178,26.656784496116636Q29.834948098831177,26.82068749611664,29.834948098831177,27.000539496116637Q29.83494709883118,27.08277849611664,29.818902098831177,27.16343849611664Q29.802858098831177,27.24409849611664,29.771385098831175,27.320078496116636Q29.739913098831178,27.396058496116638,29.694223098831177,27.46443849611664Q29.648532098831176,27.532819496116637,29.590381098831177,27.59097249611664Q29.532228098831176,27.649123496116637,29.463847098831177,27.69481449611664Q29.395467098831176,27.74050449611664,29.319486098831177,27.771976496116636Q29.243507098831177,27.803449496116638,29.16284709883118,27.81949349611664Q29.082187098831177,27.83553849611664,28.999948098831176,27.83553949611664Q28.82009609883118,27.83553949611664,28.656192098831177,27.76149649611664Q28.49228909883118,27.687455496116637,28.373401098831177,27.552502496116638L25.737940098831174,24.91704349611664L22.26195499883118,24.91704349611664L19.626491798831175,27.552505496116638Q19.507603898831178,27.687457496116636,19.343701098831175,27.761498496116637Q19.179798398831178,27.83553949611664,18.999947798831176,27.83553949611664Q18.917707198831177,27.83553849611664,18.837046898831176,27.81949349611664Q18.756386998831175,27.803449496116638,18.68040679883118,27.771976496116636Q18.604426598831175,27.74050449611664,18.536046298831177,27.69481449611664Q18.46766589883118,27.649123496116637,18.409513498831178,27.59097249611664Q18.351360598831178,27.532819496116637,18.305670298831178,27.46443849611664Q18.259979998831177,27.396058496116638,18.228507998831176,27.32007749611664Q18.197035998831176,27.24409849611664,18.180991898831177,27.16343849611664Q18.164947498831175,27.08277849611664,18.164947698831178,27.000539496116637Q18.164947698831178,26.820689496116636,18.238988898831177,26.656786496116638Q18.313029998831176,26.49288349611664,18.44798109883118,26.37399549611664L21.083606498831177,23.738370496116637L21.083606498831177,20.262708996116636L18.44797869883118,17.62708129611664ZM22.750273498831177,23.250376496116637L22.750273498831177,20.750376596116638L25.250273098831176,20.750376596116638L25.250273098831176,23.250376496116637L22.750273498831177,23.250376496116637ZM19.834622098831176,24.084035496116638Q19.834621698831178,24.16627449611664,19.818577498831175,24.246934496116637Q19.802533398831176,24.327595496116636,19.771061198831177,24.403575496116638Q19.739588998831177,24.479554496116638,19.693898898831176,24.54793449611664Q19.648208398831176,24.616315496116638,19.590055698831176,24.67446849611664Q19.53190299883118,24.73262049611664,19.463522698831177,24.778311496116636Q19.395142298831175,24.82400049611664,19.31916209883118,24.85547249611664Q19.243182198831178,24.88694549611664,19.162522298831178,24.90298949611664Q19.08186219883118,24.919034496116637,18.999622098831175,24.91903549611664Q18.977067498831175,24.91903549611664,18.954545698831176,24.91781749611664Q18.348830198831177,24.92992749611664,17.84219769883118,25.268459496116638Q17.316705498831176,25.61959649611664,17.074875598831177,26.20343749611664Q16.833026098831176,26.787314496116636,16.956323598831176,27.40713449611664Q17.079612698831177,28.02697849611664,17.526498598831175,28.473832496116636Q17.973361298831176,28.920714496116638,18.593206398831178,29.04400849611664Q19.213020998831176,29.16730449611664,19.796844698831176,28.92548649611664Q20.380732298831177,28.68359649611664,20.731852798831177,28.15814549611664Q21.070397098831176,27.65147549611664,21.082505898831176,27.045773496116638Q21.081288598831176,27.02325449611664,21.081288598831176,27.00070149611664Q21.081288598831176,26.918460496116637,21.097332198831175,26.837799496116638Q21.113376898831177,26.75713849611664,21.144848598831178,26.68115949611664Q21.17632029883118,26.60517949611664,21.222010898831176,26.536799496116636Q21.26770139883118,26.46841949611664,21.325854098831176,26.41026749611664Q21.384006698831175,26.352114496116638,21.452387098831178,26.306424496116637Q21.520767498831177,26.260733496116636,21.596747598831175,26.22926149611664Q21.672727798831176,26.197789496116638,21.753387698831176,26.181746496116638Q21.834047998831178,26.165702496116637,21.916288598831176,26.165702496116637Q21.998528698831176,26.165702496116637,22.079188598831177,26.181746496116638Q22.159848498831177,26.197789496116638,22.235828598831176,26.229260496116638Q22.311808798831176,26.26073249611664,22.380189198831175,26.30642249611664Q22.448569498831176,26.352113496116637,22.506722698831176,26.410266496116638Q22.564874898831178,26.468417496116636,22.61056489883118,26.536797496116638Q22.656254998831177,26.605178496116636,22.687727198831176,26.68115949611664Q22.719199398831176,26.75713849611664,22.735243998831177,26.837799496116638Q22.751288698831175,26.918460496116637,22.751288698831175,27.00070149611664Q22.751288698831175,27.030295496116636,22.749193398831178,27.059814496116637Q22.733164998831178,28.162885496116637,22.11763929883118,29.084090496116637Q21.485628798831176,30.029891496116637,20.434732198831178,30.46525149611664Q19.38371299883118,30.900582496116638,18.268037798831177,30.67864749611664Q17.152329898831177,30.45672149611664,16.347961798831175,29.65231849611664Q15.543604488831177,28.84801949611664,15.321678638831177,27.732269496116636Q15.099746468831176,26.616612496116637,15.535076318831177,25.56563249611664Q15.970370228831177,24.514718496116636,16.916220498831176,23.88269449611664Q17.837403498831176,23.267158496116636,18.940508098831177,23.251130496116637Q18.970027898831177,23.24903549611664,18.999622098831175,23.24903549611664Q19.08186219883118,23.24903549611664,19.162522298831178,23.265078496116637Q19.243182398831177,23.28112349611664,19.319162598831177,23.31259449611664Q19.395142798831177,23.34406649611664,19.463522698831177,23.389757496116637Q19.53190299883118,23.435447496116637,19.590055698831176,23.49360049611664Q19.648208398831176,23.55175349611664,19.693898398831177,23.62013249611664Q19.739588998831177,23.688513496116638,19.771061198831177,23.764493496116636Q19.802533398831176,23.840473496116637,19.818577498831175,23.92113349611664Q19.834621698831178,24.001794496116638,19.834622098831176,24.084035496116638ZM29.044698098831176,24.91781749611664Q29.022176098831174,24.91903549611664,28.999622098831175,24.91903549611664Q28.917380098831178,24.919034496116637,28.836721098831177,24.90298949611664Q28.756060098831178,24.88694549611664,28.680080098831176,24.85547249611664Q28.604100098831175,24.82400049611664,28.535720098831177,24.77831049611664Q28.467340098831176,24.73262049611664,28.409187098831175,24.67446849611664Q28.351033098831177,24.616315496116638,28.305343098831177,24.54793449611664Q28.259653098831176,24.479554496116638,28.228182098831176,24.403575496116638Q28.196710098831176,24.327595496116636,28.180666098831175,24.246934496116637Q28.164622098831178,24.16627449611664,28.164622098831178,24.084035496116638Q28.164622098831178,24.001794496116638,28.180665098831177,23.921134496116636Q28.196710098831176,23.840473496116637,28.22818109883118,23.764493496116636Q28.259652098831175,23.688513496116638,28.305343098831177,23.62013249611664Q28.351033098831177,23.55175349611664,28.409187098831175,23.49360049611664Q28.467339098831175,23.435447496116637,28.535719098831176,23.389757496116637Q28.604099098831178,23.34406649611664,28.680080098831176,23.31259449611664Q28.756060098831178,23.28112349611664,28.836721098831177,23.265079496116638Q28.917380098831178,23.24903549611664,28.999622098831175,23.24903549611664Q29.029216098831178,23.24903549611664,29.058737098831177,23.251130496116637Q30.16180609883118,23.26715949611664,31.083038098831175,23.882702496116636Q32.02881209883118,24.51469649611664,32.46419409883117,25.56564349611664Q32.89950109883118,26.616612496116637,32.677570098831175,27.73227649611664Q32.455632098831174,28.84803349611664,31.651282098831178,29.652299496116637Q30.846954098831176,30.456712496116637,29.731206098831176,30.67864749611664Q28.615532098831174,30.900582496116638,27.564513098831178,30.46525149611664Q26.513617098831176,30.029891496116637,25.881604098831176,29.084090496116637Q25.266079098831177,28.162885496116637,25.25005109883118,27.059817496116636Q25.247955098831177,27.030296496116637,25.247955098831177,27.00070149611664Q25.247955098831177,26.918460496116637,25.263999098831178,26.837799496116638Q25.280044098831176,26.75713849611664,25.311515098831176,26.68115949611664Q25.342987098831177,26.60517949611664,25.38867809883118,26.536799496116636Q25.434367098831174,26.46841949611664,25.49252009883118,26.41026749611664Q25.550674098831177,26.352114496116638,25.619054098831178,26.306424496116637Q25.68743309883118,26.260733496116636,25.763414098831177,26.22926149611664Q25.83939409883118,26.197789496116638,25.920055098831178,26.181746496116638Q26.000714098831175,26.165702496116637,26.082956098831175,26.165702496116637Q26.165195098831177,26.165702496116637,26.24585509883118,26.181746496116638Q26.326514098831176,26.197789496116638,26.402495098831174,26.229260496116638Q26.478475098831176,26.26073249611664,26.546855098831177,26.30642249611664Q26.615235098831178,26.352113496116637,26.673389098831176,26.410266496116638Q26.731541098831176,26.468417496116636,26.777230098831176,26.536797496116638Q26.822921098831177,26.605178496116636,26.854393098831174,26.68115949611664Q26.885865098831175,26.75713849611664,26.901911098831178,26.837799496116638Q26.91795509883118,26.918460496116637,26.917956098831176,27.00070149611664Q26.917956098831176,27.02325549611664,26.916738098831175,27.04577549611664Q26.928847098831177,27.651476496116636,27.26739009883118,28.15814549611664Q27.618512098831175,28.68359649611664,28.202399098831176,28.925485496116636Q28.78622309883118,29.16730449611664,29.406037098831177,29.04400849611664Q30.025895098831178,28.920712496116636,30.472711098831176,28.47384949611664Q30.919633098831177,28.026975496116638,31.042926098831177,27.407127496116637Q31.166225098831177,26.787302496116638,30.924386098831178,26.203426496116638Q30.68251609883118,25.61959249611664,30.157039098831177,25.268452496116637Q29.650396098831177,24.92992749611664,29.044698098831176,24.91781749611664Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function Xt(e,n){return`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),fe=require("element-plus"),d1=require("./resolver.cjs"),ue={LARGE:"large",NORMAL:"normal",SMALL:"small"},ge={BUTTON:"button",TEXT:"text"},Yt={PRIMARY:"primary",GREEN:"green",ORANGE:"orange",RED:"red",CYAN:"cyan",BROWN:"brown",YELLOW:"yellow",BLUE:"blue",PURPLE:"purple",LIME:"lime",MAGENTA:"magenta",PINK:"pink"},mn=t.defineComponent({name:"JTWBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},color:{type:String,default:"primary",validator:e=>Object.values(Yt).includes(e)},textColor:{type:String,default:void 0,validator:e=>!e||Object.values(Yt).includes(e)},outline:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0}},emits:{click:e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.computed(()=>e.tips!=null?String(e.tips):""),s=t.computed(()=>({"j-tw-btn":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline&&!e.flat,"j-tw-btn--outline":e.outline&&!e.flat,"j-tw-btn--flat":e.flat,"j-tw-btn--text":e.type===ge.TEXT&&!e.flat})),l=t.computed(()=>{const p=e.color||"primary",Q={"--j-btn-color":`var(--j-color-${p})`,"--j-btn-color-1":`var(--j-color-${p}-1)`,"--j-btn-color-2":`var(--j-color-${p}-2)`,"--j-btn-color-3":`var(--j-color-${p}-3)`,"--j-btn-color-4":`var(--j-color-${p}-4)`,"--j-btn-color-5":`var(--j-color-${p}-5)`,"--j-btn-color-6":`var(--j-color-${p}-6)`};return e.textColor&&(Q["--j-btn-text-color"]=`var(--j-color-${e.textColor})`),Q}),a={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},c=t.computed(()=>({...a,...e.tooltipConfig})),y=p=>{n("click",p)};return r({get $el(){var p;return(p=o.value)==null?void 0:p.$el},click:()=>{var p,Q;(Q=(p=o.value)==null?void 0:p.$el)==null||Q.click()}}),{elBtnRef:o,tooltipContent:i,computedClass:s,computedStyle:l,mergedTooltipConfig:c,handleClick:y}}}),se=(e,n)=>{const r=e.__vccOpts||e;for(const[o,i]of n)r[o]=i;return r};function gn(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"elBtnRef",class:e.computedClass,style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleClick}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[0]||(n[0]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",viewBox:"0 0 16 16",class:"j-tw-btn__loading-icon"},[t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"master_svg0_37_06013"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0"})])]),t.createElementVNode("g",{"clip-path":"url(#master_svg0_37_06013)"},[t.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0",fill:"transparent",style:{"mix-blend-mode":"passthrough"}}),t.createElementVNode("path",{d:"M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z","fill-rule":"evenodd",fill:"currentColor"})])],-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"])}const ze=se(mn,[["render",gn]]),wn=t.defineComponent({name:"JTWDropdownBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},options:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:void 0}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),y=t.computed(()=>e.tips!=null?String(e.tips):""),g=t.computed(()=>{if(e.modelValue!=null){const M=e.options.find(L=>L.value===e.modelValue);if(M)return M.label}return e.label}),p=t.computed(()=>({"j-tw-dropdown-btn":!0,"j-tw-dropdown-btn--large":e.size===ue.LARGE,"j-tw-dropdown-btn--normal":e.size===ue.NORMAL,"j-tw-dropdown-btn--small":e.size===ue.SMALL})),Q=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__main":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),h=t.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__trigger":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),v=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-dropdown-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),u={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},w=t.computed(()=>({...u,...e.tooltipConfig})),d=()=>{if(!o.value||!l.value)return;const M=o.value.getBoundingClientRect(),L=l.value.getBoundingClientRect(),C=window.innerHeight-M.bottom,x=M.top;let m=M.bottom+4;L.height>50&&C<L.height+20&&x>L.height+20&&(m=M.top-L.height-4),c.value={top:`${m}px`,left:`${M.left}px`}},k=()=>{a.value=!0,t.nextTick(()=>{t.nextTick(()=>{d()})})},N=()=>{a.value=!1},D=()=>{a.value?N():k()},b=M=>{n("click",M),D()},T=M=>{M.disabled||(n("update:modelValue",M.value),n("select",M),N())},I=M=>{if(!o.value||!l.value)return;const L=M.target;!o.value.contains(L)&&!l.value.contains(L)&&N()};return t.watch(a,M=>{M?(document.addEventListener("click",I),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0)):(document.removeEventListener("click",I),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",I),window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}),r({get $el(){return o.value},click:()=>{var M,L;(L=(M=i.value)==null?void 0:M.$el)==null||L.click()},openDropdown:k,closeDropdown:N}),{dropdownRef:o,mainBtnRef:i,dropdownBtnRef:s,dropdownMenuRef:l,dropdownVisible:a,dropdownMenuStyle:c,tooltipContent:y,displayLabel:g,dropdownClass:p,mainBtnClass:Q,dropdownBtnClass:h,computedStyle:v,mergedTooltipConfig:w,handleMainClick:b,toggleDropdown:D,handleOptionClick:T}}}),f1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",h1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-dropdown-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",yn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096497'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096497)'%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.409602997126058,4.475219065789133)'%3e%3cpath%20d='M1.947415595,8.767578125Q1.947415595,8.693724342,1.961823825,8.621289645Q1.976231935,8.548854945,2.004494545,8.480622945Q2.032757165,8.412390945,2.073788165,8.350983795Q2.114819105,8.289576615,2.167041595,8.237354095Q2.219264115,8.185131605,2.280671295,8.144100665Q2.342078445,8.103069665,2.410310445,8.074807045Q2.478542445,8.046544435,2.550977145,8.032136325Q2.623411842,8.017728095,2.697265625,8.017728095Q2.771119408,8.017728095,2.843554105,8.032136325Q2.915988805,8.046544435,2.984220805,8.074807045Q3.052452805,8.103069665,3.113859955,8.144100665Q3.175267135,8.185131605,3.227489655,8.237354095Q3.279712145,8.289576615,3.320743085,8.350983795Q3.361774085,8.412390945,3.390036705,8.480622945Q3.418299315,8.548854945,3.4327074250000003,8.621289645Q3.447115655,8.693724342,3.447115655,8.767578125L3.447265625,8.767578125L3.447265625,13.017578125L12.697265625,13.017578125L12.697265625,13.017727825Q12.771118625,13.017727825,12.843553625,13.032135925Q12.915987625,13.046544125,12.984220625,13.074806725Q13.052451625,13.103069325,13.113859625,13.144100224999999Q13.175266625,13.185131025,13.227489625,13.237353825Q13.279710625,13.289576525000001,13.320741625,13.350983625Q13.361772625,13.412390725,13.390035625,13.480622324999999Q13.418298625,13.548854825,13.432706625,13.621289225Q13.447114625,13.693724625,13.447115625,13.767578125Q13.447114625,13.841431625,13.432706625,13.913866025Q13.418298625,13.986300425,13.390035625,14.054533025Q13.361772625,14.122764625,13.320741625,14.184171724999999Q13.279710625,14.245578725,13.227489625,14.297801925Q13.175266625,14.350024225,13.113859625,14.391055125000001Q13.052451625,14.432086025,12.984220625,14.460349125Q12.915987625,14.488611725,12.843553625,14.503020325Q12.771118625,14.517428425,12.697265625,14.517428425L12.697265625,14.517578125L2.697265625,14.517578125Q2.623397082,14.517578125,2.550947905,14.503167125000001Q2.478498745,14.488756225,2.410253105,14.460487825000001Q2.342007455,14.432219525,2.280588005,14.391180025Q2.219168545,14.350140525,2.166935565,14.297907825Q2.114702645,14.245674625,2.073663475,14.184255125Q2.032624305,14.122835625,2.004356025,14.054590225Q1.976087745,13.986344325000001,1.9616767149999998,13.913895625Q1.947265625,13.841446925,1.947265625,13.767578125L1.947265625,8.767578125L1.947415595,8.767578125Z'%20fill-rule='evenodd'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",vn={class:"j-tw-dropdown-btn__label"},Qn=["onClick"],kn={class:"j-tw-dropdown-btn__option-label"},bn={key:0,src:yn,class:"j-tw-dropdown-btn__selected-icon",alt:"Selected"};function Mn(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip");return t.openBlock(),t.createElementBlock("div",{ref:"dropdownRef",class:t.normalizeClass(e.dropdownClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-dropdown-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",vn,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),t.createElementVNode("img",{src:h1,class:t.normalizeClass(["j-tw-dropdown-btn__arrow",{"j-tw-dropdown-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[1]||(n[1]=t.createElementVNode("img",{src:f1,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-dropdown-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-dropdown-btn__menu",style:t.normalizeStyle({...e.dropdownMenuStyle,...e.computedStyle}),onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,c=>(t.openBlock(),t.createElementBlock("div",{key:c.value,class:t.normalizeClass(["j-tw-dropdown-btn__option",{"j-tw-dropdown-btn__option--selected":c.value===e.modelValue,"j-tw-dropdown-btn__option--disabled":c.disabled}]),onClick:y=>e.handleOptionClick(c)},[t.createElementVNode("span",kn,t.toDisplayString(c.label),1),c.value===e.modelValue?(t.openBlock(),t.createElementBlock("img",bn)):t.createCommentVNode("",!0)],10,Qn))),128))],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const Cn=se(wn,[["render",Mn]]),_n=t.defineComponent({name:"JTWCheckbox",components:{ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,setup(){return{}}});function Nn(e,n,r,o,i,s){const l=t.resolveComponent("el-checkbox");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elCheckboxRef",class:"j-tw-checkbox"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const _t=se(_n,[["render",Nn]]);/*! Element Plus Icons Vue v2.3.2 */var Dn=t.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),An=Dn;const Sn=t.defineComponent({name:"JTWInput",components:{ElInput:fe.ElInput,ElIcon:fe.ElIcon,CircleClose:An},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!1},wordLimitVisible:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},setup(e,{expose:n}){const r=t.useAttrs(),o=t.ref(null),i=t.computed(()=>r.type==="textarea"),s=t.computed(()=>r.maxlength),l=t.computed(()=>{const g=r.modelValue;return g?String(g).length:0}),a=t.computed(()=>{const{"show-word-limit":g,showWordLimit:p,clearable:Q,...h}=r;return h}),c=()=>{var Q;const g=r["onUpdate:modelValue"],p=r.onClear;g&&g(""),p&&p(),(Q=o.value)==null||Q.focus()};return n({get input(){var g;return(g=o.value)==null?void 0:g.input},get textareaStyle(){var g;return(g=o.value)==null?void 0:g.textareaStyle},focus:()=>{var g;return(g=o.value)==null?void 0:g.focus()},blur:()=>{var g;return(g=o.value)==null?void 0:g.blur()},select:()=>{var g;return(g=o.value)==null?void 0:g.select()},clear:()=>{var g;return(g=o.value)==null?void 0:g.clear()},resizeTextarea:()=>{var g;return(g=o.value)==null?void 0:g.resizeTextarea()}}),{elInputRef:o,isTextarea:i,maxlength:s,currentLength:l,attrsWithoutWordLimit:a,handleTextareaClear:c}}}),Tn={key:0,class:"tw-input-wrap__textarea-inner"},In={key:2,class:"tw-input-wrap__count"};function En(e,n,r,o,i,s){const l=t.resolveComponent("el-input"),a=t.resolveComponent("CircleClose"),c=t.resolveComponent("el-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tw-input-wrap",{"tw-input-wrap--textarea":e.isTextarea}])},[e.isTextarea?(t.openBlock(),t.createElementBlock("div",Tn,[t.createVNode(l,t.mergeProps({ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.attrsWithoutWordLimit,{"show-word-limit":!1,clearable:!1}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class"]),e.isTextarea&&e.clearable&&e.currentLength>0?(t.openBlock(),t.createElementBlock("button",{key:0,class:"tw-input-wrap__textarea-clear",type:"button",onMousedown:n[0]||(n[0]=t.withModifiers(()=>{},["prevent"])),onClick:n[1]||(n[1]=(...y)=>e.handleTextareaClear&&e.handleTextareaClear(...y))},[t.createVNode(c,null,{default:t.withCtx(()=>[t.createVNode(a)]),_:1})],32)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createBlock(l,t.mergeProps({key:1,ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.attrsWithoutWordLimit,{"show-word-limit":!1,clearable:e.clearable}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class","clearable"])),e.isTextarea&&e.wordLimitVisible&&e.maxlength?(t.openBlock(),t.createElementBlock("div",In,[t.createElementVNode("span",null,t.toDisplayString(e.currentLength)+" / "+t.toDisplayString(e.maxlength),1)])):t.createCommentVNode("",!0)],2)}const p1=se(Sn,[["render",En]]),Ln="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDQuMDAwMDAxTDgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxWiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",xn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDY4QzgsNzAuMjA5MTM3LDkuNzkwODYxMSw3MiwxMi4wMDAwMDEwMDAwMDAwMDEsNzJMNjAsNzJDNjIuMjA5MTQxLDcyLDY0LDcwLjIwOTEzNyw2NCw2OEw2NCw0LjAwMDAwMDVDNjQsMS43OTA4NjExLDYyLjIwOTE0MSwwLDYwLDBMMTIuMDAwMDAwNDk5OTk5OTk5LDBDOS43OTA4NjExLDAsOCwxLjc5MDg2MTEsOCw0LjAwMDAwMUw4LDY4WiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",jn="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='24'%20cy='24'%20r='20'%20stroke='%23E5E6EB'%20stroke-width='4'/%3e%3cpath%20d='M24%204C35.0457%204%2044%2012.9543%2044%2024'%20stroke='%23165DFF'%20stroke-width='4'%20stroke-linecap='round'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0%2024%2024'%20to='360%2024%2024'%20dur='1s'%20repeatCount='indefinite'/%3e%3c/path%3e%3c/svg%3e",Bn=t.defineComponent({name:"JTWStatusImg",props:{name:{type:String,default:"default"},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(e){const n={default:Ln,empty:xn,loading:jn},r=t.computed(()=>n[e.name]||n.default),o=t.computed(()=>{const i={};return e.width!==void 0&&(i.width=typeof e.width=="number"?`${e.width}px`:e.width),e.height!==void 0&&(i.height=typeof e.height=="number"?`${e.height}px`:e.height),i});return{imageSrc:r,imageStyle:o}}}),zn={class:"j-tw-status-img"},On=["src","alt"];function Fn(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",zn,[t.createElementVNode("img",{src:e.imageSrc,alt:e.name,style:t.normalizeStyle(e.imageStyle),class:"j-tw-status-img__image"},null,12,On)])}const Ye=se(Bn,[["render",Fn]]),Pn=t.defineComponent({name:"JTWMultiSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWCheckbox:_t,JTWInput:p1,JTWStatusImg:Ye},inheritAttrs:!1,props:{data:{type:Array,default:()=>[]},dropdownMaxHeight:{type:Number,default:360},dropdownWidth:{type:Number,default:320},fetchOptions:{type:Function,default:void 0},filterMethod:{type:Function,default:void 0},label:{type:String,default:""},loading:{type:Boolean,default:!1},modelValue:{type:Array,default:()=>[]},noDataText:{type:String,default:"暂无数据"},outline:{type:Boolean,default:!0},searchDebounce:{type:Number,default:300},searchPlaceholder:{type:String,default:"请输入设备名称"},size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)}},emits:{click:e=>!0,search:e=>!0,select:e=>!0,"update:modelValue":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref({}),s=t.ref(!1),l=t.ref(!1),a=t.ref(!1),c=t.ref(null),y=t.ref(null),g=t.ref([]),p=t.ref(""),Q=t.ref([]),h=t.ref(void 0),v=t.ref(0),u={closeDelay:200,effect:"dark",offset:5,openDelay:0,placement:"top",showArrow:!0,trigger:"hover"},w=t.computed(()=>({...u,...e.tooltipConfig})),d=t.computed(()=>e.tips!=null?String(e.tips):""),k=t.computed(()=>{const E=new Map;return e.data.forEach(J=>E.set(J.value,J)),g.value.forEach(J=>E.set(J.value,J)),E}),N=t.computed(()=>{const E=p.value.trim().toLowerCase();return E?e.filterMethod?e.data.filter(J=>{var oe;return(oe=e.filterMethod)==null?void 0:oe.call(e,J,p.value)}):e.data.filter(J=>J.label.toLowerCase().includes(E)):e.data}),D=t.computed(()=>e.fetchOptions?g.value:N.value),b=t.computed(()=>{const E=Q.value.length;if(E===0)return e.label;const J=Q.value.map(oe=>{var le;return(le=k.value.get(oe))==null?void 0:le.label}).filter(oe=>!!oe);return J.length===1?J[0]:`已选择 ${E} 项`}),T=t.computed(()=>({"j-tw-multi-select-btn":!0,"j-tw-multi-select-btn--large":e.size===ue.LARGE,"j-tw-multi-select-btn--normal":e.size===ue.NORMAL,"j-tw-multi-select-btn--small":e.size===ue.SMALL})),I=t.computed(()=>({"j-tw-btn":!0,"j-tw-multi-select-btn__main":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),$=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-btn-text-color":"var(--j-color-grey-1)"})),M=t.computed(()=>Q.value.length>0),L=E=>Q.value.includes(E),V=E=>{const J=E.map(oe=>k.value.get(oe)).filter(oe=>!!oe);n("update:modelValue",E),n("select",J)},C=()=>{Q.value=[],V([])},x=(E,J)=>{if(E.disabled)return;const oe=new Set(Q.value);J?oe.add(E.value):oe.delete(E.value),Q.value=Array.from(oe),V(Q.value)},m=(E,J)=>{x(E,!!J)},R=E=>{E.disabled||x(E,!L(E.value))},K=()=>{if(!y.value||!o.value)return;const E=y.value.getBoundingClientRect(),J=o.value.getBoundingClientRect(),oe=window.innerHeight,le=E.top,Z=oe-E.bottom;let ne=E.bottom+4;J.height>50&&Z<J.height+20&&le>J.height+20&&(ne=E.top-J.height-4),i.value={left:`${E.left}px`,maxHeight:`${e.dropdownMaxHeight}px`,top:`${ne}px`,width:`${e.dropdownWidth}px`}},G=async E=>{if(!e.fetchOptions)return;const J=v.value+1;v.value=J,l.value=!0;try{const oe=await e.fetchOptions(E);J===v.value&&(g.value=oe??[])}finally{J===v.value&&(l.value=!1)}},U=E=>{p.value=E,n("search",E),e.fetchOptions&&(h.value&&window.clearTimeout(h.value),h.value=window.setTimeout(()=>{G(p.value.trim())},e.searchDebounce))},F=async()=>{s.value=!0,p.value="",e.fetchOptions&&await G(""),await t.nextTick(),await t.nextTick(),K()},j=()=>{s.value=!1,h.value&&(window.clearTimeout(h.value),h.value=void 0)},S=()=>{s.value?j():F()},B=E=>{n("click",E),S()},te=E=>{if(!y.value||!o.value)return;const J=E.target;!y.value.contains(J)&&!o.value.contains(J)&&j()};return t.watch(()=>e.modelValue,E=>{Q.value=[...E??[]]},{immediate:!0}),t.watch(s,E=>{E?(document.addEventListener("click",te),window.addEventListener("resize",K),window.addEventListener("scroll",K,!0)):(document.removeEventListener("click",te),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("click",te),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0),h.value&&window.clearTimeout(h.value)}),r({get $el(){return y.value},click:()=>{var E,J;(J=(E=c.value)==null?void 0:E.$el)==null||J.click()},closeDropdown:j,openDropdown:F}),{computedStyle:$,displayLabel:b,displayOptions:D,dropdownMenuRef:o,dropdownMenuStyle:i,dropdownVisible:s,handleMainClick:B,handleOptionChange:m,handleOptionClick:R,handleSearchInput:U,isFetching:l,isHovering:a,isOptionSelected:L,mainBtnClass:I,mainBtnRef:c,mergedTooltipConfig:w,multiSelectClass:T,multiSelectRef:y,noDataText:e.noDataText,searchKeyword:p,searchPlaceholder:e.searchPlaceholder,showClearIcon:M,tooltipContent:d,dropdownMaxHeight:e.dropdownMaxHeight,handleClear:C}}}),$n={class:"j-tw-multi-select-btn__label"},Vn={class:"j-tw-multi-select-btn__search"},Rn={key:0,class:"j-tw-multi-select-btn__loading"},Wn=["onClick"],Un={class:"j-tw-multi-select-btn__option-label"},Zn={key:2,class:"j-tw-multi-select-btn__empty"},Yn={class:"j-tw-multi-select-btn__empty-text"};function Gn(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWInput"),y=t.resolveComponent("JTWCheckbox"),g=t.resolveComponent("JTWStatusImg");return t.openBlock(),t.createElementBlock("div",{ref:"multiSelectRef",class:t.normalizeClass(e.multiSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-multi-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=p=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=p=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",$n,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-multi-select-btn__clear",{"j-tw-multi-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...p)=>e.handleClear&&e.handleClear(...p),["stop"]))},[...n[7]||(n[7]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-multi-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("img",{src:h1,class:t.normalizeClass(["j-tw-multi-select-btn__arrow",{"j-tw-multi-select-btn__arrow--open":e.dropdownVisible}]),alt:"Dropdown arrow"},null,2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[6]||(n[6]=t.createElementVNode("img",{src:f1,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-multi-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-multi-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[5]||(n[5]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",Vn,[t.createVNode(c,{modelValue:e.searchKeyword,"onUpdate:modelValue":[n[3]||(n[3]=p=>e.searchKeyword=p),e.handleSearchInput],placeholder:e.searchPlaceholder,clearable:""},{suffix:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",class:"j-tw-multi-select-btn__search-icon","aria-hidden":"true"},[t.createElementVNode("path",{fill:"currentColor",d:"M447.98 64C236.42 64 64 236.42 64 447.98S236.42 832 447.98 832c90.08 0 172.94-31.24 238.34-83.4l197.06 197.1c12.48 12.48 32.74 12.48 45.22 0s12.48-32.74 0-45.22L731.56 703.42C783.74 638.02 815 555.16 815 465.08 815 253.52 642.58 81.1 431.02 81.1zm0 704C271.7 768 128 624.3 128 447.98S271.7 128 447.98 128 768 271.7 768 447.98 624.3 768 447.98 768z"})],-1)])]),_:1},8,["modelValue","placeholder","onUpdate:modelValue"])]),t.createElementVNode("div",{class:"j-tw-multi-select-btn__list",style:t.normalizeStyle({maxHeight:`${e.dropdownMaxHeight-62}px`})},[e.isFetching?(t.openBlock(),t.createElementBlock("div",Rn,[...n[9]||(n[9]=[t.createElementVNode("span",{class:"j-tw-multi-select-btn__loading-spinner"},null,-1),t.createElementVNode("p",{class:"j-tw-multi-select-btn__loading-text"},"加载中...",-1)])])):e.displayOptions.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.displayOptions,p=>(t.openBlock(),t.createElementBlock("div",{key:p.value,class:t.normalizeClass(["j-tw-multi-select-btn__option",{"j-tw-multi-select-btn__option--active":e.isOptionSelected(p.value),"j-tw-multi-select-btn__option--disabled":p.disabled}]),onClick:Q=>e.handleOptionClick(p)},[t.createVNode(y,{class:"j-tw-multi-select-btn__checkbox",disabled:p.disabled,"model-value":e.isOptionSelected(p.value),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"])),onChange:Q=>e.handleOptionChange(p,Q)},null,8,["disabled","model-value","onChange"]),t.createElementVNode("span",Un,t.toDisplayString(p.label),1)],10,Wn))),128)):(t.openBlock(),t.createElementBlock("div",Zn,[t.createVNode(g,{width:32,height:32}),t.createElementVNode("p",Yn,t.toDisplayString(e.noDataText),1)]))],4)],4)):t.createCommentVNode("",!0)]),_:1})]))],6)}const Hn=se(Pn,[["render",Gn]]),Jn=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},tempSelectedValue:{type:[String,Number],default:void 0},tempSelectedValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),Xn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Kn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",er="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",tr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",nr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",rr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",or={key:0,src:Xn,alt:"collapse",class:"j-tw-tree-select-btn__expand-icon"},ir={key:1,src:Kn,alt:"expand",class:"j-tw-tree-select-btn__expand-icon"},lr={key:2,class:"j-tw-tree-select-btn__expand-placeholder"},ar={class:"j-tw-tree-select-btn__radio"},sr={key:0,src:qn,alt:"indeterminate",class:"j-tw-tree-select-btn__radio-icon"},cr={key:1,src:er,alt:"checked",class:"j-tw-tree-select-btn__radio-icon"},ur={key:2,src:tr,alt:"unchecked",class:"j-tw-tree-select-btn__radio-icon"},dr={key:0,src:nr,alt:"selected",class:"j-tw-tree-select-btn__radio-icon"},fr={key:1,src:rr,alt:"unselected",class:"j-tw-tree-select-btn__radio-icon"},hr={class:"j-tw-tree-select-btn__node-label"};function pr(e,n,r,o,i,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__node",{"j-tw-tree-select-btn__node--disabled":e.node.disabled},{"j-tw-tree-select-btn__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select-btn__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"}),onClick:n[1]||(n[1]=a=>e.handleNodeClick(e.node))},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select-btn__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select-btn__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",or)):(t.openBlock(),t.createElementBlock("img",ir))])):(t.openBlock(),t.createElementBlock("div",lr)),t.createElementVNode("div",ar,[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",sr)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",cr)):(t.openBlock(),t.createElementBlock("img",ur))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.tempSelectedValue===e.node.value?(t.openBlock(),t.createElementBlock("img",dr)):(t.openBlock(),t.createElementBlock("img",fr))],64))]),t.createElementVNode("span",hr,[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])])],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:y})=>[t.renderSlot(e.$slots,"default",{node:y},()=>[t.createTextVNode(t.toDisplayString(y.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const m1=se(Jn,[["render",pr]]),mr=t.defineComponent({name:"JTWTreeSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWBtn:ze,TreeNode:m1,JTWStatusImg:Ye},inheritAttrs:!1,props:{size:{type:String,default:ue.NORMAL,validator:e=>Object.values(ue).includes(e)},type:{type:String,default:ge.BUTTON,validator:e=>Object.values(ge).includes(e)},outline:{type:Boolean,default:!1},label:{type:String,default:""},loading:{type:Boolean,default:!1},tips:{type:[String,Number],default:""},tooltipConfig:{type:Object,default:void 0},data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1}},emits:{click:e=>!0,"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),y=t.ref(""),g=t.ref(new Set),p=t.ref(void 0),Q=t.ref(new Set),h=t.ref(!1);e.defaultExpandFirst&&e.data.length>0&&g.value.add(e.data[0].value),t.watch(()=>e.data,Z=>{e.defaultExpandFirst&&Z.length>0&&g.value.size===0&&g.value.add(Z[0].value)},{immediate:!0});const v=t.computed(()=>e.tips!=null?String(e.tips):""),u=(Z,ne)=>{for(const ie of Z){if(ie.value===ne)return ie;if(ie.children){const de=u(ie.children,ne);if(de)return de}}return null},w=Z=>{if(!Z.children||Z.children.length===0)return[];const ne=[];for(const ie of Z.children)ne.push(ie.value),ne.push(...w(ie));return ne},d=(Z,ne)=>{for(const ie of Z)if(ie.children){if(ie.children.some(pe=>pe.value===ne))return ie;const de=d(ie.children,ne);if(de)return de}return null},k=Z=>{const ne=d(e.data,Z);return ne&&ne.children?ne.children.map(ie=>ie.value).filter(ie=>ie!==Z):e.data.map(ie=>ie.value).filter(ie=>ie!==Z)},N=Z=>{const ne=d(e.data,Z);ne&&ne.children&&(ne.children.every(de=>Q.value.has(de.value))?Q.value.add(ne.value):Q.value.delete(ne.value))},D=Z=>e.multiple?Q.value.has(Z):p.value===Z,b=Z=>{if(!Z.children||Z.children.length===0)return[];const ne=[];for(const ie of Z.children)ne.push(ie.value),ne.push(...b(ie));return ne},T=Z=>{if(!e.multiple||!Z.children||Z.children.length===0)return!1;const ne=b(Z),ie=ne.filter(de=>Q.value.has(de)).length;return ie>0&&ie<ne.length},I=Z=>e.multiple?Q.value.has(Z):p.value===Z,$=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue)){const Z=e.modelValue.length;return Z>0?`已选择 ${Z} 项`:e.label}else if(!Array.isArray(e.modelValue)){const Z=u(e.data,e.modelValue);if(Z)return Z.label}}return e.label}),M=(Z,ne)=>{if(!ne)return Z;const ie=[];for(const de of Z){const pe=de.label.toLowerCase().includes(ne.toLowerCase()),f=de.children?M(de.children,ne):[];(pe||f.length>0)&&(ie.push({...de,children:f.length>0?f:de.children}),f.length>0&&g.value.add(de.value))}return ie},L=t.computed(()=>M(e.data,y.value)),V=t.computed(()=>({"j-tw-tree-select-btn":!0,"j-tw-tree-select-btn--large":e.size===ue.LARGE,"j-tw-tree-select-btn--normal":e.size===ue.NORMAL,"j-tw-tree-select-btn--small":e.size===ue.SMALL})),C=t.computed(()=>({"j-tw-btn":!0,"j-tw-tree-select-btn__main":!0,"j-tw-btn--large":e.size===ue.LARGE,"j-tw-btn--normal":e.size===ue.NORMAL,"j-tw-btn--small":e.size===ue.SMALL,"j-tw-btn--button":e.type===ge.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===ge.TEXT})),x=t.computed(()=>({"--j-btn-color":"var(--j-color-primary)","--j-btn-color-1":"var(--j-color-primary-1)","--j-btn-color-2":"var(--j-color-primary-2)","--j-btn-color-3":"var(--j-color-primary-3)","--j-btn-color-4":"var(--j-color-primary-4)","--j-btn-color-5":"var(--j-color-primary-5)","--j-btn-color-6":"var(--j-color-primary-6)","--j-tree-select-btn-color":"var(--j-color-primary)","--j-btn-text-color":"var(--j-color-grey-1)"})),m={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},R=t.computed(()=>({...m,...e.tooltipConfig})),K=()=>{if(!o.value||!s.value)return;const Z=o.value.getBoundingClientRect(),ne=s.value.getBoundingClientRect(),de=window.innerHeight-Z.bottom,pe=Z.top;let f=Z.bottom+4;ne.height>50&&de<ne.height+20&&pe>ne.height+20&&(f=Z.top-ne.height-4),c.value={top:`${f}px`,left:`${Z.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},G=()=>{a.value=!0,e.multiple&&Array.isArray(e.modelValue)?Q.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(p.value=e.modelValue),y.value="",t.nextTick(()=>{t.nextTick(()=>{K()})})},U=()=>{a.value=!1,y.value=""},F=()=>{a.value?U():G()},j=Z=>{n("click",Z),F()},S=Z=>{g.value.has(Z)?g.value.delete(Z):(e.accordion&&k(Z).forEach(ie=>{g.value.delete(ie)}),g.value.add(Z))},B=Z=>{if(!Z.disabled)if(e.multiple){const ne=Q.value.has(Z.value),ie=w(Z);ne?(Q.value.delete(Z.value),ie.forEach(pe=>Q.value.delete(pe))):(Q.value.add(Z.value),ie.forEach(pe=>Q.value.add(pe))),N(Z.value);const de=e.data.filter(pe=>Q.value.has(pe.value));n("select",de)}else p.value=Z.value,n("select",Z)},te=()=>{if(e.multiple){const Z=Array.from(Q.value),ne=Z.map(ie=>u(e.data,ie)).filter(ie=>ie!==null);n("update:modelValue",Z),n("confirm",ne.length>0?ne:null)}else if(p.value!=null){const Z=u(e.data,p.value);n("update:modelValue",p.value),n("confirm",Z)}else n("update:modelValue",void 0),n("confirm",null);U()},O=()=>{n("cancel"),U()},E=()=>{e.multiple?(Q.value.clear(),n("update:modelValue",[]),n("confirm",null)):(p.value=void 0,n("update:modelValue",void 0),n("confirm",null))},J=t.computed(()=>e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null),oe=Z=>{if(!o.value||!s.value)return;const ne=Z.target;!o.value.contains(ne)&&!s.value.contains(ne)&&U()};return t.watch(a,Z=>{Z?(document.addEventListener("click",oe),window.addEventListener("resize",K),window.addEventListener("scroll",K,!0)):(document.removeEventListener("click",oe),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0))}),t.onMounted(()=>{}),t.onBeforeUnmount(()=>{document.removeEventListener("click",oe),window.removeEventListener("resize",K),window.removeEventListener("scroll",K,!0)}),r({get $el(){return o.value},click:()=>{var Z,ne;(ne=(Z=i.value)==null?void 0:Z.$el)==null||ne.click()},openDropdown:G,closeDropdown:U}),{treeSelectRef:o,mainBtnRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:y,expandedKeys:g,tempSelectedValue:p,tempSelectedValues:Q,tooltipContent:v,displayLabel:$,filteredData:L,treeSelectClass:V,mainBtnClass:C,computedStyle:x,mergedTooltipConfig:R,handleMainClick:j,toggleDropdown:F,toggleExpand:S,handleNodeClick:B,handleConfirm:te,handleCancel:O,handleClear:E,showClearIcon:J,isHovering:h,isNodeChecked:D,isNodeIndeterminate:T,isNodeSelected:I}}}),gr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20viewBox='0%200%2016%2016'%20class='j-tw-btn__loading-icon'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_06013'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_06013)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='transparent'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.9947965,4.9947963Q6.2395926,3.75,8,3.75L8,3.74985003Q8.0738535,3.74985003,8.1462879,3.7354418000000003Q8.2187223,3.72103369,8.2869549,3.69277108Q8.3551865,3.66450846,8.416593599999999,3.62347746Q8.4780006,3.58244652,8.5302238,3.53022403Q8.5824461,3.47800151,8.623477000000001,3.41659433Q8.6645079,3.35518718,8.692771,3.28695518Q8.7210336,3.21872318,8.7354422,3.14628848Q8.7498503,3.073853783,8.7498503,3Q8.7498503,2.926146217,8.735441699999999,2.85371152Q8.7210331,2.78127682,8.6927705,2.71304482Q8.6645079,2.64481282,8.623477000000001,2.58340567Q8.5824461,2.52199849,8.5302238,2.46977597Q8.4780006,2.41755348,8.416593599999999,2.37652254Q8.3551865,2.33549154,8.2869549,2.30722892Q8.2187223,2.27896631,8.1462879,2.2645581999999997Q8.0738535,2.25014997,8,2.25014997L8,2.25Q5.6182723,2.25,3.93413639,3.93413603Q2.25000012,5.6182723,2.25000024,8Q2.25,10.381727699999999,3.93413603,12.0658646Q5.6182728,13.75,8,13.75Q10.381727699999999,13.75,12.0658646,12.0658636Q13.75,10.3817263,13.75,7.9999976L13.74985,7.9999976Q13.749849,7.9261436,13.735441,7.8537092Q13.721033,7.7812748,13.69277,7.7130427Q13.664507,7.6448107,13.623476,7.5834041Q13.582445,7.521997,13.530224,7.4697747Q13.478001,7.4175525,13.416594,7.3765216Q13.355186,7.3354907,13.286955,7.3072281Q13.218722,7.278966,13.146288,7.2645578Q13.073853,7.2501497,13,7.2501497Q12.9261465,7.2501497,12.8537121,7.2645578Q12.7812767,7.278966,12.7130442,7.3072286Q12.6448116,7.3354912,12.5834045,7.3765221Q12.5219975,7.4175529,12.4697752,7.4697757Q12.4175529,7.5219984,12.3765221,7.5834055Q12.3354912,7.6448126,12.3072281,7.7130442Q12.278965,7.7812767,12.2645578,7.8537111Q12.2501488,7.9261465,12.2501497,8L12.25,7.9999976Q12.25,9.760407,11.0052042,11.0052032Q9.7604084,12.25,8,12.25Q6.2395923,12.25,4.9947963,11.0052042Q3.75,9.7604074,3.75000036,8Q3.75000024,6.2395926,4.9947965,4.9947963Z'%20fill-rule='evenodd'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e",wr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='j-tw-tree-select-btn__arrow'%20%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096406'%3e%3crect%20x='0'%20y='16'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20transform='matrix(1,0,0,-1,0,32)'%20clip-path='url(%23master_svg0_1313_096406)'%3e%3cpath%20d='M4.5500030514375,21.78070152C4.4700031284375,21.95112768,4.4900026324375,22.15162873,4.6000032424375,22.30200529L7.6000232734375,26.3120298C7.7900228734375006,26.5626564,8.2100229734375,26.5626564,8.4000234734375,26.3120298L11.4000234734375,22.30200529C11.5100230734375,22.15162873,11.530022573437499,21.95112768,11.4500226734375,21.78070152C11.3600234734375,21.61027536,11.1900233734375,21.5,11.0000228734375,21.5L5.0000028634375,21.5C4.8100032834375,21.5,4.6400032034375,21.61027536,4.5500030514375,21.78070152Z'%20fill='currentColor'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",yr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",vr={class:"j-tw-tree-select-btn__label"},Qr={class:"j-tw-tree-select-btn__search"},kr=["placeholder"],br={class:"j-tw-tree-select-btn__tree",ref:"treeContainerRef"},Mr={key:0,class:"j-tw-tree-select-btn__empty"},Cr={class:"j-tw-tree-select-btn__footer"};function _r(e,n,r,o,i,s){const l=t.resolveComponent("el-button"),a=t.resolveComponent("el-tooltip"),c=t.resolveComponent("JTWStatusImg"),y=t.resolveComponent("TreeNode"),g=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(e.treeSelectClass),style:t.normalizeStyle(e.computedStyle)},[t.createVNode(a,{disabled:!e.tips,content:e.tooltipContent,placement:e.mergedTooltipConfig.placement,effect:e.mergedTooltipConfig.effect,trigger:e.mergedTooltipConfig.trigger,"show-arrow":e.mergedTooltipConfig.showArrow,"show-after":e.mergedTooltipConfig.openDelay,"hide-after":e.mergedTooltipConfig.closeDelay,offset:e.mergedTooltipConfig.offset},{default:t.withCtx(()=>[t.createVNode(l,t.mergeProps({ref:"mainBtnRef",class:[e.mainBtnClass,{"j-tw-tree-select-btn__main--open":e.dropdownVisible}],style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleMainClick,onMouseenter:n[1]||(n[1]=p=>e.isHovering=!0),onMouseleave:n[2]||(n[2]=p=>e.isHovering=!1)}),t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",vr,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-tree-select-btn__clear",{"j-tw-tree-select-btn__clear--hover":e.isHovering}]),onClick:n[0]||(n[0]=t.withModifiers((...p)=>e.handleClear&&e.handleClear(...p),["stop"]))},[...n[6]||(n[6]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-tree-select-btn__clear-icon"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}),t.createElementVNode("path",{fill:"currentColor",d:"M624 338.4L512 450.3 400 338.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L466.7 496 354.8 607.9c-12.5 12.5-12.5 32.8 0 45.3 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4L512 541.4l111.9 111.9c6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4c12.5-12.5 12.5-32.8 0-45.3L557.3 496l111.9-111.9c12.5-12.5 12.5-32.8 0-45.3-12.5-12.4-32.8-12.4-45.2-.4z"})],-1)])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select-btn__arrow",{"j-tw-tree-select-btn__arrow--open":e.dropdownVisible}])},[...n[7]||(n[7]=[t.createElementVNode("img",{src:wr,alt:"Dropdown arrow"},null,-1)])],2)]),_:2},[e.$slots.icon?{name:"icon",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[n[5]||(n[5]=t.createElementVNode("img",{src:gr,class:"j-tw-btn__loading-icon",alt:"Loading"},null,-1))])]),key:"1"}:void 0]),1040,["class","style","loading","onClick"])]),_:3},8,["disabled","content","placement","effect","trigger","show-arrow","show-after","hide-after","offset"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-btn__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[4]||(n[4]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",Qr,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=p=>e.searchText=p),type:"text",class:"j-tw-tree-select-btn__search-input",placeholder:e.searchPlaceholder},null,8,kr),[[t.vModelText,e.searchText]]),n[8]||(n[8]=t.createElementVNode("img",{src:yr,alt:"search",class:"j-tw-tree-select-btn__search-icon"},null,-1))]),t.createElementVNode("div",br,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",Mr,[t.createVNode(c,{width:32,height:32}),n[9]||(n[9]=t.createElementVNode("p",{class:"j-tw-tree-select-btn__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,p=>(t.openBlock(),t.createBlock(y,{key:p.value,node:p,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:Q})=>[t.renderSlot(e.$slots,"default",{node:Q},()=>[t.createTextVNode(t.toDisplayString(Q.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),t.createElementVNode("div",Cr,[t.createVNode(g,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(g,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])])],4)):t.createCommentVNode("",!0)]),_:3})]))],6)}const Nr=se(mr,[["render",_r]]),Dr=t.defineComponent({name:"JTWTreeSelectInput",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption,JTWBtn:ze,TreeNode:m1,JTWStatusImg:Ye},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入部门名称"},dropdownWidth:{type:Number,default:320},dropdownMaxHeight:{type:Number,default:500},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},defaultExpandFirst:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{type:String,default:"default"},autoFill:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},allowRadioDeselect:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!1},bgGrey:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,select:e=>!0,confirm:e=>!0,cancel:()=>!0,change:e=>!0,clear:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(null),a=t.ref(!1),c=t.ref({}),y=t.ref(""),g=t.ref(new Set),p=t.ref(void 0),Q=t.ref(new Set);t.watch(()=>e.data,O=>{e.defaultExpandFirst&&O.length>0&&g.value.size===0&&g.value.add(O[0].value)},{immediate:!0});const h=(O,E)=>{for(const J of O){if(J.value===E)return J;if(J.children){const oe=h(J.children,E);if(oe)return oe}}return null},v=O=>{if(!O.children||O.children.length===0)return[];const E=[];for(const J of O.children)E.push(J.value),E.push(...v(J));return E},u=(O,E)=>{for(const J of O)if(J.children){if(J.children.some(le=>le.value===E))return J;const oe=u(J.children,E);if(oe)return oe}return null},w=O=>{const E=u(e.data,O);return E&&E.children?E.children.map(J=>J.value).filter(J=>J!==O):e.data.map(J=>J.value).filter(J=>J!==O)},d=O=>{const E=u(e.data,O);E&&E.children&&(E.children.every(oe=>Q.value.has(oe.value))?Q.value.add(E.value):Q.value.delete(E.value))},k=O=>e.multiple?Q.value.has(O):p.value===O,N=O=>{if(!O.children||O.children.length===0)return[];const E=[];for(const J of O.children)E.push(J.value),E.push(...N(J));return E},D=O=>{if(!e.multiple||!O.children||O.children.length===0)return!1;const E=N(O),J=E.filter(oe=>Q.value.has(oe)).length;return J>0&&J<E.length},b=O=>e.multiple?Q.value.has(O):p.value===O,T=t.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue.map(O=>{const E=h(e.data,O);return E?{value:E.value,label:E.label}:null}).filter(O=>O!==null);if(!Array.isArray(e.modelValue)){const O=h(e.data,e.modelValue);return O?[{value:O.value,label:O.label}]:[]}}return[]}),I=t.computed(()=>{if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue;if(!Array.isArray(e.modelValue))return e.modelValue}),$=(O,E)=>{if(!E)return O;const J=[];for(const oe of O){const le=oe.label.toLowerCase().includes(E.toLowerCase()),Z=oe.children?$(oe.children,E):[];(le||Z.length>0)&&(J.push({...oe,children:Z.length>0?Z:oe.children}),Z.length>0&&g.value.add(oe.value))}return J},M=t.computed(()=>$(e.data,y.value)),L=t.computed(()=>e.autoFill?e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null:e.clearable),V=()=>{if(!o.value||!s.value)return;const O=o.value.getBoundingClientRect(),E=s.value.getBoundingClientRect(),oe=window.innerHeight-O.bottom,le=O.top;let Z=O.bottom+4;E.height>50&&oe<E.height+20&&le>E.height+20&&(Z=O.top-E.height-4),c.value={top:`${Z}px`,left:`${O.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},C=()=>{e.disabled||(a.value=!0,e.multiple&&Array.isArray(e.modelValue)?Q.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(p.value=e.modelValue),y.value="",t.nextTick(()=>{t.nextTick(()=>{V()})}))},x=()=>{a.value=!1,y.value=""},m=O=>{O.target.closest(".el-select__clear")||O.preventDefault()},R=O=>{O.stopPropagation(),a.value||C()},K=O=>{O&&t.nextTick(()=>{var E;(E=i.value)==null||E.blur()})},G=()=>{e.multiple?Q.value.clear():p.value=void 0,n("update:modelValue",e.multiple?[]:void 0),n("clear"),n("change",e.multiple?[]:void 0),x()},U=O=>{g.value.has(O)?g.value.delete(O):(e.accordion&&w(O).forEach(J=>{g.value.delete(J)}),g.value.add(O))},F=O=>{if(!O.disabled)if(e.multiple){const E=Q.value.has(O.value),J=v(O);E?(Q.value.delete(O.value),J.forEach(le=>Q.value.delete(le))):(Q.value.add(O.value),J.forEach(le=>Q.value.add(le))),d(O.value);const oe=e.data.filter(le=>Q.value.has(le.value));if(n("select",oe),e.autoFill){const le=Array.from(Q.value);n("update:modelValue",le),n("change",le)}e.autoClose&&x()}else p.value=O.value,n("select",O),e.autoFill&&(p.value!=null?(n("update:modelValue",p.value),n("change",p.value)):(n("update:modelValue",void 0),n("change",void 0))),e.autoClose&&p.value!=null&&x()},j=()=>{if(e.multiple){const O=Array.from(Q.value),E=O.map(J=>h(e.data,J)).filter(J=>J!==null);n("update:modelValue",O),n("confirm",E.length>0?E:null),n("change",O)}else if(p.value!=null){const O=h(e.data,p.value);n("update:modelValue",p.value),n("confirm",O),n("change",p.value)}else n("update:modelValue",void 0),n("confirm",null),n("change",void 0);x()},S=()=>{n("cancel"),x()},B=O=>{if(!o.value||!s.value)return;const E=O.target;!o.value.contains(E)&&!s.value.contains(E)&&x()};return t.watch(a,O=>{O?(setTimeout(()=>{document.addEventListener("mousedown",B)},100),window.addEventListener("resize",V),window.addEventListener("scroll",V,!0)):(document.removeEventListener("mousedown",B),window.removeEventListener("resize",V),window.removeEventListener("scroll",V,!0))}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",B),window.removeEventListener("resize",V),window.removeEventListener("scroll",V,!0)}),r({get $el(){return o.value},focus:()=>{var O;(O=i.value)==null||O.focus()},blur:()=>{var O;(O=i.value)==null||O.blur()},openDropdown:C,closeDropdown:x}),{treeSelectInputRef:o,selectRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:y,expandedKeys:g,tempSelectedValue:p,tempSelectedValues:Q,displayOptions:T,selectDisplayValue:I,filteredData:M,computedClearable:L,handleMouseDown:m,handleSelectClick:R,handleVisibleChange:K,handleClear:G,toggleExpand:U,handleNodeClick:F,handleConfirm:j,handleCancel:S,isNodeChecked:k,isNodeIndeterminate:D,isNodeSelected:b}}}),Ar="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Sr={class:"j-tw-tree-select-input__search"},Tr=["placeholder"],Ir={class:"j-tw-tree-select-input__tree",ref:"treeContainerRef"},Er={key:0,class:"j-tw-tree-select-input__empty"},Lr={key:0,class:"j-tw-tree-select-input__footer"};function xr(e,n,r,o,i,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select"),c=t.resolveComponent("JTWStatusImg"),y=t.resolveComponent("TreeNode"),g=t.resolveComponent("JTWBtn");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectInputRef",class:t.normalizeClass(["j-tw-tree-select-input",{"j-tw-tree-select-input--open":e.dropdownVisible,"j-tw-tree-select-input--bg-grey":e.bgGrey}]),onMousedown:n[2]||(n[2]=(...p)=>e.handleMouseDown&&e.handleMouseDown(...p))},[t.createVNode(a,{ref:"selectRef","model-value":e.selectDisplayValue,placeholder:e.placeholder,disabled:e.disabled,clearable:e.computedClearable,size:e.size,"popper-class":"j-tw-tree-select-input__hidden-popper",onClick:t.withModifiers(e.handleSelectClick,["stop"]),onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displayOptions,p=>(t.openBlock(),t.createBlock(l,{key:p.value,label:p.label,value:p.value,style:{display:"none"}},null,8,["label","value"]))),128))]),_:1},8,["model-value","placeholder","disabled","clearable","size","onClick","onClear","onVisibleChange"]),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-tree-select-fade"},{default:t.withCtx(()=>[e.dropdownVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-input__menu",style:t.normalizeStyle(e.dropdownMenuStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",Sr,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=p=>e.searchText=p),type:"text",class:"j-tw-tree-select-input__search-input",placeholder:e.searchPlaceholder},null,8,Tr),[[t.vModelText,e.searchText]]),n[3]||(n[3]=t.createElementVNode("img",{src:Ar,alt:"search",class:"j-tw-tree-select-input__search-icon"},null,-1))]),t.createElementVNode("div",Ir,[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",Er,[t.createVNode(c,{width:32,height:32}),n[4]||(n[4]=t.createElementVNode("p",{class:"j-tw-tree-select-input__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,p=>(t.openBlock(),t.createBlock(y,{key:p.value,node:p,level:0,"expanded-keys":e.expandedKeys,"temp-selected-value":e.tempSelectedValue,"temp-selected-values":e.tempSelectedValues,multiple:e.multiple,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:Q})=>[t.renderSlot(e.$slots,"default",{node:Q},()=>[t.createTextVNode(t.toDisplayString(Q.label),1)])]),_:3},8,["node","expanded-keys","temp-selected-value","temp-selected-values","multiple","is-node-checked","is-node-indeterminate","is-node-selected","toggle-expand","handle-node-click"]))),128))],512),e.hideFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Lr,[t.createVNode(g,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),t.createVNode(g,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])]))],4)):t.createCommentVNode("",!0)]),_:3})]))],34)}const jr=se(Dr,[["render",xr]]),Br=t.defineComponent({name:"JTWDatePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD"},valueFormat:{type:String,default:"YYYY-MM-DD"},placeholder:{type:String,default:"选择日期范围"},startPlaceholder:{type:String,default:"开始日期"},endPlaceholder:{type:String,default:"结束日期"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var k;n("change",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"change"))},c=d=>{var k;n("blur",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"blur"))},y=d=>{n("focus",d)},g=()=>{n("clear")},p=d=>{n("visible-change",d)},Q=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),h=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"本周",value:()=>{const d=new Date,k=d.getDay(),N=k===0?6:k-1,D=new Date(d);D.setDate(d.getDate()-N),D.setHours(0,0,0,0);const b=new Date(D);return b.setDate(D.getDate()+6),b.setHours(23,59,59,999),[D,b]}},{text:"本月",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),1),N=new Date(d.getFullYear(),d.getMonth()+1,0,23,59,59,999);return[k,N]}},{text:"本年度",value:()=>{const d=new Date,k=new Date(d.getFullYear(),0,1),N=new Date(d.getFullYear(),11,31,23,59,59,999);return[k,N]}}]});return r({get $el(){return i.value},focus:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.focus()},blur:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.blur()}}),{datePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:Q,computedShortcuts:h,handleChange:a,handleBlur:c,handleFocus:y,handleClear:g,handleVisibleChange:p}}}),zr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Or={class:"j-tw-date-picker__separator"};function Fr(e,n,r,o,i,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"datePickerRef",class:t.normalizeClass(["j-tw-date-picker",{"j-tw-date-picker--bg-grey":e.bgGrey,"j-tw-date-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"daterange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-date-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-date-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:zr,alt:"calendar",class:"j-tw-date-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",Or,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const Pr=se(Br,[["render",Fr]]),$r=t.defineComponent({name:"JTWDateTimePicker",components:{ElDatePicker:fe.ElDatePicker},props:{modelValue:{type:Array,default:void 0},format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},placeholder:{type:String,default:"选择时间范围"},startPlaceholder:{type:String,default:"开始时间"},endPlaceholder:{type:String,default:"结束时间"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabledDate:{type:Function,default:void 0},minDate:{type:[Date,String,Number],default:void 0},maxDate:{type:[Date,String,Number],default:void 0},defaultValue:{type:[Date,Array],default:void 0},rangeSeparator:{type:String,default:"-"},showClearButton:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},customClass:{type:String,default:""},popperClass:{type:String,default:""},shortcuts:{type:Array,default:void 0},validateEvent:{type:Boolean,default:!0},popperOptions:{type:Object,default:void 0},bgGrey:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,blur:e=>!0,focus:e=>!0,clear:()=>!0,"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(null),l=t.computed({get(){return e.modelValue},set(d){n("update:modelValue",d)}}),a=d=>{var k;n("change",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"change"))},c=d=>{var k;n("blur",d),e.validateEvent&&o&&((k=o.validate)==null||k.call(o,"blur"))},y=d=>{n("focus",d)},g=()=>{n("clear")},p=d=>{n("visible-change",d)},Q=t.computed(()=>{var d;return{...e.popperOptions,modifiers:[...((d=e.popperOptions)==null?void 0:d.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),h=t.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"最近1小时",value:()=>{const d=new Date;return[new Date(d.getTime()-3600*1e3),d]}},{text:"今日",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),d.getDate(),0,0,0,0),N=new Date(d.getFullYear(),d.getMonth(),d.getDate(),23,59,59,999);return[k,N]}},{text:"昨日",value:()=>{const d=new Date,k=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,0,0,0,0),N=new Date(d.getFullYear(),d.getMonth(),d.getDate()-1,23,59,59,999);return[k,N]}}]});return r({get $el(){return i.value},focus:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.focus()},blur:()=>{var k;const d=(k=i.value)==null?void 0:k.querySelector("input");d==null||d.blur()}}),{dateTimePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:Q,computedShortcuts:h,handleChange:a,handleBlur:c,handleFocus:y,handleClear:g,handleVisibleChange:p}}}),Vr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096141'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096141)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,6.33331298828125L0.916748046875,13.33331298828125Q0.916747986875,13.92012448828125,1.331683366875,14.33505438828125Q1.746613651875,14.74997998828125,2.333414736875,14.74997998828125L13.666748046875,14.74997998828125Q14.253557046875,14.74997998828125,14.668486046875,14.33505148828125Q15.083415046875,13.920122588281249,15.083415046875,13.33331298828125L15.083415046875,6.33331298828125Q15.083414046875,6.25944444528125,15.069003046875,6.18699526828125Q15.054592046875,6.11454610828125,15.026324046875,6.04630046828125Q14.998054046875,5.97805481828125,14.957016046875,5.91663536828125Q14.915977046875,5.85521590828125,14.863745046875,5.80298292828125Q14.811512046875,5.75075000828125,14.750092046875,5.70971083828125Q14.688672046875,5.66867166828125,14.620426046875,5.64040338828125Q14.552181046875,5.61213510828125,14.479732046875,5.59772407828125Q14.407283046875,5.58331298828125,14.333415046875,5.58331298828125L1.666748046875,5.58331298828125Q1.592879503875,5.58331298828125,1.520430326875,5.59772407828125Q1.447981166875,5.61213510828125,1.379735526875,5.64040338828125Q1.311489876875,5.66867166828125,1.250070426875,5.70971083828125Q1.188650966875,5.75075000828125,1.136417986875,5.80298292828125Q1.084185066875,5.85521590828125,1.043145896875,5.91663536828125Q1.0021067268750001,5.97805481828125,0.973838446875,6.04630046828125Q0.945570166875,6.11454610828125,0.931159136875,6.18699526828125Q0.916748046875,6.25944444528125,0.916748046875,6.33331298828125ZM2.416747986875,13.24997948828125L13.583415046875,13.24997948828125L13.583415046875,7.08331298828125L2.416748046875,7.08331298828125L2.416747986875,13.24997948828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M0.916748046875,2.99997967828125L0.916748046875,6.33331298828125Q0.916748046875,6.40718178828125,0.931159136875,6.47963048828125Q0.945570166875,6.55207968828125,0.973838446875,6.62032508828125Q1.0021067268750001,6.68857098828125,1.043145896875,6.74998998828125Q1.084185066875,6.81140998828125,1.136417986875,6.86364268828125Q1.188650966875,6.91587538828125,1.250070426875,6.95691488828125Q1.311489876875,6.99795388828125,1.379735526875,7.02622218828125Q1.447981166875,7.05449058828125,1.520430326875,7.06890198828125Q1.592879503875,7.08331298828125,1.666748046875,7.08331298828125L14.333415046875,7.08331298828125Q14.407283046875,7.08331298828125,14.479732046875,7.06890198828125Q14.552181046875,7.05449058828125,14.620426046875,7.02622218828125Q14.688671046875,6.99795388828125,14.750092046875,6.95691488828125Q14.811510046875,6.91587538828125,14.863744046875,6.86364268828125Q14.915976046875,6.81140998828125,14.957015046875,6.74998998828125Q14.998054046875,6.68857098828125,15.026323046875,6.62032508828125Q15.054592046875,6.55207968828125,15.069002046875,6.47963048828125Q15.083414046875,6.40718178828125,15.083415046875,6.33331298828125L15.083415046875,2.99997967828125Q15.083415046875,2.41317737128125,14.668489046875,1.9982476482812501Q14.253559046875,1.58331298828125,13.666748046875,1.58331298828125L2.333414736875,1.58331304828125Q1.746612101875,1.58331304828125,1.331680086875,1.9982450582812499Q0.916748046875,2.41317707328125,0.916748046875,2.99997967828125ZM2.416748046875,5.58331298828125L13.583415046875,5.58331298828125L13.583415046875,3.08331298828125L2.416748046875,3.08331304828125L2.416748046875,5.58331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M4.583401923125,1.33331298828125Q4.583401923125,1.2594592052812499,4.597810153125,1.18702450828125Q4.612218263125,1.11458980828125,4.640480873125,1.04635780828125Q4.668743493125,0.9781258082812501,4.709774493125,0.91671865828125Q4.7508054331250005,0.85531147828125,4.803027923125,0.80308895828125Q4.855250443125,0.75086646828125,4.916657623125,0.70983552828125Q4.978064773125,0.66880452828125,5.046296773125,0.64054190828125Q5.114528773125,0.61227929828125,5.186963473125,0.59787118828125Q5.259398170125,0.58346295828125,5.333251953125,0.58346295828125Q5.407105736125,0.58346295828125,5.479540433125,0.59787118828125Q5.551975133125,0.61227929828125,5.620207133125,0.64054190828125Q5.688439133125,0.66880452828125,5.749846283125,0.70983552828125Q5.811253463125,0.75086646828125,5.863475983125,0.80308895828125Q5.9156984731249995,0.85531147828125,5.956729413125,0.91671865828125Q5.997760413125,0.9781258082812501,6.026023033125,1.04635780828125Q6.054285643125,1.11458980828125,6.068693753125,1.18702450828125Q6.083101983125,1.2594592052812499,6.083101983125,1.33331298828125L6.083251953125,1.33331298828125L6.083251953125,3.99997968828125L6.083101983125,3.99997968828125Q6.083101983125,4.073833488281251,6.068693753125,4.146267888281249Q6.054285643125,4.2187027882812504,6.026023033125,4.28693458828125Q5.997760413125,4.3551663882812495,5.956729413125,4.41657378828125Q5.9156984731249995,4.47798088828125,5.863475983125,4.53020358828125Q5.811253463125,4.582426088281251,5.749846283125,4.62345698828125Q5.688439133125,4.664487888281251,5.620207133125,4.69275048828125Q5.551975133125,4.72101308828125,5.479540433125,4.73542118828125Q5.407105736125,4.74982948828125,5.333251953125,4.74982978828125Q5.259398170125,4.74982948828125,5.186963473125,4.73542118828125Q5.114528773125,4.72101278828125,5.046296773125,4.69275018828125Q4.978064773125,4.664487588281251,4.916657623125,4.62345668828125Q4.855250443125,4.582426088281251,4.803027923125,4.53020358828125Q4.7508054331250005,4.47798088828125,4.709774493125,4.41657348828125Q4.668743493125,4.3551663882812495,4.640480873125,4.286934388281249Q4.612218263125,4.21870258828125,4.597810153125,4.146267888281249Q4.583401923125,4.073833488281251,4.583401923125,3.99997968828125L4.583251953125,3.99997968828125L4.583251953125,1.33331298828125L4.583401923125,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M9.916898016875,1.33331298828125Q9.916898016875,1.2594592052812499,9.931306246875,1.18702450828125Q9.945714356875,1.11458980828125,9.973976966875,1.04635780828125Q10.002239586875,0.9781258082812501,10.043270586875,0.91671865828125Q10.084301526875,0.85531147828125,10.136524016875,0.80308895828125Q10.188746536875,0.75086646828125,10.250153716875,0.70983552828125Q10.311560866875,0.66880452828125,10.379792866875,0.64054190828125Q10.448024866875,0.61227929828125,10.520459566875,0.59787118828125Q10.592894263875,0.58346295828125,10.666748046875,0.58346295828125Q10.740601829875,0.58346295828125,10.813036526875,0.59787118828125Q10.885471226875,0.61227929828125,10.953703226875,0.64054190828125Q11.021935226875,0.66880452828125,11.083342376875,0.70983552828125Q11.144749556875,0.75086646828125,11.196972076875,0.80308895828125Q11.249194566875,0.85531147828125,11.290225506875,0.91671865828125Q11.331256506875,0.9781258082812501,11.359519126875,1.04635780828125Q11.387781736875,1.11458980828125,11.402189846875,1.18702450828125Q11.416598076875,1.2594592052812499,11.416598076875,1.33331298828125L11.416748046875,1.33331298828125L11.416748046875,3.99997968828125L11.416598076875,3.99997968828125Q11.416598076875,4.073833488281251,11.402189846875,4.146267888281249Q11.387781736875,4.2187027882812504,11.359519126875,4.28693458828125Q11.331256506875,4.3551663882812495,11.290225506875,4.41657378828125Q11.249194566875,4.47798088828125,11.196972076875,4.53020358828125Q11.144749556875,4.582426088281251,11.083342376875,4.62345698828125Q11.021935226875,4.664487888281251,10.953703226875,4.69275048828125Q10.885471226875,4.72101308828125,10.813036526875,4.73542118828125Q10.740601829875,4.74982948828125,10.666748046875,4.74982978828125Q10.592894263875,4.74982948828125,10.520459566875,4.73542118828125Q10.448024866875,4.72101278828125,10.379792866875,4.69275018828125Q10.311560866875,4.664487588281251,10.250153716875,4.62345668828125Q10.188746536875,4.582426088281251,10.136524016875,4.53020358828125Q10.084301526875,4.47798088828125,10.043270586875,4.41657348828125Q10.002239586875,4.3551663882812495,9.973976966875,4.286934388281249Q9.945714356875,4.21870258828125,9.931306246875,4.146267888281249Q9.916898016875,4.073833488281251,9.916898016875,3.99997968828125L9.916748046875,3.99997968828125L9.916748046875,1.33331298828125L9.916898016875,1.33331298828125Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Rr={class:"j-tw-datetime-picker__separator"};function Wr(e,n,r,o,i,s){const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createElementBlock("div",{ref:"dateTimePickerRef",class:t.normalizeClass(["j-tw-datetime-picker",{"j-tw-datetime-picker--bg-grey":e.bgGrey,"j-tw-datetime-picker--dense":e.dense}])},[t.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":n[0]||(n[0]=a=>e.internalValue=a),type:"datetimerange",format:e.format,"value-format":e.valueFormat,placeholder:e.placeholder,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,disabled:e.disable,readonly:e.readonly,clearable:e.clearable,"disabled-date":e.disabledDate,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"popper-class":`j-tw-datetime-picker__popper ${e.popperClass||""}`,"popper-options":e.computedPopperOptions,placement:e.placement,shortcuts:e.computedShortcuts,class:"j-tw-datetime-picker__input",onChange:e.handleChange,onBlur:e.handleBlur,onFocus:e.handleFocus,onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{"prefix-icon":t.withCtx(()=>[...n[1]||(n[1]=[t.createElementVNode("img",{src:Vr,alt:"calendar",class:"j-tw-datetime-picker__calendar-icon"},null,-1)])]),"range-separator":t.withCtx(()=>[t.createElementVNode("span",Rr,t.toDisplayString(e.rangeSeparator),1)]),_:1},8,["modelValue","format","value-format","placeholder","start-placeholder","end-placeholder","disabled","readonly","clearable","disabled-date","default-value","range-separator","popper-class","popper-options","placement","shortcuts","onChange","onBlur","onFocus","onClear","onVisibleChange"])],2)}const Ur=se($r,[["render",Wr]]),Zr=t.defineComponent({name:"JTWRadio",components:{ElRadio:fe.ElRadio},inheritAttrs:!1,setup(){return{}}});function Yr(e,n,r,o,i,s){const l=t.resolveComponent("el-radio");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elRadioRef",class:"j-tw-radio"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const g1=se(Zr,[["render",Yr]]),Gr=t.defineComponent({name:"JTWPagination",components:{ElPagination:fe.ElPagination},props:{page:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0},pageSizes:{type:Array,default:()=>[10,20,50,100]},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},pagerCount:{type:Number,default:5},background:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:{sizeChange:e=>!0,currentChange:e=>!0,"update:page":e=>!0,"update:pageSize":e=>!0},setup(e,{emit:n}){return{handleSizeChange:i=>{n("sizeChange",i),n("update:pageSize",i),n("update:page",1)},handleCurrentChange:i=>{n("currentChange",i),n("update:page",i)}}}}),Hr={class:"j-tw-pagination"};function Jr(e,n,r,o,i,s){const l=t.resolveComponent("el-pagination");return t.openBlock(),t.createElementBlock("div",Hr,[t.createVNode(l,{"pager-count":e.pagerCount,"page-sizes":e.pageSizes,"current-page":e.page,"page-size":e.pageSize,total:e.total,layout:e.layout,background:e.background,disabled:e.disabled,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["pager-count","page-sizes","current-page","page-size","total","layout","background","disabled","onSizeChange","onCurrentChange"])])}const w1=se(Gr,[["render",Jr]]),Gt={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},Ht={DARK:"dark",LIGHT:"light"},Jt={HOVER:"hover",CLICK:"click",FOCUS:"focus",CONTEXTMENU:"contextmenu"},Xr=t.defineComponent({name:"JTWTooltip",components:{ElTooltip:fe.ElTooltip},props:{content:{type:[String,Number],default:""},placement:{type:String,default:Gt.TOP,validator:e=>Object.values(Gt).includes(e)},effect:{type:String,default:Ht.DARK,validator:e=>Object.values(Ht).includes(e)},trigger:{type:String,default:Jt.HOVER,validator:e=>Object.values(Jt).includes(e)},showArrow:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},offset:{type:Number,default:5},disabled:{type:Boolean,default:!1},popperClass:{type:String,default:void 0},popperStyle:{type:[String,Object],default:void 0}},emits:{"visible-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.computed(()=>e.content!=null?String(e.content):""),s=t.computed(()=>{const c=["j-tw-tooltip-popper"];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),l=c=>{n("visible-change",c)};return r({get $el(){var c;return(c=o.value)==null?void 0:c.$el},show:()=>{var c,y,g;(g=(y=(c=o.value)==null?void 0:c.popperRef)==null?void 0:y.show)==null||g.call(y)},hide:()=>{var c,y,g;(g=(y=(c=o.value)==null?void 0:c.popperRef)==null?void 0:y.hide)==null||g.call(y)}}),{computedPopperClass:s,elTooltipRef:o,handleVisibleChange:l,tooltipContent:i}}});function Kr(e,n,r,o,i,s){const l=t.resolveComponent("el-tooltip");return t.openBlock(),t.createBlock(l,{ref:"elTooltipRef",content:e.tooltipContent,placement:e.placement,effect:e.effect,trigger:e.trigger,"show-arrow":e.showArrow,"show-after":e.openDelay,"hide-after":e.closeDelay,offset:e.offset,disabled:e.disabled,"popper-class":e.computedPopperClass,"popper-style":e.popperStyle,onVisibleChange:e.handleVisibleChange},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.content?{name:"content",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"content")]),key:"0"}:void 0]),1032,["content","placement","effect","trigger","show-arrow","show-after","hide-after","offset","disabled","popper-class","popper-style","onVisibleChange"])}const Nt=se(Xr,[["render",Kr]]),qr=t.defineComponent({name:"JTWTable",components:{ElPopover:fe.ElPopover,JTWCheckbox:_t,JTWRadio:g1,JTWPagination:w1,JTWBtn:ze,JTWTooltip:Nt},props:{rows:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},loading:{type:Boolean,default:!1},height:{type:[String,Number],default:void 0},pagination:{type:[Object,Boolean],default:!1},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},bordered:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}},emits:{selectionChange:e=>!0,sortChange:e=>!0,filterChange:e=>!0,sizeChange:e=>!0,currentChange:e=>!0,"update:pagination":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref([]),s=t.ref({}),l=t.ref({}),a=t.ref({prop:"",order:null}),c=t.ref({}),y=t.ref({}),g=(j,S)=>{c.value[S]=j},p=j=>{const S=c.value[j];S&&(y.value[j]=S.scrollWidth>S.clientWidth)},Q=j=>!!y.value[j],h=(j,S)=>typeof e.rowKey=="function"?e.rowKey(j):j[e.rowKey]??S,v=j=>{const S={};return j.width&&(S.width=typeof j.width=="number"?`${j.width}px`:j.width),j.minWidth&&(S.minWidth=typeof j.minWidth=="number"?`${j.minWidth}px`:j.minWidth),j.width||(S.flex="1"),S},u=j=>i.value.some(S=>h(S,-1)===h(j,-1)),w=t.computed(()=>e.rows.length>0&&e.rows.every(j=>u(j))),d=t.computed(()=>{const j=e.rows.filter(S=>u(S)).length;return j>0&&j<e.rows.length}),k=j=>{i.value=j?[...e.rows]:[],n("selectionChange",i.value)},N=(j,S)=>{S?u(j)||i.value.push(j):i.value=i.value.filter(B=>h(B,-1)!==h(j,-1)),n("selectionChange",i.value)},D=j=>{n("sortChange",j)},b=j=>({"is-asc":a.value.prop===j.prop&&a.value.order==="asc","is-desc":a.value.prop===j.prop&&a.value.order==="desc"}),T=j=>{a.value.prop!==j.prop?a.value={prop:j.prop,order:"desc"}:a.value.order==="desc"?a.value={prop:j.prop,order:"asc"}:a.value.order==="asc"?a.value={prop:"",order:null}:a.value={prop:j.prop,order:"desc"},n("sortChange",{column:j,prop:a.value.prop,order:a.value.order??""})},I=j=>!!j.filteredValue&&j.filteredValue.length>0,$=(j,S)=>{const B=s.value[j.prop];return B!==void 0?B.includes(S):!!j.filteredValue&&j.filteredValue.includes(S)},M=(j,S,B)=>{s.value[j.prop]||(s.value[j.prop]=j.filteredValue?[...j.filteredValue]:[]);const te=s.value[j.prop];if(B)te.includes(S)||te.push(S);else{const O=te.indexOf(S);O>-1&&te.splice(O,1)}},L=j=>{const S=s.value[j.prop];return S!==void 0&&S.length>0?S[0]:j.filteredValue&&j.filteredValue.length>0?j.filteredValue[0]:void 0},V=(j,S)=>{s.value[j.prop]=[S]},C=j=>{const S=s.value[j.prop]||[],B={};B[j.prop]=S,n("filterChange",B),l.value[j.prop]=!1},x=j=>{s.value[j.prop]=[];const S={};S[j.prop]=[],n("filterChange",S),l.value[j.prop]=!1},m=()=>{const j=e.pagination;return j||null},R=j=>{n("sizeChange",j);const S=m();S&&n("update:pagination",{...S,pageSize:j,page:1})},K=j=>{n("currentChange",j);const S=m();S&&n("update:pagination",{...S,page:j})};return r({get $el(){return o.value},tableRef:o,clearSelection:()=>{i.value=[],n("selectionChange",[])},toggleRowSelection:(j,S)=>{const B=S??!u(j);N(j,B)}}),{tableRef:o,selectedRows:i,filterPopoverVisible:l,isAllSelected:w,isIndeterminate:d,isRowSelected:u,getRowKey:h,getColStyle:v,emptyText:e.emptyText,handleSelectAll:k,handleRowSelect:N,handleSortChange:D,sortState:a,getSortClass:b,handleSortClick:T,isFilterActive:I,isFilterSelected:$,handleFilterSelect:M,getSingleFilterValue:L,handleSingleFilterSelect:V,handleFilterConfirm:C,handleFilterReset:x,handleSizeChange:R,handleCurrentChange:K,setLabelRef:g,checkOverflow:p,isLabelOverflowing:Q}}}),e0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzBfMjcwXzUzODIzIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjODBBNkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMxNjVERkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJiZ2JsdXJfbWFzdGVyX3N2ZzFfMTMxM18wOTQ3NzFfY2xpcF9wYXRoIj48cGF0aCBkPSJNMjQgNEMyMi40ODY3NCA0IDIxLjE2OTc0NiAzLjE1OTY4MzIgMjAuNDkwMTkyIDEuOTIwMjI0MUMxOS45NTkxNjkgMC45NTE2NzQxIDE5LjEwNDU3IDAgMTggMEwyLjAwMDAwMDUgMEMwLjg5NTQzMDU2IDAgMCAwLjg5NTQzMDU2IDAgMi4wMDAwMDAyTDAgMjBDMCAyMi4yMDkxMzkgMS43OTA4NjExIDI0IDQuMDAwMDAxIDI0TDY4IDI0QzcwLjIwOTEzNyAyNCA3MiAyMi4yMDkxMzkgNzIgMjBMNzIgMi4wMDAwMDA1QzcyIDAuODk1NDMwNTYgNzEuMTA0NTY4IDAgNzAgMEw1NCAwQzUyLjg5NTQzMiAwIDUyLjA0MDgyOSAwLjk1MTY3NDIyIDUxLjUwOTgwOCAxLjkyMDIyNDFDNTAuODMwMjU0IDMuMTU5NjgzMiA0OS41MTMyNiA0IDQ4IDRMMjQgNFoiLz48L2NsaXBQYXRoPjxsaW5lYXJHcmFkaWVudCB4MT0iMC41IiB5MT0iMCIgeDI9IjAuNSIgeTI9IjEiIGlkPSJtYXN0ZXJfc3ZnMl8yNzBfNTM4MTciPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNDQ0RCRkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzk5QjhGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxTDgsNjhaIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcwXzI3MF81MzgyMykiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcxXzEzMTNfMDk0NzcxX2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcyXzI3MF81MzgxNykiIGZpbGwtb3BhY2l0eT0iMSIvPjwvc3ZnPg==",t0={class:"j-tw-table__header"},n0={key:0,class:"j-tw-table__header-cell j-tw-table__header-cell--selection"},r0={key:1,class:"j-tw-table__header-cell",style:{width:"60px","flex-shrink":"0"}},o0={class:"j-tw-table__header-label"},i0=["onClick"],l0={key:0,class:"j-tw-table__filter-dot"},a0={class:"j-tw-table__filter-content"},s0={class:"j-tw-table__filter-list"},c0=["onMouseenter"],u0=["onMouseenter"],d0={class:"j-tw-table__filter-actions"},f0={key:2,class:"j-tw-table__header-cell j-tw-table__header-cell--action"},h0={class:"j-tw-table__body-wrapper"},p0={key:0,class:"j-tw-table__body"},m0={key:0,class:"j-tw-table__cell j-tw-table__cell--selection"},g0={key:1,class:"j-tw-table__cell",style:{width:"60px","flex-shrink":"0"}},w0={key:1},y0={key:2,class:"j-tw-table__cell j-tw-table__cell--action"},v0={key:1,class:"j-tw-table__empty"},Q0={class:"j-tw-table__empty-text"},k0={key:0,class:"j-tw-table__pagination"};function b0(e,n,r,o,i,s){const l=t.resolveComponent("JTWCheckbox"),a=t.resolveComponent("JTWTooltip"),c=t.resolveComponent("JTWRadio"),y=t.resolveComponent("JTWBtn"),g=t.resolveComponent("el-popover"),p=t.resolveComponent("JTWPagination"),Q=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-table",{"j-tw-table--dense":e.dense,"j-tw-table--fixed":e.height}]),style:t.normalizeStyle(e.height?{height:typeof e.height=="number"?`${e.height}px`:e.height}:{})},[t.renderSlot(e.$slots,"header"),t.createElementVNode("div",t0,[e.selection?(t.openBlock(),t.createElementBlock("div",n0,[t.createVNode(l,{"model-value":e.isAllSelected,indeterminate:e.isIndeterminate,onChange:n[0]||(n[0]=h=>e.handleSelectAll(!!h))},null,8,["model-value","indeterminate"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",r0," 序号 ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,h=>(t.openBlock(),t.createElementBlock("div",{key:h.prop,class:"j-tw-table__header-cell",style:t.normalizeStyle(e.getColStyle(h))},[t.createElementVNode("span",o0,t.toDisplayString(h.label),1),h.sortable?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["j-tw-table__sort-icon",e.getSortClass(h)]),onClick:v=>e.handleSortClick(h)},[...n[1]||(n[1]=[t.createElementVNode("svg",{class:"j-tw-table__sort-asc",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"7",viewBox:"0 0 7 5",fill:"none"},[t.createElementVNode("path",{d:"M3.5 0L6.53109 4.5H0.468911L3.5 0Z",fill:"currentColor"})],-1),t.createElementVNode("svg",{class:"j-tw-table__sort-desc",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"7",viewBox:"0 0 7 5",fill:"none"},[t.createElementVNode("path",{d:"M3.5 5L0.468911 0.5H6.53109L3.5 5Z",fill:"currentColor"})],-1)])],10,i0)):t.createCommentVNode("",!0),h.filters&&h.filters.length>0?(t.openBlock(),t.createBlock(g,{key:1,visible:e.filterPopoverVisible[h.prop],"onUpdate:visible":v=>e.filterPopoverVisible[h.prop]=v,placement:h.filterPlacement||"bottom-end",width:200,trigger:"click","popper-class":"j-tw-table__filter-popover"},{reference:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["j-tw-table__filter-icon",{"is-active":e.isFilterActive(h)}])},[n[2]||(n[2]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[t.createElementVNode("path",{d:"M2 2H12L8 7V11L6 12V7L2 2Z",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),e.isFilterActive(h)?(t.openBlock(),t.createElementBlock("span",l0)):t.createCommentVNode("",!0)],2)]),default:t.withCtx(()=>[t.createElementVNode("div",a0,[t.createElementVNode("div",s0,[h.filterMultiple!==!1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(h.filters,v=>(t.openBlock(),t.createBlock(l,{key:v.value,"model-value":e.isFilterSelected(h,v.value),onChange:u=>e.handleFilterSelect(h,v.value,!!u),class:"j-tw-table__filter-item"},{default:t.withCtx(()=>[t.createVNode(a,{content:v.label,placement:"top",disabled:!e.isLabelOverflowing(v.value+h.prop)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"j-tw-table__filter-label",ref_for:!0,ref:u=>e.setLabelRef(u,v.value+h.prop),onMouseenter:u=>e.checkOverflow(v.value+h.prop)},t.toDisplayString(v.label),41,c0)]),_:2},1032,["content","disabled"])]),_:2},1032,["model-value","onChange"]))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(h.filters,v=>(t.openBlock(),t.createBlock(c,{key:v.value,"model-value":e.getSingleFilterValue(h),label:v.value,onChange:u=>e.handleSingleFilterSelect(h,v.value),class:"j-tw-table__filter-item"},{default:t.withCtx(()=>[t.createVNode(a,{content:v.label,placement:"top",disabled:!e.isLabelOverflowing(v.value+h.prop)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"j-tw-table__filter-label",ref_for:!0,ref:u=>e.setLabelRef(u,v.value+h.prop),onMouseenter:u=>e.checkOverflow(v.value+h.prop)},t.toDisplayString(v.label),41,u0)]),_:2},1032,["content","disabled"])]),_:2},1032,["model-value","label","onChange"]))),128))]),t.createElementVNode("div",d0,[t.createVNode(y,{size:"small",onClick:v=>e.handleFilterConfirm(h)},{default:t.withCtx(()=>[...n[3]||(n[3]=[t.createTextVNode(" 筛选 ",-1)])]),_:1},8,["onClick"]),t.createVNode(y,{size:"small",flat:"",onClick:v=>e.handleFilterReset(h)},{default:t.withCtx(()=>[...n[4]||(n[4]=[t.createTextVNode(" 重置 ",-1)])]),_:1},8,["onClick"])])])]),_:2},1032,["visible","onUpdate:visible","placement"])):t.createCommentVNode("",!0)],4))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",f0," 操作 ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",h0,[e.rows&&e.rows.length>0?(t.openBlock(),t.createElementBlock("div",p0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rows,(h,v)=>(t.openBlock(),t.createElementBlock("div",{key:e.getRowKey(h,v),class:t.normalizeClass(["j-tw-table__row",{"j-tw-table__row--selected":e.isRowSelected(h)}])},[e.selection?(t.openBlock(),t.createElementBlock("div",m0,[t.createVNode(l,{"model-value":e.isRowSelected(h),onChange:u=>e.handleRowSelect(h,!!u)},null,8,["model-value","onChange"])])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createElementBlock("div",g0,t.toDisplayString(v+1),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,u=>(t.openBlock(),t.createElementBlock("div",{key:u.prop,class:t.normalizeClass(["j-tw-table__cell",`j-tw-table__cell--align-${u.align||"left"}`]),style:t.normalizeStyle(e.getColStyle(u))},[u.type==="slot"?t.renderSlot(e.$slots,`col-${u.prop}`,{key:0,row:h,$index:v,column:u}):(t.openBlock(),t.createElementBlock("span",w0,t.toDisplayString(h[u.prop]??"-"),1))],6))),128)),e.$slots.action?(t.openBlock(),t.createElementBlock("div",y0,[t.renderSlot(e.$slots,"action",{row:h,$index:v})])):t.createCommentVNode("",!0)],2))),128))])):(t.openBlock(),t.createElementBlock("div",v0,[t.renderSlot(e.$slots,"empty",{},()=>[n[5]||(n[5]=t.createElementVNode("img",{class:"j-tw-table__empty-img",src:e0,alt:"no data"},null,-1)),t.createElementVNode("span",Q0,t.toDisplayString(e.emptyText),1)])]))]),e.pagination!==!1&&e.pagination?(t.openBlock(),t.createElementBlock("div",k0,[t.createVNode(p,{page:e.pagination.page,"page-size":e.pagination.pageSize,total:e.pagination.total,"page-sizes":e.pagination.pageSizes,layout:e.pagination.layout,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])):t.createCommentVNode("",!0)],6)),[[Q,e.loading]])}const M0=se(qr,[["render",b0]]),C0=t.defineComponent({name:"JTWMessageItem",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},content:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},duration:{type:Number,default:3e3},showClose:{type:Boolean,default:!1},offset:{type:Number,default:52},onClose:{type:Function,default:void 0}},emits:{destroy:e=>!0},setup(e,{emit:n}){const r=t.ref(!1);let o;const i=t.computed(()=>({"j-tw-message":!0,[`j-tw-message--${e.type}`]:!0})),s=t.computed(()=>({marginTop:`${e.offset}px`})),l=()=>{e.duration>0&&(o=window.setTimeout(()=>{c()},e.duration))},a=()=>{o&&(clearTimeout(o),o=void 0)},c=()=>{var Q;r.value=!1,(Q=e.onClose)==null||Q.call(e)},y=()=>{n("destroy",e.id)},g=()=>{a()},p=()=>{l()};return t.onMounted(()=>{r.value=!0,l()}),{visible:r,computedClass:i,computedStyle:s,handleClose:c,handleAfterLeave:y,handleMouseEnter:g,handleMouseLeave:p}}}),_0={class:"j-tw-message__icon"},N0={key:0,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D0={key:1,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A0={key:2,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S0={key:3,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T0={key:4,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I0=["innerHTML"],E0={key:2,class:"j-tw-message__content"};function L0(e,n,r,o,i,s){return t.openBlock(),t.createBlock(t.Transition,{name:"j-tw-message-fade",onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.computedClass),style:t.normalizeStyle(e.computedStyle),onMouseenter:n[1]||(n[1]=(...l)=>e.handleMouseEnter&&e.handleMouseEnter(...l)),onMouseleave:n[2]||(n[2]=(...l)=>e.handleMouseLeave&&e.handleMouseLeave(...l))},[t.createElementVNode("div",_0,[e.type==="success"?(t.openBlock(),t.createElementBlock("svg",N0,[...n[3]||(n[3]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M11.5 5.5L7 10.5L4.5 8",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.type==="warning"?(t.openBlock(),t.createElementBlock("svg",D0,[...n[4]||(n[4]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M8 4.5V8.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"11",r:"0.75",fill:"white"},null,-1)])])):e.type==="error"?(t.openBlock(),t.createElementBlock("svg",A0,[...n[5]||(n[5]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("path",{d:"M10.5 5.5L5.5 10.5M5.5 5.5L10.5 10.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):e.type==="info"?(t.openBlock(),t.createElementBlock("svg",S0,[...n[6]||(n[6]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):(t.openBlock(),t.createElementBlock("svg",T0,[...n[7]||(n[7]=[t.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),t.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))]),e.html&&typeof e.content=="string"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-message__content",innerHTML:e.content},null,8,I0)):typeof e.content=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:1,class:"j-tw-message__content"})):(t.openBlock(),t.createElementBlock("div",E0,t.toDisplayString(e.content),1)),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-message__close",onClick:n[0]||(n[0]=(...l)=>e.handleClose&&e.handleClose(...l))},[...n[8]||(n[8]=[t.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})],-1)])])):t.createCommentVNode("",!0)],38)):t.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])}const x0=se(C0,[["render",L0]]),Ee=t.ref([]),j0=t.defineComponent({name:"JTWMessages",components:{MessageItem:x0},setup(){const e=r=>{const o=Ee.value.findIndex(i=>i.id===r);o!==-1&&Ee.value.splice(o,1)};return{messages:t.computed(()=>Ee.value.filter(r=>r.visible)),handleDestroy:e}}}),B0={class:"j-tw-message-container"};function z0(e,n,r,o,i,s){const l=t.resolveComponent("MessageItem");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createElementVNode("div",B0,[t.createVNode(t.TransitionGroup,{name:"j-tw-message-list"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.messages,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.id,id:a.id,type:a.type,content:a.content,duration:a.duration,"show-close":a.showClose,offset:c===0?a.offset:0,"on-close":a.onClose,html:a.html,onDestroy:e.handleDestroy},null,8,["id","type","content","duration","show-close","offset","on-close","html","onDestroy"]))),128))]),_:1})])])}const y1=se(j0,[["render",z0]]),v1={WARN:"warn",INFO:"info",SUCCESS:"success",ERROR:"error"},O0=t.defineComponent({name:"JTWConfirmDialog",components:{JTWBtn:ze},props:{visible:{type:Boolean,default:!1},message:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},icon:{type:String,default:v1.WARN},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},showCancel:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0}},emits:{confirm:()=>!0,cancel:()=>!0},setup(e,{emit:n}){const r=()=>{n("confirm")},o=()=>{n("cancel")},i=()=>{n("cancel")},s={warn:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10.001" cy="10" rx="8.333" ry="8.333" fill="#FF7D00"/><path d="M9.25,6 L9.25,11 Q9.25,11.75,10,11.75 Q10.75,11.75,10.75,11 L10.75,6 Q10.75,5.25,10,5.25 Q9.25,5.25,9.25,6 Z" fill="#FFFFFF"/><circle cx="10" cy="14" r="1" fill="#FFFFFF"/></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><ellipse cx="10" cy="10" rx="8" ry="8" fill="#165DFF"/><path d="M9.25,9 L9.25,14 Q9.25,14.75,10,14.75 Q10.75,14.75,10.75,14 L10.75,9 Q10.75,8.25,10,8.25 Q9.25,8.25,9.25,9 Z" fill="#FFFFFF"/><circle cx="10" cy="6.5" r="1" fill="#FFFFFF"/></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#00B42A"/><path d="M6 10 L9 13 L14 7" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" version="1.1" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="#F53F3F"/><path d="M7 7 L13 13 M13 7 L7 13" stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="round"/></svg>'};return{iconSvg:t.computed(()=>typeof e.icon!="string"?"":s[e.icon]??e.icon),handleConfirm:r,handleCancel:o,handleMaskClick:i}}}),F0={class:"j-tw-confirm-dialog__header"},P0=["innerHTML"],$0=["innerHTML"],V0={key:3,class:"j-tw-confirm-dialog__message"},R0={class:"j-tw-confirm-dialog__footer"};function W0(e,n,r,o,i,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-confirm-dialog-fade"},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__mask",onClick:n[1]||(n[1]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a))},[t.createElementVNode("div",{class:"j-tw-confirm-dialog__wrapper",onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",F0,[e.showIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:"j-tw-confirm-dialog__icon",innerHTML:e.iconSvg},null,8,P0)):t.createCommentVNode("",!0),e.html&&typeof e.message=="string"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-confirm-dialog__message",innerHTML:e.message},null,8,$0)):typeof e.message=="object"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.message),{key:2,class:"j-tw-confirm-dialog__message"})):(t.openBlock(),t.createElementBlock("span",V0,t.toDisplayString(e.message),1))]),t.createElementVNode("div",R0,[e.showCancel?(t.openBlock(),t.createBlock(l,{key:0,label:e.cancelText||"取消",flat:"",onClick:e.handleCancel},null,8,["label","onClick"])):t.createCommentVNode("",!0),e.showConfirm?(t.openBlock(),t.createBlock(l,{key:1,label:e.confirmText||"确定",onClick:e.handleConfirm},null,8,["label","onClick"])):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0)]),_:1})])}const Q1=se(O0,[["render",W0]]),k1={CENTER:"center",RIGHT:"right"},b1={SM:"sm",MD:"md",LG:"lg"},M1={BOTH:"both",CANCEL_ONLY:"cancel-only",CONFIRM_ONLY:"confirm-only"};var U0={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const Ve=new Map;let Ne={};const Ue={configure(e){Ne=e},async register(e){try{console.log("[twDialog] 开始注册 dialog, props:",e);const n=e.dialogId||Math.random().toString(36).slice(2),r={...e,dialogId:n},o=t.ref(null),i=Ne.locale||U0;console.log("[twDialog] 创建 WrapperComponent...");const s={setup(){return{dialogRef:o}},render(){return t.h(fe.ElConfigProvider,{locale:i},{default:()=>t.h(C1,{...r,ref:y=>{console.log("[twDialog] ref 回调被调用, el:",y),o.value=y}})})}};console.log("[twDialog] 创建 Vue app...");const l=t.createApp(s);Ne.router&&l.use(Ne.router),Ne.store&&l.use(Ne.store),Ne.i18n&&l.use(Ne.i18n),Ne.plugins&&Ne.plugins.forEach(y=>l.use(y)),console.log("[twDialog] 挂载 app...");const a=document.createElement("div");l.mount(a),console.log("[twDialog] app 已挂载, mountEl:",a),await t.nextTick(),console.log("[twDialog] nextTick 后, dialogRef.value:",o.value);const c=o.value;if(!c)throw new Error("dialogRef.value 为 null,组件可能没有正确挂载");return Ve.set(n,{app:l,appInstance:c}),t.nextTick(()=>{c&&(console.log("[twDialog] 调用 appInstance.open()"),c.open())}),console.log("[twDialog] 注册成功, 返回 appInstance"),c}catch(n){throw console.error("[twDialog] 注册失败:",n),console.error("[twDialog] 错误堆栈:",n instanceof Error?n.stack:"无堆栈信息"),n}},destroy(e){const n=Ve.get(e);if(n){try{const r=n.app._container;n.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}Ve.delete(e)}},destroyAll(){Ve.forEach((e,n)=>{try{const r=e.app._container;e.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}}),Ve.clear()}};async function Z0(e){return Ue.register(e)}const Y0=t.defineComponent({name:"JTWDialog",components:{JTWBtn:ze},props:{dialogId:{type:String},title:{type:String,default:""},position:{type:String,default:k1.CENTER},size:{type:String,default:b1.MD},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},footerMode:{type:String,default:M1.BOTH},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},component:{default:null},componentBind:{type:Object,default:()=>({})},componentOn:{type:Object,default:()=>({})},closeOnMask:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},footerExtra:{type:Object,default:null},bodyPadded:{type:Boolean,default:!0},width:{type:String,default:""},topOffset:{type:String,default:"0px"}},setup(e,{expose:n}){var G;const r=t.ref(!1),o=t.ref(null),i=t.ref(null),s=t.ref(!1),l=t.ref(e.cancelText),a=t.ref(e.confirmText),c=t.ref(e.footerMode),y=t.ref(((G=e.footerExtra)==null?void 0:G.bind)||{}),g=t.ref(e.width),p=t.ref(!1),Q=t.ref(!1),h=t.computed(()=>e.position==="right"?"j-tw-dialog-slide-right":"j-tw-dialog-fade"),v=t.computed(()=>`j-tw-dialog__wrapper--${e.size}`),u=t.computed(()=>{const U={};return e.topOffset!=="0px"&&(U.height=`calc(100vh - ${e.topOffset})`,U.top=e.topOffset),U}),w=t.computed(()=>{const U={};return g.value&&(U.width=g.value,U.maxWidth=g.value),e.position==="right"&&e.topOffset!=="0px"&&(U.height=`calc(100vh - ${e.topOffset})`,U.maxHeight=`calc(100vh - ${e.topOffset})`),U}),d=t.computed(()=>{var U;return{...e.componentBind,dialogInstance:{...((U=e.componentBind)==null?void 0:U.dialogInstance)||{},open:N,close:D,setLoading:b,changeCancelText:T,changeConfirmText:I,setFooterMode:$,setFooterExtraBind:M,setDialogWidth:L,setDisabled:V}}}),k=t.computed(()=>{var U;return{...(U=e.footerExtra)==null?void 0:U.bind,...y.value}}),N=()=>{r.value=!0,t.nextTick(()=>{var U;(U=o.value)==null||U.focus()})},D=()=>{r.value=!1},b=U=>{s.value=U},T=U=>{l.value=U},I=U=>{a.value=U},$=U=>{c.value=U},M=U=>{y.value={...y.value,...U}},L=U=>{g.value=U},V=U=>{U.cancel!==void 0&&(p.value=U.cancel),U.confirm!==void 0&&(Q.value=U.confirm)},C=()=>{e.closeOnMask&&D()},x=()=>{e.closeOnEsc&&D()},m=()=>{const U=i.value;U!=null&&U.handleClickCancel?U.handleClickCancel():D()},R=()=>{const U=i.value;U!=null&&U.handleClickConfirm&&U.handleClickConfirm()},K=()=>{e.dialogId&&Ue.destroy(e.dialogId)};return t.onErrorCaptured((U,F,j)=>(console.error("[JTWDialog] Component error captured:",U,j),!1)),n({open:N,close:D,setLoading:b,changeCancelText:T,changeConfirmText:I,setFooterMode:$,setFooterExtraBind:M,setDialogWidth:L,setDisabled:V,loading:s}),{visible:r,maskRef:o,dynamicCompRef:i,loading:s,cancelText:l,confirmText:a,footerMode:c,transitionName:h,sizeClass:v,maskStyle:u,wrapperStyle:w,computedComponentBind:d,computedFooterExtraBind:k,cancelDisabled:p,confirmDisabled:Q,open:N,close:D,setLoading:b,changeCancelText:T,changeConfirmText:I,setFooterMode:$,setDisabled:V,handleMaskClick:C,handleEscKey:x,handleClickCancel:m,handleClickConfirm:R,handleAfterLeave:K}}}),G0={key:0,class:"j-tw-dialog__header"},H0={class:"j-tw-dialog__title"},J0={class:"j-tw-dialog__error"},X0={style:{"font-size":"12px",color:"#999","margin-top":"8px"}},K0={key:2,class:"j-tw-dialog__loading"},q0={key:1,class:"j-tw-dialog__footer-extra"},eo={key:2,class:"j-tw-dialog__footer"};function to(e,n,r,o,i,s){const l=t.resolveComponent("JTWBtn");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:e.transitionName,onAfterLeave:e.handleAfterLeave},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["j-tw-dialog__mask",{"j-tw-dialog__mask--right":e.position==="right"}]),style:t.normalizeStyle(e.maskStyle),onClick:n[2]||(n[2]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a)),onKeydown:n[3]||(n[3]=t.withKeys((...a)=>e.handleEscKey&&e.handleEscKey(...a),["esc"])),tabindex:"-1",ref:"maskRef"},[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__wrapper",`j-tw-dialog__wrapper--${e.position}`,e.sizeClass]),style:t.normalizeStyle(e.wrapperStyle),onClick:n[1]||(n[1]=t.withModifiers(()=>{},["stop"]))},[e.showHeader?(t.openBlock(),t.createElementBlock("div",G0,[t.createElementVNode("span",H0,[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createElementVNode("button",{class:"j-tw-dialog__close",onClick:n[0]||(n[0]=(...a)=>e.close&&e.close(...a)),type:"button"},[...n[4]||(n[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["j-tw-dialog__body",{"j-tw-dialog__body--no-padding":!e.bodyPadded}])},[e.component?(t.openBlock(),t.createBlock(t.Suspense,{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component),t.mergeProps(e.computedComponentBind,t.toHandlers(e.componentOn||{}),{ref:"dynamicCompRef"}),null,16))]),fallback:t.withCtx(()=>[...n[5]||(n[5]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),error:t.withCtx(({error:a})=>[t.createElementVNode("div",J0,[n[6]||(n[6]=t.createElementVNode("p",null,"组件加载失败",-1)),t.createElementVNode("p",X0,t.toDisplayString((a==null?void 0:a.message)||"请刷新页面重试"),1)])]),_:1})):t.renderSlot(e.$slots,"default",{key:1}),e.loading?(t.openBlock(),t.createElementBlock("div",K0,[...n[7]||(n[7]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})],-1)])])):t.createCommentVNode("",!0)],2),e.footerExtra?(t.openBlock(),t.createElementBlock("div",q0,[(t.openBlock(),t.createBlock(t.Suspense,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.footerExtra.component),t.normalizeProps(t.guardReactiveProps(e.computedFooterExtraBind)),null,16))]),fallback:t.withCtx(()=>[...n[8]||(n[8]=[t.createElementVNode("div",{class:"j-tw-dialog__loading"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"j-tw-dialog__spinner"},[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})])],-1)])]),_:1}))])):t.createCommentVNode("",!0),e.showFooter?(t.openBlock(),t.createElementBlock("div",eo,[e.footerMode==="both"||e.footerMode==="cancel-only"?(t.openBlock(),t.createBlock(l,{key:0,label:e.cancelText||"取消",disabled:e.cancelDisabled,flat:"",onClick:e.handleClickCancel},null,8,["label","disabled","onClick"])):t.createCommentVNode("",!0),e.footerMode==="both"||e.footerMode==="confirm-only"?(t.openBlock(),t.createBlock(l,{key:1,label:e.confirmText||"确定",disabled:e.confirmDisabled,onClick:e.handleClickConfirm},null,8,["label","disabled","onClick"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6)],38)):t.createCommentVNode("",!0)]),_:3},8,["name","onAfterLeave"])])}const C1=se(Y0,[["render",to]]),no=t.defineComponent({name:"TreeNode",props:{node:{type:Object,required:!0},level:{type:Number,default:0},isLast:{type:Boolean,default:!1},expandedKeys:{type:Set,required:!0},innerValue:{type:[String,Number,Array],default:void 0},innerValues:{type:Set,required:!0},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},isNodeChecked:{type:Function,required:!0},isNodeIndeterminate:{type:Function,required:!0},isNodeSelected:{type:Function,required:!0},shouldShowCheckbox:{type:Function,required:!0},toggleExpand:{type:Function,required:!0},handleNodeClick:{type:Function,required:!0}}}),ro="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096239'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096239)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",oo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096226'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096226)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%2386909C'%20fill-opacity='1'/%3e%3cpath%20d='M6,10.75L14,10.75L14,10.74985003Q14.0738535,10.74985003,14.1462879,10.7354418Q14.2187233,10.72103369,14.2869549,10.69277108Q14.3551865,10.66450846,14.4165936,10.62347746Q14.4780006,10.58244652,14.5302238,10.53022403Q14.5824451,10.47800151,14.623477,10.41659433Q14.6645069,10.35518718,14.69277,10.28695518Q14.7210331,10.21872318,14.7354412,10.14628848Q14.7498493,10.073853783,14.7498503,10Q14.7498493,9.926146217,14.7354412,9.85371152Q14.7210331,9.78127682,14.69277,9.71304482Q14.6645069,9.64481282,14.623477,9.58340567Q14.5824451,9.52199849,14.5302238,9.46977597Q14.4780006,9.41755348,14.4165936,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462879,9.2645582Q14.0738535,9.25014997,14,9.25014997L14,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,16.0009765625,-4.0009765625)'%3e%3cpath%20d='M10.0009765625,6.75L18.0009765625,6.75L18.0009765625,6.74985003Q18.0748300625,6.74985003,18.1472644625,6.7354418Q18.2196998625,6.72103369,18.287931462499998,6.69277108Q18.356163062500002,6.66450846,18.4175701625,6.62347746Q18.4789771625,6.5824465199999995,18.5312003625,6.53022403Q18.5834216625,6.47800151,18.6244535625,6.41659433Q18.6654834625,6.35518718,18.6937465625,6.28695518Q18.7220096625,6.21872318,18.7364177625,6.14628848Q18.7508258625,6.073853783,18.7508268625,6Q18.7508258625,5.926146217,18.7364177625,5.85371152Q18.7220096625,5.78127682,18.6937465625,5.71304482Q18.6654834625,5.64481282,18.6244535625,5.58340567Q18.5834216625,5.52199849,18.5312003625,5.46977597Q18.4789771625,5.4175534800000005,18.4175701625,5.37652254Q18.356163062500002,5.33549154,18.287931462499998,5.30722892Q18.2196998625,5.27896631,18.1472644625,5.2645582Q18.0748300625,5.25014997,18.0009765625,5.25014997L18.0009765625,5.25L10.0009765625,5.25L10.0009765625,5.25014997Q9.9271227795,5.25014997,9.8546880825,5.2645582Q9.7822533825,5.27896631,9.7140213825,5.30722892Q9.6457893825,5.33549154,9.5843822325,5.37652254Q9.5229750525,5.4175534800000005,9.4707525325,5.46977597Q9.4185300425,5.52199849,9.3774991025,5.58340567Q9.3364681025,5.64481282,9.3082054825,5.71304482Q9.2799428725,5.78127682,9.2655347625,5.85371152Q9.2511265325,5.926146217,9.2511265325,6Q9.2511265325,6.073853783,9.2655347625,6.14628848Q9.2799428725,6.21872318,9.3082054825,6.28695518Q9.3364681025,6.35518718,9.3774991025,6.41659433Q9.4185300425,6.47800151,9.4707525325,6.53022403Q9.5229750525,6.5824465199999995,9.5843822325,6.62347746Q9.6457893825,6.66450846,9.7140213825,6.69277108Q9.7822533825,6.72103369,9.8546880825,6.7354418Q9.9271227795,6.74985003,10.0009765625,6.74985003L10.0009765625,6.75Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",io="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28192'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28192)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M14.000001,9.25L6,9.25L6,9.25014997Q5.926146217,9.25014997,5.85371152,9.2645582Q5.78127682,9.27896631,5.71304482,9.30722892Q5.64481282,9.33549154,5.58340567,9.37652254Q5.52199849,9.41755348,5.46977597,9.46977597Q5.4175534800000005,9.52199849,5.37652254,9.58340567Q5.33549154,9.64481282,5.30722892,9.71304482Q5.27896631,9.78127682,5.2645582,9.85371152Q5.25014997,9.926146217,5.25014997,10Q5.25014997,10.073853783,5.2645582,10.14628848Q5.27896631,10.21872318,5.30722892,10.28695518Q5.33549154,10.35518718,5.37652254,10.41659433Q5.4175534800000005,10.47800151,5.46977597,10.53022403Q5.52199849,10.58244652,5.58340567,10.62347746Q5.64481282,10.66450846,5.71304482,10.69277108Q5.78127682,10.72103369,5.85371152,10.7354418Q5.926146217,10.74985003,6,10.74985003L6,10.75L14.000001,10.75L14.000001,10.74985003Q14.0738544,10.74985003,14.1462889,10.7354418Q14.2187233,10.72103369,14.2869558,10.69277108Q14.3551874,10.66450846,14.4165945,10.62347746Q14.4780016,10.58244652,14.5302248,10.53022403Q14.5824471,10.47800151,14.6234779,10.41659433Q14.6645088,10.35518718,14.6927719,10.28695518Q14.721035,10.21872318,14.7354431,10.14628848Q14.7498512,10.073853783,14.7498512,10Q14.7498512,9.926146217,14.7354431,9.85371152Q14.721035,9.78127682,14.6927719,9.71304482Q14.6645088,9.64481282,14.6234779,9.58340567Q14.5824471,9.52199849,14.5302248,9.46977597Q14.4780016,9.41755348,14.4165945,9.37652254Q14.3551865,9.33549154,14.2869549,9.30722892Q14.2187233,9.27896631,14.1462889,9.2645582Q14.0738544,9.25014997,14.000001,9.25014997L14.000001,9.25Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",lo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28187'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='21.5'%20height='21.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28187)'%3e%3crect%20x='2'%20y='2'%20width='16'%20height='16'%20rx='2'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0.7071067690849304,-0.7071067690849304,0.7071067690849304,0.7071067690849304,-5.6776717531065515,7.121317610617552)'%3e%3cpath%20d='M5.007504706328125,10.414215087890625Q5.007504706328125,10.340361304890624,5.021912936328125,10.267926607890624Q5.036321046328125,10.195491907890625,5.064583656328125,10.127259907890625Q5.092846276328125,10.059027907890625,5.133877276328125,9.997620757890624Q5.1749082163281255,9.936213577890625,5.227130706328125,9.883991057890626Q5.279353226328125,9.831768567890625,5.340760406328125,9.790737627890625Q5.402167556328125,9.749706627890625,5.470399556328125,9.721444007890625Q5.538631556328125,9.693181397890624,5.611066256328125,9.678773287890625Q5.683500953328125,9.664365057890626,5.757354736328125,9.664365057890626Q5.831208519328125,9.664365057890626,5.903643216328125,9.678773287890625Q5.976077916328125,9.693181397890624,6.044309916328125,9.721444007890625Q6.112541916328125,9.749706627890625,6.173949066328125,9.790737627890625Q6.235356246328125,9.831768567890625,6.287578766328125,9.883991057890626Q6.3398012563281245,9.936213577890625,6.380832196328125,9.997620757890624Q6.421863196328125,10.059027907890625,6.450125816328125,10.127259907890625Q6.478388426328125,10.195491907890625,6.492796536328125,10.267926607890624Q6.507204766328125,10.340361304890624,6.507204766328125,10.414215087890625L6.507354676328125,10.414215087890625L6.507354676328125,13.664215587890626L13.757355736328124,13.664215587890626L13.757355736328124,13.664365487890624Q13.831209136328125,13.664365487890624,13.903643636328125,13.678773687890626Q13.976078036328126,13.693181487890625,14.044310536328124,13.721444087890625Q14.112542136328125,13.749706787890625,14.173949236328125,13.790737587890625Q14.235356336328126,13.831768487890624,14.287579536328124,13.883991287890625Q14.339801836328125,13.936213487890626,14.380832636328124,13.997620787890625Q14.421863536328125,14.059027687890625,14.450126636328125,14.127259687890625Q14.478389736328126,14.195491787890624,14.492797836328124,14.267926687890625Q14.507205936328125,14.340361587890625,14.507205936328125,14.414215587890624Q14.507205936328125,14.488069487890625,14.492797836328124,14.560503987890625Q14.478389736328126,14.632938387890626,14.450126636328125,14.701170487890625Q14.421863536328125,14.769402487890625,14.380832636328124,14.830809587890625Q14.339801836328125,14.892216687890624,14.287579536328124,14.944438887890625Q14.235356336328126,14.996661187890625,14.173949236328125,15.037692087890626Q14.112541236328125,15.078722987890625,14.044309636328125,15.106986087890625Q13.976078036328126,15.135248687890625,13.903643636328125,15.149657287890625Q13.831209136328125,15.164065387890625,13.757355736328124,15.164065387890625L13.757355736328124,15.164215587890624L5.757354736328125,15.164215587890624Q5.683486201328125,15.164215087890625,5.611037026328125,15.149804087890626Q5.538587866328125,15.135393187890624,5.470342216328125,15.107124787890626Q5.402096626328125,15.078856487890626,5.340677146328125,15.037817487890624Q5.279257716328125,14.996778487890625,5.227024736328125,14.944545787890625Q5.174791816328125,14.892312487890624,5.133752586328125,14.830892587890624Q5.092713476328125,14.769473087890624,5.0644451963281245,14.701227687890626Q5.036176916328125,14.632982287890625,5.021765886328125,14.560533087890626Q5.007354856328125,14.488083887890625,5.007354796328125,14.414215587890624L5.007354796328125,10.414215087890625L5.007504706328125,10.414215087890625Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ao="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_49_28023'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_49_28023)'%3e%3crect%20x='2.75'%20y='2.75'%20width='14.5'%20height='14.5'%20rx='1.25'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",so="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16385'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16385)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='5.833332061767578'%20ry='5.833332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23165DFF'%20fill='none'%20stroke-width='5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",co="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_37_16369'%3e%3crect%20x='0'%20y='0'%20width='20'%20height='20'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_37_16369)'%3e%3cellipse%20cx='10.003253936767578'%20cy='10.000812530517578'%20rx='7.583332061767578'%20ry='7.583332061767578'%20fill-opacity='0'%20stroke-opacity='1'%20stroke='%23C9CDD4'%20fill='none'%20stroke-width='1.5'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",uo={key:0,src:ro,alt:"collapse",class:"j-tw-tree-select__expand-icon"},fo={key:1,src:oo,alt:"expand",class:"j-tw-tree-select__expand-icon"},ho={key:2,class:"j-tw-tree-select__expand-placeholder"},po={key:0,src:io,alt:"indeterminate",class:"j-tw-tree-select__checkbox-icon"},mo={key:1,src:lo,alt:"checked",class:"j-tw-tree-select__checkbox-icon"},go={key:2,src:ao,alt:"unchecked",class:"j-tw-tree-select__checkbox-icon"},wo={key:0,src:so,alt:"selected",class:"j-tw-tree-select__checkbox-icon"},yo={key:1,src:co,alt:"unselected",class:"j-tw-tree-select__checkbox-icon"};function vo(e,n,r,o,i,s){const l=t.resolveComponent("TreeNode",!0);return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["j-tw-tree-select__node",{"j-tw-tree-select__node--disabled":e.node.disabled},{"j-tw-tree-select__node--selected":e.isNodeSelected(e.node.value)},{"j-tw-tree-select__node--last":e.isLast}]),style:t.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"})},[e.level>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-tree-select__node-line",style:t.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):t.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-tree-select__expand-btn",onClick:n[0]||(n[0]=t.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(t.openBlock(),t.createElementBlock("img",uo)):(t.openBlock(),t.createElementBlock("img",fo))])):(t.openBlock(),t.createElementBlock("div",ho)),e.shouldShowCheckbox(e.node)?(t.openBlock(),t.createElementBlock("div",{key:3,class:"j-tw-tree-select__checkbox",onClick:n[1]||(n[1]=t.withModifiers(a=>e.handleNodeClick(e.node),["stop"]))},[e.multiple?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(t.openBlock(),t.createElementBlock("img",po)):e.isNodeChecked(e.node.value)?(t.openBlock(),t.createElementBlock("img",mo)):(t.openBlock(),t.createElementBlock("img",go))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.innerValue===e.node.value?(t.openBlock(),t.createElementBlock("img",wo)):(t.openBlock(),t.createElementBlock("img",yo))],64))])):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"j-tw-tree-select__node-label",onClick:n[2]||(n[2]=a=>e.handleNodeClick(e.node))},[t.renderSlot(e.$slots,"default",{node:e.node},()=>[t.createTextVNode(t.toDisplayString(e.node.label),1)])]),e.node.count?(t.openBlock(),t.createElementBlock("span",{key:4,class:"j-tw-tree-select__node-count",onClick:n[3]||(n[3]=a=>e.handleNodeClick(e.node))},t.toDisplayString(e.node.count),1)):t.createCommentVNode("",!0)],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.node.children,(a,c)=>(t.openBlock(),t.createBlock(l,{key:a.value,node:a,level:e.level+1,"is-last":c===e.node.children.length-1,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:y})=>[t.renderSlot(e.$slots,"default",{node:y},()=>[t.createTextVNode(t.toDisplayString(y.label),1)])]),_:3},8,["node","level","is-last","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128)):t.createCommentVNode("",!0)],64)}const Qo=se(no,[["render",vo]]),ko=t.defineComponent({name:"JTWTreeSelect",components:{TreeNode:Qo,JTWStatusImg:Ye},props:{data:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Array],default:void 0},searchPlaceholder:{type:String,default:"请输入关键词搜索"},accordion:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},checkIndependently:{type:Boolean,default:!1},nodeDataMap:{type:Object,default:()=>({})},selectedDataValues:{type:Array,default:()=>[]},maxHeight:{type:Number,default:void 0},externalSearchText:{type:String,default:""},bordered:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},validateEvent:{type:Boolean,default:!0},defaultExpandFirst:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,n)=>!0,blur:e=>!0},setup(e,{emit:n,expose:r}){const o=t.inject("elFormItem",null),i=t.ref(null),s=t.ref(""),l=t.ref(new Set),a=t.ref(e.modelValue),c=t.ref(new Set),y=M=>{if(!M||M.length===0)return;const L=C=>C.find(x=>x.children&&Array.isArray(x.children)&&x.children.length>0);let V=L(M);for(;V&&(V.children&&Array.isArray(V.children)&&V.children.length>0);)l.value.add(V.value),V=L(V.children)};t.watch(()=>e.data,M=>{e.defaultExpandFirst&&M.length>0&&l.value.size===0&&y(M)},{immediate:!0,deep:!0}),t.watch(()=>e.modelValue,M=>{a.value=M,e.multiple&&Array.isArray(M)&&(c.value=new Set(M))},{immediate:!0});const g=(M,L)=>{for(const V of M){if(V.value===L)return V;if(V.children){const C=g(V.children,L);if(C)return C}}return null},p=M=>{if(!M.children||M.children.length===0)return[];const L=[];for(const V of M.children)L.push(V.value),L.push(...p(V));return L},Q=(M,L)=>{for(const V of M)if(V.children){if(V.children.some(x=>x.value===L))return V;const C=Q(V.children,L);if(C)return C}return null},h=M=>{const L=Q(e.data,M);return L&&L.children?L.children.map(V=>V.value).filter(V=>V!==M):e.data.map(V=>V.value).filter(V=>V!==M)},v=M=>{if(!e.checkStrictly)return;const L=Q(e.data,M);L&&L.children&&(L.children.every(C=>c.value.has(C.value))?c.value.add(L.value):c.value.delete(L.value),v(L.value))},u=M=>e.multiple?c.value.has(M):a.value===M,w=M=>{if(!e.multiple||!M.children||M.children.length===0||!e.checkStrictly)return!1;const L=M.children.map(C=>C.value),V=L.filter(C=>c.value.has(C)).length;return V>0&&V<L.length},d=M=>e.multiple?c.value.has(M):a.value===M,k=M=>e.checkStrictly||e.checkIndependently?!0:!M.children||M.children.length===0,N=(M,L)=>{if(!L)return M;const V=[];for(const C of M){const x=C.label.toLowerCase().includes(L.toLowerCase()),m=C.children?N(C.children,L):[];(x||m.length>0)&&(V.push({...C,children:m.length>0?m:C.children}),m.length>0&&l.value.add(C.value))}return V},D=M=>{if(!e.nodeDataMap||Object.keys(e.nodeDataMap).length===0)return M;const L=new Set(e.selectedDataValues);return M.map(V=>{const C=e.nodeDataMap[V.value];let x="";if(C&&Array.isArray(C)){const m=C.length;x=`(${C.filter(K=>L.has(K.value)).length}/${m})`}return{...V,count:x,children:V.children?D(V.children):V.children}})},b=t.computed(()=>{const M=e.externalSearchText||s.value,L=N(e.data,M);return D(L)});t.watch(()=>e.externalSearchText,M=>{M!=null&&(s.value="")});const T=M=>{l.value.has(M)?l.value.delete(M):(e.accordion&&h(M).forEach(V=>{l.value.delete(V)}),l.value.add(M))},I=M=>{var L,V;if(!M.disabled){if(!e.checkStrictly&&!e.checkIndependently&&M.children&&M.children.length>0){T(M.value);return}if(e.multiple){const C=c.value.has(M.value),x=p(M);C?(c.value.delete(M.value),e.checkStrictly&&!e.checkIndependently&&x.forEach(K=>c.value.delete(K))):(c.value.add(M.value),e.checkStrictly&&!e.checkIndependently&&x.forEach(K=>c.value.add(K))),e.checkStrictly&&!e.checkIndependently&&v(M.value);const m=Array.from(c.value),R=m.map(K=>g(e.data,K)).filter(K=>K!==null);n("update:modelValue",m),n("change",m,R.length>0?R:null),e.validateEvent&&o&&((L=o.validate)==null||L.call(o,"change"))}else if(a.value!==M.value){a.value=M.value;const C=g(e.data,M.value);n("update:modelValue",M.value),n("change",M.value,C),e.validateEvent&&o&&((V=o.validate)==null||V.call(o,"change"))}}};return r({get $el(){return i.value}}),{treeSelectRef:i,searchText:s,expandedKeys:l,innerValue:a,innerValues:c,filteredData:b,toggleExpand:T,handleNodeClick:I,isNodeChecked:u,isNodeIndeterminate:w,isNodeSelected:d,shouldShowCheckbox:k}}}),bo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1313_096320'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1313_096320)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.46289949375Q0.5830078725,4.34230259375,0.5830078125,7.00016309375Q0.5830078125,9.65802379375,2.4624112125,11.53742709375Q4.3418138125,13.41682909375,6.9996748125,13.41682909375Q9.6575346125,13.41682909375,11.5369388125,11.53742709375Q13.4163408125,9.65802479375,13.4163408125,7.00016589375Q13.4163408125,4.34230329375,11.5369388125,2.46289959375Q9.6575355125,0.58349603375,6.9996776125,0.58349609375Q4.3418143125,0.58349609375,2.4624112125,2.46289949375ZM3.5230715125,10.47676659375Q2.0830078125,9.03670259375,2.0830078125,7.00016309375Q2.0830077525,4.96362349375,3.5230715125,3.52355979375Q4.9631350125,2.08349609375,6.9996776125,2.08349609375Q9.0362158125,2.08349633375,10.4762783125,3.52355959375Q11.9163418125,4.96362349375,11.9163418125,7.00016589375Q11.9163418125,9.03670409375,10.4762783125,10.47676659375Q9.0362143125,11.91683009375,6.9996748125,11.91683009375Q4.9631345125,11.91683009375,3.5230715125,10.47676659375Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60395449875Q10.4375500675,11.49848639875,10.3804711075,11.36068564875Q10.3233921575,11.22288490875,10.3233921575,11.07373046875Q10.3233921575,10.99987668575,10.3378003875,10.92744198875Q10.3522084975,10.85500728875,10.3804711075,10.78677528875Q10.4087337275,10.71854328875,10.4497647275,10.65713613875Q10.4907956675,10.59572895875,10.5430181575,10.54350643875Q10.5952406775,10.49128394875,10.6566478575,10.45025300875Q10.7180550075,10.40922200875,10.7862870075,10.38095938875Q10.8545190075,10.35269677875,10.9269537075,10.33828866875Q10.9993884045,10.32388043875,11.0732421875,10.32388043875Q11.2223966275,10.32388043875,11.3601973675,10.38095932875Q11.4979981175,10.43803834875,11.6034662175,10.54350643875L11.6035722475,10.54340040875L14.432004687500001,13.37183306875L14.4318987875,13.37193896875Q14.5373668875,13.47740696875,14.5944459875,13.61520766875Q14.6515249875,13.75300856875,14.6515249875,13.90216326875Q14.6515247875,13.97601696875,14.6371163875,14.04845166875Q14.6227082875,14.12088636875,14.5944456875,14.18911816875Q14.5661830875,14.25735016875,14.5251521875,14.31875726875Q14.484121287499999,14.38016466875,14.4318987875,14.43238706875Q14.3796763875,14.484609568749999,14.3182692875,14.52564046875Q14.2568618875,14.56667136875,14.1886298875,14.59493396875Q14.1203980875,14.62319656875,14.0479633875,14.63760466875Q13.9755286875,14.65201306875,13.9016749875,14.65201326875Q13.7525202875,14.65201326875,13.6147193875,14.59493426875Q13.4769186875,14.53785516875,13.3714506875,14.43238706875L13.3713447875,14.432492968750001L10.5429121275,11.60406052875L10.5430181575,11.60395449875Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Mo={key:0,class:"j-tw-tree-select__search"},Co=["placeholder"],_o={key:0,class:"j-tw-tree-select__empty"};function No(e,n,r,o,i,s){const l=t.resolveComponent("JTWStatusImg"),a=t.resolveComponent("TreeNode");return t.openBlock(),t.createElementBlock("div",{ref:"treeSelectRef",class:t.normalizeClass(["j-tw-tree-select",{"j-tw-tree-select--borderless":!e.bordered,"j-tw-tree-select--no-search":!e.showSearch}])},[e.showSearch?(t.openBlock(),t.createElementBlock("div",Mo,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=c=>e.searchText=c),type:"text",class:"j-tw-tree-select__search-input",placeholder:e.searchPlaceholder},null,8,Co),[[t.vModelText,e.searchText]]),n[1]||(n[1]=t.createElementVNode("img",{src:bo,alt:"search",class:"j-tw-tree-select__search-icon"},null,-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"j-tw-tree-select__tree",style:t.normalizeStyle({maxHeight:e.maxHeight?`${e.maxHeight}px`:"none"})},[e.filteredData.length===0?(t.openBlock(),t.createElementBlock("div",_o,[t.createVNode(l,{width:32,height:32}),n[2]||(n[2]=t.createElementVNode("p",{class:"j-tw-tree-select__empty-text"},"暂无数据",-1))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredData,c=>(t.openBlock(),t.createBlock(a,{key:c.value,node:c,level:0,"expanded-keys":e.expandedKeys,"inner-value":e.innerValue,"inner-values":e.innerValues,multiple:e.multiple,"check-strictly":e.checkStrictly,"is-node-checked":e.isNodeChecked,"is-node-indeterminate":e.isNodeIndeterminate,"is-node-selected":e.isNodeSelected,"should-show-checkbox":e.shouldShowCheckbox,"toggle-expand":e.toggleExpand,"handle-node-click":e.handleNodeClick},{default:t.withCtx(({node:y})=>[t.renderSlot(e.$slots,"default",{node:y},()=>[t.createTextVNode(t.toDisplayString(y.label),1)])]),_:3},8,["node","expanded-keys","inner-value","inner-values","multiple","check-strictly","is-node-checked","is-node-indeterminate","is-node-selected","should-show-checkbox","toggle-expand","handle-node-click"]))),128))],4)],2)}const Do=se(ko,[["render",No]]),Ao=t.defineComponent({name:"JTWFormLabel",props:{label:{type:String},labelClass:{type:[String,Object,Array]},valueClass:{type:[String,Object,Array]},vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},slots:Object,setup(e,{slots:n}){const r=t.computed(()=>{const i=!!e.label||!!n.label;return e.horizontal?!0:i});return{directionClass:t.computed(()=>e.vertical?"form-label--vertical":e.horizontal?"form-label--horizontal":"form-label--vertical"),showLabel:r,slots:n}}}),So={class:"label-content"},To={class:"form-content"},Io={class:"form-value__inner"},Eo={class:"form-item-detail-wrapper"};function Lo(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["j-tw-form-label",[e.directionClass,{required:e.required}]])},[e.showLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-label",[e.labelClass,{required:e.required}]])},[t.createElementVNode("div",So,[t.createTextVNode(t.toDisplayString(e.label)+" ",1),t.renderSlot(e.$slots,"label-hint")])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",To,[t.createElementVNode("div",{class:t.normalizeClass(["form-value",e.valueClass])},[t.createElementVNode("div",Io,[t.renderSlot(e.$slots,"default")])],2),t.createElementVNode("div",Eo,[t.renderSlot(e.$slots,"form-item-detail")])])],2)}const xo=se(Ao,[["render",Lo]]),jo=t.defineComponent({name:"JTWForm",components:{ElForm:fe.ElForm},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({validate:(...i)=>r.value.validate(...i),validateField:(...i)=>r.value.validateField(...i),resetFields:(...i)=>r.value.resetFields(...i),scrollToField:(...i)=>r.value.scrollToField(...i),clearValidate:(...i)=>r.value.clearValidate(...i)}),{elFormRef:r}}});function Bo(e,n,r,o,i,s){const l=t.resolveComponent("el-form");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormRef"},e.$attrs),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)}const zo=se(jo,[["render",Bo]]),Oo=t.defineComponent({name:"JTWFormItem",components:{ElFormItem:fe.ElFormItem},inheritAttrs:!1,setup(e,{expose:n}){const r=t.ref(null);return n({get size(){var i;return((i=r.value)==null?void 0:i.size)||""},get validateMessage(){var i;return((i=r.value)==null?void 0:i.validateMessage)||""},get validateState(){var i;return((i=r.value)==null?void 0:i.validateState)||""},validate:(...i)=>r.value.validate(...i),clearValidate:()=>r.value.clearValidate(),resetField:()=>r.value.resetField()}),{elFormItemRef:r}}});function Fo(e,n,r,o,i,s){const l=t.resolveComponent("el-form-item");return t.openBlock(),t.createBlock(l,t.mergeProps({ref:"elFormItemRef"},e.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.label?{name:"label",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"label")]),key:"0"}:void 0,e.$slots.error?{name:"error",fn:t.withCtx(({error:a})=>[t.renderSlot(e.$slots,"error",{error:a})]),key:"1"}:void 0]),1040)}const Po=se(Oo,[["render",Fo]]),$o=t.defineComponent({name:"JTWSelect",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})}},setup(e,{expose:n,attrs:r}){const o=t.ref(null),i=t.ref(!1),s=t.computed(()=>{var g;return((g=e.props)==null?void 0:g.label)||"label"}),l=t.computed(()=>{var g;return((g=e.props)==null?void 0:g.value)||"value"}),a=t.computed(()=>r.multiple!==void 0&&r.multiple!==!1),c=g=>{i.value=g};return n({focus:()=>{var g;return(g=o.value)==null?void 0:g.focus()},blur:()=>{var g;return(g=o.value)==null?void 0:g.blur()}}),{elSelectRef:o,dropdownVisible:i,labelKey:s,valueKey:l,isMultiple:a,handleVisibleChange:c}}});function Vo(e,n,r,o,i,s){const l=t.resolveComponent("el-option"),a=t.resolveComponent("el-select");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elSelectRef",class:["tw-select",{"tw-select--bg-grey":e.bgGrey,"tw-select--open":e.dropdownVisible,"tw-select--multiple":e.isMultiple}],"popper-class":"tw-select-popper"},e.$attrs,{onVisibleChange:e.handleVisibleChange}),t.createSlots({default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:c[e.valueKey],label:c[e.labelKey],value:c[e.valueKey],disabled:c.disabled},null,8,["label","value","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.header?{name:"header",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"header")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"footer")]),key:"3"}:void 0]),1040,["class","onVisibleChange"])}const Ro=se($o,[["render",Vo]]),Wo=t.defineComponent({name:"JTWCheckboxGroup",components:{ElCheckboxGroup:fe.ElCheckboxGroup,ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function Uo(e,n,r,o,i,s){const l=t.resolveComponent("el-checkbox"),a=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elCheckboxGroupRef",class:"j-tw-checkbox-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const Zo=se(Wo,[["render",Uo]]),Yo=t.defineComponent({name:"JTWRadioGroup",components:{ElRadioGroup:fe.ElRadioGroup,ElRadio:fe.ElRadio},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function Go(e,n,r,o,i,s){const l=t.resolveComponent("el-radio"),a=t.resolveComponent("el-radio-group");return t.openBlock(),t.createBlock(a,t.mergeProps({ref:"elRadioGroupRef",class:"j-tw-radio-group"},e.$attrs),{default:t.withCtx(()=>[e.options&&e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,c=>(t.openBlock(),t.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):t.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const Ho=se(Yo,[["render",Go]]),Jo=t.defineComponent({name:"JTWToggle",components:{ElSwitch:fe.ElSwitch},props:{modelValue:{type:[Boolean,String,Number],default:!1},trueValue:{type:[Boolean,String,Number],default:!0},falseValue:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0},leftLabel:{type:Boolean,default:!1},color:{type:String,default:void 0},keepColor:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:void 0},icon:{type:String,default:void 0},checkedIcon:{type:String,default:void 0},uncheckedIcon:{type:String,default:void 0},iconColor:{type:String,default:void 0},size:{type:String,default:void 0},name:{type:String,default:void 0},id:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:n}){const r=t.computed(()=>e.size&&["","default","small","large"].includes(e.size)?e.size:e.dense?"small":"default"),o=t.computed(()=>{const a={};return e.color&&(a["--el-switch-on-color"]=e.color,e.keepColor&&(a["--el-switch-off-color"]=e.color)),a}),i=t.computed(()=>{const a=[];return e.dense&&a.push("j-tw-toggle--dense"),e.readonly&&a.push("j-tw-toggle--readonly"),a});return{computedSize:r,computedStyle:o,computedClass:i,handleUpdateModelValue:a=>{e.readonly||n("update:modelValue",a)},handleChange:a=>{e.readonly||n("change",a)}}}});function Xo(e,n,r,o,i,s){const l=t.resolveComponent("el-switch");return t.openBlock(),t.createBlock(l,{"model-value":e.modelValue,"active-value":e.trueValue,"inactive-value":e.falseValue,"active-text":e.leftLabel?e.label:void 0,"inactive-text":!e.leftLabel&&e.label?e.label:void 0,"active-icon":e.checkedIcon,"inactive-icon":e.uncheckedIcon,disabled:e.disable,size:e.computedSize,name:e.name,id:e.id,tabindex:e.tabindex,"validate-event":e.validateEvent,style:t.normalizeStyle(e.computedStyle),class:t.normalizeClass(e.computedClass),"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange},t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),key:"0"}:void 0]),1032,["model-value","active-value","inactive-value","active-text","inactive-text","active-icon","inactive-icon","disabled","size","name","id","tabindex","validate-event","style","class","onUpdate:modelValue","onChange"])}const Ko=se(Jo,[["render",Xo],["__scopeId","data-v-8bf04c8a"]]);let Xt=!1,qo=0;function e2(){return`j-tw-message-${Date.now()}-${++qo}`}function t2(){if(Xt)return;Xt=!0;const e=document.createElement("div");document.body.appendChild(e),t.createApp(y1).mount(e)}function n2(e){t2();const n=e2(),r={id:n,type:e.type??"info",content:e.content,duration:e.duration??3e3,showClose:e.showClose??!1,offset:e.offset??52,onClose:e.onClose,visible:!0,html:e.html??!1};return Ee.value.push(r),{id:n,close:()=>{const o=Ee.value.findIndex(i=>i.id===n);o!==-1&&(Ee.value[o].visible=!1)}}}const je={show(e){return n2(e)},closeAll(){Ee.value.forEach(e=>{e.visible=!1})}},r2=t.defineComponent({name:"JTWFileUpload",components:{JTWTooltip:Nt},props:{modelValue:{type:Array,default:()=>[]},accept:{type:String,default:".png,.jpg,.jpeg"},maxSize:{type:Number,default:5*1024*1024},maxFiles:{type:Number,default:1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,exceed:e=>!0,error:e=>!0},setup(e,{emit:n}){const r=t.ref(),o=t.ref(!1),i=t.ref([...e.modelValue]),s=t.ref(),l=t.inject(fe.formItemContextKey,{}),a=t.computed(()=>e.multiple?i.value.length>=e.maxFiles:i.value.length>=1),c=t.computed(()=>`${e.maxSize/1048576}MB`),y=t.computed(()=>e.accept.split(",").map(b=>b.trim().replace(/^\./,"")).join("/")),g=t.computed(()=>e.multiple&&e.maxFiles>1?`,最多支持${e.maxFiles}张`:"");t.watch(()=>e.modelValue,b=>{i.value=[...b],t.nextTick(()=>{var T,I;b.length>0?(T=l==null?void 0:l.clearValidate)==null||T.call(l):(I=l==null?void 0:l.validate)==null||I.call(l,"change")})},{deep:!0});const p=b=>{if(e.accept&&!e.accept.split(",").some(T=>b.name.toLowerCase().endsWith(T.trim().toLowerCase()))){const T=`文件格式不支持,请上传 ${y.value} 格式的文件`;return je.show({type:"error",content:T}),{valid:!1,error:T}}if(b.size>e.maxSize){const T=`文件大小超出限制,请上传小于 ${c.value} 的文件`;return je.show({type:"error",content:T}),{valid:!1,error:T}}return{valid:!0}},Q=b=>{const T=Array.from(b),I=[];for(const M of T){const L=p(M);if(!L.valid){n("error",{type:"validation",message:L.error,file:M});continue}I.push(M)}if(I.length===0)return;let $=[...i.value];if(e.multiple){const M=e.maxFiles-$.length;if(M<=0){je.show({type:"error",content:`最多只能上传 ${e.maxFiles} 个文件`}),n("exceed",I);return}const L=I.slice(0,M);L.length<I.length&&(je.show({type:"warning",content:`已达到文件数量上限,只能再上传 ${M} 个文件`}),n("exceed",I.slice(M))),$.push(...L)}else $=[I[0]];i.value=$,n("update:modelValue",$),t.nextTick(()=>{var M,L;$.length>0?(M=l==null?void 0:l.clearValidate)==null||M.call(l):(L=l==null?void 0:l.validate)==null||L.call(l,"change")})};return{fileInputRef:r,fileListRef:s,isDragging:o,fileList:i,isMaxFiles:a,maxSizeText:c,acceptText:y,maxFilesText:g,handleClick:()=>{var b;e.disabled||a.value||(b=r.value)==null||b.click()},handleFileChange:b=>{var I;const T=b.target;(I=T.files)!=null&&I.length&&Q(T.files),T.value=""},handleDragEnter:b=>{e.disabled||a.value||(b.preventDefault(),o.value=!0)},handleDragOver:b=>{e.disabled||a.value||(b.preventDefault(),o.value=!0)},handleDragLeave:b=>{if(e.disabled||a.value)return;b.preventDefault();const T=b.currentTarget,I=b.relatedTarget;T!=null&&T.contains(I)||(o.value=!1)},handleDrop:b=>{var I;if(e.disabled||a.value)return;b.preventDefault(),o.value=!1;const T=(I=b.dataTransfer)==null?void 0:I.files;T!=null&&T.length&&Q(T)},handleRemove:b=>{const T=[...i.value];T.splice(b,1),i.value=T,n("update:modelValue",T),t.nextTick(()=>{var I,$;T.length>0?(I=l==null?void 0:l.clearValidate)==null||I.call(l):($=l==null?void 0:l.validate)==null||$.call(l,"change")})},isFileNameTruncated:b=>{if(!s.value)return!1;const T=document.createElement("span");T.style.visibility="hidden",T.style.position="absolute",T.style.fontSize="14px",T.style.fontFamily=getComputedStyle(document.body).fontFamily,T.textContent=b,document.body.appendChild(T);const I=T.offsetWidth;document.body.removeChild(T);const L=s.value.clientWidth-72;return I>L}}}}),o2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1487_075623'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1487_075623)'%3e%3cpath%20d='M2.3333332538604736,2.666663273069763C2.3333332538604736,1.9302852130697632,2.9302847938604737,1.3333333730697632,3.6666625538604736,1.3333333730697632C3.6666625538604736,1.3333333730697632,10.942774053860473,1.3333333730697632,10.942774053860473,1.3333333730697632C10.942774053860473,1.3333333730697632,13.666633253860473,4.057182873069763,13.666633253860473,4.057182873069763C13.666633253860473,4.057182873069763,13.666633253860473,13.333302373069763,13.666633253860473,13.333302373069763C13.666633253860473,14.069667373069763,13.069667253860473,14.666633373069763,12.333302753860474,14.666633373069763C12.333302753860474,14.666633373069763,3.6666625538604736,14.666633373069763,3.6666625538604736,14.666633373069763C2.9302847938604737,14.666633373069763,2.3333332538604736,14.069667373069763,2.3333332538604736,13.333302373069763C2.3333332538604736,13.333302373069763,2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763C2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763,2.3333332538604736,2.666663273069763ZM10.390508853860474,2.666663273069763C10.390508853860474,2.666663273069763,3.6666625538604736,2.666663273069763,3.6666625538604736,2.666663273069763C3.6666625538604736,2.666663273069763,3.6666625538604736,13.333302373069763,3.6666625538604736,13.333302373069763C3.6666625538604736,13.333302373069763,12.333302753860474,13.333302373069763,12.333302753860474,13.333302373069763C12.333302753860474,13.333302373069763,12.333302753860474,4.609468373069763,12.333302753860474,4.609468373069763C12.333302753860474,4.609468373069763,10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763C10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763,10.390508853860474,2.666663273069763ZM10.666641453860473,7.666650673069763C10.666641453860473,7.666650673069763,5.333324153860474,7.666650673069763,5.333324153860474,7.666650673069763C5.333324153860474,7.666650673069763,5.333324153860474,6.333320473069763,5.333324153860474,6.333320473069763C5.333324153860474,6.333320473069763,10.666641453860473,6.333320473069763,10.666641453860473,6.333320473069763C10.666641453860473,6.333320473069763,10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763C10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763,10.666641453860473,7.666650673069763ZM8.666647653860473,10.333310473069764C8.666647653860473,10.333310473069764,5.333324153860474,10.333310473069764,5.333324153860474,10.333310473069764C5.333324153860474,10.333310473069764,5.333324153860474,8.999980373069764,5.333324153860474,8.999980373069764C5.333324153860474,8.999980373069764,8.666647653860473,8.999980373069764,8.666647653860473,8.999980373069764C8.666647653860473,8.999980373069764,8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764C8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764,8.666647653860473,10.333310473069764Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",i2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1487_075606'%3e%3crect%20x='-0.6666666865348816'%20y='-0.6666666865348816'%20width='17.333333373069763'%20height='17.333333373069763'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1487_075606)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cg%3e%3cpath%20d='M1.3339843725,4.0001628875L2.3333332125,4.0001628875L2.3333332125,14.6668301875Q2.3333331125,14.7324901875,2.3461429125,14.7968881875Q2.3589526125,14.8612881875,2.3840800125,14.9219511875Q2.4092073125,14.9826131875,2.4456866125000003,15.0372081875Q2.4821658125,15.0918031875,2.5285952125,15.1382331875Q2.5750245124999998,15.1846621875,2.6296196125,15.2211421875Q2.6842146125,15.2576211875,2.7448773125,15.2827491875Q2.8055401125,15.3078761875,2.8699396125,15.3206861875Q2.9343390125,15.3334971875,3.0000000125,15.3334981875L13.0000003125,15.3334981875Q13.0656603125,15.3334971875,13.1300593125,15.3206861875Q13.1944583125,15.3078761875,13.2551213125,15.2827481875Q13.3157843125,15.2576211875,13.3703793125,15.2211421875Q13.4249743125,15.1846631875,13.4714053125,15.1382341875Q13.5178333125,15.0918041875,13.5543113125,15.0372081875Q13.5907913125,14.9826141875,13.6159183125,14.9219511875Q13.6410453125,14.8612881875,13.6538553125,14.7968881875Q13.6666663125,14.7324901875,13.6666673125,14.6668301875L13.6666673125,4.0001628875L14.6673183125,4.0001628875L14.6673183125,3.9983629875Q14.7328013125,3.9983629875,14.7970273125,3.9855875875Q14.8612523125,3.9728123875,14.9217513125,3.9477529875Q14.9822503125,3.9226932875,15.0366973125,3.8863124875Q15.0911453125,3.8499316875,15.1374503125,3.8036276875Q15.1837543125,3.7573237875,15.2201343125,3.7028760875Q15.2565153125,3.6484284875,15.2815753125,3.5879292875Q15.3066353125,3.5274302875,15.3194103125,3.4632050875Q15.3321853125,3.3989796875,15.3321853125,3.3334960875Q15.3321853125,3.2680124875,15.3194103125,3.2037868875Q15.3066353125,3.1395613875,15.2815753125,3.0790621875Q15.2565153125,3.0185632875,15.2201343125,2.9641155875Q15.1837543125,2.9096679875,15.1374513125,2.8633639875Q15.0911463125,2.8170599875,15.0366973125,2.7806791875Q14.9822503125,2.7442984875,14.9217513125,2.7192389875Q14.8612523125,2.6941794875,14.7970273125,2.6814043875Q14.7328013125,2.6686291875,14.6673183125,2.6686291875L14.6673183125,2.6668293875L11.0659743125,2.6668293875L10.1803198125,1.0180267674999999Q10.1375561125,0.9384148675,10.0751419125,0.8730604475Q10.0127277125,0.8077060175,9.9351673125,0.7613259405Q9.8576050125,0.7149458675,9.7704964125,0.6908876395Q9.6833877125,0.66682940722,9.5930176125,0.66682940722L6.4303179125,0.66682946682Q6.3406696125,0.66682946682,6.2542057125,0.6905115455Q6.1677427125,0.7141936235,6.0906067125,0.7598752605Q6.0134706125,0.8055568975,5.9511423125,0.8699925875Q5.8888140125,0.9344282775,5.8457217125,1.0130400975L4.9391699125,2.6668293875L1.3339843725,2.6668293875L1.3339843725,2.6686291875Q1.2685006825,2.6686291875,1.2042752525,2.6814043875Q1.1400497525,2.6941794875,1.0795507125000001,2.7192389875Q1.0190516725,2.7442984875,0.9646039925000001,2.7806791875Q0.9101563225,2.8170599875,0.8638523625,2.8633639875Q0.8175483925,2.9096679875,0.7811676125,2.9641155875Q0.7447868285,3.0185632875,0.7197273115,3.0790621875Q0.6946677935,3.1395613875,0.6818925625,3.2037868875Q0.6691173315,3.2680124875,0.6691173315,3.3334960875Q0.6691173315,3.3989796875,0.6818925625,3.4632048875Q0.6946677935,3.5274302875,0.7197273115,3.5879292875Q0.7447868285,3.6484284875,0.7811676225,3.7028760875Q0.8175483925,3.7573237875,0.8638523625,3.8036276875Q0.9101563225,3.8499316875,0.9646039925000001,3.8863124875Q1.0190516725,3.9226932875,1.0795507125000001,3.9477529875Q1.1400497525,3.9728123875,1.2042752525,3.9855875875Q1.2685006825,3.9983629875,1.3339843725,3.9983629875L1.3339843725,4.0001628875ZM6.4596882125,2.6668293875L9.5524616125,2.6668293875L9.1943617125,2.0001628875L6.8251324125,2.0001628875L6.4596882125,2.6668293875ZM12.3333333125,4.0001628875L3.6666667125,4.0001628875L3.6666667125,14.0001631875L12.3333333125,14.0001631875L12.3333333125,4.0001628875ZM6.0021253125,6.6665038875Q6.0021248125,6.6010198875,6.0148997125,6.5367941875Q6.0276747125,6.4725684875,6.0527344125,6.4120697875Q6.0777941125,6.3515710875,6.1141753125,6.2971233875Q6.1505561125,6.2426757875,6.1968603125,6.1963715875Q6.2431641125,6.1500672875,6.2976117125,6.1136870875Q6.3520594125,6.0773057875,6.4125585125,6.0522465875Q6.4730573125,6.0271873875,6.5372825125,6.0144118875Q6.6015081125,6.0016369875,6.6669922125,6.0016369875Q6.7324753125,6.0016369875,6.7967005125,6.0144118875Q6.8609257125,6.0271873875,6.9214249125,6.0522465875Q6.9819240125,6.0773057875,7.0363722125,6.1136870875Q7.0908198125,6.1500672875,7.1371240125,6.1963715875Q7.1834278125,6.2426757875,7.2198086125,6.2971229875Q7.2561889125,6.3515710875,7.2812486125,6.4120697875Q7.3063078125,6.4725684875,7.3190832125,6.5367941875Q7.3318586125,6.6010198875,7.3318591125,6.6665038875L7.3336587125,6.6665038875L7.3336587125,10.9998381875L7.3318591125,10.9998381875Q7.3318586125,11.0653211875,7.3190832125,11.1295461875Q7.3063078125,11.1937711875,7.2812481125,11.2542701875Q7.2561884125,11.3147701875,7.2198081125,11.3692171875Q7.1834278125,11.4236641875,7.1371240125,11.4699691875Q7.0908198125,11.5162721875,7.0363717125,11.5526531875Q6.9819240125,11.5890341875,6.9214249125,11.6140941875Q6.8609257125,11.6391521875,6.7967005125,11.6519291875Q6.7324753125,11.6647031875,6.6669922125,11.6647041875Q6.6015081125,11.6647031875,6.5372825125,11.6519291875Q6.4730568125,11.6391521875,6.4125576125,11.6140941875Q6.3520584125,11.5890341875,6.2976112125,11.5526531875Q6.2431641125,11.5162721875,6.1968603125,11.4699691875Q6.1505561125,11.4236641875,6.1141748125,11.3692171875Q6.0777941125,11.3147701875,6.0527348125,11.2542701875Q6.0276751125,11.1937711875,6.0149002125,11.1295461875Q6.0021248125,11.0653211875,6.0021253125,10.9998381875L6.0003257125,10.9998381875L6.0003257125,6.6665038875L6.0021253125,6.6665038875ZM8.6691170125,6.6665038875Q8.6691170125,6.6010198875,8.6818924125,6.5367941875Q8.6946678125,6.4725684875,8.7197265125,6.4120697875Q8.7447863125,6.3515710875,8.7811670125,6.2971233875Q8.8175478125,6.2426757875,8.8638515125,6.1963715875Q8.9101553125,6.1500672875,8.9646025125,6.1136870875Q9.0190506125,6.0773057875,9.0795498125,6.0522465875Q9.1400490125,6.0271873875,9.2042751125,6.0144118875Q9.2685003125,6.0016369875,9.3339844125,6.0016369875Q9.3994675125,6.0016369875,9.4636936125,6.0144118875Q9.5279178125,6.0271873875,9.5884170125,6.0522465875Q9.6489162125,6.0773057875,9.7033634125,6.1136870875Q9.7578125125,6.1500672875,9.8041162125,6.1963715875Q9.8504200125,6.2426757875,9.8868008125,6.2971229875Q9.9231815125,6.3515710875,9.9482412125,6.4120697875Q9.9733009125,6.4725684875,9.9860763125,6.5367941875Q9.9988518125,6.6010198875,9.9988518125,6.6665038875L10.0006513125,6.6665038875L10.0006513125,10.9998381875L9.9988518125,10.9998381875Q9.9988518125,11.0653211875,9.9860763125,11.1295461875Q9.9733009125,11.1937711875,9.9482412125,11.2542701875Q9.9231815125,11.3147701875,9.8868008125,11.3692171875Q9.8504200125,11.4236641875,9.8041153125,11.4699691875Q9.7578115125,11.5162721875,9.7033644125,11.5526531875Q9.6489162125,11.5890341875,9.5884170125,11.6140941875Q9.5279178125,11.6391521875,9.4636936125,11.6519291875Q9.3994675125,11.6647031875,9.3339844125,11.6647041875Q9.2685003125,11.6647031875,9.2042742125,11.6519291875Q9.1400490125,11.6391521875,9.0795498125,11.6140941875Q9.0190506125,11.5890341875,8.9646034125,11.5526531875Q8.9101553125,11.5162721875,8.8638515125,11.4699691875Q8.8175478125,11.4236641875,8.7811670125,11.3692171875Q8.7447863125,11.3147701875,8.7197265125,11.2542701875Q8.6946678125,11.1937711875,8.6818924125,11.1295461875Q8.6691170125,11.0653211875,8.6691170125,10.9998381875L8.6673179125,10.9998381875L8.6673179125,6.6665038875L8.6691170125,6.6665038875Z'%20fill-rule='evenodd'%20fill='%23F53F3F'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",l2={class:"j-tw-file-upload"},a2={class:"upload-content"},s2={class:"upload-text"},c2={class:"upload-desc"},u2={key:0,ref:"fileListRef",class:"file-list"},d2={class:"file-name-wrapper"},f2={class:"file-name"},h2=["onClick"],p2=["accept","multiple"];function m2(e,n,r,o,i,s){const l=t.resolveComponent("JTWTooltip");return t.openBlock(),t.createElementBlock("div",l2,[t.createElementVNode("div",{class:t.normalizeClass(["upload-area",{"upload-area--dragging":e.isDragging,"upload-area--disabled":e.disabled||e.isMaxFiles}]),onDragenter:n[0]||(n[0]=t.withModifiers((...a)=>e.handleDragEnter&&e.handleDragEnter(...a),["prevent"])),onDragover:n[1]||(n[1]=t.withModifiers((...a)=>e.handleDragOver&&e.handleDragOver(...a),["prevent"])),onDragleave:n[2]||(n[2]=t.withModifiers((...a)=>e.handleDragLeave&&e.handleDragLeave(...a),["prevent"])),onDrop:n[3]||(n[3]=t.withModifiers((...a)=>e.handleDrop&&e.handleDrop(...a),["prevent"])),onClick:n[4]||(n[4]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.createElementVNode("div",a2,[t.createElementVNode("div",s2,[t.renderSlot(e.$slots,"upload-text",{},()=>[n[6]||(n[6]=t.createElementVNode("p",{class:"upload-title"},[t.createTextVNode("将文件拖到此处,或 "),t.createElementVNode("span",{class:"click"},"点击上传")],-1))])])])],34),t.createElementVNode("div",c2,[t.renderSlot(e.$slots,"upload-desc",{},()=>[t.createElementVNode("p",null," 请上传大小不超过"+t.toDisplayString(e.maxSizeText)+",格式为"+t.toDisplayString(e.acceptText)+t.toDisplayString(e.maxFilesText)+"。 ",1)])]),e.fileList.length?(t.openBlock(),t.createElementBlock("div",u2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(a,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"file-item"},[n[7]||(n[7]=t.createElementVNode("img",{src:o2,alt:"file",class:"file-icon"},null,-1)),t.createElementVNode("div",d2,[t.createVNode(l,{content:a.name,disabled:!e.isFileNameTruncated(a.name),placement:"top","popper-style":{maxWidth:"400px"}},{default:t.withCtx(()=>[t.createElementVNode("span",f2,t.toDisplayString(a.name),1)]),_:2},1032,["content","disabled"])]),t.createElementVNode("img",{src:i2,alt:"delete",class:"delete-icon",onClick:y=>e.handleRemove(c)},null,8,h2)]))),128))],512)):t.createCommentVNode("",!0),t.createElementVNode("input",{ref:"fileInputRef",type:"file",accept:e.accept,multiple:e.multiple,style:{display:"none"},onChange:n[5]||(n[5]=(...a)=>e.handleFileChange&&e.handleFileChange(...a))},null,40,p2)])}const g2=se(r2,[["render",m2]]);var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ke={exports:{}},w2=Ke.exports,Kt;function y2(){return Kt||(Kt=1,(function(e){(function(n,r){e.exports?e.exports=r():n.coordtransform=r()})(w2,function(){var n=52.35987755982988,r=3.141592653589793,o=6378245,i=.006693421622965943,s=function(u,w){var u=+u,w=+w,d=u-.0065,k=w-.006,N=Math.sqrt(d*d+k*k)-2e-5*Math.sin(k*n),D=Math.atan2(k,d)-3e-6*Math.cos(d*n),b=N*Math.cos(D),T=N*Math.sin(D);return[b,T]},l=function(w,u){var u=+u,w=+w,d=Math.sqrt(w*w+u*u)+2e-5*Math.sin(u*n),k=Math.atan2(u,w)+3e-6*Math.cos(w*n),N=d*Math.cos(k)+.0065,D=d*Math.sin(k)+.006;return[N,D]},a=function(w,u){var u=+u,w=+w;if(p(w,u))return[w,u];var d=y(w-105,u-35),k=g(w-105,u-35),N=u/180*r,D=Math.sin(N);D=1-i*D*D;var b=Math.sqrt(D);d=d*180/(o*(1-i)/(D*b)*r),k=k*180/(o/b*Math.cos(N)*r);var T=u+d,I=w+k;return[I,T]},c=function(w,u){var u=+u,w=+w;if(p(w,u))return[w,u];var d=y(w-105,u-35),k=g(w-105,u-35),N=u/180*r,D=Math.sin(N);D=1-i*D*D;var b=Math.sqrt(D);d=d*180/(o*(1-i)/(D*b)*r),k=k*180/(o/b*Math.cos(N)*r);var T=u+d,I=w+k;return[w*2-I,u*2-T]},y=function(w,u){var u=+u,w=+w,d=-100+2*w+3*u+.2*u*u+.1*w*u+.2*Math.sqrt(Math.abs(w));return d+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,d+=(20*Math.sin(u*r)+40*Math.sin(u/3*r))*2/3,d+=(160*Math.sin(u/12*r)+320*Math.sin(u*r/30))*2/3,d},g=function(w,u){var u=+u,w=+w,d=300+w+2*u+.1*w*w+.1*w*u+.1*Math.sqrt(Math.abs(w));return d+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,d+=(20*Math.sin(w*r)+40*Math.sin(w/3*r))*2/3,d+=(150*Math.sin(w/12*r)+300*Math.sin(w/30*r))*2/3,d},p=function(w,u){var u=+u,w=+w;return!(w>73.66&&w<135.05&&u>3.86&&u<53.55)};return{bd09togcj02:s,gcj02tobd09:l,wgs84togcj02:a,gcj02towgs84:c}})})(Ke)),Ke.exports}var v2=y2();const _1=Dt(v2);function Ze(e){if(!e||!Array.isArray(e)||e.length<2)return!1;const[n,r]=e;return!isNaN(n)&&!isNaN(r)&&n!==null&&r!==null}function Ie(e){return!e||!Array.isArray(e)||e.length===0?[]:e.filter(n=>Ze(n)).map(n=>{if(n.length>=2)try{const[r,o]=_1.wgs84togcj02(n[0],n[1]);return[r,o]}catch(r){return console.warn("Coordinate transformation failed:",n,r),n}return n})}function mt(e){return Array.isArray(e)&&e.length>0&&Array.isArray(e[0])&&e[0].length>0&&Array.isArray(e[0][0])}function At(e,n){if(!Number.isFinite(e)||!Number.isFinite(n))return null;try{const[r,o]=_1.wgs84togcj02(e,n);return[r,o]}catch{return null}}var qe={exports:{}},Q2=qe.exports,qt;function k2(){return qt||(qt=1,(function(e,n){(function(r,o){e.exports=o()})(Q2,function(){function r(p){var Q=[];return p.AMapUI&&Q.push(o(p.AMapUI)),p.Loca&&Q.push(i(p.Loca)),Promise.all(Q)}function o(p){return new Promise(function(Q,h){var v=[];if(p.plugins)for(var u=0;u<p.plugins.length;u+=1)l.AMapUI.plugins.indexOf(p.plugins[u])==-1&&v.push(p.plugins[u]);if(a.AMapUI===s.failed)h("前次请求 AMapUI 失败");else if(a.AMapUI===s.notload){a.AMapUI=s.loading,l.AMapUI.version=p.version||l.AMapUI.version,u=l.AMapUI.version;var w=document.body||document.head,d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/ui/"+u+"/main.js",d.onerror=function(k){a.AMapUI=s.failed,h("请求 AMapUI 失败")},d.onload=function(){if(a.AMapUI=s.loaded,v.length)window.AMapUI.loadUI(v,function(){for(var k=0,N=v.length;k<N;k++){var D=v[k].split("/").slice(-1)[0];window.AMapUI[D]=arguments[k]}for(Q();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()});else for(Q();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()},w.appendChild(d)}else a.AMapUI===s.loaded?p.version&&p.version!==l.AMapUI.version?h("不允许多个版本 AMapUI 混用"):v.length?window.AMapUI.loadUI(v,function(){for(var k=0,N=v.length;k<N;k++){var D=v[k].split("/").slice(-1)[0];window.AMapUI[D]=arguments[k]}Q()}):Q():p.version&&p.version!==l.AMapUI.version?h("不允许多个版本 AMapUI 混用"):c.AMapUI.push(function(k){k?h(k):v.length?window.AMapUI.loadUI(v,function(){for(var N=0,D=v.length;N<D;N++){var b=v[N].split("/").slice(-1)[0];window.AMapUI[b]=arguments[N]}Q()}):Q()})})}function i(p){return new Promise(function(Q,h){if(a.Loca===s.failed)h("前次请求 Loca 失败");else if(a.Loca===s.notload){a.Loca=s.loading,l.Loca.version=p.version||l.Loca.version;var v=l.Loca.version,u=l.AMap.version.startsWith("2"),w=v.startsWith("2");if(u&&!w||!u&&w)h("JSAPI 与 Loca 版本不对应!!");else{u=l.key,w=document.body||document.head;var d=document.createElement("script");d.type="text/javascript",d.src="https://webapi.amap.com/loca?v="+v+"&key="+u,d.onerror=function(k){a.Loca=s.failed,h("请求 AMapUI 失败")},d.onload=function(){for(a.Loca=s.loaded,Q();c.Loca.length;)c.Loca.splice(0,1)[0]()},w.appendChild(d)}}else a.Loca===s.loaded?p.version&&p.version!==l.Loca.version?h("不允许多个版本 Loca 混用"):Q():p.version&&p.version!==l.Loca.version?h("不允许多个版本 Loca 混用"):c.Loca.push(function(k){k?h(k):h()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var s;(function(p){p.notload="notload",p.loading="loading",p.loaded="loaded",p.failed="failed"})(s||(s={}));var l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMapUI:[],Loca:[]},y=[],g=function(p){typeof p=="function"&&(a.AMap===s.loaded?p(window.AMap):y.push(p))};return{load:function(p){return new Promise(function(Q,h){if(a.AMap==s.failed)h("");else if(a.AMap==s.notload){var v=p.key,u=p.version,w=p.plugins;v?(window.AMap&&location.host!=="lbs.amap.com"&&h("禁止多种API加载方式混用"),l.key=v,l.AMap.version=u||l.AMap.version,l.AMap.plugins=w||l.AMap.plugins,a.AMap=s.loading,u=document.body||document.head,window.___onAPILoaded=function(k){if(delete window.___onAPILoaded,k)a.AMap=s.failed,h(k);else for(a.AMap=s.loaded,r(p).then(function(){Q(window.AMap)}).catch(h);y.length;)y.splice(0,1)[0]()},w=document.createElement("script"),w.type="text/javascript",w.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+l.AMap.version+"&key="+v+"&plugin="+l.AMap.plugins.join(","),w.onerror=function(k){a.AMap=s.failed,h(k)},u.appendChild(w)):h("请填写key")}else if(a.AMap==s.loaded)if(p.key&&p.key!==l.key)h("多个不一致的 key");else if(p.version&&p.version!==l.AMap.version)h("不允许多个版本 JSAPI 混用");else{if(v=[],p.plugins)for(u=0;u<p.plugins.length;u+=1)l.AMap.plugins.indexOf(p.plugins[u])==-1&&v.push(p.plugins[u]);v.length?window.AMap.plugin(v,function(){r(p).then(function(){Q(window.AMap)}).catch(h)}):r(p).then(function(){Q(window.AMap)}).catch(h)}else if(p.key&&p.key!==l.key)h("多个不一致的 key");else if(p.version&&p.version!==l.AMap.version)h("不允许多个版本 JSAPI 混用");else{var d=[];if(p.plugins)for(u=0;u<p.plugins.length;u+=1)l.AMap.plugins.indexOf(p.plugins[u])==-1&&d.push(p.plugins[u]);g(function(){d.length?window.AMap.plugin(d,function(){r(p).then(function(){Q(window.AMap)}).catch(h)}):r(p).then(function(){Q(window.AMap)}).catch(h)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,l={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:s.notload,AMapUI:s.notload,Loca:s.notload},c={AMap:[],AMapUI:[],Loca:[]}}}})})(qe)),qe.exports}var b2=k2();const M2=Dt(b2);let nt="",gt="";const C2="2.0";function _2(e){nt=e.key,gt=e.securityCode}function N2(){typeof window<"u"&>&&(window._AMapSecurityConfig={securityJsCode:gt})}function D2(){typeof window<"u"&&(window.forceWebGL=!0)}let Re=null,dt=null;const ft=new Set;function A2(e){return e!=null&&e.length?Array.from(new Set(e.filter(Boolean))):[]}async function S2(){if(!(typeof window.Loca<"u")){if(!dt){const e=`https://webapi.amap.com/loca?v=2.0.0&key=${nt}`;dt=new Promise((n,r)=>{const o=document.createElement("script");o.type="text/javascript",o.src=e,o.onload=()=>n(),o.onerror=i=>r(i),document.head.appendChild(o)})}await dt}}async function T2(e={}){const{plugins:n=[],withLoca:r=!1}=e,o=A2(n),i=typeof window<"u"?window:null;if(i!=null&&i.AMap&&!Re&&(console.warn("[AMap Loader] 检测到已存在的 AMap 实例,将复用现有实例"),Re=Promise.resolve(i.AMap)),!Re){if(!nt)throw new Error("AMap key 未配置,请在 twcptInit 中设置 amap.key");N2(),D2(),o.forEach(a=>ft.add(a)),Re=M2.load({key:nt,version:C2,plugins:o})}const s=await Re;if(typeof window<"u"){const a=window;a.AMap||(a.AMap=s)}const l=o.filter(a=>!ft.has(a));return l.length&&typeof(s==null?void 0:s.plugin)=="function"&&(await new Promise(a=>{s.plugin(l,()=>a())}),l.forEach(a=>ft.add(a))),r&&await S2(),s}const I2=[116.407428,39.91923];function E2(e){const{center:n,zoom:r,viewMode:o,mapType:i,isDark:s}=e;let l=null,a=null,c=null;async function y(w){if(!w)return null;try{await T2({plugins:["AMap.DistrictSearch"]})}catch(I){return console.error("AMap 加载失败:",I),null}const d=window.AMap;if(!d)return null;const k=n.value;let N=I2;const D=At(k[0],k[1]);D&&Ze(D)&&(N=D);const b=o.value,T=b==="3D";return l=new d.Map(w,{zoom:r.value,center:N,mapStyle:s.value?"amap://styles/dark":"amap://styles/whitesmoke",viewMode:b,...T&&{pitch:50,rotateEnable:!0,pitchEnable:!0}}),i.value==="satellite"&&(a=new d.TileLayer.Satellite,l.add(a)),c=new d.InfoWindow({isCustom:!0,offset:new d.Pixel(0,-40),closeWhenClickMap:!0}),l}function g(){l&&(c&&(c.close(),c=null),a&&(l.remove(a),a=null),l.destroy(),l=null)}function p(){return l}function Q(){return c}function h(w){l&&l.setMapStyle(w?"amap://styles/dark":"amap://styles/whitesmoke")}function v(w){l&&typeof l.setViewMode=="function"&&l.setViewMode(w)}function u(w){if(!l)return;const d=window.AMap;w==="satellite"?(a||(a=new d.TileLayer.Satellite),l.add(a)):(a&&(l.remove(a),a=null),l.setMapStyle(s.value?"amap://styles/dark":"amap://styles/whitesmoke"))}return{initMap:y,destroyMap:g,getMap:p,getInfoWindow:Q,setMapStyle:h,setViewMode:v,setMapType:u}}const L2=[116.398,39.92],Te={completed:"#00B42A",notCollected:"#E6A23C",defaultHighlight:"#165dff",single:"#00B42A"},x2="#FF8C00",ve={polyline:40,polylineHighlight:45,polylineBorder:44,track:50,startMarker:60,pointLabel:10};function j2(e){const{getMap:n,lineArr:r,mapLineArr:o,trackLineArr:i,highlightLineIndex:s,highlightStrokeColor:l,routeCompletedList:a,startPointIcon:c}=e;let y=null;const g=[];let p=null;function Q(){const v=n();v&&(y&&(v.remove(y),y=null),g.forEach(u=>v.remove(u)),g.length=0,p&&(v.remove(p),p=null))}function h(){const v=n();if(!v)return;Q();const u=r.value||[],w=o.value||[],d=i.value||[],k=s.value,N=l.value||Te.defaultHighlight,D=w.length>0||d.length>0;if(!D&&(!u||u.length===0))return;const b=window.AMap;if(D){const I=ve.polyline;if([w,d].forEach(($,M)=>{if(!$||$.length===0)return;const L=M===0;$.forEach(V=>{const C=Ie(V);if(C.length===0)return;const x=new b.Polyline({path:C,strokeColor:L?Te.completed:Te.notCollected,strokeWeight:2,strokeOpacity:.85,strokeStyle:L?"solid":"dashed",lineJoin:"round",lineCap:"round",zIndex:I});g.push(x),v.add(x)})}),k>=0&&Array.isArray(u[k])&&u[k].length>0){const $=Ie(u[k]);if($.length>0){const M=new b.Polyline({path:$,strokeColor:N,strokeWeight:3,strokeOpacity:.95,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});g.push(M),v.add(M)}}if(u[0]&&u[0].length>0){const $=Ie(u[0]);$.length>0&&(p=new b.Marker({position:$[0],icon:new b.Icon({image:c,size:new b.Size(70,70),imageSize:new b.Size(70,70)}),offset:new b.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),v.add(p))}g.length>0&&v.setFitView(g)}else if(u&&u.length>0&&mt(u)){const T=a.value||[],I=T.length>0,$=I?Te.notCollected:Te.completed,M=I?3:2,L=3,V=10,C=[];if(u.forEach((x,m)=>{const R=Ie(x);if(R.length===0)return;const K=m===k,G=I&&(T[m]===!0||T[m]===2),U=I&&G?Te.completed:$;if(I&&K){const F=new b.Polyline({path:R,strokeColor:N,strokeWeight:V,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineBorder}),j=new b.Polyline({path:R,strokeColor:U,strokeWeight:M,strokeOpacity:1,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});g.push(F,j),C.push({polyline:F,isHighlight:!0}),C.push({polyline:j,isHighlight:!0})}else{const F=new b.Polyline({path:R,strokeColor:U,strokeWeight:K?L:M,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:K?ve.polylineHighlight:ve.polyline});g.push(F),C.push({polyline:F,isHighlight:K})}}),C.filter(x=>!x.isHighlight).forEach(x=>v.add(x.polyline)),C.filter(x=>x.isHighlight).forEach(x=>v.add(x.polyline)),u[0]&&u[0].length>0){const x=Ie(u[0]);x.length>0&&(p=new b.Marker({position:x[0],icon:new b.Icon({image:c,size:new b.Size(70,70),imageSize:new b.Size(70,70)}),offset:new b.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),v.add(p))}g.length>0&&v.setFitView(g)}else{const T=Ie(u);T.length>0&&(y=new b.Polyline({path:T,strokeColor:Te.single,strokeWeight:3,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polyline}),v.add(y),p=new b.Marker({position:T[0],icon:new b.Icon({image:c,size:new b.Size(70,70),imageSize:new b.Size(70,70)}),offset:new b.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),v.add(p),v.setFitView(y)),y&&v.setFitView([y])}}return{drawPolyline:h,clear:Q}}const N1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='48'%20height='96'%20viewBox='0%200%2048%2096'%3e%3cdefs%3e%3cfilter%20id='master_svg0_421_65730'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.25'%20y='-0.1875'%20width='1.5'%20height='1.5'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='master_svg1_421_65786'%20filterUnits='objectBoundingBox'%20color-interpolation-filters='sRGB'%20x='-0.2222222222222222'%20y='-0.12830338404351957'%20width='1.4444444444444444'%20height='1.3421423574493856'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'%20dx='0'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.30000001192092896%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3cg%3e%3cg%3e%3cg%20filter='url(%23master_svg0_421_65730)'%3e%3cellipse%20cx='24'%20cy='70'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,70Q42,70.441875,41.978317,70.883217Q41.956638,71.324562,41.91333,71.764309Q41.870018,72.20405600000001,41.805176,72.641148Q41.740341,73.078239,41.654137,73.511623Q41.567928,73.945007,41.460564,74.373642Q41.353195,74.802277,41.22493,75.225124Q41.096657,75.647972,40.947792,76.064016Q40.798927,76.480061,40.629829,76.8883Q40.460732,77.296539,40.271805,77.695992Q40.082878,78.09544199999999,39.874582000000004,78.485142Q39.666283,78.87484,39.439114000000004,79.253849Q39.211945,79.632858,38.966452000000004,80.000263Q38.720959,80.367668,38.457733000000005,80.722586Q38.19451,81.07750300000001,37.914187999999996,81.419079Q37.633865,81.760653,37.337118000000004,82.08806Q37.040373,82.415466,36.727920999999995,82.727921Q36.415465999999995,83.040373,36.08806,83.337118Q35.760653000000005,83.633865,35.419078999999996,83.914188Q35.077503,84.19451000000001,34.722586,84.457733Q34.367667999999995,84.720959,34.000263000000004,84.966452Q33.632858,85.211945,33.253849,85.439114Q32.87484,85.66628299999999,32.485141999999996,85.874582Q32.095442,86.082878,31.69599,86.271805Q31.296539,86.46073200000001,30.8883,86.629829Q30.480061,86.79892699999999,30.064016,86.94779199999999Q29.647972,87.096657,29.225124,87.22492600000001Q28.802277,87.353195,28.373642,87.460564Q27.945007,87.567928,27.511623,87.65413699999999Q27.078239,87.740341,26.641148,87.80518000000001Q26.204056,87.870018,25.764309,87.91333Q25.324562,87.956638,24.883219,87.978321Q24.441875,88,24,88Q23.558125,88,23.116781,87.978317Q22.675439,87.956638,22.235692,87.91333Q21.795944,87.870018,21.358851,87.805176Q20.921759,87.740341,20.488374999999998,87.65413699999999Q20.05499,87.567928,19.626357,87.460564Q19.197724,87.353195,18.774877,87.22493Q18.352028,87.096657,17.9359827,86.94779199999999Q17.519937499999997,86.79892699999999,17.1116982,86.629829Q16.7034588,86.46073200000001,16.3040075,86.271805Q15.9045577,86.082878,15.5148587,85.874582Q15.1251593,85.66628299999999,14.74615,85.439114Q14.3671408,85.211945,13.9997349,84.966452Q13.632329,84.720959,13.2774119,84.457733Q12.9224939,84.19451000000001,12.580920200000001,83.914188Q12.239346000000001,83.633865,11.9119382,83.337118Q11.5845304,83.040373,11.2720778,82.727921Q10.9596248,82.415466,10.6628797,82.08806Q10.3661346,81.760653,10.0858119,81.419079Q9.805489099999999,81.07750300000001,9.5422643,80.722586Q9.2790396,80.367668,9.0335469,80.000263Q8.78805423,79.632858,8.56088501,79.253849Q8.33371574,78.87484,8.12541722,78.485142Q7.917118691,78.09544199999999,7.72819272,77.69599Q7.53926674,77.296539,7.3701684499999995,76.8883Q7.20107013,76.480061,7.05220687,76.064016Q6.9033437,75.647972,6.775074,75.225124Q6.6468045,74.802277,6.5394375,74.373642Q6.4320707,73.945007,6.3458651,73.511623Q6.2596595,73.078239,6.1948229999999995,72.641148Q6.1299863000000006,72.20405600000001,6.0866749,71.764309Q6.0433636,71.324562,6.0216818,70.883219Q6,70.441875,6,70Q6,69.558125,6.0216818,69.116781Q6.0433636,68.675439,6.0866748,68.235692Q6.1299863000000006,67.795944,6.1948229,67.358851Q6.2596595,66.921759,6.3458651,66.488375Q6.4320707,66.05499,6.5394375,65.626357Q6.6468045,65.197724,6.775074,64.774877Q6.9033437,64.352028,7.05220693,63.9359827Q7.20107019,63.5199375,7.37016851,63.1116982Q7.53926679,62.7034588,7.72819275,62.3040075Q7.917118743,61.9045577,8.12541726,61.5148587Q8.33371574,61.1251593,8.56088495,60.74615Q8.78805423,60.3671408,9.0335469,59.9997349Q9.2790396,59.632329,9.5422645,59.2774119Q9.805489099999999,58.9224939,10.0858119,58.5809202Q10.3661346,58.239346,10.6628797,57.9119382Q10.9596248,57.5845304,11.2720778,57.2720778Q11.5845304,56.9596248,11.9119382,56.6628797Q12.239346000000001,56.3661346,12.580920200000001,56.0858119Q12.9224939,55.8054891,13.2774115,55.5422643Q13.632329,55.2790396,13.9997349,55.0335469Q14.3671408,54.78805423,14.74615,54.56088501Q15.125158800000001,54.33371574,15.5148578,54.12541722Q15.9045568,53.917118691,16.3040066,53.72819272Q16.7034569,53.53926674,17.111697200000002,53.37016845Q17.5199366,53.20107013,17.9359818,53.05220687Q18.352027,52.9033437,18.774876,52.775074000000004Q19.197723,52.6468045,19.626356,52.5394375Q20.054989,52.4320707,20.488374,52.3458651Q20.921759,52.2596595,21.35885,52.194823Q21.795944,52.1299863,22.235692,52.0866749Q22.675439,52.0433636,23.116781,52.0216818Q23.558125,52,24,52Q24.441875,52,24.883217,52.0216818Q25.324562,52.0433636,25.764309,52.0866748Q26.204056,52.1299863,26.641148,52.1948229Q27.078239,52.2596595,27.511623,52.3458651Q27.945007,52.4320707,28.373642,52.5394375Q28.802277,52.6468045,29.225124,52.775074000000004Q29.647972,52.9033437,30.064016,53.05220693Q30.480061,53.20107019,30.8883,53.37016851Q31.296539,53.53926679,31.695992,53.72819275Q32.095442,53.917118743,32.485141999999996,54.12541726Q32.87484,54.33371574,33.253849,54.56088495Q33.632858,54.78805423,34.000263000000004,55.0335469Q34.367667999999995,55.2790396,34.722586,55.5422645Q35.077503,55.8054891,35.419078999999996,56.0858119Q35.760653000000005,56.3661346,36.08806,56.6628797Q36.415465999999995,56.9596248,36.727920999999995,57.2720778Q37.040373,57.5845304,37.337118000000004,57.9119382Q37.633865,58.239346,37.914187999999996,58.5809202Q38.19451,58.9224939,38.457733000000005,59.2774115Q38.720959,59.632329,38.966452000000004,59.9997349Q39.211945,60.3671408,39.439114000000004,60.74615Q39.666283,61.1251588,39.874582000000004,61.5148578Q40.082878,61.9045568,40.271805,62.3040066Q40.460732,62.7034569,40.629829,63.1116972Q40.798927,63.5199366,40.947792,63.9359818Q41.096657,64.35202699999999,41.224926,64.774876Q41.353195,65.197723,41.460564,65.626356Q41.567928,66.054989,41.654137,66.488374Q41.740341,66.921759,41.80518,67.35885Q41.870018,67.795944,41.91333,68.235692Q41.956638,68.675439,41.978321,69.116781Q42,69.558125,42,70ZM40,70Q40,69.60722200000001,39.980726000000004,69.214917Q39.961454,68.822613,39.922956,68.431726Q39.884457,68.04083800000001,39.826824,67.652311Q39.769189999999995,67.263784,39.692561999999995,66.878554Q39.615933999999996,66.493323,39.520496,66.11231599999999Q39.42506,65.73131000000001,39.311043,65.355445Q39.197025,64.979579,39.064701,64.609761Q38.932377,64.239943,38.782067999999995,63.8770638Q38.63176,63.514184,38.463825,63.1591167Q38.295891,62.8040504,38.110737,62.4576511Q37.925583,62.1112518,37.723653999999996,61.7743554Q37.521725,61.4374585,37.303509,61.1108756Q37.085293,60.7842927,36.851316,60.468811Q36.61734,60.1533289,36.368164,59.8497076Q36.118988,59.5460863,35.855215,59.2550569Q35.591442,58.9640274,35.313705,58.6862912Q35.035969,58.408555,34.744942,58.1447821Q34.453911000000005,57.8810084,34.150290999999996,57.6318328Q33.846668,57.3826571,33.531185,57.1486793Q33.215702,56.9147017,32.889117999999996,56.696486Q32.562534,56.4782701,32.225639,56.2763419Q31.888744,56.0744138,31.542347,55.8892597Q31.195946,55.7041054,30.840878,55.5361711Q30.485809,55.3682369,30.122932,55.2179273Q29.760052,55.0676178,29.390236,54.93529487Q29.020416,54.80297196,28.644554,54.68895459Q28.268688,54.57493716,27.88768,54.47949991Q27.506674,54.38406265,27.121443,54.30743548Q26.736212,54.2308083,26.347687,54.17317583Q25.95916,54.11554334,25.568275,54.077044368Q25.177387,54.038545396,24.785082,54.019272698Q24.392776,54,24,54Q23.607222,54,23.214917,54.019272698Q22.822613,54.038545396,22.431725999999998,54.077044368Q22.040838,54.11554334,21.652310999999997,54.17317581Q21.263784,54.2308083,20.878554,54.30743548Q20.493323,54.38406265,20.112316,54.47949988Q19.73131,54.57493716,19.355445,54.68895459Q18.979579,54.80297196,18.609761,54.93529487Q18.239943,55.0676178,17.877063800000002,55.2179273Q17.514184,55.3682369,17.1591167,55.5361711Q16.8040504,55.7041053,16.4576511,55.8892596Q16.111251799999998,56.0744138,15.774355400000001,56.2763419Q15.4374585,56.4782701,15.1108756,56.696486Q14.7842927,56.9147017,14.468810999999999,57.1486793Q14.1533289,57.3826568,13.8497076,57.6318326Q13.546086299999999,57.8810081,13.2550569,58.1447816Q12.964027399999999,58.408555,12.6862912,58.6862912Q12.408555,58.9640274,12.1447821,59.2550569Q11.881008399999999,59.5460863,11.6318328,59.8497076Q11.3826571,60.1533289,11.1486793,60.468811Q10.9147017,60.7842932,10.696486,61.1108761Q10.4782701,61.437459,10.2763419,61.7743554Q10.0744138,62.1112518,9.8892597,62.4576511Q9.7041054,62.8040504,9.5361711,63.1591167Q9.3682369,63.514184,9.2179273,63.8770638Q9.0676178,64.239943,8.93529487,64.60976Q8.80297196,64.979579,8.68895459,65.355445Q8.57493716,65.73131000000001,8.47949991,66.11231599999999Q8.38406265,66.493323,8.30743548,66.878554Q8.2308083,67.263784,8.17317583,67.652311Q8.11554334,68.04083800000001,8.077044368,68.431726Q8.038545396,68.822613,8.019272698,69.214918Q8,69.60722200000001,8,70Q8,70.392776,8.019272698,70.785082Q8.038545396,71.177387,8.077044368,71.568274Q8.11554334,71.95916,8.17317581,72.347685Q8.2308083,72.736212,8.30743548,73.121443Q8.38406265,73.506674,8.47949988,73.88768Q8.57493716,74.268688,8.68895459,74.644554Q8.80297196,75.020416,8.93529487,75.39023399999999Q9.0676178,75.760052,9.2179273,76.12293199999999Q9.3682369,76.485809,9.5361711,76.840878Q9.7041053,77.19594599999999,9.889259599999999,77.542345Q10.0744138,77.888744,10.2763419,78.225639Q10.4782701,78.562534,10.696486,78.889118Q10.9147017,79.215702,11.1486793,79.531185Q11.3826568,79.846668,11.6318326,80.150291Q11.881008099999999,80.453911,12.1447816,80.74494Q12.408555,81.035969,12.6862912,81.313705Q12.964027399999999,81.591442,13.2550569,81.855215Q13.546086299999999,82.118988,13.8497076,82.36816400000001Q14.1533289,82.61734,14.468810999999999,82.851316Q14.7842932,83.08529300000001,15.110876099999999,83.30350899999999Q15.437459,83.521725,15.774355400000001,83.723654Q16.111251799999998,83.925583,16.4576511,84.110739Q16.8040504,84.295891,17.1591167,84.463827Q17.514184,84.63176,17.877063800000002,84.78207Q18.239943,84.93238099999999,18.60976,85.06470300000001Q18.979579,85.197025,19.355445,85.31104500000001Q19.73131,85.42506,20.112316,85.520498Q20.493323,85.615936,20.878554,85.692562Q21.263784,85.76919,21.652310999999997,85.82682199999999Q22.040838,85.884457,22.431725999999998,85.922956Q22.822613,85.961454,23.214918,85.980728Q23.607222,86,24,86Q24.392776,86,24.785082,85.980726Q25.177387,85.961454,25.568274,85.922956Q25.95916,85.884457,26.347685,85.826824Q26.736212,85.76919,27.121443,85.692562Q27.506674,85.615934,27.88768,85.52049600000001Q28.268688,85.42506,28.644554,85.311043Q29.020416,85.197025,29.390234,85.064701Q29.760052,84.932377,30.122932,84.782068Q30.485809,84.63176,30.840878,84.463825Q31.195946,84.295891,31.542345,84.110737Q31.888744,83.925583,32.225639,83.723654Q32.562534,83.521725,32.889117999999996,83.30350899999999Q33.215702,83.08529300000001,33.531185,82.851316Q33.846668,82.61734,34.150290999999996,82.36816400000001Q34.453911000000005,82.118988,34.74494,81.855215Q35.035969,81.591442,35.313705,81.313705Q35.591442,81.035969,35.855215,80.74494200000001Q36.118988,80.453911,36.368164,80.150291Q36.61734,79.846668,36.851316,79.531185Q37.085293,79.215702,37.303509,78.889118Q37.521725,78.562534,37.723653999999996,78.225639Q37.925583,77.888744,38.110738999999995,77.542347Q38.295891,77.19594599999999,38.463826999999995,76.840878Q38.63176,76.485809,38.782070000000004,76.12293199999999Q38.932381,75.760052,39.064703,75.390236Q39.197025,75.020416,39.311045,74.644554Q39.42506,74.268688,39.520498,73.88768Q39.615936000000005,73.506674,39.692561999999995,73.121443Q39.769189999999995,72.736212,39.826822,72.34768700000001Q39.884457,71.95916,39.922956,71.568275Q39.961454,71.177387,39.980728,70.785082Q40,70.392776,40,70Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='16'%20y='62'%20width='16'%20height='16'%20rx='1'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M16,63.0000001L16,64L32,64L32,63.0000001C32,62.44771528,31.552284999999998,62,31,62L17.0000001,62C16.44771528,62,16,62.44771528,16,63.0000001Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='21'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='26'%20y='69'%20width='1'%20height='3'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='16'%20y='64'%20width='16'%20height='1'%20rx='0'%20fill='%2300D4FF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M19,64L20.25,65L27.75,65L29,64L19,64Z'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3crect%20x='23.75'%20y='62'%20width='0.5'%20height='16'%20rx='0'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%20filter='url(%23master_svg1_421_65786)'%3e%3cpath%20d='M32.232849,38.006882Q32.781176,37.724861,33.308915999999996,37.405979Q33.836655,37.087097,34.341335,36.732849Q34.846019999999996,36.378601,35.325277,35.990648Q35.804535,35.602694,36.256119,35.182852Q36.707706,34.763014,37.129503,34.313255Q37.5513,33.863499000000004,37.94133,33.385929000000004Q38.331364,32.908363,38.687801,32.405226Q39.044235,31.902086,39.365406,31.375734Q39.686577,30.849384,39.970978,30.302292Q40.255379,29.755196,40.501671,29.18992Q40.747971,28.624649,40.955002,28.043846Q41.162037,27.463043,41.328838,26.869432Q41.495644,26.275826,41.621441,25.672194Q41.747231,25.068562,41.831421,24.457733Q41.915615,23.846909,41.957809,23.231754Q42,22.6166,42,22Q42,21.558125,41.978317,21.116783Q41.956635,20.675438,41.913326,20.235691Q41.870014,19.795943,41.805176,19.358851Q41.740341,18.921759,41.654133,18.488374Q41.567924,18.054989,41.46056,17.626356Q41.353195,17.197723,41.224926,16.774877Q41.096657,16.352028,40.947792,15.935983Q40.798927,15.519938,40.629829,15.111698Q40.460728,14.703459,40.271801,14.304008Q40.082878,13.9045582,39.87458,13.5148592Q39.666283,13.1251593,39.43911,12.74615Q39.211945,12.3671408,38.96645,11.9997349Q38.720955,11.632329,38.457729,11.2774119Q38.194508,10.9224944,37.914185,10.580920200000001Q37.633862,10.2393465,37.337116,9.9119387Q37.040371,9.5845308,36.727920999999995,9.2720776Q36.415465999999995,8.9596248,36.08806,8.662879499999999Q35.760653000000005,8.366134599999999,35.419078999999996,8.0858121Q35.077503,7.8054891,34.722586,7.5422642Q34.367667999999995,7.2790394,34.000263000000004,7.0335464000000005Q33.632858,6.788054,33.253849,6.5608847Q32.87484,6.3337154,32.48514,6.1254170000000006Q32.095439999999996,5.9171184,31.69599,5.7281923Q31.296539,5.5392665,30.888298,5.3701682Q30.480059,5.2010698,30.064014,5.0522066Q29.647972,4.90334344,29.225124,4.77507389Q28.802277,4.64680433,28.373642,4.53943741Q27.945007,4.43207049,27.511623,4.34586489Q27.078239,4.25965932,26.641148,4.19482279Q26.204056,4.12998626,25.764309,4.086674914Q25.324562,4.043363571,24.883219,4.021681786Q24.441875,4,24,4Q23.558125,4,23.116783,4.021681786Q22.675438,4.043363571,22.235691,4.086674914Q21.795943,4.12998626,21.358851,4.19482279Q20.921759,4.25965932,20.488374,4.34586489Q20.054989,4.43207049,19.626356,4.53943741Q19.197723,4.64680433,18.774877,4.77507389Q18.352028,4.90334344,17.935983,5.0522068Q17.519938,5.2010698,17.111698,5.3701682Q16.703459000000002,5.5392665,16.304008,5.7281924Q15.9045582,5.9171185,15.5148592,6.125417199999999Q15.1251593,6.3337157,14.74615,6.560885Q14.3671408,6.788054,13.9997349,7.0335467000000005Q13.632329,7.2790394,13.2774119,7.542263999999999Q12.9224944,7.8054888,12.580920200000001,8.0858116Q12.2393465,8.366134200000001,11.9119387,8.662879499999999Q11.5845308,8.9596248,11.2720776,9.2720776Q10.9596248,9.5845308,10.662879499999999,9.9119387Q10.366134599999999,10.2393465,10.0858121,10.580920200000001Q9.805489099999999,10.9224944,9.5422642,11.2774115Q9.2790394,11.632329,9.0335464,11.9997349Q8.788053999999999,12.3671398,8.560884699999999,12.7461491Q8.333715399999999,13.1251583,8.125417,13.5148582Q7.9171184,13.9045563,7.7281923,14.304007Q7.5392665,14.703457,7.3701682,15.111697Q7.2010698,15.519937,7.0522066,15.935982Q6.90334344,16.352028,6.77507389,16.774877Q6.64680433,17.197723,6.53943741,17.626356Q6.43207049,18.054989,6.34586489,18.488374Q6.25965932,18.921759,6.19482279,19.358851Q6.12998626,19.795944,6.086674914,20.235693Q6.043363571,20.67544,6.021681786,21.116783Q6,21.558125,6,22Q6,22.61661,6.042195804,23.231773Q6.084391609,23.846939,6.16858539,24.457773Q6.25277919,25.068609,6.37857616,25.672251Q6.50437319,26.27589,6.67118365,26.869509Q6.8379940999999995,27.463127,7.045036,28.043938Q7.2520778,28.624748,7.4983803,29.190029Q7.7446828,29.75531,8.0290914,30.302412Q8.3134997,30.849514,8.6346805,31.37587Q8.9558616,31.902225,9.312308999999999,32.405369Q9.6687565,32.908512,10.0587993,33.386082Q10.4488425,33.863655,10.8706522,34.313414Q11.2924619,34.763174,11.7440605,35.183014Q12.195659599999999,35.602856,12.6749306,35.990807000000004Q13.154201,36.378761,13.6588964,36.733006Q14.1635923,37.08725,14.6913471,37.406132Q15.219101,37.72501,15.7674398,38.007027L21.316826,49.105801Q22.146006,50.76416,24.000107,50.76416Q25.85421,50.76416,26.68339,49.105801L32.232849,38.006882Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cg%20transform='matrix(-1,0,0,-1,64,100)'%3e%3cpath%20d='M40.894427300000004,51.7888544L47.276393,64.552786C47.608844,65.217687,47.125348,66,46.381966,66L33.6180344,66C32.87465209,66,32.39115629,65.217687,32.72360682,64.552786L39.105572699999996,51.7888546C39.4740968,51.0518059,40.5259027,51.0518059,40.894427300000004,51.7888544'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M30.9347535,63.658358Q30.1867377,65.154384,31.06608164,66.577192Q31.945424803,68,33.6180344,68L46.381967,68Q48.054579000000004,68,48.93392,66.57719Q49.813261,65.154384,49.065247,63.65836L42.683282,50.89442706Q41.8541021,49.23606777,40,49.23606795Q38.1458969,49.23606819,37.3167186,50.89442742L30.9347535,63.658358ZM47.276393,64.552786L40.894427300000004,51.7888544C40.5259027,51.0518059,39.4740968,51.0518059,39.105572699999996,51.7888546L32.72360682,64.552786C32.39115629,65.217687,32.87465209,66,33.6180344,66L46.381966,66C47.125348,66,47.608844,65.217687,47.276393,64.552786Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%3e%3cellipse%20cx='24'%20cy='22'%20rx='16'%20ry='16'%20fill='%23165DFF'%20fill-opacity='1'/%3e%3cpath%20d='M42,22Q42,22.441875,41.978317,22.883217Q41.956638,23.324562,41.91333,23.764309Q41.870018,24.204056,41.805176,24.641148Q41.740341,25.078239,41.654137,25.511623Q41.567928,25.945007,41.460564,26.373642Q41.353195,26.802277,41.22493,27.225124Q41.096657,27.647972,40.947792,28.064016Q40.798927,28.480061,40.629829,28.8883Q40.460732,29.296539,40.271805,29.695992Q40.082878,30.095442,39.874582000000004,30.485142Q39.666283,30.87484,39.439114000000004,31.253849Q39.211945,31.632858,38.966452000000004,32.000263000000004Q38.720959,32.367667999999995,38.457733000000005,32.722586Q38.19451,33.077503,37.914187999999996,33.419078999999996Q37.633865,33.760653000000005,37.337118000000004,34.08806Q37.040373,34.415465999999995,36.727920999999995,34.727920999999995Q36.415465999999995,35.040373,36.08806,35.337118000000004Q35.760653000000005,35.633865,35.419078999999996,35.914187999999996Q35.077503,36.19451,34.722586,36.457733000000005Q34.367667999999995,36.720959,34.000263000000004,36.966452000000004Q33.632858,37.211945,33.253849,37.439114000000004Q32.87484,37.666283,32.485141999999996,37.874582000000004Q32.095442,38.082878,31.69599,38.271805Q31.296539,38.460732,30.8883,38.629829Q30.480061,38.798927,30.064016,38.947792Q29.647972,39.096657,29.225124,39.224926Q28.802277,39.353195,28.373642,39.460564Q27.945007,39.567928,27.511623,39.654137Q27.078239,39.740341,26.641148,39.80518Q26.204056,39.870018,25.764309,39.91333Q25.324562,39.956638,24.883219,39.978321Q24.441875,40,24,40Q23.558125,40,23.116781,39.978317Q22.675439,39.956638,22.235692,39.91333Q21.795944,39.870018,21.358851,39.805176Q20.921759,39.740341,20.488374999999998,39.654137Q20.05499,39.567928,19.626357,39.460564Q19.197724,39.353195,18.774877,39.22493Q18.352028,39.096657,17.9359827,38.947792Q17.519937499999997,38.798927,17.1116982,38.629829Q16.7034588,38.460732,16.3040075,38.271805Q15.9045577,38.082878,15.5148587,37.874582000000004Q15.1251593,37.666283,14.74615,37.439114000000004Q14.3671408,37.211945,13.9997349,36.966452000000004Q13.632329,36.720959,13.2774119,36.457733000000005Q12.9224939,36.19451,12.580920200000001,35.914187999999996Q12.239346000000001,35.633865,11.9119382,35.337118000000004Q11.5845304,35.040373,11.2720778,34.727920999999995Q10.9596248,34.415465999999995,10.6628797,34.08806Q10.3661346,33.760653000000005,10.0858119,33.419078999999996Q9.805489099999999,33.077503,9.5422643,32.722586Q9.2790396,32.367667999999995,9.0335469,32.000263000000004Q8.78805423,31.632858,8.56088501,31.253849Q8.33371574,30.87484,8.12541722,30.485142Q7.917118691,30.095442,7.72819272,29.69599Q7.53926674,29.296539,7.3701684499999995,28.8883Q7.20107013,28.480061,7.05220687,28.064016Q6.9033437,27.647972,6.775074,27.225124Q6.6468045,26.802277,6.5394375,26.373642Q6.4320707,25.945007,6.3458651,25.511623Q6.2596595,25.078239,6.1948229999999995,24.641148Q6.1299863000000006,24.204056,6.0866749,23.764309Q6.0433636,23.324562,6.0216818,22.883219Q6,22.441875,6,22Q6,21.558125,6.0216818,21.116781Q6.0433636,20.675439,6.0866748,20.235692Q6.1299863000000006,19.795944,6.1948229,19.358851Q6.2596595,18.921759,6.3458651,18.488374999999998Q6.4320707,18.05499,6.5394375,17.626357Q6.6468045,17.197724,6.775074,16.774877Q6.9033437,16.352028,7.05220693,15.9359827Q7.20107019,15.5199375,7.37016851,15.1116982Q7.53926679,14.7034588,7.72819275,14.3040075Q7.917118743,13.9045577,8.12541726,13.5148587Q8.33371574,13.1251593,8.56088495,12.74615Q8.78805423,12.3671408,9.0335469,11.9997349Q9.2790396,11.632329,9.5422645,11.2774119Q9.805489099999999,10.9224939,10.0858119,10.580920200000001Q10.3661346,10.239346000000001,10.6628797,9.9119382Q10.9596248,9.5845304,11.2720778,9.2720778Q11.5845304,8.9596248,11.9119382,8.6628797Q12.239346000000001,8.3661346,12.580920200000001,8.0858119Q12.9224939,7.8054891,13.2774115,7.5422643Q13.632329,7.2790396,13.9997349,7.0335469Q14.3671408,6.78805423,14.74615,6.56088501Q15.125158800000001,6.33371574,15.5148578,6.12541722Q15.9045568,5.917118691,16.3040066,5.72819272Q16.7034569,5.53926674,17.111697200000002,5.3701684499999995Q17.5199366,5.20107013,17.9359818,5.05220687Q18.352027,4.9033437,18.774876,4.775074Q19.197723,4.6468045,19.626356,4.5394375Q20.054989,4.4320707,20.488374,4.3458651Q20.921759,4.2596595,21.35885,4.1948229999999995Q21.795944,4.1299863000000006,22.235692,4.0866749Q22.675439,4.0433636,23.116781,4.0216818Q23.558125,4,24,4Q24.441875,4,24.883217,4.0216818Q25.324562,4.0433636,25.764309,4.0866748Q26.204056,4.1299863000000006,26.641148,4.1948229Q27.078239,4.2596595,27.511623,4.3458651Q27.945007,4.4320707,28.373642,4.5394375Q28.802277,4.6468045,29.225124,4.775074Q29.647972,4.9033437,30.064016,5.05220693Q30.480061,5.20107019,30.8883,5.37016851Q31.296539,5.53926679,31.695992,5.72819275Q32.095442,5.917118743,32.485141999999996,6.12541726Q32.87484,6.33371574,33.253849,6.56088495Q33.632858,6.78805423,34.000263000000004,7.0335469Q34.367667999999995,7.2790396,34.722586,7.5422645Q35.077503,7.8054891,35.419078999999996,8.0858119Q35.760653000000005,8.3661346,36.08806,8.6628797Q36.415465999999995,8.9596248,36.727920999999995,9.2720778Q37.040373,9.5845304,37.337118000000004,9.9119382Q37.633865,10.239346000000001,37.914187999999996,10.580920200000001Q38.19451,10.9224939,38.457733000000005,11.2774115Q38.720959,11.632329,38.966452000000004,11.9997349Q39.211945,12.3671408,39.439114000000004,12.74615Q39.666283,13.125158800000001,39.874582000000004,13.5148578Q40.082878,13.9045568,40.271805,14.3040066Q40.460732,14.7034569,40.629829,15.1116972Q40.798927,15.5199366,40.947792,15.9359818Q41.096657,16.352027,41.224926,16.774876Q41.353195,17.197723,41.460564,17.626356Q41.567928,18.054989,41.654137,18.488374Q41.740341,18.921759,41.80518,19.35885Q41.870018,19.795944,41.91333,20.235692Q41.956638,20.675439,41.978321,21.116781Q42,21.558125,42,22ZM40,22Q40,21.607222,39.980726000000004,21.214917Q39.961454,20.822613,39.922956,20.431725999999998Q39.884457,20.040838,39.826824,19.652310999999997Q39.769189999999995,19.263784,39.692561999999995,18.878554Q39.615933999999996,18.493323,39.520496,18.112316Q39.42506,17.73131,39.311043,17.355445Q39.197025,16.979579,39.064701,16.609761Q38.932377,16.239943,38.782067999999995,15.8770638Q38.63176,15.514184,38.463825,15.1591167Q38.295891,14.8040504,38.110737,14.4576511Q37.925583,14.1112518,37.723653999999996,13.774355400000001Q37.521725,13.4374585,37.303509,13.1108756Q37.085293,12.7842927,36.851316,12.468810999999999Q36.61734,12.1533289,36.368164,11.8497076Q36.118988,11.546086299999999,35.855215,11.2550569Q35.591442,10.964027399999999,35.313705,10.6862912Q35.035969,10.408555,34.744942,10.1447821Q34.453911000000005,9.881008399999999,34.150290999999996,9.6318328Q33.846668,9.3826571,33.531185,9.1486793Q33.215702,8.9147017,32.889117999999996,8.696486Q32.562534,8.4782701,32.225639,8.2763419Q31.888744,8.0744138,31.542347,7.8892597Q31.195946,7.7041053999999995,30.840878,7.5361711Q30.485809,7.3682369,30.122932,7.2179272999999995Q29.760052,7.0676178,29.390236,6.93529487Q29.020416,6.80297196,28.644554,6.68895459Q28.268688,6.57493716,27.88768,6.47949991Q27.506674,6.38406265,27.121443,6.30743548Q26.736212,6.2308083,26.347687,6.17317583Q25.95916,6.11554334,25.568275,6.077044368Q25.177387,6.038545396,24.785082,6.019272698Q24.392776,6,24,6Q23.607222,6,23.214917,6.019272698Q22.822613,6.038545396,22.431725999999998,6.077044368Q22.040838,6.11554334,21.652310999999997,6.17317581Q21.263784,6.2308083,20.878554,6.30743548Q20.493323,6.38406265,20.112316,6.47949988Q19.73131,6.57493716,19.355445,6.68895459Q18.979579,6.80297196,18.609761,6.93529487Q18.239943,7.0676178,17.877063800000002,7.2179272999999995Q17.514184,7.3682369,17.1591167,7.5361711Q16.8040504,7.7041053,16.4576511,7.8892596Q16.111251799999998,8.0744138,15.774355400000001,8.2763419Q15.4374585,8.4782701,15.1108756,8.696486Q14.7842927,8.9147017,14.468810999999999,9.1486793Q14.1533289,9.3826568,13.8497076,9.6318326Q13.546086299999999,9.881008099999999,13.2550569,10.1447816Q12.964027399999999,10.408555,12.6862912,10.6862912Q12.408555,10.964027399999999,12.1447821,11.2550569Q11.881008399999999,11.546086299999999,11.6318328,11.8497076Q11.3826571,12.1533289,11.1486793,12.468810999999999Q10.9147017,12.7842932,10.696486,13.110876099999999Q10.4782701,13.437459,10.2763419,13.774355400000001Q10.0744138,14.1112518,9.8892597,14.4576511Q9.7041054,14.8040504,9.5361711,15.1591167Q9.3682369,15.514184,9.2179273,15.8770638Q9.0676178,16.239943,8.93529487,16.60976Q8.80297196,16.979579,8.68895459,17.355445Q8.57493716,17.73131,8.47949991,18.112316Q8.38406265,18.493323,8.30743548,18.878554Q8.2308083,19.263784,8.17317583,19.652310999999997Q8.11554334,20.040838,8.077044368,20.431725999999998Q8.038545396,20.822613,8.019272698,21.214918Q8,21.607222,8,22Q8,22.392776,8.019272698,22.785082Q8.038545396,23.177387,8.077044368,23.568274Q8.11554334,23.95916,8.17317581,24.347685Q8.2308083,24.736212,8.30743548,25.121443Q8.38406265,25.506674,8.47949988,25.88768Q8.57493716,26.268688,8.68895459,26.644554Q8.80297196,27.020416,8.93529487,27.390234Q9.0676178,27.760052,9.2179273,28.122932Q9.3682369,28.485809,9.5361711,28.840878Q9.7041053,29.195946,9.889259599999999,29.542345Q10.0744138,29.888744,10.2763419,30.225639Q10.4782701,30.562534,10.696486,30.889118Q10.9147017,31.215702,11.1486793,31.531185Q11.3826568,31.846668,11.6318326,32.150290999999996Q11.881008099999999,32.453911000000005,12.1447816,32.74494Q12.408555,33.035969,12.6862912,33.313705Q12.964027399999999,33.591442,13.2550569,33.855215Q13.546086299999999,34.118988,13.8497076,34.368164Q14.1533289,34.61734,14.468810999999999,34.851316Q14.7842932,35.085293,15.110876099999999,35.303509Q15.437459,35.521725,15.774355400000001,35.723653999999996Q16.111251799999998,35.925583,16.4576511,36.110738999999995Q16.8040504,36.295891,17.1591167,36.463826999999995Q17.514184,36.63176,17.877063800000002,36.782070000000004Q18.239943,36.932381,18.60976,37.064703Q18.979579,37.197025,19.355445,37.311045Q19.73131,37.42506,20.112316,37.520498Q20.493323,37.615936000000005,20.878554,37.692561999999995Q21.263784,37.769189999999995,21.652310999999997,37.826822Q22.040838,37.884457,22.431725999999998,37.922956Q22.822613,37.961454,23.214918,37.980728Q23.607222,38,24,38Q24.392776,38,24.785082,37.980726000000004Q25.177387,37.961454,25.568274,37.922956Q25.95916,37.884457,26.347685,37.826824Q26.736212,37.769189999999995,27.121443,37.692561999999995Q27.506674,37.615933999999996,27.88768,37.520496Q28.268688,37.42506,28.644554,37.311043Q29.020416,37.197025,29.390234,37.064701Q29.760052,36.932377,30.122932,36.782067999999995Q30.485809,36.63176,30.840878,36.463825Q31.195946,36.295891,31.542345,36.110737Q31.888744,35.925583,32.225639,35.723653999999996Q32.562534,35.521725,32.889117999999996,35.303509Q33.215702,35.085293,33.531185,34.851316Q33.846668,34.61734,34.150290999999996,34.368164Q34.453911000000005,34.118988,34.74494,33.855215Q35.035969,33.591442,35.313705,33.313705Q35.591442,33.035969,35.855215,32.744942Q36.118988,32.453911000000005,36.368164,32.150290999999996Q36.61734,31.846668,36.851316,31.531185Q37.085293,31.215702,37.303509,30.889118Q37.521725,30.562534,37.723653999999996,30.225639Q37.925583,29.888744,38.110738999999995,29.542347Q38.295891,29.195946,38.463826999999995,28.840878Q38.63176,28.485809,38.782070000000004,28.122932Q38.932381,27.760052,39.064703,27.390236Q39.197025,27.020416,39.311045,26.644554Q39.42506,26.268688,39.520498,25.88768Q39.615936000000005,25.506674,39.692561999999995,25.121443Q39.769189999999995,24.736212,39.826822,24.347687Q39.884457,23.95916,39.922956,23.568275Q39.961454,23.177387,39.980728,22.785082Q40,22.392776,40,22Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3crect%20x='14'%20y='12.00048828125'%20width='20'%20height='20'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M26.916738098831175,16.955627096116636Q26.917956098831176,16.97814789611664,26.917956098831176,17.000701796116637Q26.91795509883118,17.082941896116637,26.901911098831178,17.163601796116637Q26.885865098831175,17.244261896116637,26.85439409883118,17.32024179611664Q26.822921098831177,17.39622249611664,26.777231098831177,17.464602796116637Q26.731541098831176,17.53298319611664,26.673389098831176,17.59113589611664Q26.615235098831178,17.64928849611664,26.546855098831177,17.69497809611664Q26.478475098831176,17.74066869611664,26.402495098831174,17.77214039611664Q26.326514098831176,17.803612596116636,26.24585509883118,17.819657196116637Q26.165195098831177,17.83570139611664,26.082956098831175,17.835701796116638Q26.000714098831175,17.83570139611664,25.920055098831178,17.819657196116637Q25.83939409883118,17.80361309611664,25.763414098831177,17.77214089611664Q25.68743309883118,17.74066869611664,25.619053098831177,17.69497809611664Q25.550674098831177,17.64928849611664,25.49252009883118,17.59113589611664Q25.434367098831174,17.53298319611664,25.38867809883118,17.464602796116637Q25.342987098831177,17.39622249611664,25.311515098831176,17.32024179611664Q25.280044098831176,17.244261896116637,25.263999098831178,17.163601796116637Q25.247955098831177,17.082941896116637,25.247955098831177,17.000701796116637Q25.247955098831177,16.97110709611664,25.25005109883118,16.94158689611664Q25.266079098831177,15.838474896116638,25.881616098831177,14.917299896116639Q26.513639098831177,13.971449856116639,27.564559098831175,13.536153736116638Q28.61553309883118,13.100826326116637,29.731208098831175,13.322761953116638Q30.84693909883118,13.544684176116638,31.651273098831176,14.349075396116639Q32.45564209883118,15.153410196116639,32.677570098831175,16.26912839611664Q32.89950109883118,17.384794596116638,32.46419409883117,18.43576039611664Q32.02881209883118,19.486707596116638,31.08303909883118,20.11870179611664Q30.161805098831177,20.73424469611664,29.058736098831176,20.750273096116636Q29.029216098831178,20.75236829611664,28.999622098831175,20.75236829611664Q28.917380098831178,20.75236829611664,28.836721098831177,20.73632369611664Q28.756060098831178,20.720279096116638,28.680080098831176,20.68880689611664Q28.604100098831175,20.65733469611664,28.535720098831177,20.611644596116637Q28.467340098831176,20.56595459611664,28.409187098831175,20.50780189611664Q28.351033098831177,20.44964919611664,28.305343098831177,20.381268896116637Q28.259653098831176,20.31288849611664,28.228182098831176,20.23690829611664Q28.196710098831176,20.16092809611664,28.180666098831175,20.08026829611664Q28.164622098831178,19.99960839611664,28.164622098831178,19.91736829611664Q28.164622098831178,19.835127196116638,28.180665098831177,19.75446689611664Q28.196710098831176,19.673806596116638,28.22818109883118,19.597826396116638Q28.259652098831175,19.521846196116638,28.305343098831177,19.453466796116636Q28.351033098831177,19.385086396116638,28.409187098831175,19.32693369611664Q28.467339098831175,19.268781096116637,28.535719098831176,19.22309049611664Q28.604099098831178,19.177399996116637,28.680080098831176,19.145928296116637Q28.756060098831178,19.114456496116638,28.836721098831177,19.098412396116636Q28.917380098831178,19.082368296116638,28.999622098831175,19.082368296116638Q29.022178098831176,19.082368296116638,29.044702098831177,19.08358609611664Q29.650397098831178,19.07147629611664,30.157039098831177,18.73295249611664Q30.68251609883118,18.38181199611664,30.924386098831178,17.79797589611664Q31.166225098831177,17.214102396116637,31.04292709883118,16.594275796116637Q30.91963509883118,15.974441696116639,30.472720098831175,15.527544896116638Q30.025900098831176,15.080692696116639,29.406037098831177,14.957399996116639Q28.786235098831177,14.834105896116638,28.20235409883118,15.075957796116638Q27.618518098831174,15.317785096116637,27.267379098831178,15.843278796116639Q26.928846098831176,16.349906096116637,26.916738098831175,16.955627096116636ZM22.751288698831175,17.000701796116637Q22.751288698831175,16.97110829611664,22.749193398831178,16.94158899611664Q22.733165498831177,15.838476096116638,22.117629798831178,14.917300596116638Q21.485606398831177,13.971450746116638,20.434686398831175,13.536153916116639Q19.383711098831178,13.100826506116638,18.268037598831178,13.322761953116638Q17.152344798831177,13.544676006116639,16.347971398831177,14.349057596116639Q15.543596328831176,15.153424296116638,15.321678459831176,16.269134396116637Q15.099746468831176,17.384791696116636,15.535076438831176,18.435770896116637Q15.970370588831177,19.48668469611664,16.916220098831175,20.118708996116638Q17.837403998831178,20.73424519611664,18.94050909883118,20.750273096116636Q18.970028398831175,20.75236829611664,18.999622098831175,20.75236829611664Q19.08186219883118,20.75236829611664,19.162522298831178,20.73632369611664Q19.243182398831177,20.720279096116638,19.319162598831177,20.68880689611664Q19.395142798831177,20.65733469611664,19.463522698831177,20.611644596116637Q19.53190299883118,20.56595459611664,19.590055698831176,20.50780189611664Q19.648208398831176,20.44964919611664,19.693898398831177,20.381268896116637Q19.739588998831177,20.31288849611664,19.771061198831177,20.23690829611664Q19.802533398831176,20.16092809611664,19.818577498831175,20.08026829611664Q19.834621698831178,19.99960839611664,19.834622098831176,19.91736829611664Q19.834621698831178,19.835127196116638,19.818577498831175,19.75446689611664Q19.802533398831176,19.673806596116638,19.771061198831177,19.597826396116638Q19.739588998831177,19.521846196116638,19.693898898831176,19.453466796116636Q19.648208398831176,19.385086396116638,19.590055698831176,19.32693369611664Q19.53190299883118,19.268781096116637,19.463522698831177,19.22309049611664Q19.395142298831175,19.177399996116637,19.31916209883118,19.145928296116637Q19.243182198831178,19.114456496116638,19.162522298831178,19.098412396116636Q19.08186219883118,19.082368296116638,18.999622098831175,19.082368296116638Q18.977065798831177,19.082368296116638,18.954542598831175,19.08358609611664Q18.348829298831177,19.071475896116638,17.842198098831176,18.73294489611664Q17.316706198831177,18.381806696116637,17.074875598831177,17.797965396116638Q16.833026098831176,17.21408929611664,16.956323598831176,16.59426989611664Q17.079610098831175,15.974436896116638,17.526488498831178,15.527562996116638Q17.973357198831177,15.080689896116638,18.593208098831177,14.957399996116639Q19.213009398831176,14.834106096116638,19.796891498831176,15.075957696116639Q20.380727098831176,15.317785596116638,20.731865198831176,15.843278296116639Q21.070396698831175,16.34990419611664,21.08250639883118,16.955622296116637Q21.081288598831176,16.97814549611664,21.081288598831176,17.000701796116637Q21.081288598831176,17.082941896116637,21.097332198831175,17.163601796116637Q21.113376898831177,17.244261896116637,21.144848598831178,17.32024179611664Q21.17632029883118,17.39622249611664,21.222010898831176,17.464602796116637Q21.26770139883118,17.53298319611664,21.325854098831176,17.59113589611664Q21.384006698831175,17.64928849611664,21.452387098831178,17.69497809611664Q21.520767498831177,17.74066869611664,21.596747598831175,17.77214039611664Q21.672727798831176,17.803612596116636,21.753387698831176,17.819657196116637Q21.834047998831178,17.83570139611664,21.916288598831176,17.835701796116638Q21.998528698831176,17.83570139611664,22.079188598831177,17.819657196116637Q22.159848498831177,17.80361309611664,22.235828598831176,17.77214089611664Q22.311808798831176,17.74066869611664,22.380189198831175,17.69497809611664Q22.448569498831176,17.64928849611664,22.506722698831176,17.59113589611664Q22.564874898831178,17.53298319611664,22.61056489883118,17.464602796116637Q22.656254998831177,17.39622249611664,22.687727198831176,17.32024179611664Q22.719199398831176,17.244261896116637,22.735243998831177,17.163601796116637Q22.751288698831175,17.082941896116637,22.751288698831175,17.000701796116637ZM18.44797869883118,17.62708129611664Q18.313028298831178,17.50819289611664,18.238987898831176,17.344290596116636Q18.164947698831178,17.18038859611664,18.164947698831178,17.000539196116637Q18.164947498831175,16.91829859611664,18.180991898831177,16.837638296116637Q18.197035798831177,16.756978396116637,18.228507798831178,16.68099819611664Q18.259979998831177,16.605017996116636,18.305670298831178,16.53663769611664Q18.351360598831178,16.46825729611664,18.409513498831178,16.41010489611664Q18.46766589883118,16.35195199611664,18.536046298831177,16.306261896116638Q18.604426598831175,16.26057139611664,18.68040679883118,16.229099396116638Q18.756386998831175,16.197627396116637,18.837047098831178,16.18158329611664Q18.917707198831177,16.16553909611664,18.999947798831176,16.16553909611664Q19.179797198831178,16.16553909611664,19.343699198831175,16.239579296116638Q19.50760149883118,16.31361969611664,19.626489898831178,16.44857009611664L22.261629298831178,19.083709596116638L25.738267098831177,19.083709596116638L28.373404098831177,16.44857249611664Q28.49229209883118,16.313621396116638,28.656196098831177,16.23958029611664Q28.820098098831174,16.16553909611664,28.999948098831176,16.16553909611664Q29.082187098831177,16.16553909611664,29.16284709883118,16.18158329611664Q29.243507098831177,16.197627396116637,29.319487098831175,16.229099396116638Q29.395467098831176,16.26057139611664,29.463847098831177,16.306261896116638Q29.532228098831176,16.35195199611664,29.590381098831177,16.41010489611664Q29.648532098831176,16.46825729611664,29.694223098831177,16.53663769611664Q29.739913098831178,16.605017996116636,29.771385098831175,16.68099819611664Q29.802858098831177,16.756978396116637,29.818902098831177,16.83763849611664Q29.83494709883118,16.91829859611664,29.834948098831177,17.000539196116637Q29.834949098831174,17.18038979611664,29.760907098831176,17.344292496116637Q29.686866098831175,17.50819529611664,29.551914098831176,17.627083196116637L26.916940098831176,20.26205809611664L26.916940098831176,23.73901949611664L29.551911098831177,26.37399249611664Q29.686864098831176,26.49288049611664,29.760906098831178,26.656784496116636Q29.834948098831177,26.82068749611664,29.834948098831177,27.000539496116637Q29.83494709883118,27.08277849611664,29.818902098831177,27.16343849611664Q29.802858098831177,27.24409849611664,29.771385098831175,27.320078496116636Q29.739913098831178,27.396058496116638,29.694223098831177,27.46443849611664Q29.648532098831176,27.532819496116637,29.590381098831177,27.59097249611664Q29.532228098831176,27.649123496116637,29.463847098831177,27.69481449611664Q29.395467098831176,27.74050449611664,29.319486098831177,27.771976496116636Q29.243507098831177,27.803449496116638,29.16284709883118,27.81949349611664Q29.082187098831177,27.83553849611664,28.999948098831176,27.83553949611664Q28.82009609883118,27.83553949611664,28.656192098831177,27.76149649611664Q28.49228909883118,27.687455496116637,28.373401098831177,27.552502496116638L25.737940098831174,24.91704349611664L22.26195499883118,24.91704349611664L19.626491798831175,27.552505496116638Q19.507603898831178,27.687457496116636,19.343701098831175,27.761498496116637Q19.179798398831178,27.83553949611664,18.999947798831176,27.83553949611664Q18.917707198831177,27.83553849611664,18.837046898831176,27.81949349611664Q18.756386998831175,27.803449496116638,18.68040679883118,27.771976496116636Q18.604426598831175,27.74050449611664,18.536046298831177,27.69481449611664Q18.46766589883118,27.649123496116637,18.409513498831178,27.59097249611664Q18.351360598831178,27.532819496116637,18.305670298831178,27.46443849611664Q18.259979998831177,27.396058496116638,18.228507998831176,27.32007749611664Q18.197035998831176,27.24409849611664,18.180991898831177,27.16343849611664Q18.164947498831175,27.08277849611664,18.164947698831178,27.000539496116637Q18.164947698831178,26.820689496116636,18.238988898831177,26.656786496116638Q18.313029998831176,26.49288349611664,18.44798109883118,26.37399549611664L21.083606498831177,23.738370496116637L21.083606498831177,20.262708996116636L18.44797869883118,17.62708129611664ZM22.750273498831177,23.250376496116637L22.750273498831177,20.750376596116638L25.250273098831176,20.750376596116638L25.250273098831176,23.250376496116637L22.750273498831177,23.250376496116637ZM19.834622098831176,24.084035496116638Q19.834621698831178,24.16627449611664,19.818577498831175,24.246934496116637Q19.802533398831176,24.327595496116636,19.771061198831177,24.403575496116638Q19.739588998831177,24.479554496116638,19.693898898831176,24.54793449611664Q19.648208398831176,24.616315496116638,19.590055698831176,24.67446849611664Q19.53190299883118,24.73262049611664,19.463522698831177,24.778311496116636Q19.395142298831175,24.82400049611664,19.31916209883118,24.85547249611664Q19.243182198831178,24.88694549611664,19.162522298831178,24.90298949611664Q19.08186219883118,24.919034496116637,18.999622098831175,24.91903549611664Q18.977067498831175,24.91903549611664,18.954545698831176,24.91781749611664Q18.348830198831177,24.92992749611664,17.84219769883118,25.268459496116638Q17.316705498831176,25.61959649611664,17.074875598831177,26.20343749611664Q16.833026098831176,26.787314496116636,16.956323598831176,27.40713449611664Q17.079612698831177,28.02697849611664,17.526498598831175,28.473832496116636Q17.973361298831176,28.920714496116638,18.593206398831178,29.04400849611664Q19.213020998831176,29.16730449611664,19.796844698831176,28.92548649611664Q20.380732298831177,28.68359649611664,20.731852798831177,28.15814549611664Q21.070397098831176,27.65147549611664,21.082505898831176,27.045773496116638Q21.081288598831176,27.02325449611664,21.081288598831176,27.00070149611664Q21.081288598831176,26.918460496116637,21.097332198831175,26.837799496116638Q21.113376898831177,26.75713849611664,21.144848598831178,26.68115949611664Q21.17632029883118,26.60517949611664,21.222010898831176,26.536799496116636Q21.26770139883118,26.46841949611664,21.325854098831176,26.41026749611664Q21.384006698831175,26.352114496116638,21.452387098831178,26.306424496116637Q21.520767498831177,26.260733496116636,21.596747598831175,26.22926149611664Q21.672727798831176,26.197789496116638,21.753387698831176,26.181746496116638Q21.834047998831178,26.165702496116637,21.916288598831176,26.165702496116637Q21.998528698831176,26.165702496116637,22.079188598831177,26.181746496116638Q22.159848498831177,26.197789496116638,22.235828598831176,26.229260496116638Q22.311808798831176,26.26073249611664,22.380189198831175,26.30642249611664Q22.448569498831176,26.352113496116637,22.506722698831176,26.410266496116638Q22.564874898831178,26.468417496116636,22.61056489883118,26.536797496116638Q22.656254998831177,26.605178496116636,22.687727198831176,26.68115949611664Q22.719199398831176,26.75713849611664,22.735243998831177,26.837799496116638Q22.751288698831175,26.918460496116637,22.751288698831175,27.00070149611664Q22.751288698831175,27.030295496116636,22.749193398831178,27.059814496116637Q22.733164998831178,28.162885496116637,22.11763929883118,29.084090496116637Q21.485628798831176,30.029891496116637,20.434732198831178,30.46525149611664Q19.38371299883118,30.900582496116638,18.268037798831177,30.67864749611664Q17.152329898831177,30.45672149611664,16.347961798831175,29.65231849611664Q15.543604488831177,28.84801949611664,15.321678638831177,27.732269496116636Q15.099746468831176,26.616612496116637,15.535076318831177,25.56563249611664Q15.970370228831177,24.514718496116636,16.916220498831176,23.88269449611664Q17.837403498831176,23.267158496116636,18.940508098831177,23.251130496116637Q18.970027898831177,23.24903549611664,18.999622098831175,23.24903549611664Q19.08186219883118,23.24903549611664,19.162522298831178,23.265078496116637Q19.243182398831177,23.28112349611664,19.319162598831177,23.31259449611664Q19.395142798831177,23.34406649611664,19.463522698831177,23.389757496116637Q19.53190299883118,23.435447496116637,19.590055698831176,23.49360049611664Q19.648208398831176,23.55175349611664,19.693898398831177,23.62013249611664Q19.739588998831177,23.688513496116638,19.771061198831177,23.764493496116636Q19.802533398831176,23.840473496116637,19.818577498831175,23.92113349611664Q19.834621698831178,24.001794496116638,19.834622098831176,24.084035496116638ZM29.044698098831176,24.91781749611664Q29.022176098831174,24.91903549611664,28.999622098831175,24.91903549611664Q28.917380098831178,24.919034496116637,28.836721098831177,24.90298949611664Q28.756060098831178,24.88694549611664,28.680080098831176,24.85547249611664Q28.604100098831175,24.82400049611664,28.535720098831177,24.77831049611664Q28.467340098831176,24.73262049611664,28.409187098831175,24.67446849611664Q28.351033098831177,24.616315496116638,28.305343098831177,24.54793449611664Q28.259653098831176,24.479554496116638,28.228182098831176,24.403575496116638Q28.196710098831176,24.327595496116636,28.180666098831175,24.246934496116637Q28.164622098831178,24.16627449611664,28.164622098831178,24.084035496116638Q28.164622098831178,24.001794496116638,28.180665098831177,23.921134496116636Q28.196710098831176,23.840473496116637,28.22818109883118,23.764493496116636Q28.259652098831175,23.688513496116638,28.305343098831177,23.62013249611664Q28.351033098831177,23.55175349611664,28.409187098831175,23.49360049611664Q28.467339098831175,23.435447496116637,28.535719098831176,23.389757496116637Q28.604099098831178,23.34406649611664,28.680080098831176,23.31259449611664Q28.756060098831178,23.28112349611664,28.836721098831177,23.265079496116638Q28.917380098831178,23.24903549611664,28.999622098831175,23.24903549611664Q29.029216098831178,23.24903549611664,29.058737098831177,23.251130496116637Q30.16180609883118,23.26715949611664,31.083038098831175,23.882702496116636Q32.02881209883118,24.51469649611664,32.46419409883117,25.56564349611664Q32.89950109883118,26.616612496116637,32.677570098831175,27.73227649611664Q32.455632098831174,28.84803349611664,31.651282098831178,29.652299496116637Q30.846954098831176,30.456712496116637,29.731206098831176,30.67864749611664Q28.615532098831174,30.900582496116638,27.564513098831178,30.46525149611664Q26.513617098831176,30.029891496116637,25.881604098831176,29.084090496116637Q25.266079098831177,28.162885496116637,25.25005109883118,27.059817496116636Q25.247955098831177,27.030296496116637,25.247955098831177,27.00070149611664Q25.247955098831177,26.918460496116637,25.263999098831178,26.837799496116638Q25.280044098831176,26.75713849611664,25.311515098831176,26.68115949611664Q25.342987098831177,26.60517949611664,25.38867809883118,26.536799496116636Q25.434367098831174,26.46841949611664,25.49252009883118,26.41026749611664Q25.550674098831177,26.352114496116638,25.619054098831178,26.306424496116637Q25.68743309883118,26.260733496116636,25.763414098831177,26.22926149611664Q25.83939409883118,26.197789496116638,25.920055098831178,26.181746496116638Q26.000714098831175,26.165702496116637,26.082956098831175,26.165702496116637Q26.165195098831177,26.165702496116637,26.24585509883118,26.181746496116638Q26.326514098831176,26.197789496116638,26.402495098831174,26.229260496116638Q26.478475098831176,26.26073249611664,26.546855098831177,26.30642249611664Q26.615235098831178,26.352113496116637,26.673389098831176,26.410266496116638Q26.731541098831176,26.468417496116636,26.777230098831176,26.536797496116638Q26.822921098831177,26.605178496116636,26.854393098831174,26.68115949611664Q26.885865098831175,26.75713849611664,26.901911098831178,26.837799496116638Q26.91795509883118,26.918460496116637,26.917956098831176,27.00070149611664Q26.917956098831176,27.02325549611664,26.916738098831175,27.04577549611664Q26.928847098831177,27.651476496116636,27.26739009883118,28.15814549611664Q27.618512098831175,28.68359649611664,28.202399098831176,28.925485496116636Q28.78622309883118,29.16730449611664,29.406037098831177,29.04400849611664Q30.025895098831178,28.920712496116636,30.472711098831176,28.47384949611664Q30.919633098831177,28.026975496116638,31.042926098831177,27.407127496116637Q31.166225098831177,26.787302496116638,30.924386098831178,26.203426496116638Q30.68251609883118,25.61959249611664,30.157039098831177,25.268452496116637Q29.650396098831177,24.92992749611664,29.044698098831176,24.91781749611664Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function e1(e,n){return`
|
|
2
2
|
<div style="
|
|
3
3
|
font-size: 13px;
|
|
4
4
|
font-weight: 500;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
">
|
|
19
19
|
${e}
|
|
20
20
|
</div>
|
|
21
|
-
`}function
|
|
22
|
-
<div id="${
|
|
21
|
+
`}function B2(e){const{getMap:n,getInfoWindow:r,points:o,pointType:i,circleRadius:s,isDark:l,pointIcon:a}=e,c=t.ref([]),y=t.ref([]),g=t.ref([]);function p(){const v=n();v&&(c.value.forEach(u=>v.remove(u)),g.value.forEach(u=>v.remove(u)),y.value.forEach(u=>v.remove(u)),c.value=[],g.value=[],y.value=[])}function Q(v,u,w){const d=r(),k=n();if(!d||!k)return;const N=`map-action-button-${Date.now()}`,D=`
|
|
22
|
+
<div id="${N}" class="map-action-button" style="
|
|
23
23
|
min-width: 120px;
|
|
24
24
|
height: 36px;
|
|
25
25
|
display: flex;
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
<path d="M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z" fill="white"/>
|
|
46
46
|
</svg>
|
|
47
47
|
</div>
|
|
48
|
-
`;d.setContent(A),d.setOffset(new window.AMap.Pixel(0,80)),d.open(k,v),setTimeout(()=>{const M=document.getElementById(_);M&&(M.onclick=T=>{T.stopPropagation(),u&&window.open(u,"_blank")})},100)}function p(){const v=n();if(!v)return;h();const u=window.AMap,y=o.value||[],d=i.value==="base",k=s.value*1e3,_=l.value;y.forEach(A=>{let M=null;if(A&&Ue(A))M=A;else if(A.longitude!=null&&A.latitude!=null)M=[A.longitude,A.latitude];else return;if(!Ue(M)){console.warn("Invalid position for marker:",M);return}const T=_t(M[0],M[1]);if(!T){console.warn("Coordinate transformation failed for marker:",M);return}M=T;const E=A.name||A.nickName||A.label||"";if(d){const P=new u.Marker({position:M,title:E,icon:new u.Icon({image:k1,size:new u.Size(60,60),imageSize:new u.Size(60,60)}),offset:new u.Pixel(-11,-25)});if(P.on("error",D=>{console.error("Marker icon loading error:",D)}),P.on("click",()=>{r()&&r().close(),(A.link||A.url)&&Q(M,A.link||A.url)}),c.value.push(P),v.add(P),E){const D=new u.Marker({position:M,content:Xt(E,_),offset:new u.Pixel(0,-40),zIndex:ve.pointLabel});g.value.push(D),v.add(D)}}else{const P=new u.Marker({position:M,title:E,...a?{icon:new u.Icon({image:a,size:new u.Size(46,65),imageSize:new u.Size(46,65)})}:{},offset:new u.Pixel(-23,-48)});P.on("error",V=>{console.error("Marker icon loading error:",V)});const D=new u.Circle({center:M,radius:k,fillOpacity:.1,fillColor:"#165DFF",strokeColor:"#165DFF",strokeOpacity:.5,strokeWeight:2,cursor:"pointer"}),j=()=>{r()&&r().close(),(A.link||A.url)&&Q(M,A.link||A.url),A.onClick&&A.onClick(A)};if(P.on("click",j),D.on("click",j),w.value.push(D),c.value.push(P),v.add(P),v.add(D),E){const V=new u.Marker({position:M,content:Xt(E,_),offset:new u.Pixel(0,-75),zIndex:ve.pointLabel});g.value.push(V),v.add(V)}}}),c.value.length>0&&v.setFitView(c.value)}return{drawPoints:p,showActionButton:Q,clear:h,mapPoints:c,circles:w,textLabels:g}}function To(e){const{getMap:n,trackPoints:r}=e,o=t.ref([]);function i(){const l=n();!l||o.value.length===0||(o.value.forEach(a=>{a.pulseAnimation&&clearInterval(a.pulseAnimation),l.remove(a)}),o.value=[])}function s(){const l=n();if(!l)return;i();const a=r.value;if(!a||a.length===0){l.setFitView();return}const c=Le(a);if(c.length<2){l.setFitView();return}const w=window.AMap,g=new w.Polyline({path:c,strokeColor:Ao,strokeWeight:4,strokeOpacity:.9,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.track});o.value.push(g),l.add(g),l.setFitView()}return{drawTrackPoints:s,clear:i,trackMarkers:o}}const Lo=k1,Eo=t.defineComponent({name:"JTwAmap",props:{lineArr:{type:Array,default:()=>[]},points:{type:Array,default:()=>[]},pointType:{type:String,default:"drone"},label:{type:Array,default:()=>[]},center:{type:Array,default:()=>No},zoom:{type:Number,default:12},circleRadius:{type:Number,default:5},trackPoints:{type:Array,default:()=>[]},mapType:{type:String,default:"normal",validator:e=>["normal","satellite"].includes(e)},highlightLineIndex:{type:Number,default:-1},highlightStrokeColor:{type:String,default:"#165dff"},mapLineArr:{type:Array,default:()=>[]},trackLineArr:{type:Array,default:()=>[]},routeCompletedList:{type:Array,default:()=>[]},viewMode:{type:String,default:"2D",validator:e=>["2D","3D"].includes(e)},isDark:{type:Boolean,default:!1},pointIcon:{type:String,default:Lo},containerStyle:{type:Object,default:()=>({})}},setup(e,{expose:n}){const r=t.ref(null),o=t.toRef(e,"isDark"),i=Do({center:t.toRef(e,"center"),zoom:t.toRef(e,"zoom"),viewMode:t.toRef(e,"viewMode"),mapType:t.toRef(e,"mapType"),isDark:o}),s=So({getMap:i.getMap,lineArr:t.toRef(e,"lineArr"),mapLineArr:t.toRef(e,"mapLineArr"),trackLineArr:t.toRef(e,"trackLineArr"),highlightLineIndex:t.toRef(e,"highlightLineIndex"),highlightStrokeColor:t.toRef(e,"highlightStrokeColor"),routeCompletedList:t.toRef(e,"routeCompletedList"),startPointIcon:e.pointIcon}),l=Io({getMap:i.getMap,getInfoWindow:i.getInfoWindow,points:t.toRef(e,"points"),pointType:t.toRef(e,"pointType"),circleRadius:t.toRef(e,"circleRadius"),isDark:o,pointIcon:e.pointIcon}),a=To({getMap:i.getMap,trackPoints:t.toRef(e,"trackPoints")});async function c(){await i.initMap(r.value)&&setTimeout(()=>{i.getMap()&&(l.drawPoints(),s.drawPolyline(),a.drawTrackPoints())},100)}t.watch(()=>e.lineArr,()=>{i.getMap()&&s.drawPolyline()},{deep:!0,immediate:!0}),t.watch(()=>[e.highlightLineIndex,e.highlightStrokeColor],()=>{var h,Q;if(!i.getMap())return;((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((Q=e.trackLineArr)==null?void 0:Q.length)||0)>0||ht(e.lineArr))&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.routeCompletedList,()=>{var h,Q;if(!i.getMap())return;!((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((Q=e.trackLineArr)==null?void 0:Q.length)||0)>0)&&ht(e.lineArr)&&s.drawPolyline()},{deep:!0}),t.watch(()=>[e.mapLineArr,e.trackLineArr],()=>{var g,h;i.getMap()&&((((g=e.mapLineArr)==null?void 0:g.length)||0)>0||(((h=e.trackLineArr)==null?void 0:h.length)||0)>0)&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.trackPoints,()=>{i.getMap()&&a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.center,g=>{const h=i.getMap();if(!h||!g||!Ue(g))return;const Q=Array.isArray(g)&&g.length>=2?_t(g[0],g[1]):null;Q&&h.setCenter(Q),l.drawPoints(),s.drawPolyline(),a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.isDark,g=>{i.getMap()&&(e.mapType==="satellite"||i.setMapStyle(g),l.drawPoints())},{immediate:!1}),t.watch(()=>e.viewMode,g=>{i.setViewMode(g)},{immediate:!1}),t.watch(()=>e.mapType,g=>{i.getMap()&&i.setMapType(g)},{immediate:!1}),t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{l.clear(),s.clear(),a.clear(),i.destroyMap()});function w(){l.clear(),s.clear(),a.clear(),i.destroyMap()}return n({getMap:i.getMap,destroyMap:w}),{mapContainer:r}}}),xo={ref:"mapContainer",class:"j-tw-amap-wrapper"};function jo(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{class:"j-tw-amap-container",style:t.normalizeStyle(e.containerStyle)},[t.createElementVNode("div",xo,null,512)],4)}const zo=ce(Eo,[["render",jo],["__scopeId","data-v-401e2b79"]]),Bo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1606_087849'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1606_087849)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.462736892279053Q0.5830078725,4.342139992279053,0.5830078125,7.000000492279053Q0.5830078125,9.657861192279054,2.4624112125,11.537264492279053Q4.3418138125,13.416666492279052,6.9996748125,13.416666492279052Q9.6575346125,13.416666492279052,11.5369388125,11.537264492279053Q13.4163408125,9.657862192279053,13.4163408125,7.000003292279053Q13.4163408125,4.342140692279052,11.5369388125,2.4627369922790527Q9.6575355125,0.5833334322790528,6.9996776125,0.5833334922790527Q4.3418143125,0.5833334922790527,2.4624112125,2.462736892279053ZM3.5230715125,10.476603992279053Q2.0830078125,9.036539992279053,2.0830078125,7.000000492279053Q2.0830077525,4.963460892279053,3.5230715125,3.523397192279053Q4.9631350125,2.0833334922790527,6.9996776125,2.0833334922790527Q9.0362158125,2.0833337322790526,10.4762783125,3.5233969922790527Q11.9163418125,4.963460892279053,11.9163418125,7.000003292279053Q11.9163418125,9.036541492279053,10.4762783125,10.476603992279053Q9.0362143125,11.916667492279053,6.9996748125,11.916667492279053Q4.9631345125,11.916667492279053,3.5230715125,10.476603992279053Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60415858505371Q10.4375500675,11.49869048505371,10.3804711075,11.36088973505371Q10.3233921575,11.223088995053711,10.3233921575,11.073934555053711Q10.3233921575,11.00008077205371,10.3378003875,10.92764607505371Q10.3522084975,10.855211375053711,10.3804711075,10.786979375053711Q10.4087337275,10.718747375053711,10.4497647275,10.65734022505371Q10.4907956675,10.59593304505371,10.5430181575,10.543710525053712Q10.5952406775,10.491488035053711,10.6566478575,10.45045709505371Q10.7180550075,10.40942609505371,10.7862870075,10.381163475053711Q10.8545190075,10.35290086505371,10.9269537075,10.33849275505371Q10.9993884045,10.324084525053712,11.0732421875,10.324084525053712Q11.2223966275,10.324084525053712,11.3601973675,10.381163415053711Q11.4979981175,10.438242435053711,11.6034662175,10.543710525053712L11.6035722475,10.54360449505371L14.432004687500001,13.372037155053711L14.4318987875,13.37214305505371Q14.5373668875,13.47761105505371,14.5944459875,13.61541175505371Q14.6515249875,13.75321265505371,14.6515249875,13.90236735505371Q14.6515247875,13.976221055053712,14.6371163875,14.04865575505371Q14.6227082875,14.12109045505371,14.5944456875,14.18932225505371Q14.5661830875,14.25755425505371,14.5251521875,14.31896135505371Q14.484121287499999,14.380368755053711,14.4318987875,14.43259115505371Q14.3796763875,14.48481365505371,14.3182692875,14.52584455505371Q14.2568618875,14.566875455053712,14.1886298875,14.595138055053711Q14.1203980875,14.623400655053711,14.0479633875,14.637808755053712Q13.9755286875,14.65221715505371,13.9016749875,14.652217355053711Q13.7525202875,14.652217355053711,13.6147193875,14.595138355053711Q13.4769186875,14.53805925505371,13.3714506875,14.43259115505371L13.3713447875,14.432697055053712L10.5429121275,11.604264615053712L10.5430181575,11.60415858505371Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",Oo="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1606_088069'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='8.75'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1606_088069)'%3e%3cg%20transform='matrix(0.7071067690849304,0.7071067690849304,-0.7071067690849304,0.7071067690849304,3.000820139087409,-5.382483522698749)'%3e%3cpath%20d='M17.997642517089844,5.179115295410156L7.997642517089844,5.179115295410156L7.997642517089844,5.179265265410156Q7.923788734089844,5.179265265410156,7.851354037089844,5.193673495410156Q7.778919337089844,5.208081605410157,7.710687337089844,5.236344215410156Q7.642455337089844,5.264606835410156,7.581048187089844,5.305637835410156Q7.519641007089843,5.346668775410157,7.4674184870898435,5.398891265410156Q7.415195997089844,5.451113785410156,7.374165057089844,5.512520965410157Q7.333134057089843,5.5739281154101565,7.304871437089844,5.642160115410157Q7.276608827089844,5.710392115410157,7.2622007170898435,5.782826815410156Q7.247792487089844,5.855261512410157,7.247792487089844,5.929115295410156Q7.247792487089844,6.002969078410156,7.2622007170898435,6.075403775410156Q7.276608827089844,6.147838475410156,7.304871437089844,6.216070475410156Q7.333134057089843,6.284302475410156,7.374165057089844,6.345709625410156Q7.415195997089844,6.407116805410157,7.4674184870898435,6.4593393254101565Q7.519641007089843,6.511561815410156,7.581048187089844,6.552592755410156Q7.642455337089844,6.593623755410157,7.710687337089844,6.621886375410156Q7.778919337089844,6.650148985410156,7.851354037089844,6.6645570954101565Q7.923788734089844,6.678965325410156,7.997642517089844,6.678965325410156L7.997642517089844,6.679115295410156L17.997642517089844,6.679115295410156L17.997642517089844,6.678965325410156Q18.071495517089843,6.678965325410156,18.143930517089842,6.6645570954101565Q18.216364517089843,6.650148985410156,18.284597517089843,6.621886375410156Q18.352828517089844,6.593623755410157,18.414236517089844,6.552592755410156Q18.475643517089843,6.511561815410156,18.527866517089844,6.4593393254101565Q18.580087517089844,6.407116805410157,18.621118517089844,6.345709625410156Q18.662149517089844,6.284302475410156,18.690412517089843,6.216070475410156Q18.718675517089842,6.147838475410156,18.733083517089845,6.075403775410156Q18.74749151708984,6.002969078410156,18.747492517089846,5.929115295410156Q18.74749151708984,5.855261512410157,18.733083517089845,5.782826815410156Q18.718675517089842,5.710392115410157,18.690412517089843,5.642160115410157Q18.662149517089844,5.5739281154101565,18.621118517089844,5.512520965410157Q18.580087517089844,5.451113785410156,18.527866517089844,5.398891265410156Q18.475643517089843,5.346668775410157,18.414236517089844,5.305637835410156Q18.352828517089844,5.264606835410156,18.284597517089843,5.236344215410156Q18.216364517089843,5.208081605410157,18.143930517089842,5.193673495410156Q18.071495517089843,5.179265265410156,17.997642517089844,5.179265265410156L17.997642517089844,5.179115295410156Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,13.92822265625,-12.066085815429688)'%3e%3cpath%20d='M22.997154235839844,0.18106842041015625L12.997154235839844,0.18106842041015625L12.997154235839844,0.1812183904101563Q12.923300452839843,0.1812183904101563,12.850865755839843,0.19562662041015622Q12.778431055839844,0.2100347304101563,12.710199055839844,0.23829734041015627Q12.641967055839844,0.2665599604101563,12.580559905839843,0.3075909604101562Q12.519152725839843,0.3486219004101563,12.466930205839844,0.4008443904101563Q12.414707715839844,0.45306691041015623,12.373676775839844,0.5144740904101562Q12.332645775839843,0.5758812404101563,12.304383155839844,0.6441132404101563Q12.276120545839843,0.7123452404101562,12.261712435839843,0.7847799404101563Q12.247304205839844,0.8572146374101562,12.247304205839844,0.9310684204101562Q12.247304205839844,1.0049222034101564,12.261712435839843,1.0773569004101562Q12.276120545839843,1.1497916004101563,12.304383155839844,1.2180236004101563Q12.332645775839843,1.2862556004101562,12.373676775839844,1.3476627504101564Q12.414707715839844,1.4090699304101562,12.466930205839844,1.461292450410156Q12.519152725839843,1.5135149404101562,12.580559905839843,1.5545458804101564Q12.641967055839844,1.5955768804101562,12.710199055839844,1.6238395004101562Q12.778431055839844,1.6521021104101563,12.850865755839843,1.6665102204101563Q12.923300452839843,1.6809184504101562,12.997154235839844,1.6809184504101562L12.997154235839844,1.6810684204101562L22.997154235839844,1.6810684204101562L22.997154235839844,1.6809184504101562Q23.071007235839843,1.6809184504101562,23.143442235839842,1.6665102204101563Q23.215876235839843,1.6521021104101563,23.284109235839843,1.6238395004101562Q23.352340235839844,1.5955768804101562,23.413748235839844,1.5545458804101564Q23.475155235839843,1.5135149404101562,23.527378235839844,1.461292450410156Q23.579599235839844,1.4090699304101562,23.620630235839844,1.3476627504101564Q23.661661235839844,1.2862556004101562,23.689924235839843,1.2180236004101563Q23.718187235839842,1.1497916004101563,23.732595235839845,1.0773569004101562Q23.74700323583984,1.0049222034101564,23.747004235839846,0.9310684204101562Q23.74700323583984,0.8572146374101562,23.732595235839845,0.7847799404101563Q23.718187235839842,0.7123452404101562,23.689924235839843,0.6441132404101563Q23.661661235839844,0.5758812404101563,23.620630235839844,0.5144740904101562Q23.579599235839844,0.45306691041015623,23.527378235839844,0.4008443904101563Q23.475155235839843,0.3486219004101563,23.413748235839844,0.3075909604101562Q23.352340235839844,0.2665599604101563,23.284109235839843,0.23829734041015627Q23.215876235839843,0.2100347304101563,23.143442235839842,0.19562662041015622Q23.071007235839843,0.1812183904101563,22.997154235839844,0.1812183904101563L22.997154235839844,0.18106842041015625Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Fo=t.defineComponent({name:"JTWSearchBox",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"搜索"},defaultExpanded:{type:Boolean,default:!1},wrapWidth:{type:String,default:"320px"},gap:{type:String,default:"8px"}},emits:{"update:modelValue":e=>!0,search:e=>!0,clear:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(e.defaultExpanded),l=t.computed(()=>s.value?{"--gap":e.gap}:{}),a=t.computed(()=>s.value?{width:e.wrapWidth}:{}),c=async()=>{var y;s.value||(s.value=!0,await t.nextTick(),(y=i.value)==null||y.focus())},w=()=>{s.value=!1},g=y=>{var _,A;if(!s.value)return;const d=y.target;if(!d)return;const k=((_=i.value)==null?void 0:_.value)??e.modelValue;!((A=o.value)!=null&&A.contains(d))&&!k&&w()},h=()=>{c()},Q=()=>{c()},p=y=>{const d=y.target;n("update:modelValue",d.value)},v=async()=>{var y;n("update:modelValue",""),n("clear"),await t.nextTick(),(y=i.value)==null||y.focus()},u=()=>{n("search",e.modelValue)};return r({focus:()=>{var y;return(y=i.value)==null?void 0:y.focus()},blur:()=>{var y;return(y=i.value)==null?void 0:y.blur()},expand:()=>{c()},collapse:()=>{w()}}),t.watch(()=>s.value,y=>{var d;y||(d=i.value)==null||d.blur()}),t.onMounted(()=>{document.addEventListener("mousedown",g)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",g)}),{rootRef:o,inputRef:i,isExpanded:s,rootStyle:l,wrapStyle:a,handleMouseDown:h,handleFocus:Q,handleInput:p,handleClear:v,handleEnter:u,searchIcon:Bo,clearIcon:Oo}}}),Po={key:0,class:"j-tw-search-box__slot"},$o=["src"],Ro=["value","placeholder"],Vo=["src"],Uo={key:1,class:"j-tw-search-box__slot"};function Wo(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{ref:"rootRef",class:t.normalizeClass(["j-tw-search-box",{"is-expanded":e.isExpanded}]),style:t.normalizeStyle(e.rootStyle),onMousedown:n[5]||(n[5]=t.withModifiers((...l)=>e.handleMouseDown&&e.handleMouseDown(...l),["stop"]))},[e.isExpanded?(t.openBlock(),t.createElementBlock("div",Po,[t.renderSlot(e.$slots,"before")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"j-tw-search-box__wrap",style:t.normalizeStyle(e.wrapStyle)},[t.createElementVNode("img",{class:"j-tw-search-box__search-icon",src:e.searchIcon,alt:"search"},null,8,$o),t.createElementVNode("input",{ref:"inputRef",class:"j-tw-search-box__input",value:e.modelValue,placeholder:e.placeholder,onInput:n[0]||(n[0]=(...l)=>e.handleInput&&e.handleInput(...l)),onKeydown:n[1]||(n[1]=t.withKeys((...l)=>e.handleEnter&&e.handleEnter(...l),["enter"])),onFocus:n[2]||(n[2]=(...l)=>e.handleFocus&&e.handleFocus(...l))},null,40,Ro),e.isExpanded&&e.modelValue?(t.openBlock(),t.createElementBlock("button",{key:0,class:"j-tw-search-box__clear",type:"button","aria-label":"clear",onMousedown:n[3]||(n[3]=t.withModifiers(()=>{},["stop"])),onClick:n[4]||(n[4]=(...l)=>e.handleClear&&e.handleClear(...l))},[t.createElementVNode("img",{class:"j-tw-search-box__clear-icon",src:e.clearIcon,alt:"clear"},null,8,Vo)],32)):t.createCommentVNode("",!0)],4),e.isExpanded?(t.openBlock(),t.createElementBlock("div",Uo,[t.renderSlot(e.$slots,"after")])):t.createCommentVNode("",!0)],38)}const Zo=ce(Fo,[["render",Wo]]),Yo="#165DFF",Go="#000000",Ho="#FFFFFF",Jo="#00B42A",Xo="#FF7D00",Ko="#F53F3F",qo="#14C9C9",ei="#D97706",ti="#F7BA1E",ni="#3491FA",ri="#722ED1",oi="#9FDB1D",ii="#F5319D",li="#F77EBE",Kt={primary:Yo,"primary-1":"#0E42D2","primary-2":"#165DFF","primary-3":"#4080FF","primary-4":"#6AA1FF","primary-5":"#94BFFF","primary-6":"#BEDAFF","grey-1":"#1D2129","grey-2":"#4E5969","grey-3":"#86909C","grey-3-50":"#A8ABB2","grey-4":"#C9CDD4","grey-5":"#E5E6EB","grey-6":"#F2F3F5",black:Go,white:Ho,green:Jo,"green-1":"#00875A","green-2":"#00B42A","green-3":"#23C343","green-4":"#4CD263","green-5":"#7BE188","green-6":"#AFF0B5",orange:Xo,"orange-1":"#D25F00","orange-2":"#FF7D00","orange-3":"#FF9A2E","orange-4":"#FFB65D","orange-5":"#FFCF8B","orange-6":"#FFE4BA",red:Ko,"red-1":"#CB2634","red-2":"#F53F3F","red-3":"#F76560","red-4":"#F98981","red-5":"#FDACA7","red-6":"#FFCCC7",cyan:qo,"cyan-1":"#0DA5AA","cyan-2":"#14C9C9","cyan-3":"#37D4CF","cyan-4":"#5ADFD7","cyan-5":"#87E8DD","cyan-6":"#B2F1E8",brown:ei,"brown-1":"#B35C00","brown-2":"#D97706","brown-3":"#E89A3C","brown-4":"#F3B765","brown-5":"#F9D28F","brown-6":"#FDEAB8",yellow:ti,"yellow-1":"#D48806","yellow-2":"#F7BA1E","yellow-3":"#FADC19","yellow-4":"#FCEE21","yellow-5":"#FEF65B","yellow-6":"#FFFB8F",blue:ni,"blue-1":"#146AFF","blue-2":"#3491FA","blue-3":"#57A3F7","blue-4":"#79BBF8","blue-5":"#A8D3FB","blue-6":"#C7E2FD",purple:ri,"purple-1":"#551DB1","purple-2":"#722ED1","purple-3":"#8E51DA","purple-4":"#A871E3","purple-5":"#C396ED","purple-6":"#DDBEF6",lime:oi,"lime-1":"#7BC616","lime-2":"#9FDB1D","lime-3":"#B4E04B","lime-4":"#C8E672","lime-5":"#DCEC9A","lime-6":"#EFF4C6",magenta:ii,"magenta-1":"#CB247A","magenta-2":"#F5319D","magenta-3":"#F754B0","magenta-4":"#F975C2","magenta-5":"#FB9DD1","magenta-6":"#FDC5E3",pink:li,"pink-1":"#D6549D","pink-2":"#F77EBE","pink-3":"#F99AC8","pink-4":"#FAB4D4","pink-5":"#FCCEE0","pink-6":"#FEE7EF"},ai=async e=>(await{"zh-CN":()=>Promise.resolve().then(()=>require("./index-C5mRo5Yi.cjs")),"en-US":()=>Promise.resolve().then(()=>require("./index-BrYPwI7i.cjs"))}[e]()).default,dt={},si=async e=>(dt[e]||(dt[e]=await ai(e)),dt[e]),Dt=t.ref("zh-CN"),mt=t.ref(null);function ci(e,n){const r=n.split(".");let o=e;for(const i of r)if(o&&typeof o=="object"&&i in o)o=o[i];else return n;return typeof o=="string"?o:n}function ui(e,n){return n?e.replace(/\{(\w+)\}/g,(r,o)=>n[o]!==void 0?String(n[o]):r):e}function b1(e,n){if(!mt.value)return console.warn("[twcpt] i18n messages not loaded yet, please call setLocale first"),e;const r=ci(mt.value,e);return ui(r,n)}async function tt(e){Dt.value=e;try{mt.value=await si(e)}catch(n){console.error(`[twcpt] Failed to load locale messages for ${e}:`,n)}}function M1(){return Dt.value}function di(){return{t:b1,locale:Dt,setLocale:tt,getLocale:M1}}const Nt=Symbol("pagePermissionIds"),At=Symbol("pageActionPermissionIds");let it={};function fi(e){const{app:n,router:r,pagePermissionIds:o,pageActionPermissionIds:i,projectPermissionId:s,defaultLanguage:l,colors:a,disableBFCache:c,amap:w}=e;it={colors:a,projectPermissionId:s},Ve.configure({router:r}),r&&(r.beforeEach(()=>{Ve.destroyAll()}),console.log("[twcpt] Router listener set successfully.")),w&&(vo(w),console.log("[twcpt] AMap configuration set successfully.")),c&&window.addEventListener("pageshow",Q=>{Q.persisted&&window.location.reload()}),l?tt(l).catch(Q=>{console.error("[twcpt] Failed to set default language:",Q)}):tt("zh-CN").catch(Q=>{console.error("[twcpt] Failed to load default locale:",Q)});const g=o?t.isRef(o)?o:t.ref(o):void 0,h=i?t.isRef(i)?i:t.ref(i):void 0;g&&(console.log("[twcpt] Permission IDs provided (reactive ref, initial value may be empty):",g.value),n.provide(Nt,g)),h&&(console.log("[twcpt] Action Permission IDs provided (reactive ref, initial value may be empty):",h.value),n.provide(At,h)),a&&hi(a),s&&console.log("[twcpt] Project Permission ID:",s),console.log("[twcpt] Initialization completed successfully.")}function hi(e){const n=e&&Object.keys(e).length>0,r=n?{...Kt,...e}:Kt;let o=document.getElementById("twcpt-color-vars");o||(o=document.createElement("style"),o.id="twcpt-color-vars",document.head.appendChild(o));const i=Object.entries(r).map(([s,l])=>` --j-color-${s}: ${l};`).join(`
|
|
48
|
+
`;d.setContent(D),d.setOffset(new window.AMap.Pixel(0,80)),d.open(k,v),setTimeout(()=>{const b=document.getElementById(N);b&&(b.onclick=T=>{T.stopPropagation(),u&&window.open(u,"_blank")})},100)}function h(){const v=n();if(!v)return;p();const u=window.AMap,w=o.value||[],d=i.value==="base",k=s.value*1e3,N=l.value;w.forEach(D=>{let b=null;if(D&&Ze(D))b=D;else if(D.longitude!=null&&D.latitude!=null)b=[D.longitude,D.latitude];else return;if(!Ze(b)){console.warn("Invalid position for marker:",b);return}const T=At(b[0],b[1]);if(!T){console.warn("Coordinate transformation failed for marker:",b);return}b=T;const I=D.name||D.nickName||D.label||"";if(d){const $=new u.Marker({position:b,title:I,icon:new u.Icon({image:N1,size:new u.Size(60,60),imageSize:new u.Size(60,60)}),offset:new u.Pixel(-11,-25)});if($.on("error",M=>{console.error("Marker icon loading error:",M)}),$.on("click",()=>{r()&&r().close(),(D.link||D.url)&&Q(b,D.link||D.url)}),c.value.push($),v.add($),I){const M=new u.Marker({position:b,content:e1(I,N),offset:new u.Pixel(0,-40),zIndex:ve.pointLabel});g.value.push(M),v.add(M)}}else{const $=new u.Marker({position:b,title:I,...a?{icon:new u.Icon({image:a,size:new u.Size(46,65),imageSize:new u.Size(46,65)})}:{},offset:new u.Pixel(-23,-48)});$.on("error",V=>{console.error("Marker icon loading error:",V)});const M=new u.Circle({center:b,radius:k,fillOpacity:.1,fillColor:"#165DFF",strokeColor:"#165DFF",strokeOpacity:.5,strokeWeight:2,cursor:"pointer"}),L=()=>{r()&&r().close(),(D.link||D.url)&&Q(b,D.link||D.url),D.onClick&&D.onClick(D)};if($.on("click",L),M.on("click",L),y.value.push(M),c.value.push($),v.add($),v.add(M),I){const V=new u.Marker({position:b,content:e1(I,N),offset:new u.Pixel(0,-75),zIndex:ve.pointLabel});g.value.push(V),v.add(V)}}}),c.value.length>0&&v.setFitView(c.value)}return{drawPoints:h,showActionButton:Q,clear:p,mapPoints:c,circles:y,textLabels:g}}function z2(e){const{getMap:n,trackPoints:r}=e,o=t.ref([]);function i(){const l=n();!l||o.value.length===0||(o.value.forEach(a=>{a.pulseAnimation&&clearInterval(a.pulseAnimation),l.remove(a)}),o.value=[])}function s(){const l=n();if(!l)return;i();const a=r.value;if(!a||a.length===0){l.setFitView();return}const c=Ie(a);if(c.length<2){l.setFitView();return}const y=window.AMap,g=new y.Polyline({path:c,strokeColor:x2,strokeWeight:4,strokeOpacity:.9,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.track});o.value.push(g),l.add(g),l.setFitView()}return{drawTrackPoints:s,clear:i,trackMarkers:o}}const O2=N1,F2=t.defineComponent({name:"JTwAmap",props:{lineArr:{type:Array,default:()=>[]},points:{type:Array,default:()=>[]},pointType:{type:String,default:"drone"},label:{type:Array,default:()=>[]},center:{type:Array,default:()=>L2},zoom:{type:Number,default:12},circleRadius:{type:Number,default:5},trackPoints:{type:Array,default:()=>[]},mapType:{type:String,default:"normal",validator:e=>["normal","satellite"].includes(e)},highlightLineIndex:{type:Number,default:-1},highlightStrokeColor:{type:String,default:"#165dff"},mapLineArr:{type:Array,default:()=>[]},trackLineArr:{type:Array,default:()=>[]},routeCompletedList:{type:Array,default:()=>[]},viewMode:{type:String,default:"2D",validator:e=>["2D","3D"].includes(e)},isDark:{type:Boolean,default:!1},pointIcon:{type:String,default:O2},containerStyle:{type:Object,default:()=>({})}},setup(e,{expose:n}){const r=t.ref(null),o=t.toRef(e,"isDark"),i=E2({center:t.toRef(e,"center"),zoom:t.toRef(e,"zoom"),viewMode:t.toRef(e,"viewMode"),mapType:t.toRef(e,"mapType"),isDark:o}),s=j2({getMap:i.getMap,lineArr:t.toRef(e,"lineArr"),mapLineArr:t.toRef(e,"mapLineArr"),trackLineArr:t.toRef(e,"trackLineArr"),highlightLineIndex:t.toRef(e,"highlightLineIndex"),highlightStrokeColor:t.toRef(e,"highlightStrokeColor"),routeCompletedList:t.toRef(e,"routeCompletedList"),startPointIcon:e.pointIcon}),l=B2({getMap:i.getMap,getInfoWindow:i.getInfoWindow,points:t.toRef(e,"points"),pointType:t.toRef(e,"pointType"),circleRadius:t.toRef(e,"circleRadius"),isDark:o,pointIcon:e.pointIcon}),a=z2({getMap:i.getMap,trackPoints:t.toRef(e,"trackPoints")});async function c(){await i.initMap(r.value)&&setTimeout(()=>{i.getMap()&&(l.drawPoints(),s.drawPolyline(),a.drawTrackPoints())},100)}t.watch(()=>e.lineArr,()=>{i.getMap()&&s.drawPolyline()},{deep:!0,immediate:!0}),t.watch(()=>[e.highlightLineIndex,e.highlightStrokeColor],()=>{var p,Q;if(!i.getMap())return;((((p=e.mapLineArr)==null?void 0:p.length)||0)>0||(((Q=e.trackLineArr)==null?void 0:Q.length)||0)>0||mt(e.lineArr))&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.routeCompletedList,()=>{var p,Q;if(!i.getMap())return;!((((p=e.mapLineArr)==null?void 0:p.length)||0)>0||(((Q=e.trackLineArr)==null?void 0:Q.length)||0)>0)&&mt(e.lineArr)&&s.drawPolyline()},{deep:!0}),t.watch(()=>[e.mapLineArr,e.trackLineArr],()=>{var g,p;i.getMap()&&((((g=e.mapLineArr)==null?void 0:g.length)||0)>0||(((p=e.trackLineArr)==null?void 0:p.length)||0)>0)&&s.drawPolyline()},{deep:!0}),t.watch(()=>e.trackPoints,()=>{i.getMap()&&a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.center,g=>{const p=i.getMap();if(!p||!g||!Ze(g))return;const Q=Array.isArray(g)&&g.length>=2?At(g[0],g[1]):null;Q&&p.setCenter(Q),l.drawPoints(),s.drawPolyline(),a.drawTrackPoints()},{deep:!0,immediate:!0}),t.watch(()=>e.isDark,g=>{i.getMap()&&(e.mapType==="satellite"||i.setMapStyle(g),l.drawPoints())},{immediate:!1}),t.watch(()=>e.viewMode,g=>{i.setViewMode(g)},{immediate:!1}),t.watch(()=>e.mapType,g=>{i.getMap()&&i.setMapType(g)},{immediate:!1}),t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{l.clear(),s.clear(),a.clear(),i.destroyMap()});function y(){l.clear(),s.clear(),a.clear(),i.destroyMap()}return n({getMap:i.getMap,destroyMap:y}),{mapContainer:r}}}),P2={ref:"mapContainer",class:"j-tw-amap-wrapper"};function $2(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{class:"j-tw-amap-container",style:t.normalizeStyle(e.containerStyle)},[t.createElementVNode("div",P2,null,512)],4)}const V2=se(F2,[["render",$2],["__scopeId","data-v-401e2b79"]]),R2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1606_087849'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='0'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1606_087849)'%3e%3crect%20x='0'%20y='0'%20width='16'%20height='16'%20rx='0'%20fill='%23FFFFFF'%20fill-opacity='0'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M2.4624112125,2.462736892279053Q0.5830078725,4.342139992279053,0.5830078125,7.000000492279053Q0.5830078125,9.657861192279054,2.4624112125,11.537264492279053Q4.3418138125,13.416666492279052,6.9996748125,13.416666492279052Q9.6575346125,13.416666492279052,11.5369388125,11.537264492279053Q13.4163408125,9.657862192279053,13.4163408125,7.000003292279053Q13.4163408125,4.342140692279052,11.5369388125,2.4627369922790527Q9.6575355125,0.5833334322790528,6.9996776125,0.5833334922790527Q4.3418143125,0.5833334922790527,2.4624112125,2.462736892279053ZM3.5230715125,10.476603992279053Q2.0830078125,9.036539992279053,2.0830078125,7.000000492279053Q2.0830077525,4.963460892279053,3.5230715125,3.523397192279053Q4.9631350125,2.0833334922790527,6.9996776125,2.0833334922790527Q9.0362158125,2.0833337322790526,10.4762783125,3.5233969922790527Q11.9163418125,4.963460892279053,11.9163418125,7.000003292279053Q11.9163418125,9.036541492279053,10.4762783125,10.476603992279053Q9.0362143125,11.916667492279053,6.9996748125,11.916667492279053Q4.9631345125,11.916667492279053,3.5230715125,10.476603992279053Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3cpath%20d='M10.5430181575,11.60415858505371Q10.4375500675,11.49869048505371,10.3804711075,11.36088973505371Q10.3233921575,11.223088995053711,10.3233921575,11.073934555053711Q10.3233921575,11.00008077205371,10.3378003875,10.92764607505371Q10.3522084975,10.855211375053711,10.3804711075,10.786979375053711Q10.4087337275,10.718747375053711,10.4497647275,10.65734022505371Q10.4907956675,10.59593304505371,10.5430181575,10.543710525053712Q10.5952406775,10.491488035053711,10.6566478575,10.45045709505371Q10.7180550075,10.40942609505371,10.7862870075,10.381163475053711Q10.8545190075,10.35290086505371,10.9269537075,10.33849275505371Q10.9993884045,10.324084525053712,11.0732421875,10.324084525053712Q11.2223966275,10.324084525053712,11.3601973675,10.381163415053711Q11.4979981175,10.438242435053711,11.6034662175,10.543710525053712L11.6035722475,10.54360449505371L14.432004687500001,13.372037155053711L14.4318987875,13.37214305505371Q14.5373668875,13.47761105505371,14.5944459875,13.61541175505371Q14.6515249875,13.75321265505371,14.6515249875,13.90236735505371Q14.6515247875,13.976221055053712,14.6371163875,14.04865575505371Q14.6227082875,14.12109045505371,14.5944456875,14.18932225505371Q14.5661830875,14.25755425505371,14.5251521875,14.31896135505371Q14.484121287499999,14.380368755053711,14.4318987875,14.43259115505371Q14.3796763875,14.48481365505371,14.3182692875,14.52584455505371Q14.2568618875,14.566875455053712,14.1886298875,14.595138055053711Q14.1203980875,14.623400655053711,14.0479633875,14.637808755053712Q13.9755286875,14.65221715505371,13.9016749875,14.652217355053711Q13.7525202875,14.652217355053711,13.6147193875,14.595138355053711Q13.4769186875,14.53805925505371,13.3714506875,14.43259115505371L13.3713447875,14.432697055053712L10.5429121275,11.604264615053712L10.5430181575,11.60415858505371Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/g%3e%3c/svg%3e",W2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cclipPath%20id='master_svg0_1606_088069'%3e%3crect%20x='-0.75'%20y='-0.75'%20width='17.5'%20height='17.5'%20rx='8.75'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23master_svg0_1606_088069)'%3e%3cg%20transform='matrix(0.7071067690849304,0.7071067690849304,-0.7071067690849304,0.7071067690849304,3.000820139087409,-5.382483522698749)'%3e%3cpath%20d='M17.997642517089844,5.179115295410156L7.997642517089844,5.179115295410156L7.997642517089844,5.179265265410156Q7.923788734089844,5.179265265410156,7.851354037089844,5.193673495410156Q7.778919337089844,5.208081605410157,7.710687337089844,5.236344215410156Q7.642455337089844,5.264606835410156,7.581048187089844,5.305637835410156Q7.519641007089843,5.346668775410157,7.4674184870898435,5.398891265410156Q7.415195997089844,5.451113785410156,7.374165057089844,5.512520965410157Q7.333134057089843,5.5739281154101565,7.304871437089844,5.642160115410157Q7.276608827089844,5.710392115410157,7.2622007170898435,5.782826815410156Q7.247792487089844,5.855261512410157,7.247792487089844,5.929115295410156Q7.247792487089844,6.002969078410156,7.2622007170898435,6.075403775410156Q7.276608827089844,6.147838475410156,7.304871437089844,6.216070475410156Q7.333134057089843,6.284302475410156,7.374165057089844,6.345709625410156Q7.415195997089844,6.407116805410157,7.4674184870898435,6.4593393254101565Q7.519641007089843,6.511561815410156,7.581048187089844,6.552592755410156Q7.642455337089844,6.593623755410157,7.710687337089844,6.621886375410156Q7.778919337089844,6.650148985410156,7.851354037089844,6.6645570954101565Q7.923788734089844,6.678965325410156,7.997642517089844,6.678965325410156L7.997642517089844,6.679115295410156L17.997642517089844,6.679115295410156L17.997642517089844,6.678965325410156Q18.071495517089843,6.678965325410156,18.143930517089842,6.6645570954101565Q18.216364517089843,6.650148985410156,18.284597517089843,6.621886375410156Q18.352828517089844,6.593623755410157,18.414236517089844,6.552592755410156Q18.475643517089843,6.511561815410156,18.527866517089844,6.4593393254101565Q18.580087517089844,6.407116805410157,18.621118517089844,6.345709625410156Q18.662149517089844,6.284302475410156,18.690412517089843,6.216070475410156Q18.718675517089842,6.147838475410156,18.733083517089845,6.075403775410156Q18.74749151708984,6.002969078410156,18.747492517089846,5.929115295410156Q18.74749151708984,5.855261512410157,18.733083517089845,5.782826815410156Q18.718675517089842,5.710392115410157,18.690412517089843,5.642160115410157Q18.662149517089844,5.5739281154101565,18.621118517089844,5.512520965410157Q18.580087517089844,5.451113785410156,18.527866517089844,5.398891265410156Q18.475643517089843,5.346668775410157,18.414236517089844,5.305637835410156Q18.352828517089844,5.264606835410156,18.284597517089843,5.236344215410156Q18.216364517089843,5.208081605410157,18.143930517089842,5.193673495410156Q18.071495517089843,5.179265265410156,17.997642517089844,5.179265265410156L17.997642517089844,5.179115295410156Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3cg%20transform='matrix(0,1,-1,0,13.92822265625,-12.066085815429688)'%3e%3cpath%20d='M22.997154235839844,0.18106842041015625L12.997154235839844,0.18106842041015625L12.997154235839844,0.1812183904101563Q12.923300452839843,0.1812183904101563,12.850865755839843,0.19562662041015622Q12.778431055839844,0.2100347304101563,12.710199055839844,0.23829734041015627Q12.641967055839844,0.2665599604101563,12.580559905839843,0.3075909604101562Q12.519152725839843,0.3486219004101563,12.466930205839844,0.4008443904101563Q12.414707715839844,0.45306691041015623,12.373676775839844,0.5144740904101562Q12.332645775839843,0.5758812404101563,12.304383155839844,0.6441132404101563Q12.276120545839843,0.7123452404101562,12.261712435839843,0.7847799404101563Q12.247304205839844,0.8572146374101562,12.247304205839844,0.9310684204101562Q12.247304205839844,1.0049222034101564,12.261712435839843,1.0773569004101562Q12.276120545839843,1.1497916004101563,12.304383155839844,1.2180236004101563Q12.332645775839843,1.2862556004101562,12.373676775839844,1.3476627504101564Q12.414707715839844,1.4090699304101562,12.466930205839844,1.461292450410156Q12.519152725839843,1.5135149404101562,12.580559905839843,1.5545458804101564Q12.641967055839844,1.5955768804101562,12.710199055839844,1.6238395004101562Q12.778431055839844,1.6521021104101563,12.850865755839843,1.6665102204101563Q12.923300452839843,1.6809184504101562,12.997154235839844,1.6809184504101562L12.997154235839844,1.6810684204101562L22.997154235839844,1.6810684204101562L22.997154235839844,1.6809184504101562Q23.071007235839843,1.6809184504101562,23.143442235839842,1.6665102204101563Q23.215876235839843,1.6521021104101563,23.284109235839843,1.6238395004101562Q23.352340235839844,1.5955768804101562,23.413748235839844,1.5545458804101564Q23.475155235839843,1.5135149404101562,23.527378235839844,1.461292450410156Q23.579599235839844,1.4090699304101562,23.620630235839844,1.3476627504101564Q23.661661235839844,1.2862556004101562,23.689924235839843,1.2180236004101563Q23.718187235839842,1.1497916004101563,23.732595235839845,1.0773569004101562Q23.74700323583984,1.0049222034101564,23.747004235839846,0.9310684204101562Q23.74700323583984,0.8572146374101562,23.732595235839845,0.7847799404101563Q23.718187235839842,0.7123452404101562,23.689924235839843,0.6441132404101563Q23.661661235839844,0.5758812404101563,23.620630235839844,0.5144740904101562Q23.579599235839844,0.45306691041015623,23.527378235839844,0.4008443904101563Q23.475155235839843,0.3486219004101563,23.413748235839844,0.3075909604101562Q23.352340235839844,0.2665599604101563,23.284109235839843,0.23829734041015627Q23.215876235839843,0.2100347304101563,23.143442235839842,0.19562662041015622Q23.071007235839843,0.1812183904101563,22.997154235839844,0.1812183904101563L22.997154235839844,0.18106842041015625Z'%20fill-rule='evenodd'%20fill='%234E5969'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",U2=t.defineComponent({name:"JTWSearchBox",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"搜索"},defaultExpanded:{type:Boolean,default:!1},wrapWidth:{type:String,default:"320px"},gap:{type:String,default:"8px"}},emits:{"update:modelValue":e=>!0,search:e=>!0,clear:()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(e.defaultExpanded),l=t.computed(()=>s.value?{"--gap":e.gap}:{}),a=t.computed(()=>s.value?{width:e.wrapWidth}:{}),c=async()=>{var w;s.value||(s.value=!0,await t.nextTick(),(w=i.value)==null||w.focus())},y=()=>{s.value=!1},g=w=>{var N,D;if(!s.value)return;const d=w.target;if(!d)return;const k=((N=i.value)==null?void 0:N.value)??e.modelValue;!((D=o.value)!=null&&D.contains(d))&&!k&&y()},p=()=>{c()},Q=()=>{c()},h=w=>{const d=w.target;n("update:modelValue",d.value)},v=async()=>{var w;n("update:modelValue",""),n("clear"),await t.nextTick(),(w=i.value)==null||w.focus()},u=()=>{n("search",e.modelValue)};return r({focus:()=>{var w;return(w=i.value)==null?void 0:w.focus()},blur:()=>{var w;return(w=i.value)==null?void 0:w.blur()},expand:()=>{c()},collapse:()=>{y()}}),t.watch(()=>s.value,w=>{var d;w||(d=i.value)==null||d.blur()}),t.onMounted(()=>{document.addEventListener("mousedown",g)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousedown",g)}),{rootRef:o,inputRef:i,isExpanded:s,rootStyle:l,wrapStyle:a,handleMouseDown:p,handleFocus:Q,handleInput:h,handleClear:v,handleEnter:u,searchIcon:R2,clearIcon:W2}}}),Z2={key:0,class:"j-tw-search-box__slot"},Y2=["src"],G2=["value","placeholder"],H2=["src"],J2={key:1,class:"j-tw-search-box__slot"};function X2(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{ref:"rootRef",class:t.normalizeClass(["j-tw-search-box",{"is-expanded":e.isExpanded}]),style:t.normalizeStyle(e.rootStyle),onMousedown:n[5]||(n[5]=t.withModifiers((...l)=>e.handleMouseDown&&e.handleMouseDown(...l),["stop"]))},[e.isExpanded?(t.openBlock(),t.createElementBlock("div",Z2,[t.renderSlot(e.$slots,"before")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"j-tw-search-box__wrap",style:t.normalizeStyle(e.wrapStyle)},[t.createElementVNode("img",{class:"j-tw-search-box__search-icon",src:e.searchIcon,alt:"search"},null,8,Y2),t.createElementVNode("input",{ref:"inputRef",class:"j-tw-search-box__input",value:e.modelValue,placeholder:e.placeholder,onInput:n[0]||(n[0]=(...l)=>e.handleInput&&e.handleInput(...l)),onKeydown:n[1]||(n[1]=t.withKeys((...l)=>e.handleEnter&&e.handleEnter(...l),["enter"])),onFocus:n[2]||(n[2]=(...l)=>e.handleFocus&&e.handleFocus(...l))},null,40,G2),e.isExpanded&&e.modelValue?(t.openBlock(),t.createElementBlock("button",{key:0,class:"j-tw-search-box__clear",type:"button","aria-label":"clear",onMousedown:n[3]||(n[3]=t.withModifiers(()=>{},["stop"])),onClick:n[4]||(n[4]=(...l)=>e.handleClear&&e.handleClear(...l))},[t.createElementVNode("img",{class:"j-tw-search-box__clear-icon",src:e.clearIcon,alt:"clear"},null,8,H2)],32)):t.createCommentVNode("",!0)],4),e.isExpanded?(t.openBlock(),t.createElementBlock("div",J2,[t.renderSlot(e.$slots,"after")])):t.createCommentVNode("",!0)],38)}const K2=se(U2,[["render",X2]]),q2="#165DFF",ei="#000000",ti="#FFFFFF",ni="#00B42A",ri="#FF7D00",oi="#F53F3F",ii="#14C9C9",li="#D97706",ai="#F7BA1E",si="#3491FA",ci="#722ED1",ui="#9FDB1D",di="#F5319D",fi="#F77EBE",t1={primary:q2,"primary-1":"#0E42D2","primary-2":"#165DFF","primary-3":"#4080FF","primary-4":"#6AA1FF","primary-5":"#94BFFF","primary-6":"#BEDAFF","grey-1":"#1D2129","grey-2":"#4E5969","grey-3":"#86909C","grey-3-50":"#A8ABB2","grey-4":"#C9CDD4","grey-5":"#E5E6EB","grey-6":"#F2F3F5",black:ei,white:ti,green:ni,"green-1":"#00875A","green-2":"#00B42A","green-3":"#23C343","green-4":"#4CD263","green-5":"#7BE188","green-6":"#AFF0B5",orange:ri,"orange-1":"#D25F00","orange-2":"#FF7D00","orange-3":"#FF9A2E","orange-4":"#FFB65D","orange-5":"#FFCF8B","orange-6":"#FFE4BA",red:oi,"red-1":"#CB2634","red-2":"#F53F3F","red-3":"#F76560","red-4":"#F98981","red-5":"#FDACA7","red-6":"#FFCCC7",cyan:ii,"cyan-1":"#0DA5AA","cyan-2":"#14C9C9","cyan-3":"#37D4CF","cyan-4":"#5ADFD7","cyan-5":"#87E8DD","cyan-6":"#B2F1E8",brown:li,"brown-1":"#B35C00","brown-2":"#D97706","brown-3":"#E89A3C","brown-4":"#F3B765","brown-5":"#F9D28F","brown-6":"#FDEAB8",yellow:ai,"yellow-1":"#D48806","yellow-2":"#F7BA1E","yellow-3":"#FADC19","yellow-4":"#FCEE21","yellow-5":"#FEF65B","yellow-6":"#FFFB8F",blue:si,"blue-1":"#146AFF","blue-2":"#3491FA","blue-3":"#57A3F7","blue-4":"#79BBF8","blue-5":"#A8D3FB","blue-6":"#C7E2FD",purple:ci,"purple-1":"#551DB1","purple-2":"#722ED1","purple-3":"#8E51DA","purple-4":"#A871E3","purple-5":"#C396ED","purple-6":"#DDBEF6",lime:ui,"lime-1":"#7BC616","lime-2":"#9FDB1D","lime-3":"#B4E04B","lime-4":"#C8E672","lime-5":"#DCEC9A","lime-6":"#EFF4C6",magenta:di,"magenta-1":"#CB247A","magenta-2":"#F5319D","magenta-3":"#F754B0","magenta-4":"#F975C2","magenta-5":"#FB9DD1","magenta-6":"#FDC5E3",pink:fi,"pink-1":"#D6549D","pink-2":"#F77EBE","pink-3":"#F99AC8","pink-4":"#FAB4D4","pink-5":"#FCCEE0","pink-6":"#FEE7EF"},hi=async e=>(await{"zh-CN":()=>Promise.resolve().then(()=>require("./index-C5mRo5Yi.cjs")),"en-US":()=>Promise.resolve().then(()=>require("./index-BrYPwI7i.cjs"))}[e]()).default,ht={},pi=async e=>(ht[e]||(ht[e]=await hi(e)),ht[e]),St=t.ref("zh-CN"),wt=t.ref(null);function mi(e,n){const r=n.split(".");let o=e;for(const i of r)if(o&&typeof o=="object"&&i in o)o=o[i];else return n;return typeof o=="string"?o:n}function gi(e,n){return n?e.replace(/\{(\w+)\}/g,(r,o)=>n[o]!==void 0?String(n[o]):r):e}function D1(e,n){if(!wt.value)return console.warn("[twcpt] i18n messages not loaded yet, please call setLocale first"),e;const r=mi(wt.value,e);return gi(r,n)}async function rt(e){St.value=e;try{wt.value=await pi(e)}catch(n){console.error(`[twcpt] Failed to load locale messages for ${e}:`,n)}}function A1(){return St.value}function wi(){return{t:D1,locale:St,setLocale:rt,getLocale:A1}}const Tt=Symbol("pagePermissionIds"),It=Symbol("pageActionPermissionIds");let at={};function yi(e){const{app:n,router:r,pagePermissionIds:o,pageActionPermissionIds:i,projectPermissionId:s,defaultLanguage:l,colors:a,disableBFCache:c,amap:y}=e;at={colors:a,projectPermissionId:s},Ue.configure({router:r}),r&&(r.beforeEach(()=>{Ue.destroyAll()}),console.log("[twcpt] Router listener set successfully.")),y&&(_2(y),console.log("[twcpt] AMap configuration set successfully.")),c&&window.addEventListener("pageshow",Q=>{Q.persisted&&window.location.reload()}),l?rt(l).catch(Q=>{console.error("[twcpt] Failed to set default language:",Q)}):rt("zh-CN").catch(Q=>{console.error("[twcpt] Failed to load default locale:",Q)});const g=o?t.isRef(o)?o:t.ref(o):void 0,p=i?t.isRef(i)?i:t.ref(i):void 0;g&&(console.log("[twcpt] Permission IDs provided (reactive ref, initial value may be empty):",g.value),n.provide(Tt,g)),p&&(console.log("[twcpt] Action Permission IDs provided (reactive ref, initial value may be empty):",p.value),n.provide(It,p)),a&&vi(a),s&&console.log("[twcpt] Project Permission ID:",s),console.log("[twcpt] Initialization completed successfully.")}function vi(e){const n=e&&Object.keys(e).length>0,r=n?{...t1,...e}:t1;let o=document.getElementById("twcpt-color-vars");o||(o=document.createElement("style"),o.id="twcpt-color-vars",document.head.appendChild(o));const i=Object.entries(r).map(([s,l])=>` --j-color-${s}: ${l};`).join(`
|
|
49
49
|
`);o.textContent=`:root {
|
|
50
50
|
${i}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.twcpt-container {
|
|
54
54
|
${i}
|
|
55
|
-
}`,console.log("[twcpt] Custom colors applied:",n?e:"Using default colors")}function pi(){return it.colors}function mi(){return it.projectPermissionId}function gi(){return{...it}}const wi=t.defineComponent({name:"JTWPermission",props:{code:{type:[String,null],default:null},defaultContent:{type:String,default:"-"},hiddenOnDenied:{type:Boolean,default:!1},pagePermissions:{type:Array,default:void 0},actionPermissions:{type:Array,default:void 0}},slots:Object,setup(e){const n=t.inject(Nt,t.ref([])),r=t.inject(At,t.ref([])),o=t.computed(()=>e.pagePermissions&&e.pagePermissions.length>0?e.pagePermissions:n.value||[]),i=t.computed(()=>e.actionPermissions&&e.actionPermissions.length>0?e.actionPermissions:r.value||[]);return{hasPermission:t.computed(()=>e.code?o.value.includes(e.code)||i.value.includes(e.code):!0)}}}),yi={key:1};function vi(e,n,r,o,i,s){return e.hasPermission?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.$slots["no-permission"]?t.renderSlot(e.$slots,"no-permission",{key:0}):e.hiddenOnDenied?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",yi,t.toDisplayString(e.defaultContent),1))],64))}const Qi=ce(wi,[["render",vi]]),ki="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%3e%3cpath%20fill='currentColor'%20d='M768%20832a128%20128%200%200%201-128%20128H192A128%20128%200%200%201%2064%20832V384a128%20128%200%200%201%20128-128v64a64%2064%200%200%200-64%2064v448a64%2064%200%200%200%2064%2064h448a64%2064%200%200%200%2064-64z'%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M384%20128a64%2064%200%200%200-64%2064v448a64%2064%200%200%200%2064%2064h448a64%2064%200%200%200%2064-64V192a64%2064%200%200%200-64-64zm0-64h448a128%20128%200%200%201%20128%20128v448a128%20128%200%200%201-128%20128H384a128%20128%200%200%201-128-128V192A128%20128%200%200%201%20384%2064'%3e%3c/path%3e%3c/svg%3e",bi="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%3e%3cpath%20fill='currentColor'%20d='M406.656%20706.944%20195.84%20496.256a32%2032%200%201%200-45.248%2045.248l256%20256%20512-512a32%2032%200%200%200-45.248-45.248L406.592%20706.944z'/%3e%3c/svg%3e";function Mi(e){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e):new Promise((n,r)=>{const o=document.createElement("textarea");o.value=e,o.style.position="fixed",o.style.left="-9999px",o.style.top="-9999px",document.body.appendChild(o),o.focus(),o.select();const i=document.execCommand("copy");document.body.removeChild(o),i?n():r(new Error("execCommand copy failed"))})}const Ci=t.defineComponent({name:"JTWCopyText",props:{text:{type:[String,Number,Object],required:!0},size:{type:String,default:"16px"},revertDelay:{type:Number,default:2e3}},emits:{success:()=>!0,error:e=>!0},setup(e,{emit:n}){const r=t.ref(!1);let o=null;const i=t.computed(()=>({"--size":e.size}));return{copied:r,sizeStyle:i,handleCopy:async()=>{if(r.value)return;const l=e.text,a=typeof l=="object"?JSON.stringify(l):String(l);try{await Mi(a),r.value=!0,n("success"),o&&clearTimeout(o),o=setTimeout(()=>{r.value=!1,o=null},e.revertDelay)}catch(c){n("error",c)}},copyIcon:ki,checkIcon:bi}}}),_i=["src"],Di=["src"];function Ni(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["j-tw-copy-text",{"is-copied":e.copied}]),style:t.normalizeStyle(e.sizeStyle),onClick:n[0]||(n[0]=(...l)=>e.handleCopy&&e.handleCopy(...l))},[e.copied?(t.openBlock(),t.createElementBlock("img",{key:1,class:"j-tw-copy-text__icon j-tw-copy-text__icon--check",src:e.checkIcon,alt:"copied"},null,8,Di)):(t.openBlock(),t.createElementBlock("img",{key:0,class:"j-tw-copy-text__icon",src:e.copyIcon,alt:"copy"},null,8,_i))],6)}const Ai=ce(Ci,[["render",Ni]]);function C1(e){return new Promise(n=>{const r=t.ref(!1),o=document.createElement("div");document.body.appendChild(o);const i=()=>{w.unmount(),document.body.contains(o)&&document.body.removeChild(o)},s=g=>{r.value=!1,setTimeout(i,250),n(g)},l=()=>s(!0),a=()=>s(!1),c=t.defineComponent({setup(){return()=>t.h(m1,{visible:r.value,message:e.message,html:e.html,icon:e.icon,confirmText:e.confirmText,cancelText:e.cancelText,showCancel:e.showCancel,showIcon:e.showIcon,showConfirm:e.showConfirm,onConfirm:l,onCancel:a})}}),w=t.createApp(c);w.mount(o),t.nextTick(()=>{r.value=!0})})}const qt={"app:clear":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwIDIwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQoNCiAgICA8ZyBpZD0iY3VzdG9tLXN2ZyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSJlU0lNLUdyb3VwLUFkZC1maXJzdC1sZXZlbC1ncm91cHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03MTkuMDAwMDAwLCAtMzA5LjAwMDAwMCkiPg0KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hC0xNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzYxLjAwMDAwMCwgMjAzLjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkwLjAwMDAwMCwgNzIuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtN+Wkh+S7vS04IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMjYuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNjguMDAwMDAwLCA4LjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PC9yZWN0Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQ9Ik0xMCwxLjY2NjY2NjY3IEM1LjQwNSwxLjY2NjY2NjY3IDEuNjY2NjY2NjcsNS40MDUgMS42NjY2NjY2NywxMCBDMS42NjY2NjY2NywxNC41OTUgNS40MDUsMTguMzMzMzMzMyAxMCwxOC4zMzMzMzMzIEMxNC41OTUsMTguMzMzMzMzMyAxOC4zMzMzMzMzLDE0LjU5NSAxOC4zMzMzMzMzLDEwIEMxOC4zMzMzMzMzLDUuNDA1IDE0LjU5NSwxLjY2NjY2NjY3IDEwLDEuNjY2NjY2NjciDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPSJQYXRoIiBmaWxsPSIjRUJFQ0YwIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkPSJNMTIuMjU1ODMzMyw3Ljc0NDE2NjY3IEMxMS45Myw3LjQxODMzMzMzIDExLjQwMzMzMzMsNy40MTgzMzMzMyAxMS4wNzc1LDcuNzQ0MTY2NjcgTDEwLDguODIxNjY2NjcgTDguOTIyNSw3Ljc0NDE2NjY3IEM4LjU5NjY2NjY3LDcuNDE4MzMzMzMgOC4wNyw3LjQxODMzMzMzIDcuNzQ0MTY2NjcsNy43NDQxNjY2NyBDNy40MTgzMzMzMyw4LjA3IDcuNDE4MzMzMzMsOC41OTY2NjY2NyA3Ljc0NDE2NjY3LDguOTIyNSBMOC44MjE2NjY2NywxMCBMNy43NDQxNjY2NywxMS4wNzc1IEM3LjQxODMzMzMzLDExLjQwMzMzMzMgNy40MTgzMzMzMywxMS45MyA3Ljc0NDE2NjY3LDEyLjI1NTgzMzMgQzcuOTA2NjY2NjcsMTIuNDE4MzMzMyA4LjEyLDEyLjUgOC4zMzMzMzMzMywxMi41IEM4LjU0NjY2NjY3LDEyLjUgOC43NiwxMi40MTgzMzMzIDguOTIyNSwxMi4yNTU4MzMzIEwxMCwxMS4xNzgzMzMzIEwxMS4wNzc1LDEyLjI1NTgzMzMgQzExLjI0LDEyLjQxODMzMzMgMTEuNDUzMzMzMywxMi41IDExLjY2NjY2NjcsMTIuNSBDMTEuODgsMTIuNSAxMi4wOTMzMzMzLDEyLjQxODMzMzMgMTIuMjU1ODMzMywxMi4yNTU4MzMzIEMxMi41ODE2NjY3LDExLjkzIDEyLjU4MTY2NjcsMTEuNDAzMzMzMyAxMi4yNTU4MzMzLDExLjA3NzUgTDExLjE3ODMzMzMsMTAgTDEyLjI1NTgzMzMsOC45MjI1IEMxMi41ODE2NjY3LDguNTk2NjY2NjcgMTIuNTgxNjY2Nyw4LjA3IDEyLjI1NTgzMzMsNy43NDQxNjY2NyINCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9IlBhdGgiIGZpbGw9IiM5OTlEQjQiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+"},Si=e=>{const n="img:",r=[e,e.toLowerCase()];if(e.startsWith("app:")){const i=e.slice(4);r.push(i,i.toLowerCase())}else r.push(`app:${e}`,`app:${e.toLowerCase()}`);const o=r.find(i=>qt[i]!==void 0);if(o)return{icon:n+qt[o]}};function Ii(...e){return n=>{for(const r of e){if(!r)continue;const o=r(n);if(o!==void 0)return o}}}function _1(e,n,r=i=>JSON.stringify(i),o=i=>JSON.parse(i)){const i=e,s=()=>{try{const c=localStorage.getItem(i),w=c?o(c):n;return console.log(`[storageSync] 初始化 ${i}:`,w),w}catch(c){return console.warn(`[storageSync] Failed to read ${i}:`,c),n}},l=t.ref(s());t.watch(l,(c,w)=>{try{console.log(`[storageSync] ${i} 更新:`,{oldValue:w,newValue:c,timestamp:new Date().toISOString()}),localStorage.setItem(i,r(c)),console.log(`[storageSync] ${i} 已写入 localStorage`)}catch(g){console.error(`[storageSync] Failed to write ${i}:`,g)}},{deep:!0});const a=c=>{if(c.key===i&&c.newValue!==null)try{const w=o(c.newValue);console.log(`[storageSync] 监听到 storage 事件 ${i}:`,{oldValue:c.oldValue,newValue:c.newValue,url:c.url,timestamp:new Date().toISOString()}),JSON.stringify(l.value)!==JSON.stringify(w)?(console.log(`[storageSync] ${i} 从其他标签页同步更新:`,w),l.value=w):console.log(`[storageSync] ${i} 值未改变,跳过更新`)}catch(w){console.warn(`[storageSync] Failed to parse storage event for ${i}:`,w)}else c.key===i&&c.newValue===null&&(console.log(`[storageSync] ${i} 被清空,重置为初始值`),l.value=n)};return window.addEventListener("storage",a),l}const D1=e=>e.join(","),N1=e=>e?e.split(",").filter(Boolean):[];function Ti(e){return _1(e,[],D1,N1)}function Li(e){return _1(e,[],D1,N1)}function e1(e){if(typeof e=="string")return e;if(e==null)return"请求失败";try{return JSON.stringify(e)}catch{return"请求失败"}}function Ei(e){const n=xe,r=(e==null?void 0:e.intercept)??!1;let o;const i=a=>typeof a=="object"&&a!==null&&"ok"in a&&"code"in a&&"data"in a;return{run:async a=>{try{const c=await a(),w=i(c)?c:i(c==null?void 0:c.data)?c.data:void 0;if(!w){r||n.show({content:"响应格式错误",type:"error"});return}if((w==null?void 0:w.ok)===!0&&(w==null?void 0:w.code)===0)return w.data;r&&o?o(w):r||n.show({content:e1(w==null?void 0:w.msg),type:"error"});return}catch(c){r||n.show({content:e1((c==null?void 0:c.msg)??(c==null?void 0:c.message)),type:"error"});return}},error:a=>{o=a}}}function xi(e,n={}){const{interval:r=5e3,immediate:o=!1,onError:i,autoStopWhenHidden:s=!0}=n;let l=null,a=0,c=r,w=!document.hidden,g=!1;const h=async()=>{if(s&&!w){l=null,g=!1;return}const d=Date.now();if(d-a>=c){a=d;try{await e()}catch(_){i?i(_):console.error("RAFPolling error:",_)}}g&&(l=requestAnimationFrame(h))},Q=()=>{w=!document.hidden,w&&g&&l===null?(a=Date.now(),h()):!w&&s&&v()},p=()=>{g||(g=!0,a=Date.now(),o&&e().catch(d=>{i?i(d):console.error("RAFPolling error:",d)}),h(),s&&document.addEventListener("visibilitychange",Q))},v=()=>{g=!1,l!==null&&(cancelAnimationFrame(l),l=null),s&&document.removeEventListener("visibilitychange",Q)};return{start:p,stop:v,isRunning:()=>g,updateInterval:d=>{c=d}}}function He(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ft={exports:{}};/*!
|
|
55
|
+
}`,console.log("[twcpt] Custom colors applied:",n?e:"Using default colors")}function Qi(){return at.colors}function ki(){return at.projectPermissionId}function bi(){return{...at}}const Mi=t.defineComponent({name:"JTWPermission",props:{code:{type:[String,Array,null],default:null},matchAll:{type:Boolean,default:!1},defaultContent:{type:String,default:"-"},hiddenOnDenied:{type:Boolean,default:!1},pagePermissions:{type:Array,default:void 0},actionPermissions:{type:Array,default:void 0}},slots:Object,setup(e){const n=t.inject(Tt,t.ref([])),r=t.inject(It,t.ref([])),o=t.computed(()=>e.pagePermissions&&e.pagePermissions.length>0?e.pagePermissions:n.value||[]),i=t.computed(()=>e.actionPermissions&&e.actionPermissions.length>0?e.actionPermissions:r.value||[]);return{hasPermission:t.computed(()=>{if(!e.code||Array.isArray(e.code)&&e.code.length===0)return!0;const l=Array.isArray(e.code)?e.code:[e.code],a=c=>o.value.includes(c)||i.value.includes(c);return e.matchAll?l.every(a):l.some(a)})}}}),Ci={key:1};function _i(e,n,r,o,i,s){return e.hasPermission?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.$slots["no-permission"]?t.renderSlot(e.$slots,"no-permission",{key:0}):e.hiddenOnDenied?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Ci,t.toDisplayString(e.defaultContent),1))],64))}const Ni=se(Mi,[["render",_i]]),Di="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%3e%3cpath%20fill='currentColor'%20d='M768%20832a128%20128%200%200%201-128%20128H192A128%20128%200%200%201%2064%20832V384a128%20128%200%200%201%20128-128v64a64%2064%200%200%200-64%2064v448a64%2064%200%200%200%2064%2064h448a64%2064%200%200%200%2064-64z'%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M384%20128a64%2064%200%200%200-64%2064v448a64%2064%200%200%200%2064%2064h448a64%2064%200%200%200%2064-64V192a64%2064%200%200%200-64-64zm0-64h448a128%20128%200%200%201%20128%20128v448a128%20128%200%200%201-128%20128H384a128%20128%200%200%201-128-128V192A128%20128%200%200%201%20384%2064'%3e%3c/path%3e%3c/svg%3e",Ai="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%3e%3cpath%20fill='currentColor'%20d='M406.656%20706.944%20195.84%20496.256a32%2032%200%201%200-45.248%2045.248l256%20256%20512-512a32%2032%200%200%200-45.248-45.248L406.592%20706.944z'/%3e%3c/svg%3e";function Si(e){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e):new Promise((n,r)=>{const o=document.createElement("textarea");o.value=e,o.style.position="fixed",o.style.left="-9999px",o.style.top="-9999px",document.body.appendChild(o),o.focus(),o.select();const i=document.execCommand("copy");document.body.removeChild(o),i?n():r(new Error("execCommand copy failed"))})}const Ti=t.defineComponent({name:"JTWCopyText",props:{text:{type:[String,Number,Object],required:!0},size:{type:String,default:"16px"},revertDelay:{type:Number,default:2e3}},emits:{success:()=>!0,error:e=>!0},setup(e,{emit:n}){const r=t.ref(!1);let o=null;const i=t.computed(()=>({"--size":e.size}));return{copied:r,sizeStyle:i,handleCopy:async()=>{if(r.value)return;const l=e.text,a=typeof l=="object"?JSON.stringify(l):String(l);try{await Si(a),r.value=!0,n("success"),o&&clearTimeout(o),o=setTimeout(()=>{r.value=!1,o=null},e.revertDelay)}catch(c){n("error",c)}},copyIcon:Di,checkIcon:Ai}}}),Ii=["src"],Ei=["src"];function Li(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["j-tw-copy-text",{"is-copied":e.copied}]),style:t.normalizeStyle(e.sizeStyle),onClick:n[0]||(n[0]=(...l)=>e.handleCopy&&e.handleCopy(...l))},[e.copied?(t.openBlock(),t.createElementBlock("img",{key:1,class:"j-tw-copy-text__icon j-tw-copy-text__icon--check",src:e.checkIcon,alt:"copied"},null,8,Ei)):(t.openBlock(),t.createElementBlock("img",{key:0,class:"j-tw-copy-text__icon",src:e.copyIcon,alt:"copy"},null,8,Ii))],6)}const xi=se(Ti,[["render",Li]]),xe={CLICK:"click",HOVER:"hover",FOCUS:"focus",CONTEXTMENU:"contextmenu"},S1={TOP:"top",TOP_START:"top-start",TOP_END:"top-end",BOTTOM:"bottom",BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",LEFT:"left",LEFT_START:"left-start",LEFT_END:"left-end",RIGHT:"right",RIGHT_START:"right-start",RIGHT_END:"right-end"},yt={POPOVER:"popover",BOTTOM_SHEET:"bottom-sheet"};function ji(e,n,r,o){const i={w:window.innerWidth,h:window.innerHeight},s=Bi(r);for(const l of s){const a=n1(e,n,l,o);if(zi(a,n,i))return{position:a,placement:l}}return{position:n1(e,n,s[0],o),placement:s[0]}}function Bi(e){const n=e.split("-")[0],o={top:"bottom",bottom:"top",left:"right",right:"left"}[n],i=[e];return o&&i.push(o),(n==="bottom"||n==="top")&&i.push("bottom-start","bottom-end","top-start","top-end"),[...new Set(i)]}function n1(e,n,r,o){const[i,s]=r.split("-");let l=0,a=0;return i==="bottom"?(l=e.bottom+o,a=s==="end"?e.right-n.width:s==="start"?e.left:e.left+e.width/2-n.width/2):i==="top"?(l=e.top-n.height-o,a=s==="end"?e.right-n.width:s==="start"?e.left:e.left+e.width/2-n.width/2):i==="left"?(a=e.left-n.width-o,l=s==="end"?e.bottom-n.height:s==="start"?e.top:e.top+e.height/2-n.height/2):i==="right"&&(a=e.right+o,l=s==="end"?e.bottom-n.height:s==="start"?e.top:e.top+e.height/2-n.height/2),{top:l,left:a}}function zi(e,n,r){return e.top>=4&&e.left>=4&&e.top+n.height<=r.h-4&&e.left+n.width<=r.w-4}const Oi=t.defineComponent({name:"JTWPopupProxy",inheritAttrs:!1,props:{modelValue:{type:Boolean,default:void 0},breakpoint:{type:Number,default:600},trigger:{type:String,default:xe.CLICK},placement:{type:String,default:S1.BOTTOM_END},offset:{type:Number,default:4},showArrow:{type:Boolean,default:!1},maxWidth:{type:String,default:void 0},minWidth:{type:String,default:"trigger"},disabled:{type:Boolean,default:!1},closeOnOutside:{type:Boolean,default:!0},title:{type:String,default:""},popperClass:{type:String,default:void 0}},emits:{"update:modelValue":e=>!0,show:()=>!0,hide:()=>!0,"before-show":()=>!0,"before-hide":()=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(null),i=t.ref(null),s=t.ref(null),l=t.ref(typeof window<"u"?window.innerWidth:1200),a=t.computed(()=>l.value>e.breakpoint),c=t.computed(()=>a.value?yt.POPOVER:yt.BOTTOM_SHEET),y=t.ref(!1),g=t.computed({get(){return e.modelValue!==void 0?e.modelValue:y.value},set(M){y.value=M,n("update:modelValue",M)}}),p=t.ref({}),Q=t.ref({}),h=t.ref(e.placement),v=()=>{if(!o.value||!i.value)return;const M=o.value.getBoundingClientRect(),L=e.minWidth==="trigger"?M.width:e.minWidth?parseFloat(e.minWidth):0,V=i.value;V.style.visibility="hidden",V.style.left="-9999px",V.style.top="-9999px",L&&(V.style.minWidth=`${L}px`),e.maxWidth&&(V.style.maxWidth=e.maxWidth),requestAnimationFrame(()=>{if(!o.value||!i.value)return;const C=i.value.getBoundingClientRect(),x=o.value.getBoundingClientRect(),{position:m,placement:R}=ji(x,{...C,width:Math.max(C.width,L)},e.placement,e.offset);h.value=R;const K={position:"fixed",top:`${m.top}px`,left:`${m.left}px`,zIndex:"2000",visibility:"visible"};if(L&&(K.minWidth=`${L}px`),e.maxWidth&&(K.maxWidth=e.maxWidth),p.value=K,e.showArrow){const G=R.split("-")[0],U={};G==="bottom"?(U.top="-4px",U.left=`${x.left+x.width/2-m.left-4}px`,U.transform="rotate(45deg)"):G==="top"?(U.bottom="-4px",U.left=`${x.left+x.width/2-m.left-4}px`,U.transform="rotate(225deg)"):G==="left"?(U.right="-4px",U.top=`${x.top+x.height/2-m.top-4}px`,U.transform="rotate(135deg)"):(U.left="-4px",U.top=`${x.top+x.height/2-m.top-4}px`,U.transform="rotate(315deg)"),Q.value=U}})},u=()=>{e.disabled||g.value||(n("before-show"),g.value=!0,n("show"),a.value&&t.nextTick(()=>{requestAnimationFrame(v)}))},w=()=>{g.value&&(n("before-hide"),g.value=!1,n("hide"))},d=()=>{g.value?w():u()},k=t.ref(null),N=t.computed(()=>{if(e.disabled)return{};switch(e.trigger){case xe.CLICK:return{onClick:d};case xe.HOVER:return{onMouseenter:()=>{k.value&&clearTimeout(k.value),u()},onMouseleave:()=>{k.value=setTimeout(()=>{w()},150)}};case xe.FOCUS:return{onFocusin:u,onFocusout:w};case xe.CONTEXTMENU:return{onContextmenu:M=>{M.preventDefault(),d()}};default:return{}}}),D=M=>{var x,m;if(!g.value||!e.closeOnOutside||!a.value)return;const L=M.target,V=(x=o.value)==null?void 0:x.contains(L),C=(m=i.value)==null?void 0:m.contains(L);!V&&!C&&w()},b=()=>{e.closeOnOutside&&w()},T=()=>{l.value=window.innerWidth,g.value&&a.value&&t.nextTick(v)},I=()=>{g.value&&a.value&&v()};return t.watch(g,M=>{M?(document.addEventListener("click",D,!0),window.addEventListener("scroll",I,!0)):(document.removeEventListener("click",D,!0),window.removeEventListener("scroll",I,!0))}),t.onMounted(()=>{window.addEventListener("resize",T)}),t.onBeforeUnmount(()=>{window.removeEventListener("resize",T),document.removeEventListener("click",D,!0),window.removeEventListener("scroll",I,!0),k.value&&clearTimeout(k.value)}),r({show:u,hide:w,toggle:d,get isVisible(){return g.value},get currentMode(){return c.value}}),{triggerWrapRef:o,popoverRef:i,sheetRef:s,isPopoverMode:a,internalVisible:g,popoverStyle:p,arrowStyle:Q,triggerEvents:N,handleOverlayClick:b,show:u,hide:w,toggle:d}}}),Fi={class:"j-tw-popup-proxy__popover-content"},Pi={key:0,class:"j-tw-popup-proxy__sheet-header"},$i={class:"j-tw-popup-proxy__sheet-title"},Vi={class:"j-tw-popup-proxy__sheet-content"};function Ri(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",t.mergeProps({ref:"triggerWrapRef",class:"j-tw-popup-proxy__trigger"},e.triggerEvents),[t.renderSlot(e.$slots,"default")],16),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-popup-proxy-fade"},{default:t.withCtx(()=>[e.isPopoverMode&&e.internalVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:t.normalizeClass(["j-tw-popup-proxy__popover",e.popperClass]),style:t.normalizeStyle(e.popoverStyle),onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[e.showArrow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-popup-proxy__arrow",style:t.normalizeStyle(e.arrowStyle)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",Fi,[t.renderSlot(e.$slots,"content")])],6)):t.createCommentVNode("",!0)]),_:3})])),(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"j-tw-popup-proxy-sheet"},{default:t.withCtx(()=>[!e.isPopoverMode&&e.internalVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"j-tw-popup-proxy__overlay",onClick:n[3]||(n[3]=(...l)=>e.handleOverlayClick&&e.handleOverlayClick(...l))},[t.createElementVNode("div",{ref:"sheetRef",class:"j-tw-popup-proxy__sheet",onClick:n[2]||(n[2]=t.withModifiers(()=>{},["stop"]))},[e.title||e.$slots.title?(t.openBlock(),t.createElementBlock("div",Pi,[t.createElementVNode("span",$i,[t.renderSlot(e.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])]),t.createElementVNode("button",{class:"j-tw-popup-proxy__sheet-close",type:"button",onClick:n[1]||(n[1]=(...l)=>e.hide&&e.hide(...l))},[...n[4]||(n[4]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",Vi,[t.renderSlot(e.$slots,"content")])],512)])):t.createCommentVNode("",!0)]),_:3})]))],64)}const Wi=se(Oi,[["render",Ri]]),We={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"},Ui="5.6.205",Zi=`https://cdn.jsdelivr.net/npm/pdfjs-dist@${Ui}/build/pdf.worker.min.mjs`,r1=800,Yi=t.defineComponent({name:"JTWPdfView",props:{src:{type:String,required:!0},scale:{type:Number,default:1},pageGap:{type:Number,default:12},showToolbar:{type:Boolean,default:!0},showPageNav:{type:Boolean,default:!0},showZoom:{type:Boolean,default:!0},height:{type:String,default:"100%"},workerSrc:{type:String,default:void 0},virtual:{type:Boolean,default:!0}},emits:{loaded:e=>!0,error:e=>!0,"page-change":e=>!0},setup(e,{emit:n,expose:r}){const o=t.ref(We.IDLE),i=t.ref(0),s=t.ref(""),l=t.ref(0),a=t.ref(1),c=t.ref(e.scale),y=t.ref(null),g=new Map,p=new Map,Q=t.ref(new Set);let h=null,v=[],u=!1;const w=new Map,d=(F,j)=>{F?g.set(j,F):g.delete(j)},k=(F,j)=>{F?(p.set(j,F),M(j)):p.delete(j)},N=async()=>{const F=await Promise.resolve().then(()=>require("./pdf-DaVs5dNL.cjs"));return F.GlobalWorkerOptions.workerSrc=e.workerSrc||Zi,F},D=async()=>{if(e.src){o.value=We.LOADING,i.value=0,s.value="",Q.value=new Set,w.clear(),g.clear(),p.clear(),v=[],u=!1,h&&(h.destroy(),h=null);try{const j=(await N()).getDocument({url:e.src});j.onProgress=S=>{S.total>0&&(i.value=Math.round(S.loaded/S.total*100))},h=await j.promise,l.value=h.numPages,await b(),o.value=We.LOADED,a.value=1,n("loaded",l.value),await t.nextTick(),I()}catch(F){o.value=We.ERROR,s.value=(F==null?void 0:F.message)||"加载失败,请检查文件地址是否正确",n("error",F instanceof Error?F:new Error(String(F)))}}},b=async()=>{if(!h)return;const j=(await h.getPage(1)).getViewport({scale:c.value});for(let S=1;S<=l.value;S++)w.set(S,{width:j.width,height:j.height})},T=F=>{const j=w.get(F);return j?{height:`${j.height}px`,width:`${j.width}px`}:{height:"400px",width:"100%"}},I=()=>{if(!y.value||!h)return;const F=y.value,j=F.scrollTop-r1,S=F.scrollTop+F.clientHeight+r1,B=[];let te=a.value;for(let O=1;O<=l.value;O++){const E=g.get(O);if(!E)continue;const J=E.offsetTop,oe=J+E.offsetHeight;J<=F.scrollTop+F.clientHeight/2&&(te=O),oe>=j&&J<=S&&(Q.value.has(O)||B.push(O))}te!==a.value&&(a.value=te,n("page-change",a.value)),B.length>0&&(v.push(...B.filter(O=>!v.includes(O))),$())},$=async()=>{if(!(u||v.length===0)){for(u=!0;v.length>0;){const F=v.shift();Q.value.has(F)||(Q.value=new Set([...Q.value,F]),await t.nextTick())}u=!1}},M=async F=>{if(!h)return;const j=p.get(F);if(j)try{const S=await h.getPage(F),B=S.getViewport({scale:c.value});j.width=B.width,j.height=B.height,w.set(F,{width:B.width,height:B.height});const te=j.getContext("2d");if(!te)return;await S.render({canvasContext:te,viewport:B}).promise}catch{}};let L=null;const V=()=>{L===null&&(L=requestAnimationFrame(()=>{L=null,I()}))},C=F=>{const j=Math.max(1,Math.min(F,l.value)),S=g.get(j);S&&y.value&&y.value.scrollTo({top:S.offsetTop,behavior:"smooth"})},x=F=>{const j=Math.max(.5,Math.min(3,parseFloat((c.value+F).toFixed(2))));m(j)},m=async F=>{c.value=F,await b();const j=[...Q.value];Q.value=new Set,p.clear(),await t.nextTick(),Q.value=new Set(j),await t.nextTick();for(const S of j)M(S)},R=()=>{D()},K=F=>{var B;if(!e.src)return;const j=F||((B=e.src.split("/").pop())==null?void 0:B.split("?")[0])||"download.pdf",S=document.createElement("a");S.href=e.src,S.download=j,S.style.display="none",document.body.appendChild(S),S.click(),document.body.removeChild(S)},G=F=>{const j=parseInt(F.target.value,10);isNaN(j)||C(j)};return t.watch(()=>e.src,F=>{F&&D()}),t.watch(()=>e.scale,F=>{F!==c.value&&m(F)}),t.onMounted(()=>{e.src&&D()}),t.onBeforeUnmount(()=>{L!==null&&cancelAnimationFrame(L),h&&h.destroy()}),r({goToPage:C,setScale:m,reload:R,download:K,get currentPage(){return a.value},get totalPages(){return l.value},get currentScale(){return c.value}}),{loadState:o,loadProgress:i,errorMessage:s,totalPages:l,currentPage:a,currentScale:c,scrollContainerRef:y,renderedPages:Q,setPageRef:d,setCanvasRef:k,getPlaceholderStyle:T,handleScroll:V,handlePageInputChange:G,goToPage:C,adjustScale:x,reload:R}}}),Gi={key:0,class:"j-tw-pdf-view__toolbar"},Hi={key:0,class:"j-tw-pdf-view__toolbar-group"},Ji=["disabled"],Xi={class:"j-tw-pdf-view__page-info"},Ki=["max","value"],qi={class:"j-tw-pdf-view__page-total"},el=["disabled"],tl={key:1,class:"j-tw-pdf-view__toolbar-group"},nl={class:"j-tw-pdf-view__scale-label"},rl={key:1,class:"j-tw-pdf-view__loading"},ol={class:"j-tw-pdf-view__loading-content"},il={class:"j-tw-pdf-view__loading-text"},ll={key:0,class:"j-tw-pdf-view__loading-progress"},al={key:0,class:"j-tw-pdf-view__progress-bar"},sl={key:2,class:"j-tw-pdf-view__error"},cl={class:"j-tw-pdf-view__error-text"},ul=["data-page"];function dl(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",{class:"j-tw-pdf-view",style:t.normalizeStyle({height:e.height})},[e.showToolbar&&e.loadState==="loaded"&&(e.showPageNav||e.showZoom)?(t.openBlock(),t.createElementBlock("div",Gi,[e.showPageNav?(t.openBlock(),t.createElementBlock("div",Hi,[t.createElementVNode("button",{class:"j-tw-pdf-view__toolbar-btn",disabled:e.currentPage<=1,onClick:n[0]||(n[0]=l=>e.goToPage(e.currentPage-1)),title:"上一页"},[...n[7]||(n[7]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M10 12L6 8L10 4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Ji),t.createElementVNode("span",Xi,[t.createElementVNode("input",{class:"j-tw-pdf-view__page-input",type:"number",min:1,max:e.totalPages,value:e.currentPage,onChange:n[1]||(n[1]=(...l)=>e.handlePageInputChange&&e.handlePageInputChange(...l))},null,40,Ki),t.createElementVNode("span",qi,"/ "+t.toDisplayString(e.totalPages),1)]),t.createElementVNode("button",{class:"j-tw-pdf-view__toolbar-btn",disabled:e.currentPage>=e.totalPages,onClick:n[2]||(n[2]=l=>e.goToPage(e.currentPage+1)),title:"下一页"},[...n[8]||(n[8]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,el)])):t.createCommentVNode("",!0),e.showZoom?(t.openBlock(),t.createElementBlock("div",tl,[t.createElementVNode("button",{class:"j-tw-pdf-view__toolbar-btn",onClick:n[3]||(n[3]=l=>e.adjustScale(-.25)),title:"缩小"},[...n[9]||(n[9]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M3 8H13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])]),t.createElementVNode("span",nl,t.toDisplayString(Math.round(e.currentScale*100))+"%",1),t.createElementVNode("button",{class:"j-tw-pdf-view__toolbar-btn",onClick:n[4]||(n[4]=l=>e.adjustScale(.25)),title:"放大"},[...n[10]||(n[10]=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[t.createElementVNode("path",{d:"M8 3V13M3 8H13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.loadState==="loading"?(t.openBlock(),t.createElementBlock("div",rl,[t.createElementVNode("div",ol,[n[12]||(n[12]=t.createElementVNode("svg",{class:"j-tw-pdf-view__spinner",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none"},[t.createElementVNode("circle",{cx:"18",cy:"18",r:"15",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"70","stroke-dashoffset":"20"})],-1)),t.createElementVNode("div",il,[n[11]||(n[11]=t.createElementVNode("span",null,"加载中",-1)),e.loadProgress>0?(t.openBlock(),t.createElementBlock("span",ll,t.toDisplayString(e.loadProgress)+"%",1)):t.createCommentVNode("",!0)]),e.loadProgress>0?(t.openBlock(),t.createElementBlock("div",al,[t.createElementVNode("div",{class:"j-tw-pdf-view__progress-fill",style:t.normalizeStyle({width:e.loadProgress+"%"})},null,4)])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.loadState==="error"?(t.openBlock(),t.createElementBlock("div",sl,[n[13]||(n[13]=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},[t.createElementVNode("circle",{cx:"20",cy:"20",r:"18",stroke:"currentColor","stroke-width":"2"}),t.createElementVNode("path",{d:"M20 12V22M20 28V28.5",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"})],-1)),t.createElementVNode("p",cl,t.toDisplayString(e.errorMessage),1),t.createElementVNode("button",{class:"j-tw-pdf-view__retry-btn",onClick:n[5]||(n[5]=(...l)=>e.reload&&e.reload(...l))},"重新加载")])):t.createCommentVNode("",!0),e.loadState==="loaded"?(t.openBlock(),t.createElementBlock("div",{key:3,ref:"scrollContainerRef",class:"j-tw-pdf-view__scroll",onScroll:n[6]||(n[6]=(...l)=>e.handleScroll&&e.handleScroll(...l))},[t.createElementVNode("div",{class:"j-tw-pdf-view__pages",style:t.normalizeStyle({gap:e.pageGap+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.totalPages,l=>(t.openBlock(),t.createElementBlock("div",{key:l,ref_for:!0,ref:a=>e.setPageRef(a,l),class:"j-tw-pdf-view__page-wrapper","data-page":l},[e.renderedPages.has(l)?(t.openBlock(),t.createElementBlock("canvas",{key:0,ref_for:!0,ref:a=>e.setCanvasRef(a,l),class:"j-tw-pdf-view__canvas"},null,512)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"j-tw-pdf-view__page-placeholder",style:t.normalizeStyle(e.getPlaceholderStyle(l))},null,4))],8,ul))),128))],4)],544)):t.createCommentVNode("",!0)],4)}const fl=se(Yi,[["render",dl]]);function T1(e){return new Promise(n=>{const r=t.ref(!1),o=document.createElement("div");document.body.appendChild(o);const i=()=>{y.unmount(),document.body.contains(o)&&document.body.removeChild(o)},s=g=>{r.value=!1,setTimeout(i,250),n(g)},l=()=>s(!0),a=()=>s(!1),c=t.defineComponent({setup(){return()=>t.h(Q1,{visible:r.value,message:e.message,html:e.html,icon:e.icon,confirmText:e.confirmText,cancelText:e.cancelText,showCancel:e.showCancel,showIcon:e.showIcon,showConfirm:e.showConfirm,onConfirm:l,onCancel:a})}}),y=t.createApp(c);y.mount(o),t.nextTick(()=>{r.value=!0})})}const o1={"app:clear":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwIDIwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQoNCiAgICA8ZyBpZD0iY3VzdG9tLXN2ZyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSJlU0lNLUdyb3VwLUFkZC1maXJzdC1sZXZlbC1ncm91cHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03MTkuMDAwMDAwLCAtMzA5LjAwMDAwMCkiPg0KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hC0xNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzYxLjAwMDAwMCwgMjAzLjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkwLjAwMDAwMCwgNzIuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtN+Wkh+S7vS04IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMjYuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNjguMDAwMDAwLCA4LjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PC9yZWN0Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQ9Ik0xMCwxLjY2NjY2NjY3IEM1LjQwNSwxLjY2NjY2NjY3IDEuNjY2NjY2NjcsNS40MDUgMS42NjY2NjY2NywxMCBDMS42NjY2NjY2NywxNC41OTUgNS40MDUsMTguMzMzMzMzMyAxMCwxOC4zMzMzMzMzIEMxNC41OTUsMTguMzMzMzMzMyAxOC4zMzMzMzMzLDE0LjU5NSAxOC4zMzMzMzMzLDEwIEMxOC4zMzMzMzMzLDUuNDA1IDE0LjU5NSwxLjY2NjY2NjY3IDEwLDEuNjY2NjY2NjciDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPSJQYXRoIiBmaWxsPSIjRUJFQ0YwIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkPSJNMTIuMjU1ODMzMyw3Ljc0NDE2NjY3IEMxMS45Myw3LjQxODMzMzMzIDExLjQwMzMzMzMsNy40MTgzMzMzMyAxMS4wNzc1LDcuNzQ0MTY2NjcgTDEwLDguODIxNjY2NjcgTDguOTIyNSw3Ljc0NDE2NjY3IEM4LjU5NjY2NjY3LDcuNDE4MzMzMzMgOC4wNyw3LjQxODMzMzMzIDcuNzQ0MTY2NjcsNy43NDQxNjY2NyBDNy40MTgzMzMzMyw4LjA3IDcuNDE4MzMzMzMsOC41OTY2NjY2NyA3Ljc0NDE2NjY3LDguOTIyNSBMOC44MjE2NjY2NywxMCBMNy43NDQxNjY2NywxMS4wNzc1IEM3LjQxODMzMzMzLDExLjQwMzMzMzMgNy40MTgzMzMzMywxMS45MyA3Ljc0NDE2NjY3LDEyLjI1NTgzMzMgQzcuOTA2NjY2NjcsMTIuNDE4MzMzMyA4LjEyLDEyLjUgOC4zMzMzMzMzMywxMi41IEM4LjU0NjY2NjY3LDEyLjUgOC43NiwxMi40MTgzMzMzIDguOTIyNSwxMi4yNTU4MzMzIEwxMCwxMS4xNzgzMzMzIEwxMS4wNzc1LDEyLjI1NTgzMzMgQzExLjI0LDEyLjQxODMzMzMgMTEuNDUzMzMzMywxMi41IDExLjY2NjY2NjcsMTIuNSBDMTEuODgsMTIuNSAxMi4wOTMzMzMzLDEyLjQxODMzMzMgMTIuMjU1ODMzMywxMi4yNTU4MzMzIEMxMi41ODE2NjY3LDExLjkzIDEyLjU4MTY2NjcsMTEuNDAzMzMzMyAxMi4yNTU4MzMzLDExLjA3NzUgTDExLjE3ODMzMzMsMTAgTDEyLjI1NTgzMzMsOC45MjI1IEMxMi41ODE2NjY3LDguNTk2NjY2NjcgMTIuNTgxNjY2Nyw4LjA3IDEyLjI1NTgzMzMsNy43NDQxNjY2NyINCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9IlBhdGgiIGZpbGw9IiM5OTlEQjQiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+"},hl=e=>{const n="img:",r=[e,e.toLowerCase()];if(e.startsWith("app:")){const i=e.slice(4);r.push(i,i.toLowerCase())}else r.push(`app:${e}`,`app:${e.toLowerCase()}`);const o=r.find(i=>o1[i]!==void 0);if(o)return{icon:n+o1[o]}};function pl(...e){return n=>{for(const r of e){if(!r)continue;const o=r(n);if(o!==void 0)return o}}}function I1(e,n,r=i=>JSON.stringify(i),o=i=>JSON.parse(i)){const i=e,s=()=>{try{const c=localStorage.getItem(i),y=c?o(c):n;return console.log(`[storageSync] 初始化 ${i}:`,y),y}catch(c){return console.warn(`[storageSync] Failed to read ${i}:`,c),n}},l=t.ref(s());t.watch(l,(c,y)=>{try{console.log(`[storageSync] ${i} 更新:`,{oldValue:y,newValue:c,timestamp:new Date().toISOString()}),localStorage.setItem(i,r(c)),console.log(`[storageSync] ${i} 已写入 localStorage`)}catch(g){console.error(`[storageSync] Failed to write ${i}:`,g)}},{deep:!0});const a=c=>{if(c.key===i&&c.newValue!==null)try{const y=o(c.newValue);console.log(`[storageSync] 监听到 storage 事件 ${i}:`,{oldValue:c.oldValue,newValue:c.newValue,url:c.url,timestamp:new Date().toISOString()}),JSON.stringify(l.value)!==JSON.stringify(y)?(console.log(`[storageSync] ${i} 从其他标签页同步更新:`,y),l.value=y):console.log(`[storageSync] ${i} 值未改变,跳过更新`)}catch(y){console.warn(`[storageSync] Failed to parse storage event for ${i}:`,y)}else c.key===i&&c.newValue===null&&(console.log(`[storageSync] ${i} 被清空,重置为初始值`),l.value=n)};return window.addEventListener("storage",a),l}const E1=e=>e.join(","),L1=e=>e?e.split(",").filter(Boolean):[];function ml(e){return I1(e,[],E1,L1)}function gl(e){return I1(e,[],E1,L1)}function i1(e){if(typeof e=="string")return e;if(e==null)return"请求失败";try{return JSON.stringify(e)}catch{return"请求失败"}}function wl(e){const n=je,r=(e==null?void 0:e.intercept)??!1;let o;const i=a=>typeof a=="object"&&a!==null&&"ok"in a&&"code"in a&&"data"in a;return{run:async a=>{try{const c=await a(),y=i(c)?c:i(c==null?void 0:c.data)?c.data:void 0;if(!y){r||n.show({content:"响应格式错误",type:"error"});return}if((y==null?void 0:y.ok)===!0&&(y==null?void 0:y.code)===0)return y.data;r&&o?o(y):r||n.show({content:i1(y==null?void 0:y.msg),type:"error"});return}catch(c){r||n.show({content:i1((c==null?void 0:c.msg)??(c==null?void 0:c.message)),type:"error"});return}},error:a=>{o=a}}}function yl(e,n={}){const{interval:r=5e3,immediate:o=!1,onError:i,autoStopWhenHidden:s=!0}=n;let l=null,a=0,c=r,y=!document.hidden,g=!1;const p=async()=>{if(s&&!y){l=null,g=!1;return}const d=Date.now();if(d-a>=c){a=d;try{await e()}catch(N){i?i(N):console.error("RAFPolling error:",N)}}g&&(l=requestAnimationFrame(p))},Q=()=>{y=!document.hidden,y&&g&&l===null?(a=Date.now(),p()):!y&&s&&v()},h=()=>{g||(g=!0,a=Date.now(),o&&e().catch(d=>{i?i(d):console.error("RAFPolling error:",d)}).finally(()=>{a=Date.now()}),p(),s&&document.addEventListener("visibilitychange",Q))},v=()=>{g=!1,l!==null&&(cancelAnimationFrame(l),l=null),s&&document.removeEventListener("visibilitychange",Q)};return{start:h,stop:v,isRunning:()=>g,updateInterval:d=>{c=d}}}function Xe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pt={exports:{}};/*!
|
|
56
56
|
|
|
57
57
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
58
58
|
<http://stuartk.com/jszip>
|
|
@@ -62,5 +62,5 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
62
62
|
|
|
63
63
|
JSZip uses the library pako released under the MIT license :
|
|
64
64
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
65
|
-
*/var
|
|
66
|
-
\0`,B+=s(I,2),B+=T.magic,B+=s(_,2),B+=s(A,2),B+=s(F.crc32,4),B+=s(F.compressedSize,4),B+=s(F.uncompressedSize,4),B+=s(P.length,2),B+=s(R.length,2),{fileRecord:h.LOCAL_FILE_HEADER+B+P+R,dirRecord:h.CENTRAL_FILE_HEADER+s(ne,2)+B+s(V.length,2)+"\0\0\0\0"+s(z,4)+s(y,4)+P+R+V}}var a=r("../utils"),c=r("../stream/GenericWorker"),w=r("../utf8"),g=r("../crc32"),h=r("../signature");function Q(p,v,u,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=u,this.encodeFileName=y,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(Q,c),Q.prototype.push=function(p){var v=p.meta.percent||0,u=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:u?(v+100*(u-y-1))/u:100}}))},Q.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var v=this.streamFiles&&!p.file.dir;if(v){var u=l(p,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Q.prototype.closedSource=function(p){this.accumulate=!1;var v=this.streamFiles&&!p.file.dir,u=l(p,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),v)this.push({data:(function(y){return h.DATA_DESCRIPTOR+s(y.crc32,4)+s(y.compressedSize,4)+s(y.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Q.prototype.flush=function(){for(var p=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var u=this.bytesWritten-p,y=(function(d,k,_,A,M){var T=a.transformTo("string",M(A));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(d,2)+s(d,2)+s(k,4)+s(_,4)+s(T.length,2)+T})(this.dirRecords.length,u,p,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},Q.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Q.prototype.registerPrevious=function(p){this._sources.push(p);var v=this;return p.on("data",function(u){v.processChunk(u)}),p.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),p.on("error",function(u){v.error(u)}),this},Q.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Q.prototype.error=function(p){var v=this._sources;if(!c.prototype.error.call(this,p))return!1;for(var u=0;u<v.length;u++)try{v[u].error(p)}catch{}return!0},Q.prototype.lock=function(){c.prototype.lock.call(this);for(var p=this._sources,v=0;v<p.length;v++)p[v].lock()},o.exports=Q},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,o,i){var s=r("../compressions"),l=r("./ZipFileWorker");i.generateWorker=function(a,c,w){var g=new l(c.streamFiles,w,c.platform,c.encodeFileName),h=0;try{a.forEach(function(Q,p){h++;var v=(function(k,_){var A=k||_,M=s[A];if(!M)throw new Error(A+" is not a valid compression method !");return M})(p.options.compression,c.compression),u=p.options.compressionOptions||c.compressionOptions||{},y=p.dir,d=p.date;p._compressWorker(v,u).withStreamInfo("file",{name:Q,dir:y,date:d,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(g)}),g.entriesCount=h}catch(Q){g.error(Q)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,o,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new s;for(var a in this)typeof this[a]!="function"&&(l[a]=this[a]);return l}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.10.1",s.loadAsync=function(l,a){return new s().loadAsync(l,a)},s.external=r("./external"),o.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,o,i){var s=r("./utils"),l=r("./external"),a=r("./utf8"),c=r("./zipEntries"),w=r("./stream/Crc32Probe"),g=r("./nodejsUtils");function h(Q){return new l.Promise(function(p,v){var u=Q.decompressed.getContentWorker().pipe(new w);u.on("error",function(y){v(y)}).on("end",function(){u.streamInfo.crc32!==Q.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}o.exports=function(Q,p){var v=this;return p=s.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),g.isNode&&g.isStream(Q)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",Q,!0,p.optimizedBinaryString,p.base64).then(function(u){var y=new c(p);return y.load(u),y}).then(function(u){var y=[l.Promise.resolve(u)],d=u.files;if(p.checkCRC32)for(var k=0;k<d.length;k++)y.push(h(d[k]));return l.Promise.all(y)}).then(function(u){for(var y=u.shift(),d=y.files,k=0;k<d.length;k++){var _=d[k],A=_.fileNameStr,M=s.resolve(_.fileNameStr);v.file(M,_.decompressed,{binary:!0,optimizedBinaryString:!0,date:_.date,dir:_.dir,comment:_.fileCommentStr.length?_.fileCommentStr:null,unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions,createFolders:p.createFolders}),_.dir||(v.file(M).unsafeOriginalName=A)}return y.zipComment.length&&(v.comment=y.zipComment),v})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,o,i){var s=r("../utils"),l=r("../stream/GenericWorker");function a(c,w){l.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(w)}s.inherits(a,l),a.prototype._bindStream=function(c){var w=this;(this._stream=c).pause(),c.on("data",function(g){w.push({data:g,meta:{percent:0}})}).on("error",function(g){w.isPaused?this.generatedError=g:w.error(g)}).on("end",function(){w.isPaused?w._upstreamEnded=!0:w.end()})},a.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},o.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,o,i){var s=r("readable-stream").Readable;function l(a,c,w){s.call(this,c),this._helper=a;var g=this;a.on("data",function(h,Q){g.push(h)||g._helper.pause(),w&&w(Q)}).on("error",function(h){g.emit("error",h)}).on("end",function(){g.push(null)})}r("../utils").inherits(l,s),l.prototype._read=function(){this._helper.resume()},o.exports=l},{"../utils":32,"readable-stream":16}],14:[function(r,o,i){o.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,l);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,l)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var l=new Buffer(s);return l.fill(0),l},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(r,o,i){function s(M,T,E){var P,D=a.getTypeOf(T),j=a.extend(E||{},g);j.date=j.date||new Date,j.compression!==null&&(j.compression=j.compression.toUpperCase()),typeof j.unixPermissions=="string"&&(j.unixPermissions=parseInt(j.unixPermissions,8)),j.unixPermissions&&16384&j.unixPermissions&&(j.dir=!0),j.dosPermissions&&16&j.dosPermissions&&(j.dir=!0),j.dir&&(M=d(M)),j.createFolders&&(P=y(M))&&k.call(this,P,!0);var V=D==="string"&&j.binary===!1&&j.base64===!1;E&&E.binary!==void 0||(j.binary=!V),(T instanceof h&&T.uncompressedSize===0||j.dir||!T||T.length===0)&&(j.base64=!1,j.binary=!0,T="",j.compression="STORE",D="string");var C=null;C=T instanceof h||T instanceof c?T:v.isNode&&v.isStream(T)?new u(M,T):a.prepareContent(M,T,j.binary,j.optimizedBinaryString,j.base64);var S=new Q(M,C,j);this.files[M]=S}var l=r("./utf8"),a=r("./utils"),c=r("./stream/GenericWorker"),w=r("./stream/StreamHelper"),g=r("./defaults"),h=r("./compressedObject"),Q=r("./zipObject"),p=r("./generate"),v=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),y=function(M){M.slice(-1)==="/"&&(M=M.substring(0,M.length-1));var T=M.lastIndexOf("/");return 0<T?M.substring(0,T):""},d=function(M){return M.slice(-1)!=="/"&&(M+="/"),M},k=function(M,T){return T=T!==void 0?T:g.createFolders,M=d(M),this.files[M]||s.call(this,M,null,{dir:!0,createFolders:T}),this.files[M]};function _(M){return Object.prototype.toString.call(M)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(M){var T,E,P;for(T in this.files)P=this.files[T],(E=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&M(E,P)},filter:function(M){var T=[];return this.forEach(function(E,P){M(E,P)&&T.push(P)}),T},file:function(M,T,E){if(arguments.length!==1)return M=this.root+M,s.call(this,M,T,E),this;if(_(M)){var P=M;return this.filter(function(j,V){return!V.dir&&P.test(j)})}var D=this.files[this.root+M];return D&&!D.dir?D:null},folder:function(M){if(!M)return this;if(_(M))return this.filter(function(D,j){return j.dir&&M.test(D)});var T=this.root+M,E=k.call(this,T),P=this.clone();return P.root=E.name,P},remove:function(M){M=this.root+M;var T=this.files[M];if(T||(M.slice(-1)!=="/"&&(M+="/"),T=this.files[M]),T&&!T.dir)delete this.files[M];else for(var E=this.filter(function(D,j){return j.name.slice(0,M.length)===M}),P=0;P<E.length;P++)delete this.files[E[P].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(M){var T,E={};try{if((E=a.extend(M||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=E.type.toLowerCase(),E.compression=E.compression.toUpperCase(),E.type==="binarystring"&&(E.type="string"),!E.type)throw new Error("No output type specified.");a.checkSupport(E.type),E.platform!=="darwin"&&E.platform!=="freebsd"&&E.platform!=="linux"&&E.platform!=="sunos"||(E.platform="UNIX"),E.platform==="win32"&&(E.platform="DOS");var P=E.comment||this.comment||"";T=p.generateWorker(this,E,P)}catch(D){(T=new c("error")).error(D)}return new w(T,E.type||"string",E.mimeType)},generateAsync:function(M,T){return this.generateInternalStream(M).accumulate(T)},generateNodeStream:function(M,T){return(M=M||{}).type||(M.type="nodebuffer"),this.generateInternalStream(M).toNodejsStream(T)}};o.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,o,i){o.exports=r("stream")},{stream:void 0}],17:[function(r,o,i){var s=r("./DataReader");function l(a){s.call(this,a);for(var c=0;c<this.data.length;c++)a[c]=255&a[c]}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data[this.zero+a]},l.prototype.lastIndexOfSignature=function(a){for(var c=a.charCodeAt(0),w=a.charCodeAt(1),g=a.charCodeAt(2),h=a.charCodeAt(3),Q=this.length-4;0<=Q;--Q)if(this.data[Q]===c&&this.data[Q+1]===w&&this.data[Q+2]===g&&this.data[Q+3]===h)return Q-this.zero;return-1},l.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),w=a.charCodeAt(1),g=a.charCodeAt(2),h=a.charCodeAt(3),Q=this.readData(4);return c===Q[0]&&w===Q[1]&&g===Q[2]&&h===Q[3]},l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./DataReader":18}],18:[function(r,o,i){var s=r("../utils");function l(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var c,w=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)w=(w<<8)+this.byteAt(c);return this.index+=a,w},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},o.exports=l},{"../utils":32}],19:[function(r,o,i){var s=r("./Uint8ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,o,i){var s=r("./DataReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},l.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},l.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,o,i){var s=r("./ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,o,i){var s=r("../utils"),l=r("../support"),a=r("./ArrayReader"),c=r("./StringReader"),w=r("./NodeBufferReader"),g=r("./Uint8ArrayReader");o.exports=function(h){var Q=s.getTypeOf(h);return s.checkSupport(Q),Q!=="string"||l.uint8array?Q==="nodebuffer"?new w(h):l.uint8array?new g(s.transformTo("uint8array",h)):new a(s.transformTo("array",h)):new c(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,o,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,o,i){var s=r("./GenericWorker"),l=r("../utils");function a(c){s.call(this,"ConvertWorker to "+c),this.destType=c}l.inherits(a,s),a.prototype.processChunk=function(c){this.push({data:l.transformTo(this.destType,c.data),meta:c.meta})},o.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,o,i){var s=r("./GenericWorker"),l=r("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,s),a.prototype.processChunk=function(c){this.streamInfo.crc32=l(c.data,this.streamInfo.crc32||0),this.push(c)},o.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,o,i){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}s.inherits(a,l),a.prototype.processChunk=function(c){if(c){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+c.data.length}l.prototype.processChunk.call(this,c)},o.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,o,i){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(g){w.dataIsReady=!0,w.data=g,w.max=g&&g.length||0,w.type=s.getTypeOf(g),w.isPaused||w._tickAndRepeat()},function(g){w.error(g)})}s.inherits(a,l),a.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,w);break;case"uint8array":c=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":c=this.data.slice(this.index,w)}return this.index=w,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},o.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,o,i){function s(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,a){return this._listeners[l].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,a){if(this._listeners[l])for(var c=0;c<this._listeners[l].length;c++)this._listeners[l][c].call(this,a)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var a=this;return l.on("data",function(c){a.processChunk(c)}),l.on("end",function(){a.end()}),l.on("error",function(c){a.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,a){return this.extraStreamInfo[l]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},o.exports=s},{}],29:[function(r,o,i){var s=r("../utils"),l=r("./ConvertWorker"),a=r("./GenericWorker"),c=r("../base64"),w=r("../support"),g=r("../external"),h=null;if(w.nodestream)try{h=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function Q(v,u){return new g.Promise(function(y,d){var k=[],_=v._internalType,A=v._outputType,M=v._mimeType;v.on("data",function(T,E){k.push(T),u&&u(E)}).on("error",function(T){k=[],d(T)}).on("end",function(){try{var T=(function(E,P,D){switch(E){case"blob":return s.newBlob(s.transformTo("arraybuffer",P),D);case"base64":return c.encode(P);default:return s.transformTo(E,P)}})(A,(function(E,P){var D,j=0,V=null,C=0;for(D=0;D<P.length;D++)C+=P[D].length;switch(E){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(V=new Uint8Array(C),D=0;D<P.length;D++)V.set(P[D],j),j+=P[D].length;return V;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+E+"'")}})(_,k),M);y(T)}catch(E){d(E)}k=[]}).resume()})}function p(v,u,y){var d=u;switch(u){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=u,this._mimeType=y,s.checkSupport(d),this._worker=v.pipe(new l(d)),v.lock()}catch(k){this._worker=new a("error"),this._worker.error(k)}}p.prototype={accumulate:function(v){return Q(this,v)},on:function(v,u){var y=this;return v==="data"?this._worker.on(v,function(d){u.call(y,d.data,d.meta)}):this._worker.on(v,function(){s.delay(u,arguments,y)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},v)}},o.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,o,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(s),i.blob=l.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,o,i){for(var s=r("./utils"),l=r("./support"),a=r("./nodejsUtils"),c=r("./stream/GenericWorker"),w=new Array(256),g=0;g<256;g++)w[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;w[254]=w[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function Q(){c.call(this,"utf-8 encode")}i.utf8encode=function(p){return l.nodebuffer?a.newBufferFrom(p,"utf-8"):(function(v){var u,y,d,k,_,A=v.length,M=0;for(k=0;k<A;k++)(64512&(y=v.charCodeAt(k)))==55296&&k+1<A&&(64512&(d=v.charCodeAt(k+1)))==56320&&(y=65536+(y-55296<<10)+(d-56320),k++),M+=y<128?1:y<2048?2:y<65536?3:4;for(u=l.uint8array?new Uint8Array(M):new Array(M),k=_=0;_<M;k++)(64512&(y=v.charCodeAt(k)))==55296&&k+1<A&&(64512&(d=v.charCodeAt(k+1)))==56320&&(y=65536+(y-55296<<10)+(d-56320),k++),y<128?u[_++]=y:(y<2048?u[_++]=192|y>>>6:(y<65536?u[_++]=224|y>>>12:(u[_++]=240|y>>>18,u[_++]=128|y>>>12&63),u[_++]=128|y>>>6&63),u[_++]=128|63&y);return u})(p)},i.utf8decode=function(p){return l.nodebuffer?s.transformTo("nodebuffer",p).toString("utf-8"):(function(v){var u,y,d,k,_=v.length,A=new Array(2*_);for(u=y=0;u<_;)if((d=v[u++])<128)A[y++]=d;else if(4<(k=w[d]))A[y++]=65533,u+=k-1;else{for(d&=k===2?31:k===3?15:7;1<k&&u<_;)d=d<<6|63&v[u++],k--;1<k?A[y++]=65533:d<65536?A[y++]=d:(d-=65536,A[y++]=55296|d>>10&1023,A[y++]=56320|1023&d)}return A.length!==y&&(A.subarray?A=A.subarray(0,y):A.length=y),s.applyFromCharCode(A)})(p=s.transformTo(l.uint8array?"uint8array":"array",p))},s.inherits(h,c),h.prototype.processChunk=function(p){var v=s.transformTo(l.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var u=v;(v=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),v.set(u,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var y=(function(k,_){var A;for((_=_||k.length)>k.length&&(_=k.length),A=_-1;0<=A&&(192&k[A])==128;)A--;return A<0||A===0?_:A+w[k[A]]>_?A:_})(v),d=v;y!==v.length&&(l.uint8array?(d=v.subarray(0,y),this.leftOver=v.subarray(y,v.length)):(d=v.slice(0,y),this.leftOver=v.slice(y,v.length))),this.push({data:i.utf8decode(d),meta:p.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,s.inherits(Q,c),Q.prototype.processChunk=function(p){this.push({data:i.utf8encode(p.data),meta:p.meta})},i.Utf8EncodeWorker=Q},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,o,i){var s=r("./support"),l=r("./base64"),a=r("./nodejsUtils"),c=r("./external");function w(u){return u}function g(u,y){for(var d=0;d<u.length;++d)y[d]=255&u.charCodeAt(d);return y}r("setimmediate"),i.newBlob=function(u,y){i.checkSupport("blob");try{return new Blob([u],{type:y})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(u),d.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(u,y,d){var k=[],_=0,A=u.length;if(A<=d)return String.fromCharCode.apply(null,u);for(;_<A;)y==="array"||y==="nodebuffer"?k.push(String.fromCharCode.apply(null,u.slice(_,Math.min(_+d,A)))):k.push(String.fromCharCode.apply(null,u.subarray(_,Math.min(_+d,A)))),_+=d;return k.join("")},stringifyByChar:function(u){for(var y="",d=0;d<u.length;d++)y+=String.fromCharCode(u[d]);return y},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function Q(u){var y=65536,d=i.getTypeOf(u),k=!0;if(d==="uint8array"?k=h.applyCanBeUsed.uint8array:d==="nodebuffer"&&(k=h.applyCanBeUsed.nodebuffer),k)for(;1<y;)try{return h.stringifyByChunk(u,d,y)}catch{y=Math.floor(y/2)}return h.stringifyByChar(u)}function p(u,y){for(var d=0;d<u.length;d++)y[d]=u[d];return y}i.applyFromCharCode=Q;var v={};v.string={string:w,array:function(u){return g(u,new Array(u.length))},arraybuffer:function(u){return v.string.uint8array(u).buffer},uint8array:function(u){return g(u,new Uint8Array(u.length))},nodebuffer:function(u){return g(u,a.allocBuffer(u.length))}},v.array={string:Q,array:w,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(u)}},v.arraybuffer={string:function(u){return Q(new Uint8Array(u))},array:function(u){return p(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:w,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(new Uint8Array(u))}},v.uint8array={string:Q,array:function(u){return p(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:w,nodebuffer:function(u){return a.newBufferFrom(u)}},v.nodebuffer={string:Q,array:function(u){return p(u,new Array(u.length))},arraybuffer:function(u){return v.nodebuffer.uint8array(u).buffer},uint8array:function(u){return p(u,new Uint8Array(u.length))},nodebuffer:w},i.transformTo=function(u,y){if(y=y||"",!u)return y;i.checkSupport(u);var d=i.getTypeOf(y);return v[d][u](y)},i.resolve=function(u){for(var y=u.split("/"),d=[],k=0;k<y.length;k++){var _=y[k];_==="."||_===""&&k!==0&&k!==y.length-1||(_===".."?d.pop():d.push(_))}return d.join("/")},i.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(u)?"nodebuffer":s.uint8array&&u instanceof Uint8Array?"uint8array":s.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(u){if(!s[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(u){var y,d,k="";for(d=0;d<(u||"").length;d++)k+="\\x"+((y=u.charCodeAt(d))<16?"0":"")+y.toString(16).toUpperCase();return k},i.delay=function(u,y,d){setImmediate(function(){u.apply(d||null,y||[])})},i.inherits=function(u,y){function d(){}d.prototype=y.prototype,u.prototype=new d},i.extend=function(){var u,y,d={};for(u=0;u<arguments.length;u++)for(y in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],y)&&d[y]===void 0&&(d[y]=arguments[u][y]);return d},i.prepareContent=function(u,y,d,k,_){return c.Promise.resolve(y).then(function(A){return s.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader<"u"?new c.Promise(function(M,T){var E=new FileReader;E.onload=function(P){M(P.target.result)},E.onerror=function(P){T(P.target.error)},E.readAsArrayBuffer(A)}):A}).then(function(A){var M=i.getTypeOf(A);return M?(M==="arraybuffer"?A=i.transformTo("uint8array",A):M==="string"&&(_?A=l.decode(A):d&&k!==!0&&(A=(function(T){return g(T,s.uint8array?new Uint8Array(T.length):new Array(T.length))})(A))),A):c.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,o,i){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./signature"),c=r("./zipEntry"),w=r("./support");function g(h){this.files=[],this.loadOptions=h}g.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var Q=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(Q)+", expected "+l.pretty(h)+")")}},isSignature:function(h,Q){var p=this.reader.index;this.reader.setIndex(h);var v=this.reader.readString(4)===Q;return this.reader.setIndex(p),v},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),Q=w.uint8array?"uint8array":"array",p=l.transformTo(Q,h);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,Q,p,v=this.zip64EndOfCentralSize-44;0<v;)h=this.reader.readInt(2),Q=this.reader.readInt(4),p=this.reader.readData(Q),this.zip64ExtensibleData[h]={id:h,length:Q,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,Q;for(h=0;h<this.files.length;h++)Q=this.files[h],this.reader.setIndex(Q.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),Q.readLocalPart(this.reader),Q.handleUTF8(),Q.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var Q=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var v=Q-p;if(0<v)this.isSignature(Q,a.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,o,i){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./compressedObject"),c=r("./crc32"),w=r("./utf8"),g=r("./compressions"),h=r("./support");function Q(p,v){this.options=p,this.loadOptions=v}Q.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var v,u;if(p.skip(22),this.fileNameLength=p.readInt(2),u=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((v=(function(y){for(var d in g)if(Object.prototype.hasOwnProperty.call(g,d)&&g[d].magic===y)return g[d];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,v,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var v=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(v),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var v,u,y,d=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<d;)v=p.readInt(2),u=p.readInt(2),y=p.readData(u),this.extraFields[v]={id:v,length:u,value:y};p.setIndex(d)},handleUTF8:function(){var p=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=w.utf8decode(this.fileName),this.fileCommentStr=w.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var u=l.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var d=l.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var v=s(p.value);return v.readInt(1)!==1||c(this.fileName)!==v.readInt(4)?null:w.utf8decode(v.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var v=s(p.value);return v.readInt(1)!==1||c(this.fileComment)!==v.readInt(4)?null:w.utf8decode(v.readData(p.length-5))}return null}},o.exports=Q},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,o,i){function s(v,u,y){this.name=v,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=u,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var l=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),c=r("./utf8"),w=r("./compressedObject"),g=r("./stream/GenericWorker");s.prototype={internalStream:function(v){var u=null,y="string";try{if(!v)throw new Error("No output type specified.");var d=(y=v.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),u=this._decompressWorker();var k=!this._dataBinary;k&&!d&&(u=u.pipe(new c.Utf8EncodeWorker)),!k&&d&&(u=u.pipe(new c.Utf8DecodeWorker))}catch(_){(u=new g("error")).error(_)}return new l(u,y,"")},async:function(v,u){return this.internalStream(v).accumulate(u)},nodeStream:function(v,u){return this.internalStream(v||"nodebuffer").toNodejsStream(u)},_compressWorker:function(v,u){if(this._data instanceof w&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new c.Utf8EncodeWorker)),w.createWorkerFrom(y,v,u)},_decompressWorker:function(){return this._data instanceof w?this._data.getContentWorker():this._data instanceof g?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Q=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<h.length;p++)s.prototype[h[p]]=Q;o.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,o,i){(function(s){var l,a,c=s.MutationObserver||s.WebKitMutationObserver;if(c){var w=0,g=new c(v),h=s.document.createTextNode("");g.observe(h,{characterData:!0}),l=function(){h.data=w=++w%2}}else if(s.setImmediate||s.MessageChannel===void 0)l="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var u=s.document.createElement("script");u.onreadystatechange=function(){v(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},s.document.documentElement.appendChild(u)}:function(){setTimeout(v,0)};else{var Q=new s.MessageChannel;Q.port1.onmessage=v,l=function(){Q.port2.postMessage(0)}}var p=[];function v(){var u,y;a=!0;for(var d=p.length;d;){for(y=p,p=[],u=-1;++u<d;)y[u]();d=p.length}a=!1}o.exports=function(u){p.push(u)!==1||a||l()}}).call(this,typeof Ge<"u"?Ge:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,o,i){var s=r("immediate");function l(){}var a={},c=["REJECTED"],w=["FULFILLED"],g=["PENDING"];function h(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,d!==l&&u(this,d)}function Q(d,k,_){this.promise=d,typeof k=="function"&&(this.onFulfilled=k,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}function p(d,k,_){s(function(){var A;try{A=k(_)}catch(M){return a.reject(d,M)}A===d?a.reject(d,new TypeError("Cannot resolve promise with itself")):a.resolve(d,A)})}function v(d){var k=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof k=="function")return function(){k.apply(d,arguments)}}function u(d,k){var _=!1;function A(E){_||(_=!0,a.reject(d,E))}function M(E){_||(_=!0,a.resolve(d,E))}var T=y(function(){k(M,A)});T.status==="error"&&A(T.value)}function y(d,k){var _={};try{_.value=d(k),_.status="success"}catch(A){_.status="error",_.value=A}return _}(o.exports=h).prototype.finally=function(d){if(typeof d!="function")return this;var k=this.constructor;return this.then(function(_){return k.resolve(d()).then(function(){return _})},function(_){return k.resolve(d()).then(function(){throw _})})},h.prototype.catch=function(d){return this.then(null,d)},h.prototype.then=function(d,k){if(typeof d!="function"&&this.state===w||typeof k!="function"&&this.state===c)return this;var _=new this.constructor(l);return this.state!==g?p(_,this.state===w?d:k,this.outcome):this.queue.push(new Q(_,d,k)),_},Q.prototype.callFulfilled=function(d){a.resolve(this.promise,d)},Q.prototype.otherCallFulfilled=function(d){p(this.promise,this.onFulfilled,d)},Q.prototype.callRejected=function(d){a.reject(this.promise,d)},Q.prototype.otherCallRejected=function(d){p(this.promise,this.onRejected,d)},a.resolve=function(d,k){var _=y(v,k);if(_.status==="error")return a.reject(d,_.value);var A=_.value;if(A)u(d,A);else{d.state=w,d.outcome=k;for(var M=-1,T=d.queue.length;++M<T;)d.queue[M].callFulfilled(k)}return d},a.reject=function(d,k){d.state=c,d.outcome=k;for(var _=-1,A=d.queue.length;++_<A;)d.queue[_].callRejected(k);return d},h.resolve=function(d){return d instanceof this?d:a.resolve(new this(l),d)},h.reject=function(d){var k=new this(l);return a.reject(k,d)},h.all=function(d){var k=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=d.length,A=!1;if(!_)return this.resolve([]);for(var M=new Array(_),T=0,E=-1,P=new this(l);++E<_;)D(d[E],E);return P;function D(j,V){k.resolve(j).then(function(C){M[V]=C,++T!==_||A||(A=!0,a.resolve(P,M))},function(C){A||(A=!0,a.reject(P,C))})}},h.race=function(d){var k=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=d.length,A=!1;if(!_)return this.resolve([]);for(var M=-1,T=new this(l);++M<_;)E=d[M],k.resolve(E).then(function(P){A||(A=!0,a.resolve(T,P))},function(P){A||(A=!0,a.reject(T,P))});var E;return T}},{immediate:36}],38:[function(r,o,i){var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),o.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,o,i){var s=r("./zlib/deflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/messages"),w=r("./zlib/zstream"),g=Object.prototype.toString,h=0,Q=-1,p=0,v=8;function u(d){if(!(this instanceof u))return new u(d);this.options=l.assign({level:Q,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},d||{});var k=this.options;k.raw&&0<k.windowBits?k.windowBits=-k.windowBits:k.gzip&&0<k.windowBits&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var _=s.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(_!==h)throw new Error(c[_]);if(k.header&&s.deflateSetHeader(this.strm,k.header),k.dictionary){var A;if(A=typeof k.dictionary=="string"?a.string2buf(k.dictionary):g.call(k.dictionary)==="[object ArrayBuffer]"?new Uint8Array(k.dictionary):k.dictionary,(_=s.deflateSetDictionary(this.strm,A))!==h)throw new Error(c[_]);this._dict_set=!0}}function y(d,k){var _=new u(k);if(_.push(d,!0),_.err)throw _.msg||c[_.err];return _.result}u.prototype.push=function(d,k){var _,A,M=this.strm,T=this.options.chunkSize;if(this.ended)return!1;A=k===~~k?k:k===!0?4:0,typeof d=="string"?M.input=a.string2buf(d):g.call(d)==="[object ArrayBuffer]"?M.input=new Uint8Array(d):M.input=d,M.next_in=0,M.avail_in=M.input.length;do{if(M.avail_out===0&&(M.output=new l.Buf8(T),M.next_out=0,M.avail_out=T),(_=s.deflate(M,A))!==1&&_!==h)return this.onEnd(_),!(this.ended=!0);M.avail_out!==0&&(M.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(l.shrinkBuf(M.output,M.next_out))):this.onData(l.shrinkBuf(M.output,M.next_out)))}while((0<M.avail_in||M.avail_out===0)&&_!==1);return A===4?(_=s.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===h):A!==2||(this.onEnd(h),!(M.avail_out=0))},u.prototype.onData=function(d){this.chunks.push(d)},u.prototype.onEnd=function(d){d===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},i.Deflate=u,i.deflate=y,i.deflateRaw=function(d,k){return(k=k||{}).raw=!0,y(d,k)},i.gzip=function(d,k){return(k=k||{}).gzip=!0,y(d,k)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,o,i){var s=r("./zlib/inflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/constants"),w=r("./zlib/messages"),g=r("./zlib/zstream"),h=r("./zlib/gzheader"),Q=Object.prototype.toString;function p(u){if(!(this instanceof p))return new p(u);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},u||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||u&&u.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var d=s.inflateInit2(this.strm,y.windowBits);if(d!==c.Z_OK)throw new Error(w[d]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function v(u,y){var d=new p(y);if(d.push(u,!0),d.err)throw d.msg||w[d.err];return d.result}p.prototype.push=function(u,y){var d,k,_,A,M,T,E=this.strm,P=this.options.chunkSize,D=this.options.dictionary,j=!1;if(this.ended)return!1;k=y===~~y?y:y===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof u=="string"?E.input=a.binstring2buf(u):Q.call(u)==="[object ArrayBuffer]"?E.input=new Uint8Array(u):E.input=u,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new l.Buf8(P),E.next_out=0,E.avail_out=P),(d=s.inflate(E,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&D&&(T=typeof D=="string"?a.string2buf(D):Q.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,d=s.inflateSetDictionary(this.strm,T)),d===c.Z_BUF_ERROR&&j===!0&&(d=c.Z_OK,j=!1),d!==c.Z_STREAM_END&&d!==c.Z_OK)return this.onEnd(d),!(this.ended=!0);E.next_out&&(E.avail_out!==0&&d!==c.Z_STREAM_END&&(E.avail_in!==0||k!==c.Z_FINISH&&k!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(_=a.utf8border(E.output,E.next_out),A=E.next_out-_,M=a.buf2string(E.output,_),E.next_out=A,E.avail_out=P-A,A&&l.arraySet(E.output,E.output,_,A,0),this.onData(M)):this.onData(l.shrinkBuf(E.output,E.next_out)))),E.avail_in===0&&E.avail_out===0&&(j=!0)}while((0<E.avail_in||E.avail_out===0)&&d!==c.Z_STREAM_END);return d===c.Z_STREAM_END&&(k=c.Z_FINISH),k===c.Z_FINISH?(d=s.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===c.Z_OK):k!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(E.avail_out=0))},p.prototype.onData=function(u){this.chunks.push(u)},p.prototype.onEnd=function(u){u===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},i.Inflate=p,i.inflate=v,i.inflateRaw=function(u,y){return(y=y||{}).raw=!0,v(u,y)},i.ungzip=v},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,o,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(c){for(var w=Array.prototype.slice.call(arguments,1);w.length;){var g=w.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var h in g)g.hasOwnProperty(h)&&(c[h]=g[h])}}return c},i.shrinkBuf=function(c,w){return c.length===w?c:c.subarray?c.subarray(0,w):(c.length=w,c)};var l={arraySet:function(c,w,g,h,Q){if(w.subarray&&c.subarray)c.set(w.subarray(g,g+h),Q);else for(var p=0;p<h;p++)c[Q+p]=w[g+p]},flattenChunks:function(c){var w,g,h,Q,p,v;for(w=h=0,g=c.length;w<g;w++)h+=c[w].length;for(v=new Uint8Array(h),w=Q=0,g=c.length;w<g;w++)p=c[w],v.set(p,Q),Q+=p.length;return v}},a={arraySet:function(c,w,g,h,Q){for(var p=0;p<h;p++)c[Q+p]=w[g+p]},flattenChunks:function(c){return[].concat.apply([],c)}};i.setTyped=function(c){c?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,l)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(r,o,i){var s=r("./common"),l=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var c=new s.Buf8(256),w=0;w<256;w++)c[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;function g(h,Q){if(Q<65537&&(h.subarray&&a||!h.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(h,Q));for(var p="",v=0;v<Q;v++)p+=String.fromCharCode(h[v]);return p}c[254]=c[254]=1,i.string2buf=function(h){var Q,p,v,u,y,d=h.length,k=0;for(u=0;u<d;u++)(64512&(p=h.charCodeAt(u)))==55296&&u+1<d&&(64512&(v=h.charCodeAt(u+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),u++),k+=p<128?1:p<2048?2:p<65536?3:4;for(Q=new s.Buf8(k),u=y=0;y<k;u++)(64512&(p=h.charCodeAt(u)))==55296&&u+1<d&&(64512&(v=h.charCodeAt(u+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),u++),p<128?Q[y++]=p:(p<2048?Q[y++]=192|p>>>6:(p<65536?Q[y++]=224|p>>>12:(Q[y++]=240|p>>>18,Q[y++]=128|p>>>12&63),Q[y++]=128|p>>>6&63),Q[y++]=128|63&p);return Q},i.buf2binstring=function(h){return g(h,h.length)},i.binstring2buf=function(h){for(var Q=new s.Buf8(h.length),p=0,v=Q.length;p<v;p++)Q[p]=h.charCodeAt(p);return Q},i.buf2string=function(h,Q){var p,v,u,y,d=Q||h.length,k=new Array(2*d);for(p=v=0;p<d;)if((u=h[p++])<128)k[v++]=u;else if(4<(y=c[u]))k[v++]=65533,p+=y-1;else{for(u&=y===2?31:y===3?15:7;1<y&&p<d;)u=u<<6|63&h[p++],y--;1<y?k[v++]=65533:u<65536?k[v++]=u:(u-=65536,k[v++]=55296|u>>10&1023,k[v++]=56320|1023&u)}return g(k,v)},i.utf8border=function(h,Q){var p;for((Q=Q||h.length)>h.length&&(Q=h.length),p=Q-1;0<=p&&(192&h[p])==128;)p--;return p<0||p===0?Q:p+c[h[p]]>Q?p:Q}},{"./common":41}],43:[function(r,o,i){o.exports=function(s,l,a,c){for(var w=65535&s|0,g=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;g=g+(w=w+l[c++]|0)|0,--h;);w%=65521,g%=65521}return w|g<<16|0}},{}],44:[function(r,o,i){o.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,o,i){var s=(function(){for(var l,a=[],c=0;c<256;c++){l=c;for(var w=0;w<8;w++)l=1&l?3988292384^l>>>1:l>>>1;a[c]=l}return a})();o.exports=function(l,a,c,w){var g=s,h=w+c;l^=-1;for(var Q=w;Q<h;Q++)l=l>>>8^g[255&(l^a[Q])];return-1^l}},{}],46:[function(r,o,i){var s,l=r("../utils/common"),a=r("./trees"),c=r("./adler32"),w=r("./crc32"),g=r("./messages"),h=0,Q=4,p=0,v=-2,u=-1,y=4,d=2,k=8,_=9,A=286,M=30,T=19,E=2*A+1,P=15,D=3,j=258,V=j+D+1,C=42,S=113,m=1,R=2,q=3,Y=4;function le(f,W){return f.msg=g[W],W}function G(f){return(f<<1)-(4<f?9:0)}function F(f){for(var W=f.length;0<=--W;)f[W]=0}function I(f){var W=f.state,$=W.pending;$>f.avail_out&&($=f.avail_out),$!==0&&(l.arraySet(f.output,W.pending_buf,W.pending_out,$,f.next_out),f.next_out+=$,W.pending_out+=$,f.total_out+=$,f.avail_out-=$,W.pending-=$,W.pending===0&&(W.pending_out=0))}function z(f,W){a._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,W),f.block_start=f.strstart,I(f.strm)}function ne(f,W){f.pending_buf[f.pending++]=W}function B(f,W){f.pending_buf[f.pending++]=W>>>8&255,f.pending_buf[f.pending++]=255&W}function L(f,W){var $,N,b=f.max_chain_length,x=f.strstart,Z=f.prev_length,H=f.nice_match,O=f.strstart>f.w_size-V?f.strstart-(f.w_size-V):0,X=f.window,te=f.w_mask,K=f.prev,ae=f.strstart+j,he=X[x+Z-1],se=X[x+Z];f.prev_length>=f.good_match&&(b>>=2),H>f.lookahead&&(H=f.lookahead);do if(X[($=W)+Z]===se&&X[$+Z-1]===he&&X[$]===X[x]&&X[++$]===X[x+1]){x+=2,$++;do;while(X[++x]===X[++$]&&X[++x]===X[++$]&&X[++x]===X[++$]&&X[++x]===X[++$]&&X[++x]===X[++$]&&X[++x]===X[++$]&&X[++x]===X[++$]&&X[++x]===X[++$]&&x<ae);if(N=j-(ae-x),x=ae-j,Z<N){if(f.match_start=W,H<=(Z=N))break;he=X[x+Z-1],se=X[x+Z]}}while((W=K[W&te])>O&&--b!=0);return Z<=f.lookahead?Z:f.lookahead}function J(f){var W,$,N,b,x,Z,H,O,X,te,K=f.w_size;do{if(b=f.window_size-f.lookahead-f.strstart,f.strstart>=K+(K-V)){for(l.arraySet(f.window,f.window,K,K,0),f.match_start-=K,f.strstart-=K,f.block_start-=K,W=$=f.hash_size;N=f.head[--W],f.head[W]=K<=N?N-K:0,--$;);for(W=$=K;N=f.prev[--W],f.prev[W]=K<=N?N-K:0,--$;);b+=K}if(f.strm.avail_in===0)break;if(Z=f.strm,H=f.window,O=f.strstart+f.lookahead,X=b,te=void 0,te=Z.avail_in,X<te&&(te=X),$=te===0?0:(Z.avail_in-=te,l.arraySet(H,Z.input,Z.next_in,te,O),Z.state.wrap===1?Z.adler=c(Z.adler,H,te,O):Z.state.wrap===2&&(Z.adler=w(Z.adler,H,te,O)),Z.next_in+=te,Z.total_in+=te,te),f.lookahead+=$,f.lookahead+f.insert>=D)for(x=f.strstart-f.insert,f.ins_h=f.window[x],f.ins_h=(f.ins_h<<f.hash_shift^f.window[x+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[x+D-1])&f.hash_mask,f.prev[x&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=x,x++,f.insert--,!(f.lookahead+f.insert<D)););}while(f.lookahead<V&&f.strm.avail_in!==0)}function oe(f,W){for(var $,N;;){if(f.lookahead<V){if(J(f),f.lookahead<V&&W===h)return m;if(f.lookahead===0)break}if($=0,f.lookahead>=D&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,$=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),$!==0&&f.strstart-$<=f.w_size-V&&(f.match_length=L(f,$)),f.match_length>=D)if(N=a._tr_tally(f,f.strstart-f.match_start,f.match_length-D),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=D){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,$=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else N=a._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(N&&(z(f,!1),f.strm.avail_out===0))return m}return f.insert=f.strstart<D-1?f.strstart:D-1,W===Q?(z(f,!0),f.strm.avail_out===0?q:Y):f.last_lit&&(z(f,!1),f.strm.avail_out===0)?m:R}function ie(f,W){for(var $,N,b;;){if(f.lookahead<V){if(J(f),f.lookahead<V&&W===h)return m;if(f.lookahead===0)break}if($=0,f.lookahead>=D&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,$=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=D-1,$!==0&&f.prev_length<f.max_lazy_match&&f.strstart-$<=f.w_size-V&&(f.match_length=L(f,$),f.match_length<=5&&(f.strategy===1||f.match_length===D&&4096<f.strstart-f.match_start)&&(f.match_length=D-1)),f.prev_length>=D&&f.match_length<=f.prev_length){for(b=f.strstart+f.lookahead-D,N=a._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-D),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=b&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+D-1])&f.hash_mask,$=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=D-1,f.strstart++,N&&(z(f,!1),f.strm.avail_out===0))return m}else if(f.match_available){if((N=a._tr_tally(f,0,f.window[f.strstart-1]))&&z(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return m}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(N=a._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<D-1?f.strstart:D-1,W===Q?(z(f,!0),f.strm.avail_out===0?q:Y):f.last_lit&&(z(f,!1),f.strm.avail_out===0)?m:R}function U(f,W,$,N,b){this.good_length=f,this.max_lazy=W,this.nice_length=$,this.max_chain=N,this.func=b}function ee(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*E),this.dyn_dtree=new l.Buf16(2*(2*M+1)),this.bl_tree=new l.Buf16(2*(2*T+1)),F(this.dyn_ltree),F(this.dyn_dtree),F(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(P+1),this.heap=new l.Buf16(2*A+1),F(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*A+1),F(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function re(f){var W;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=d,(W=f.state).pending=0,W.pending_out=0,W.wrap<0&&(W.wrap=-W.wrap),W.status=W.wrap?C:S,f.adler=W.wrap===2?0:1,W.last_flush=h,a._tr_init(W),p):le(f,v)}function de(f){var W=re(f);return W===p&&(function($){$.window_size=2*$.w_size,F($.head),$.max_lazy_match=s[$.level].max_lazy,$.good_match=s[$.level].good_length,$.nice_match=s[$.level].nice_length,$.max_chain_length=s[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=D-1,$.match_available=0,$.ins_h=0})(f.state),W}function pe(f,W,$,N,b,x){if(!f)return v;var Z=1;if(W===u&&(W=6),N<0?(Z=0,N=-N):15<N&&(Z=2,N-=16),b<1||_<b||$!==k||N<8||15<N||W<0||9<W||x<0||y<x)return le(f,v);N===8&&(N=9);var H=new ee;return(f.state=H).strm=f,H.wrap=Z,H.gzhead=null,H.w_bits=N,H.w_size=1<<H.w_bits,H.w_mask=H.w_size-1,H.hash_bits=b+7,H.hash_size=1<<H.hash_bits,H.hash_mask=H.hash_size-1,H.hash_shift=~~((H.hash_bits+D-1)/D),H.window=new l.Buf8(2*H.w_size),H.head=new l.Buf16(H.hash_size),H.prev=new l.Buf16(H.w_size),H.lit_bufsize=1<<b+6,H.pending_buf_size=4*H.lit_bufsize,H.pending_buf=new l.Buf8(H.pending_buf_size),H.d_buf=1*H.lit_bufsize,H.l_buf=3*H.lit_bufsize,H.level=W,H.strategy=x,H.method=$,de(f)}s=[new U(0,0,0,0,function(f,W){var $=65535;for($>f.pending_buf_size-5&&($=f.pending_buf_size-5);;){if(f.lookahead<=1){if(J(f),f.lookahead===0&&W===h)return m;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var N=f.block_start+$;if((f.strstart===0||f.strstart>=N)&&(f.lookahead=f.strstart-N,f.strstart=N,z(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-V&&(z(f,!1),f.strm.avail_out===0))return m}return f.insert=0,W===Q?(z(f,!0),f.strm.avail_out===0?q:Y):(f.strstart>f.block_start&&(z(f,!1),f.strm.avail_out),m)}),new U(4,4,8,4,oe),new U(4,5,16,8,oe),new U(4,6,32,32,oe),new U(4,4,16,16,ie),new U(8,16,32,32,ie),new U(8,16,128,128,ie),new U(8,32,128,256,ie),new U(32,128,258,1024,ie),new U(32,258,258,4096,ie)],i.deflateInit=function(f,W){return pe(f,W,k,15,8,0)},i.deflateInit2=pe,i.deflateReset=de,i.deflateResetKeep=re,i.deflateSetHeader=function(f,W){return f&&f.state?f.state.wrap!==2?v:(f.state.gzhead=W,p):v},i.deflate=function(f,W){var $,N,b,x;if(!f||!f.state||5<W||W<0)return f?le(f,v):v;if(N=f.state,!f.output||!f.input&&f.avail_in!==0||N.status===666&&W!==Q)return le(f,f.avail_out===0?-5:v);if(N.strm=f,$=N.last_flush,N.last_flush=W,N.status===C)if(N.wrap===2)f.adler=0,ne(N,31),ne(N,139),ne(N,8),N.gzhead?(ne(N,(N.gzhead.text?1:0)+(N.gzhead.hcrc?2:0)+(N.gzhead.extra?4:0)+(N.gzhead.name?8:0)+(N.gzhead.comment?16:0)),ne(N,255&N.gzhead.time),ne(N,N.gzhead.time>>8&255),ne(N,N.gzhead.time>>16&255),ne(N,N.gzhead.time>>24&255),ne(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),ne(N,255&N.gzhead.os),N.gzhead.extra&&N.gzhead.extra.length&&(ne(N,255&N.gzhead.extra.length),ne(N,N.gzhead.extra.length>>8&255)),N.gzhead.hcrc&&(f.adler=w(f.adler,N.pending_buf,N.pending,0)),N.gzindex=0,N.status=69):(ne(N,0),ne(N,0),ne(N,0),ne(N,0),ne(N,0),ne(N,N.level===9?2:2<=N.strategy||N.level<2?4:0),ne(N,3),N.status=S);else{var Z=k+(N.w_bits-8<<4)<<8;Z|=(2<=N.strategy||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6,N.strstart!==0&&(Z|=32),Z+=31-Z%31,N.status=S,B(N,Z),N.strstart!==0&&(B(N,f.adler>>>16),B(N,65535&f.adler)),f.adler=1}if(N.status===69)if(N.gzhead.extra){for(b=N.pending;N.gzindex<(65535&N.gzhead.extra.length)&&(N.pending!==N.pending_buf_size||(N.gzhead.hcrc&&N.pending>b&&(f.adler=w(f.adler,N.pending_buf,N.pending-b,b)),I(f),b=N.pending,N.pending!==N.pending_buf_size));)ne(N,255&N.gzhead.extra[N.gzindex]),N.gzindex++;N.gzhead.hcrc&&N.pending>b&&(f.adler=w(f.adler,N.pending_buf,N.pending-b,b)),N.gzindex===N.gzhead.extra.length&&(N.gzindex=0,N.status=73)}else N.status=73;if(N.status===73)if(N.gzhead.name){b=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>b&&(f.adler=w(f.adler,N.pending_buf,N.pending-b,b)),I(f),b=N.pending,N.pending===N.pending_buf_size)){x=1;break}x=N.gzindex<N.gzhead.name.length?255&N.gzhead.name.charCodeAt(N.gzindex++):0,ne(N,x)}while(x!==0);N.gzhead.hcrc&&N.pending>b&&(f.adler=w(f.adler,N.pending_buf,N.pending-b,b)),x===0&&(N.gzindex=0,N.status=91)}else N.status=91;if(N.status===91)if(N.gzhead.comment){b=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>b&&(f.adler=w(f.adler,N.pending_buf,N.pending-b,b)),I(f),b=N.pending,N.pending===N.pending_buf_size)){x=1;break}x=N.gzindex<N.gzhead.comment.length?255&N.gzhead.comment.charCodeAt(N.gzindex++):0,ne(N,x)}while(x!==0);N.gzhead.hcrc&&N.pending>b&&(f.adler=w(f.adler,N.pending_buf,N.pending-b,b)),x===0&&(N.status=103)}else N.status=103;if(N.status===103&&(N.gzhead.hcrc?(N.pending+2>N.pending_buf_size&&I(f),N.pending+2<=N.pending_buf_size&&(ne(N,255&f.adler),ne(N,f.adler>>8&255),f.adler=0,N.status=S)):N.status=S),N.pending!==0){if(I(f),f.avail_out===0)return N.last_flush=-1,p}else if(f.avail_in===0&&G(W)<=G($)&&W!==Q)return le(f,-5);if(N.status===666&&f.avail_in!==0)return le(f,-5);if(f.avail_in!==0||N.lookahead!==0||W!==h&&N.status!==666){var H=N.strategy===2?(function(O,X){for(var te;;){if(O.lookahead===0&&(J(O),O.lookahead===0)){if(X===h)return m;break}if(O.match_length=0,te=a._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++,te&&(z(O,!1),O.strm.avail_out===0))return m}return O.insert=0,X===Q?(z(O,!0),O.strm.avail_out===0?q:Y):O.last_lit&&(z(O,!1),O.strm.avail_out===0)?m:R})(N,W):N.strategy===3?(function(O,X){for(var te,K,ae,he,se=O.window;;){if(O.lookahead<=j){if(J(O),O.lookahead<=j&&X===h)return m;if(O.lookahead===0)break}if(O.match_length=0,O.lookahead>=D&&0<O.strstart&&(K=se[ae=O.strstart-1])===se[++ae]&&K===se[++ae]&&K===se[++ae]){he=O.strstart+j;do;while(K===se[++ae]&&K===se[++ae]&&K===se[++ae]&&K===se[++ae]&&K===se[++ae]&&K===se[++ae]&&K===se[++ae]&&K===se[++ae]&&ae<he);O.match_length=j-(he-ae),O.match_length>O.lookahead&&(O.match_length=O.lookahead)}if(O.match_length>=D?(te=a._tr_tally(O,1,O.match_length-D),O.lookahead-=O.match_length,O.strstart+=O.match_length,O.match_length=0):(te=a._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++),te&&(z(O,!1),O.strm.avail_out===0))return m}return O.insert=0,X===Q?(z(O,!0),O.strm.avail_out===0?q:Y):O.last_lit&&(z(O,!1),O.strm.avail_out===0)?m:R})(N,W):s[N.level].func(N,W);if(H!==q&&H!==Y||(N.status=666),H===m||H===q)return f.avail_out===0&&(N.last_flush=-1),p;if(H===R&&(W===1?a._tr_align(N):W!==5&&(a._tr_stored_block(N,0,0,!1),W===3&&(F(N.head),N.lookahead===0&&(N.strstart=0,N.block_start=0,N.insert=0))),I(f),f.avail_out===0))return N.last_flush=-1,p}return W!==Q?p:N.wrap<=0?1:(N.wrap===2?(ne(N,255&f.adler),ne(N,f.adler>>8&255),ne(N,f.adler>>16&255),ne(N,f.adler>>24&255),ne(N,255&f.total_in),ne(N,f.total_in>>8&255),ne(N,f.total_in>>16&255),ne(N,f.total_in>>24&255)):(B(N,f.adler>>>16),B(N,65535&f.adler)),I(f),0<N.wrap&&(N.wrap=-N.wrap),N.pending!==0?p:1)},i.deflateEnd=function(f){var W;return f&&f.state?(W=f.state.status)!==C&&W!==69&&W!==73&&W!==91&&W!==103&&W!==S&&W!==666?le(f,v):(f.state=null,W===S?le(f,-3):p):v},i.deflateSetDictionary=function(f,W){var $,N,b,x,Z,H,O,X,te=W.length;if(!f||!f.state||(x=($=f.state).wrap)===2||x===1&&$.status!==C||$.lookahead)return v;for(x===1&&(f.adler=c(f.adler,W,te,0)),$.wrap=0,te>=$.w_size&&(x===0&&(F($.head),$.strstart=0,$.block_start=0,$.insert=0),X=new l.Buf8($.w_size),l.arraySet(X,W,te-$.w_size,$.w_size,0),W=X,te=$.w_size),Z=f.avail_in,H=f.next_in,O=f.input,f.avail_in=te,f.next_in=0,f.input=W,J($);$.lookahead>=D;){for(N=$.strstart,b=$.lookahead-(D-1);$.ins_h=($.ins_h<<$.hash_shift^$.window[N+D-1])&$.hash_mask,$.prev[N&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=N,N++,--b;);$.strstart=N,$.lookahead=D-1,J($)}return $.strstart+=$.lookahead,$.block_start=$.strstart,$.insert=$.lookahead,$.lookahead=0,$.match_length=$.prev_length=D-1,$.match_available=0,f.next_in=H,f.input=O,f.avail_in=Z,$.wrap=x,p},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,o,i){o.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,o,i){o.exports=function(s,l){var a,c,w,g,h,Q,p,v,u,y,d,k,_,A,M,T,E,P,D,j,V,C,S,m,R;a=s.state,c=s.next_in,m=s.input,w=c+(s.avail_in-5),g=s.next_out,R=s.output,h=g-(l-s.avail_out),Q=g+(s.avail_out-257),p=a.dmax,v=a.wsize,u=a.whave,y=a.wnext,d=a.window,k=a.hold,_=a.bits,A=a.lencode,M=a.distcode,T=(1<<a.lenbits)-1,E=(1<<a.distbits)-1;e:do{_<15&&(k+=m[c++]<<_,_+=8,k+=m[c++]<<_,_+=8),P=A[k&T];t:for(;;){if(k>>>=D=P>>>24,_-=D,(D=P>>>16&255)===0)R[g++]=65535&P;else{if(!(16&D)){if((64&D)==0){P=A[(65535&P)+(k&(1<<D)-1)];continue t}if(32&D){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}j=65535&P,(D&=15)&&(_<D&&(k+=m[c++]<<_,_+=8),j+=k&(1<<D)-1,k>>>=D,_-=D),_<15&&(k+=m[c++]<<_,_+=8,k+=m[c++]<<_,_+=8),P=M[k&E];n:for(;;){if(k>>>=D=P>>>24,_-=D,!(16&(D=P>>>16&255))){if((64&D)==0){P=M[(65535&P)+(k&(1<<D)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(V=65535&P,_<(D&=15)&&(k+=m[c++]<<_,(_+=8)<D&&(k+=m[c++]<<_,_+=8)),p<(V+=k&(1<<D)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(k>>>=D,_-=D,(D=g-h)<V){if(u<(D=V-D)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(S=d,(C=0)===y){if(C+=v-D,D<j){for(j-=D;R[g++]=d[C++],--D;);C=g-V,S=R}}else if(y<D){if(C+=v+y-D,(D-=y)<j){for(j-=D;R[g++]=d[C++],--D;);if(C=0,y<j){for(j-=D=y;R[g++]=d[C++],--D;);C=g-V,S=R}}}else if(C+=y-D,D<j){for(j-=D;R[g++]=d[C++],--D;);C=g-V,S=R}for(;2<j;)R[g++]=S[C++],R[g++]=S[C++],R[g++]=S[C++],j-=3;j&&(R[g++]=S[C++],1<j&&(R[g++]=S[C++]))}else{for(C=g-V;R[g++]=R[C++],R[g++]=R[C++],R[g++]=R[C++],2<(j-=3););j&&(R[g++]=R[C++],1<j&&(R[g++]=R[C++]))}break}}break}}while(c<w&&g<Q);c-=j=_>>3,k&=(1<<(_-=j<<3))-1,s.next_in=c,s.next_out=g,s.avail_in=c<w?w-c+5:5-(c-w),s.avail_out=g<Q?Q-g+257:257-(g-Q),a.hold=k,a.bits=_}},{}],49:[function(r,o,i){var s=r("../utils/common"),l=r("./adler32"),a=r("./crc32"),c=r("./inffast"),w=r("./inftrees"),g=1,h=2,Q=0,p=-2,v=1,u=852,y=592;function d(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function k(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(C){var S;return C&&C.state?(S=C.state,C.total_in=C.total_out=S.total=0,C.msg="",S.wrap&&(C.adler=1&S.wrap),S.mode=v,S.last=0,S.havedict=0,S.dmax=32768,S.head=null,S.hold=0,S.bits=0,S.lencode=S.lendyn=new s.Buf32(u),S.distcode=S.distdyn=new s.Buf32(y),S.sane=1,S.back=-1,Q):p}function A(C){var S;return C&&C.state?((S=C.state).wsize=0,S.whave=0,S.wnext=0,_(C)):p}function M(C,S){var m,R;return C&&C.state?(R=C.state,S<0?(m=0,S=-S):(m=1+(S>>4),S<48&&(S&=15)),S&&(S<8||15<S)?p:(R.window!==null&&R.wbits!==S&&(R.window=null),R.wrap=m,R.wbits=S,A(C))):p}function T(C,S){var m,R;return C?(R=new k,(C.state=R).window=null,(m=M(C,S))!==Q&&(C.state=null),m):p}var E,P,D=!0;function j(C){if(D){var S;for(E=new s.Buf32(512),P=new s.Buf32(32),S=0;S<144;)C.lens[S++]=8;for(;S<256;)C.lens[S++]=9;for(;S<280;)C.lens[S++]=7;for(;S<288;)C.lens[S++]=8;for(w(g,C.lens,0,288,E,0,C.work,{bits:9}),S=0;S<32;)C.lens[S++]=5;w(h,C.lens,0,32,P,0,C.work,{bits:5}),D=!1}C.lencode=E,C.lenbits=9,C.distcode=P,C.distbits=5}function V(C,S,m,R){var q,Y=C.state;return Y.window===null&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new s.Buf8(Y.wsize)),R>=Y.wsize?(s.arraySet(Y.window,S,m-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(R<(q=Y.wsize-Y.wnext)&&(q=R),s.arraySet(Y.window,S,m-R,q,Y.wnext),(R-=q)?(s.arraySet(Y.window,S,m-R,R,0),Y.wnext=R,Y.whave=Y.wsize):(Y.wnext+=q,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=q))),0}i.inflateReset=A,i.inflateReset2=M,i.inflateResetKeep=_,i.inflateInit=function(C){return T(C,15)},i.inflateInit2=T,i.inflate=function(C,S){var m,R,q,Y,le,G,F,I,z,ne,B,L,J,oe,ie,U,ee,re,de,pe,f,W,$,N,b=0,x=new s.Buf8(4),Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return p;(m=C.state).mode===12&&(m.mode=13),le=C.next_out,q=C.output,F=C.avail_out,Y=C.next_in,R=C.input,G=C.avail_in,I=m.hold,z=m.bits,ne=G,B=F,W=Q;e:for(;;)switch(m.mode){case v:if(m.wrap===0){m.mode=13;break}for(;z<16;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(2&m.wrap&&I===35615){x[m.check=0]=255&I,x[1]=I>>>8&255,m.check=a(m.check,x,2,0),z=I=0,m.mode=2;break}if(m.flags=0,m.head&&(m.head.done=!1),!(1&m.wrap)||(((255&I)<<8)+(I>>8))%31){C.msg="incorrect header check",m.mode=30;break}if((15&I)!=8){C.msg="unknown compression method",m.mode=30;break}if(z-=4,f=8+(15&(I>>>=4)),m.wbits===0)m.wbits=f;else if(f>m.wbits){C.msg="invalid window size",m.mode=30;break}m.dmax=1<<f,C.adler=m.check=1,m.mode=512&I?10:12,z=I=0;break;case 2:for(;z<16;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(m.flags=I,(255&m.flags)!=8){C.msg="unknown compression method",m.mode=30;break}if(57344&m.flags){C.msg="unknown header flags set",m.mode=30;break}m.head&&(m.head.text=I>>8&1),512&m.flags&&(x[0]=255&I,x[1]=I>>>8&255,m.check=a(m.check,x,2,0)),z=I=0,m.mode=3;case 3:for(;z<32;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}m.head&&(m.head.time=I),512&m.flags&&(x[0]=255&I,x[1]=I>>>8&255,x[2]=I>>>16&255,x[3]=I>>>24&255,m.check=a(m.check,x,4,0)),z=I=0,m.mode=4;case 4:for(;z<16;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}m.head&&(m.head.xflags=255&I,m.head.os=I>>8),512&m.flags&&(x[0]=255&I,x[1]=I>>>8&255,m.check=a(m.check,x,2,0)),z=I=0,m.mode=5;case 5:if(1024&m.flags){for(;z<16;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}m.length=I,m.head&&(m.head.extra_len=I),512&m.flags&&(x[0]=255&I,x[1]=I>>>8&255,m.check=a(m.check,x,2,0)),z=I=0}else m.head&&(m.head.extra=null);m.mode=6;case 6:if(1024&m.flags&&(G<(L=m.length)&&(L=G),L&&(m.head&&(f=m.head.extra_len-m.length,m.head.extra||(m.head.extra=new Array(m.head.extra_len)),s.arraySet(m.head.extra,R,Y,L,f)),512&m.flags&&(m.check=a(m.check,R,L,Y)),G-=L,Y+=L,m.length-=L),m.length))break e;m.length=0,m.mode=7;case 7:if(2048&m.flags){if(G===0)break e;for(L=0;f=R[Y+L++],m.head&&f&&m.length<65536&&(m.head.name+=String.fromCharCode(f)),f&&L<G;);if(512&m.flags&&(m.check=a(m.check,R,L,Y)),G-=L,Y+=L,f)break e}else m.head&&(m.head.name=null);m.length=0,m.mode=8;case 8:if(4096&m.flags){if(G===0)break e;for(L=0;f=R[Y+L++],m.head&&f&&m.length<65536&&(m.head.comment+=String.fromCharCode(f)),f&&L<G;);if(512&m.flags&&(m.check=a(m.check,R,L,Y)),G-=L,Y+=L,f)break e}else m.head&&(m.head.comment=null);m.mode=9;case 9:if(512&m.flags){for(;z<16;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(I!==(65535&m.check)){C.msg="header crc mismatch",m.mode=30;break}z=I=0}m.head&&(m.head.hcrc=m.flags>>9&1,m.head.done=!0),C.adler=m.check=0,m.mode=12;break;case 10:for(;z<32;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}C.adler=m.check=d(I),z=I=0,m.mode=11;case 11:if(m.havedict===0)return C.next_out=le,C.avail_out=F,C.next_in=Y,C.avail_in=G,m.hold=I,m.bits=z,2;C.adler=m.check=1,m.mode=12;case 12:if(S===5||S===6)break e;case 13:if(m.last){I>>>=7&z,z-=7&z,m.mode=27;break}for(;z<3;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}switch(m.last=1&I,z-=1,3&(I>>>=1)){case 0:m.mode=14;break;case 1:if(j(m),m.mode=20,S!==6)break;I>>>=2,z-=2;break e;case 2:m.mode=17;break;case 3:C.msg="invalid block type",m.mode=30}I>>>=2,z-=2;break;case 14:for(I>>>=7&z,z-=7&z;z<32;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if((65535&I)!=(I>>>16^65535)){C.msg="invalid stored block lengths",m.mode=30;break}if(m.length=65535&I,z=I=0,m.mode=15,S===6)break e;case 15:m.mode=16;case 16:if(L=m.length){if(G<L&&(L=G),F<L&&(L=F),L===0)break e;s.arraySet(q,R,Y,L,le),G-=L,Y+=L,F-=L,le+=L,m.length-=L;break}m.mode=12;break;case 17:for(;z<14;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(m.nlen=257+(31&I),I>>>=5,z-=5,m.ndist=1+(31&I),I>>>=5,z-=5,m.ncode=4+(15&I),I>>>=4,z-=4,286<m.nlen||30<m.ndist){C.msg="too many length or distance symbols",m.mode=30;break}m.have=0,m.mode=18;case 18:for(;m.have<m.ncode;){for(;z<3;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}m.lens[Z[m.have++]]=7&I,I>>>=3,z-=3}for(;m.have<19;)m.lens[Z[m.have++]]=0;if(m.lencode=m.lendyn,m.lenbits=7,$={bits:m.lenbits},W=w(0,m.lens,0,19,m.lencode,0,m.work,$),m.lenbits=$.bits,W){C.msg="invalid code lengths set",m.mode=30;break}m.have=0,m.mode=19;case 19:for(;m.have<m.nlen+m.ndist;){for(;U=(b=m.lencode[I&(1<<m.lenbits)-1])>>>16&255,ee=65535&b,!((ie=b>>>24)<=z);){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(ee<16)I>>>=ie,z-=ie,m.lens[m.have++]=ee;else{if(ee===16){for(N=ie+2;z<N;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(I>>>=ie,z-=ie,m.have===0){C.msg="invalid bit length repeat",m.mode=30;break}f=m.lens[m.have-1],L=3+(3&I),I>>>=2,z-=2}else if(ee===17){for(N=ie+3;z<N;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}z-=ie,f=0,L=3+(7&(I>>>=ie)),I>>>=3,z-=3}else{for(N=ie+7;z<N;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}z-=ie,f=0,L=11+(127&(I>>>=ie)),I>>>=7,z-=7}if(m.have+L>m.nlen+m.ndist){C.msg="invalid bit length repeat",m.mode=30;break}for(;L--;)m.lens[m.have++]=f}}if(m.mode===30)break;if(m.lens[256]===0){C.msg="invalid code -- missing end-of-block",m.mode=30;break}if(m.lenbits=9,$={bits:m.lenbits},W=w(g,m.lens,0,m.nlen,m.lencode,0,m.work,$),m.lenbits=$.bits,W){C.msg="invalid literal/lengths set",m.mode=30;break}if(m.distbits=6,m.distcode=m.distdyn,$={bits:m.distbits},W=w(h,m.lens,m.nlen,m.ndist,m.distcode,0,m.work,$),m.distbits=$.bits,W){C.msg="invalid distances set",m.mode=30;break}if(m.mode=20,S===6)break e;case 20:m.mode=21;case 21:if(6<=G&&258<=F){C.next_out=le,C.avail_out=F,C.next_in=Y,C.avail_in=G,m.hold=I,m.bits=z,c(C,B),le=C.next_out,q=C.output,F=C.avail_out,Y=C.next_in,R=C.input,G=C.avail_in,I=m.hold,z=m.bits,m.mode===12&&(m.back=-1);break}for(m.back=0;U=(b=m.lencode[I&(1<<m.lenbits)-1])>>>16&255,ee=65535&b,!((ie=b>>>24)<=z);){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(U&&(240&U)==0){for(re=ie,de=U,pe=ee;U=(b=m.lencode[pe+((I&(1<<re+de)-1)>>re)])>>>16&255,ee=65535&b,!(re+(ie=b>>>24)<=z);){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}I>>>=re,z-=re,m.back+=re}if(I>>>=ie,z-=ie,m.back+=ie,m.length=ee,U===0){m.mode=26;break}if(32&U){m.back=-1,m.mode=12;break}if(64&U){C.msg="invalid literal/length code",m.mode=30;break}m.extra=15&U,m.mode=22;case 22:if(m.extra){for(N=m.extra;z<N;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}m.length+=I&(1<<m.extra)-1,I>>>=m.extra,z-=m.extra,m.back+=m.extra}m.was=m.length,m.mode=23;case 23:for(;U=(b=m.distcode[I&(1<<m.distbits)-1])>>>16&255,ee=65535&b,!((ie=b>>>24)<=z);){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if((240&U)==0){for(re=ie,de=U,pe=ee;U=(b=m.distcode[pe+((I&(1<<re+de)-1)>>re)])>>>16&255,ee=65535&b,!(re+(ie=b>>>24)<=z);){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}I>>>=re,z-=re,m.back+=re}if(I>>>=ie,z-=ie,m.back+=ie,64&U){C.msg="invalid distance code",m.mode=30;break}m.offset=ee,m.extra=15&U,m.mode=24;case 24:if(m.extra){for(N=m.extra;z<N;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}m.offset+=I&(1<<m.extra)-1,I>>>=m.extra,z-=m.extra,m.back+=m.extra}if(m.offset>m.dmax){C.msg="invalid distance too far back",m.mode=30;break}m.mode=25;case 25:if(F===0)break e;if(L=B-F,m.offset>L){if((L=m.offset-L)>m.whave&&m.sane){C.msg="invalid distance too far back",m.mode=30;break}J=L>m.wnext?(L-=m.wnext,m.wsize-L):m.wnext-L,L>m.length&&(L=m.length),oe=m.window}else oe=q,J=le-m.offset,L=m.length;for(F<L&&(L=F),F-=L,m.length-=L;q[le++]=oe[J++],--L;);m.length===0&&(m.mode=21);break;case 26:if(F===0)break e;q[le++]=m.length,F--,m.mode=21;break;case 27:if(m.wrap){for(;z<32;){if(G===0)break e;G--,I|=R[Y++]<<z,z+=8}if(B-=F,C.total_out+=B,m.total+=B,B&&(C.adler=m.check=m.flags?a(m.check,q,B,le-B):l(m.check,q,B,le-B)),B=F,(m.flags?I:d(I))!==m.check){C.msg="incorrect data check",m.mode=30;break}z=I=0}m.mode=28;case 28:if(m.wrap&&m.flags){for(;z<32;){if(G===0)break e;G--,I+=R[Y++]<<z,z+=8}if(I!==(4294967295&m.total)){C.msg="incorrect length check",m.mode=30;break}z=I=0}m.mode=29;case 29:W=1;break e;case 30:W=-3;break e;case 31:return-4;case 32:default:return p}return C.next_out=le,C.avail_out=F,C.next_in=Y,C.avail_in=G,m.hold=I,m.bits=z,(m.wsize||B!==C.avail_out&&m.mode<30&&(m.mode<27||S!==4))&&V(C,C.output,C.next_out,B-C.avail_out)?(m.mode=31,-4):(ne-=C.avail_in,B-=C.avail_out,C.total_in+=ne,C.total_out+=B,m.total+=B,m.wrap&&B&&(C.adler=m.check=m.flags?a(m.check,q,B,C.next_out-B):l(m.check,q,B,C.next_out-B)),C.data_type=m.bits+(m.last?64:0)+(m.mode===12?128:0)+(m.mode===20||m.mode===15?256:0),(ne==0&&B===0||S===4)&&W===Q&&(W=-5),W)},i.inflateEnd=function(C){if(!C||!C.state)return p;var S=C.state;return S.window&&(S.window=null),C.state=null,Q},i.inflateGetHeader=function(C,S){var m;return C&&C.state?(2&(m=C.state).wrap)==0?p:((m.head=S).done=!1,Q):p},i.inflateSetDictionary=function(C,S){var m,R=S.length;return C&&C.state?(m=C.state).wrap!==0&&m.mode!==11?p:m.mode===11&&l(1,S,R,0)!==m.check?-3:V(C,S,R,R)?(m.mode=31,-4):(m.havedict=1,Q):p},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,o,i){var s=r("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],w=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];o.exports=function(g,h,Q,p,v,u,y,d){var k,_,A,M,T,E,P,D,j,V=d.bits,C=0,S=0,m=0,R=0,q=0,Y=0,le=0,G=0,F=0,I=0,z=null,ne=0,B=new s.Buf16(16),L=new s.Buf16(16),J=null,oe=0;for(C=0;C<=15;C++)B[C]=0;for(S=0;S<p;S++)B[h[Q+S]]++;for(q=V,R=15;1<=R&&B[R]===0;R--);if(R<q&&(q=R),R===0)return v[u++]=20971520,v[u++]=20971520,d.bits=1,0;for(m=1;m<R&&B[m]===0;m++);for(q<m&&(q=m),C=G=1;C<=15;C++)if(G<<=1,(G-=B[C])<0)return-1;if(0<G&&(g===0||R!==1))return-1;for(L[1]=0,C=1;C<15;C++)L[C+1]=L[C]+B[C];for(S=0;S<p;S++)h[Q+S]!==0&&(y[L[h[Q+S]]++]=S);if(E=g===0?(z=J=y,19):g===1?(z=l,ne-=257,J=a,oe-=257,256):(z=c,J=w,-1),C=m,T=u,le=S=I=0,A=-1,M=(F=1<<(Y=q))-1,g===1&&852<F||g===2&&592<F)return 1;for(;;){for(P=C-le,j=y[S]<E?(D=0,y[S]):y[S]>E?(D=J[oe+y[S]],z[ne+y[S]]):(D=96,0),k=1<<C-le,m=_=1<<Y;v[T+(I>>le)+(_-=k)]=P<<24|D<<16|j|0,_!==0;);for(k=1<<C-1;I&k;)k>>=1;if(k!==0?(I&=k-1,I+=k):I=0,S++,--B[C]==0){if(C===R)break;C=h[Q+y[S]]}if(q<C&&(I&M)!==A){for(le===0&&(le=q),T+=m,G=1<<(Y=C-le);Y+le<R&&!((G-=B[Y+le])<=0);)Y++,G<<=1;if(F+=1<<Y,g===1&&852<F||g===2&&592<F)return 1;v[A=I&M]=q<<24|Y<<16|T-u|0}}return I!==0&&(v[T+I]=C-le<<24|64<<16|0),d.bits=q,0}},{"../utils/common":41}],51:[function(r,o,i){o.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,o,i){var s=r("../utils/common"),l=0,a=1;function c(b){for(var x=b.length;0<=--x;)b[x]=0}var w=0,g=29,h=256,Q=h+1+g,p=30,v=19,u=2*Q+1,y=15,d=16,k=7,_=256,A=16,M=17,T=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(2*(Q+2));c(V);var C=new Array(2*p);c(C);var S=new Array(512);c(S);var m=new Array(256);c(m);var R=new Array(g);c(R);var q,Y,le,G=new Array(p);function F(b,x,Z,H,O){this.static_tree=b,this.extra_bits=x,this.extra_base=Z,this.elems=H,this.max_length=O,this.has_stree=b&&b.length}function I(b,x){this.dyn_tree=b,this.max_code=0,this.stat_desc=x}function z(b){return b<256?S[b]:S[256+(b>>>7)]}function ne(b,x){b.pending_buf[b.pending++]=255&x,b.pending_buf[b.pending++]=x>>>8&255}function B(b,x,Z){b.bi_valid>d-Z?(b.bi_buf|=x<<b.bi_valid&65535,ne(b,b.bi_buf),b.bi_buf=x>>d-b.bi_valid,b.bi_valid+=Z-d):(b.bi_buf|=x<<b.bi_valid&65535,b.bi_valid+=Z)}function L(b,x,Z){B(b,Z[2*x],Z[2*x+1])}function J(b,x){for(var Z=0;Z|=1&b,b>>>=1,Z<<=1,0<--x;);return Z>>>1}function oe(b,x,Z){var H,O,X=new Array(y+1),te=0;for(H=1;H<=y;H++)X[H]=te=te+Z[H-1]<<1;for(O=0;O<=x;O++){var K=b[2*O+1];K!==0&&(b[2*O]=J(X[K]++,K))}}function ie(b){var x;for(x=0;x<Q;x++)b.dyn_ltree[2*x]=0;for(x=0;x<p;x++)b.dyn_dtree[2*x]=0;for(x=0;x<v;x++)b.bl_tree[2*x]=0;b.dyn_ltree[2*_]=1,b.opt_len=b.static_len=0,b.last_lit=b.matches=0}function U(b){8<b.bi_valid?ne(b,b.bi_buf):0<b.bi_valid&&(b.pending_buf[b.pending++]=b.bi_buf),b.bi_buf=0,b.bi_valid=0}function ee(b,x,Z,H){var O=2*x,X=2*Z;return b[O]<b[X]||b[O]===b[X]&&H[x]<=H[Z]}function re(b,x,Z){for(var H=b.heap[Z],O=Z<<1;O<=b.heap_len&&(O<b.heap_len&&ee(x,b.heap[O+1],b.heap[O],b.depth)&&O++,!ee(x,H,b.heap[O],b.depth));)b.heap[Z]=b.heap[O],Z=O,O<<=1;b.heap[Z]=H}function de(b,x,Z){var H,O,X,te,K=0;if(b.last_lit!==0)for(;H=b.pending_buf[b.d_buf+2*K]<<8|b.pending_buf[b.d_buf+2*K+1],O=b.pending_buf[b.l_buf+K],K++,H===0?L(b,O,x):(L(b,(X=m[O])+h+1,x),(te=E[X])!==0&&B(b,O-=R[X],te),L(b,X=z(--H),Z),(te=P[X])!==0&&B(b,H-=G[X],te)),K<b.last_lit;);L(b,_,x)}function pe(b,x){var Z,H,O,X=x.dyn_tree,te=x.stat_desc.static_tree,K=x.stat_desc.has_stree,ae=x.stat_desc.elems,he=-1;for(b.heap_len=0,b.heap_max=u,Z=0;Z<ae;Z++)X[2*Z]!==0?(b.heap[++b.heap_len]=he=Z,b.depth[Z]=0):X[2*Z+1]=0;for(;b.heap_len<2;)X[2*(O=b.heap[++b.heap_len]=he<2?++he:0)]=1,b.depth[O]=0,b.opt_len--,K&&(b.static_len-=te[2*O+1]);for(x.max_code=he,Z=b.heap_len>>1;1<=Z;Z--)re(b,X,Z);for(O=ae;Z=b.heap[1],b.heap[1]=b.heap[b.heap_len--],re(b,X,1),H=b.heap[1],b.heap[--b.heap_max]=Z,b.heap[--b.heap_max]=H,X[2*O]=X[2*Z]+X[2*H],b.depth[O]=(b.depth[Z]>=b.depth[H]?b.depth[Z]:b.depth[H])+1,X[2*Z+1]=X[2*H+1]=O,b.heap[1]=O++,re(b,X,1),2<=b.heap_len;);b.heap[--b.heap_max]=b.heap[1],(function(se,ke){var Oe,_e,Fe,me,Ze,st,Ae=ke.dyn_tree,Rt=ke.max_code,ln=ke.stat_desc.static_tree,an=ke.stat_desc.has_stree,sn=ke.stat_desc.extra_bits,Vt=ke.stat_desc.extra_base,Pe=ke.stat_desc.max_length,Ye=0;for(me=0;me<=y;me++)se.bl_count[me]=0;for(Ae[2*se.heap[se.heap_max]+1]=0,Oe=se.heap_max+1;Oe<u;Oe++)Pe<(me=Ae[2*Ae[2*(_e=se.heap[Oe])+1]+1]+1)&&(me=Pe,Ye++),Ae[2*_e+1]=me,Rt<_e||(se.bl_count[me]++,Ze=0,Vt<=_e&&(Ze=sn[_e-Vt]),st=Ae[2*_e],se.opt_len+=st*(me+Ze),an&&(se.static_len+=st*(ln[2*_e+1]+Ze)));if(Ye!==0){do{for(me=Pe-1;se.bl_count[me]===0;)me--;se.bl_count[me]--,se.bl_count[me+1]+=2,se.bl_count[Pe]--,Ye-=2}while(0<Ye);for(me=Pe;me!==0;me--)for(_e=se.bl_count[me];_e!==0;)Rt<(Fe=se.heap[--Oe])||(Ae[2*Fe+1]!==me&&(se.opt_len+=(me-Ae[2*Fe+1])*Ae[2*Fe],Ae[2*Fe+1]=me),_e--)}})(b,x),oe(X,he,b.bl_count)}function f(b,x,Z){var H,O,X=-1,te=x[1],K=0,ae=7,he=4;for(te===0&&(ae=138,he=3),x[2*(Z+1)+1]=65535,H=0;H<=Z;H++)O=te,te=x[2*(H+1)+1],++K<ae&&O===te||(K<he?b.bl_tree[2*O]+=K:O!==0?(O!==X&&b.bl_tree[2*O]++,b.bl_tree[2*A]++):K<=10?b.bl_tree[2*M]++:b.bl_tree[2*T]++,X=O,he=(K=0)===te?(ae=138,3):O===te?(ae=6,3):(ae=7,4))}function W(b,x,Z){var H,O,X=-1,te=x[1],K=0,ae=7,he=4;for(te===0&&(ae=138,he=3),H=0;H<=Z;H++)if(O=te,te=x[2*(H+1)+1],!(++K<ae&&O===te)){if(K<he)for(;L(b,O,b.bl_tree),--K!=0;);else O!==0?(O!==X&&(L(b,O,b.bl_tree),K--),L(b,A,b.bl_tree),B(b,K-3,2)):K<=10?(L(b,M,b.bl_tree),B(b,K-3,3)):(L(b,T,b.bl_tree),B(b,K-11,7));X=O,he=(K=0)===te?(ae=138,3):O===te?(ae=6,3):(ae=7,4)}}c(G);var $=!1;function N(b,x,Z,H){B(b,(w<<1)+(H?1:0),3),(function(O,X,te,K){U(O),ne(O,te),ne(O,~te),s.arraySet(O.pending_buf,O.window,X,te,O.pending),O.pending+=te})(b,x,Z)}i._tr_init=function(b){$||((function(){var x,Z,H,O,X,te=new Array(y+1);for(O=H=0;O<g-1;O++)for(R[O]=H,x=0;x<1<<E[O];x++)m[H++]=O;for(m[H-1]=O,O=X=0;O<16;O++)for(G[O]=X,x=0;x<1<<P[O];x++)S[X++]=O;for(X>>=7;O<p;O++)for(G[O]=X<<7,x=0;x<1<<P[O]-7;x++)S[256+X++]=O;for(Z=0;Z<=y;Z++)te[Z]=0;for(x=0;x<=143;)V[2*x+1]=8,x++,te[8]++;for(;x<=255;)V[2*x+1]=9,x++,te[9]++;for(;x<=279;)V[2*x+1]=7,x++,te[7]++;for(;x<=287;)V[2*x+1]=8,x++,te[8]++;for(oe(V,Q+1,te),x=0;x<p;x++)C[2*x+1]=5,C[2*x]=J(x,5);q=new F(V,E,h+1,Q,y),Y=new F(C,P,0,p,y),le=new F(new Array(0),D,0,v,k)})(),$=!0),b.l_desc=new I(b.dyn_ltree,q),b.d_desc=new I(b.dyn_dtree,Y),b.bl_desc=new I(b.bl_tree,le),b.bi_buf=0,b.bi_valid=0,ie(b)},i._tr_stored_block=N,i._tr_flush_block=function(b,x,Z,H){var O,X,te=0;0<b.level?(b.strm.data_type===2&&(b.strm.data_type=(function(K){var ae,he=4093624447;for(ae=0;ae<=31;ae++,he>>>=1)if(1&he&&K.dyn_ltree[2*ae]!==0)return l;if(K.dyn_ltree[18]!==0||K.dyn_ltree[20]!==0||K.dyn_ltree[26]!==0)return a;for(ae=32;ae<h;ae++)if(K.dyn_ltree[2*ae]!==0)return a;return l})(b)),pe(b,b.l_desc),pe(b,b.d_desc),te=(function(K){var ae;for(f(K,K.dyn_ltree,K.l_desc.max_code),f(K,K.dyn_dtree,K.d_desc.max_code),pe(K,K.bl_desc),ae=v-1;3<=ae&&K.bl_tree[2*j[ae]+1]===0;ae--);return K.opt_len+=3*(ae+1)+5+5+4,ae})(b),O=b.opt_len+3+7>>>3,(X=b.static_len+3+7>>>3)<=O&&(O=X)):O=X=Z+5,Z+4<=O&&x!==-1?N(b,x,Z,H):b.strategy===4||X===O?(B(b,2+(H?1:0),3),de(b,V,C)):(B(b,4+(H?1:0),3),(function(K,ae,he,se){var ke;for(B(K,ae-257,5),B(K,he-1,5),B(K,se-4,4),ke=0;ke<se;ke++)B(K,K.bl_tree[2*j[ke]+1],3);W(K,K.dyn_ltree,ae-1),W(K,K.dyn_dtree,he-1)})(b,b.l_desc.max_code+1,b.d_desc.max_code+1,te+1),de(b,b.dyn_ltree,b.dyn_dtree)),ie(b),H&&U(b)},i._tr_tally=function(b,x,Z){return b.pending_buf[b.d_buf+2*b.last_lit]=x>>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&x,b.pending_buf[b.l_buf+b.last_lit]=255&Z,b.last_lit++,x===0?b.dyn_ltree[2*Z]++:(b.matches++,x--,b.dyn_ltree[2*(m[Z]+h+1)]++,b.dyn_dtree[2*z(x)]++),b.last_lit===b.lit_bufsize-1},i._tr_align=function(b){B(b,2,3),L(b,_,V),(function(x){x.bi_valid===16?(ne(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):8<=x.bi_valid&&(x.pending_buf[x.pending++]=255&x.bi_buf,x.bi_buf>>=8,x.bi_valid-=8)})(b)}},{"../utils/common":41}],53:[function(r,o,i){o.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,o,i){(function(s){(function(l,a){if(!l.setImmediate){var c,w,g,h,Q=1,p={},v=!1,u=l.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(l);y=y&&y.setTimeout?y:l,c={}.toString.call(l.process)==="[object process]"?function(A){process.nextTick(function(){k(A)})}:(function(){if(l.postMessage&&!l.importScripts){var A=!0,M=l.onmessage;return l.onmessage=function(){A=!1},l.postMessage("","*"),l.onmessage=M,A}})()?(h="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",_,!1):l.attachEvent("onmessage",_),function(A){l.postMessage(h+A,"*")}):l.MessageChannel?((g=new MessageChannel).port1.onmessage=function(A){k(A.data)},function(A){g.port2.postMessage(A)}):u&&"onreadystatechange"in u.createElement("script")?(w=u.documentElement,function(A){var M=u.createElement("script");M.onreadystatechange=function(){k(A),M.onreadystatechange=null,w.removeChild(M),M=null},w.appendChild(M)}):function(A){setTimeout(k,0,A)},y.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var M=new Array(arguments.length-1),T=0;T<M.length;T++)M[T]=arguments[T+1];var E={callback:A,args:M};return p[Q]=E,c(Q),Q++},y.clearImmediate=d}function d(A){delete p[A]}function k(A){if(v)setTimeout(k,0,A);else{var M=p[A];if(M){v=!0;try{(function(T){var E=T.callback,P=T.args;switch(P.length){case 0:E();break;case 1:E(P[0]);break;case 2:E(P[0],P[1]);break;case 3:E(P[0],P[1],P[2]);break;default:E.apply(a,P)}})(M)}finally{d(A),v=!1}}}}function _(A){A.source===l&&typeof A.data=="string"&&A.data.indexOf(h)===0&&k(+A.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Ge<"u"?Ge:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ft)),ft.exports}var zi=ji();const Bi=Ct(zi);function Me(e,n){return Array.from(e.getElementsByTagName(n))}function nt(e){return e[0]==="#"?e:`#${e}`}function Oi(e,n,r){return Array.from(e.getElementsByTagNameNS(r,n))}function Qe(e){return e==null||e.normalize(),(e==null?void 0:e.textContent)||""}function we(e,n,r){const o=e.getElementsByTagName(n);return o.length?o[0]:null}function Ce(e,n,r){const o={};if(!e)return o;const i=e.getElementsByTagName(n),s=i.length?i[0]:null;return s&&r?r(s,o):o}function je(e,n,r){const o=Qe(we(e,n));return o&&r?r(o)||{}:{}}function ye(e,n,r){const o=Number.parseFloat(Qe(we(e,n)));if(!Number.isNaN(o))return r&&r(o),o}function lt(e,n){const r={};for(const o of n)je(e,o,i=>{r[o]=i});return r}function A1(e){return(e==null?void 0:e.nodeType)===1}function S1(e,n){const r={},o=n==="stroke"||n==="fill"?n:`${n}-color`;return e[0]==="#"&&(e=e.substring(1)),e.length===6||e.length===3?r[o]=`#${e}`:e.length===8&&(r[`${n}-opacity`]=Number.parseInt(e.substring(0,2),16)/255,r[o]=`#${e.substring(6,8)}${e.substring(4,6)}${e.substring(2,4)}`),r}function rt(e,n,r){const o={};return ye(e,n,i=>{o[r]=i}),o}function St(e,n){return Ce(e,"color",r=>S1(Qe(r),n))}function It(e){return Ce(e,"Icon",(n,r)=>(je(n,"href",o=>{r.icon=o}),r))}function Fi(e){return Ce(e,"IconStyle",n=>Object.assign(St(n,"icon"),rt(n,"scale","icon-scale"),rt(n,"heading","icon-heading"),Ce(n,"hotSpot",r=>{const o=Number.parseFloat(r.getAttribute("x")||""),i=Number.parseFloat(r.getAttribute("y")||""),s=r.getAttribute("xunits")||"",l=r.getAttribute("yunits")||"";return!Number.isNaN(o)&&!Number.isNaN(i)?{"icon-offset":[o,i],"icon-offset-units":[s,l]}:{}}),It(n)))}function Pi(e){return Ce(e,"LabelStyle",n=>Object.assign(St(n,"label"),rt(n,"scale","label-scale")))}function $i(e){return Ce(e,"LineStyle",n=>Object.assign(St(n,"stroke"),rt(n,"width","stroke-width")))}function Ri(e){return Ce(e,"PolyStyle",(n,r)=>Object.assign(r,Ce(n,"color",o=>S1(Qe(o),"fill")),je(n,"fill",o=>{if(o==="0")return{"fill-opacity":0}}),je(n,"outline",o=>{if(o==="0")return{"stroke-opacity":0}})))}function at(e){return Object.assign({},Ri(e),$i(e),Pi(e),Fi(e))}const Vi=/\s*/g,Ui=/^\s*|\s*$/g,Wi=/\s+/;function I1(e){return e.replace(Vi,"").split(",").map(Number.parseFloat).filter(n=>!Number.isNaN(n)).slice(0,3)}function gt(e){return e.replace(Ui,"").split(Wi).map(I1).filter(n=>n.length>=2)}function Zi(e){let n=Me(e,"coord");n.length===0&&(n=Oi(e,"coord","*"));const r=n.map(o=>Qe(o).split(" ").map(Number.parseFloat));return r.length===0?null:{geometry:r.length>2?{type:"LineString",coordinates:r}:{type:"Point",coordinates:r[0]},times:Me(e,"when").map(o=>Qe(o))}}function T1(e){if(e.length===0)return e;const n=e[0],r=e[e.length-1];let o=!0;for(let i=0;i<Math.max(n.length,r.length);i++)if(n[i]!==r[i]){o=!1;break}return o?e:e.concat([e[0]])}function Ke(e){return Qe(we(e,"coordinates"))}function L1(e){let n=[],r=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes.item(o);if(A1(i))switch(i.tagName){case"MultiGeometry":case"MultiTrack":case"gx:MultiTrack":{const s=L1(i);n=n.concat(s.geometries),r=r.concat(s.coordTimes);break}case"Point":{const s=I1(Ke(i));s.length>=2&&n.push({type:"Point",coordinates:s});break}case"LinearRing":case"LineString":{const s=gt(Ke(i));s.length>=2&&n.push({type:"LineString",coordinates:s});break}case"Polygon":{const s=[];for(const l of Me(i,"LinearRing")){const a=T1(gt(Ke(l)));a.length>=4&&s.push(a)}s.length&&n.push({type:"Polygon",coordinates:s});break}case"Track":case"gx:Track":{const s=Zi(i);if(!s)break;const{times:l,geometry:a}=s;n.push(a),l.length&&r.push(l);break}}}return{geometries:n,coordTimes:r}}const Ee=e=>Number(e),wt={string:e=>e,int:Ee,uint:Ee,short:Ee,ushort:Ee,float:Ee,double:Ee,bool:e=>!!e};function Tt(e,n){return Ce(e,"ExtendedData",(r,o)=>{for(const i of Me(r,"Data"))o[i.getAttribute("name")||""]=Qe(we(i,"value"));for(const i of Me(r,"SimpleData")){const s=i.getAttribute("name")||"",l=n[s]||wt.string;o[s]=l(Qe(i))}return o})}function Lt(e){const n=we(e,"description");for(const r of Array.from((n==null?void 0:n.childNodes)||[]))if(r.nodeType===4)return{description:{"@type":"html",value:Qe(r)}};return{}}function Et(e){return Ce(e,"TimeSpan",n=>({timespan:{begin:Qe(we(n,"begin")),end:Qe(we(n,"end"))}}))}function xt(e){return Ce(e,"TimeStamp",n=>({timestamp:Qe(we(n,"when"))}))}function jt(e,n){return je(e,"styleUrl",r=>(r=nt(r),n[r]?Object.assign({styleUrl:r},n[r]):{styleUrl:r}))}var be;(function(e){e.ABSOLUTE="absolute",e.RELATIVE_TO_GROUND="relativeToGround",e.CLAMP_TO_GROUND="clampToGround",e.CLAMP_TO_SEAFLOOR="clampToSeaFloor",e.RELATIVE_TO_SEAFLOOR="relativeToSeaFloor"})(be||(be={}));function Yi(e){switch(e==null?void 0:e.textContent){case be.ABSOLUTE:return be.ABSOLUTE;case be.CLAMP_TO_GROUND:return be.CLAMP_TO_GROUND;case be.CLAMP_TO_SEAFLOOR:return be.CLAMP_TO_SEAFLOOR;case be.RELATIVE_TO_GROUND:return be.RELATIVE_TO_GROUND;case be.RELATIVE_TO_SEAFLOOR:return be.RELATIVE_TO_SEAFLOOR}return null}function Gi(e){return we(e,"gx:LatLonQuad")?{geometry:{type:"Polygon",coordinates:[T1(gt(Ke(e)))]}}:Xi(e)}const Hi=Math.PI/180;function Ji(e,n,r){const o=[(e[0]+e[2])/2,(e[1]+e[3])/2];return[n[0].map(i=>{const s=i[1]-o[1],l=i[0]-o[0],a=Math.sqrt(s**2+l**2),c=Math.atan2(s,l)+r*Hi;return[o[0]+Math.cos(c)*a,o[1]+Math.sin(c)*a]})]}function Xi(e){const n=we(e,"LatLonBox");if(n){const r=ye(n,"north"),o=ye(n,"west"),i=ye(n,"east"),s=ye(n,"south"),l=ye(n,"rotation");if(typeof r=="number"&&typeof s=="number"&&typeof o=="number"&&typeof i=="number"){const a=[o,s,i,r];let c=[[[o,r],[i,r],[i,s],[o,s],[o,r]]];return typeof l=="number"&&(c=Ji(a,c,l)),{bbox:a,geometry:{type:"Polygon",coordinates:c}}}}return null}function Ki(e,n,r,o){var c;const i=Gi(e),s=(i==null?void 0:i.geometry)||null;if(!s&&o.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"groundoverlay"},lt(e,["name","address","visibility","open","phoneNumber","description"]),Lt(e),jt(e,n),at(e),It(e),Tt(e,r),Et(e),xt(e))};i!=null&&i.bbox&&(l.bbox=i.bbox),((c=l.properties)==null?void 0:c.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function qi(e){const n=we(e,"Region");return n?{coordinateBox:t5(n),lod:e5(e)}:null}function e5(e){const n=we(e,"Lod");return n?[ye(n,"minLodPixels")??-1,ye(n,"maxLodPixels")??-1,ye(n,"minFadeExtent")??null,ye(n,"maxFadeExtent")??null]:null}function t5(e){const n=we(e,"LatLonAltBox");if(n){const r=ye(n,"north"),o=ye(n,"west"),i=ye(n,"east"),s=ye(n,"south");if(Yi(we(n,"altitudeMode")||we(n,"gx:altitudeMode"))&&console.debug("Encountered an unsupported feature of KML for togeojson: please contact developers for support of altitude mode."),typeof r=="number"&&typeof s=="number"&&typeof o=="number"&&typeof i=="number")return{bbox:[o,s,i,r],geometry:{type:"Polygon",coordinates:[[[o,r],[i,r],[i,s],[o,s],[o,r]]]}}}return null}function n5(e){const n=we(e,"Link");return n?lt(n,["href","refreshMode","refreshInterval","viewRefreshMode","viewRefreshTime","viewBoundScale","viewFormat","httpQuery"]):{}}function r5(e,n,r,o){var c,w,g;const i=qi(e),s=((c=i==null?void 0:i.coordinateBox)==null?void 0:c.geometry)||null;if(!s&&o.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"networklink"},lt(e,["name","address","visibility","open","phoneNumber","styleUrl","refreshVisibility","flyToView","description"]),Lt(e),jt(e,n),at(e),It(e),Tt(e,r),Et(e),xt(e),n5(e),i!=null&&i.lod?{lod:i.lod}:{})};(w=i==null?void 0:i.coordinateBox)!=null&&w.bbox&&(l.bbox=i.coordinateBox.bbox),((g=l.properties)==null?void 0:g.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function o5(e){return e.length===0?null:e.length===1?e[0]:{type:"GeometryCollection",geometries:e}}function i5(e,n,r,o){var w;const{coordTimes:i,geometries:s}=L1(e),l=o5(s);if(!l&&o.skipNullGeometry)return null;const a={type:"Feature",geometry:l,properties:Object.assign(lt(e,["name","address","visibility","open","phoneNumber","description"]),Lt(e),jt(e,n),at(e),Tt(e,r),Et(e),xt(e),i.length?{coordinateProperties:{times:i.length===1?i[0]:i}}:{})};((w=a.properties)==null?void 0:w.visibility)!==void 0&&(a.properties.visibility=a.properties.visibility!=="0");const c=e.getAttribute("id");return c!==null&&c!==""&&(a.id=c),a}function l5(e){let n=e.getAttribute("id");const r=e.parentNode;return!n&&A1(r)&&r.localName==="CascadingStyle"&&(n=r.getAttribute("kml:id")||r.getAttribute("id")),nt(n||"")}function a5(e){const n={};for(const r of Me(e,"Style"))n[l5(r)]=at(r);for(const r of Me(e,"StyleMap")){const o=nt(r.getAttribute("id")||"");je(r,"styleUrl",i=>{i=nt(i),n[i]&&(n[o]=n[i])})}return n}function s5(e){const n={};for(const r of Me(e,"SimpleField"))n[r.getAttribute("name")||""]=wt[r.getAttribute("type")||""]||wt.string;return n}function*c5(e,n={skipNullGeometry:!1}){const r=e,o=a5(r),i=s5(r);for(const s of Me(r,"Placemark")){const l=i5(s,o,i,n);l&&(yield l)}for(const s of Me(r,"GroundOverlay")){const l=Ki(s,o,i,n);l&&(yield l)}for(const s of Me(r,"NetworkLink")){const l=r5(s,o,i,n);l&&(yield l)}}function u5(e,n={skipNullGeometry:!1}){return{type:"FeatureCollection",features:Array.from(c5(e,n))}}function yt(e){const n=[],r=e.replace(/\s+/g," ").trim();if(!r)return n;const o=r.split(/\s+/);for(const i of o){const s=i.split(",").map(l=>Number(l.trim()));s.length>=2&&Number.isFinite(s[0])&&Number.isFinite(s[1])&&n.push([s[0],s[1]])}return n}function d5(e){const n=e.split(",").map(r=>Number(r.trim()));return n.length>=2&&Number.isFinite(n[0])&&Number.isFinite(n[1])?[n[0],n[1]]:null}function n1(e){return e.replace(/wpml:/g,"")}function r1(e){const n=[],r=e.getElementsByTagName("Placemark");for(let o=0;o<r.length;o++){const i=r[o],s=i.getElementsByTagName("LineString")[0],l=i.getElementsByTagName("Point")[0];if(s){const a=s.getElementsByTagName("coordinates")[0];a!=null&&a.textContent&&n.push(...yt(a.textContent))}else if(l){const a=l.getElementsByTagName("coordinates")[0];if(a!=null&&a.textContent){const c=d5(a.textContent.trim());c&&n.push(c)}}}return n}function f5(e){const n=[],r=e.getElementsByTagName("Folder");if(r.length===0){const o=r1(e.documentElement);return o.length&&n.push(o),n}for(let o=0;o<r.length;o++){const i=r1(r[o]);i.length&&n.push(i)}return n}function h5(e){const n=e.getElementsByTagName("LinearRing");for(let o=0;o<n.length;o++){const i=n[o].getElementsByTagName("coordinates")[0];if(i!=null&&i.textContent){const s=yt(i.textContent);if(s.length>=3)return s}}const r=e.getElementsByTagName("Polygon");for(let o=0;o<r.length;o++){const s=r[o].getElementsByTagName("LinearRing")[0];if(s){const l=s.getElementsByTagName("coordinates")[0];if(l!=null&&l.textContent){const a=yt(l.textContent);if(a.length>=3)return a}}}}function o1(e,n){if(e)switch(e.type){case"LineString":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break;case"MultiLineString":for(const r of e.coordinates)for(const o of r)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&n.push([o[0],o[1]]);break;case"Polygon":for(const r of e.coordinates)for(const o of r)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&n.push([o[0],o[1]]);break;case"MultiPolygon":for(const r of e.coordinates)for(const o of r)for(const i of o)i.length>=2&&Number.isFinite(i[0])&&Number.isFinite(i[1])&&n.push([i[0],i[1]]);break;case"Point":Array.isArray(e.coordinates)&&e.coordinates.length>=2&&Number.isFinite(e.coordinates[0])&&Number.isFinite(e.coordinates[1])&&n.push([e.coordinates[0],e.coordinates[1]]);break;case"MultiPoint":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break}}function p5(e){const n=[];return e.features.forEach(r=>{if(r.geometry){const o=r.geometry;o.type==="GeometryCollection"&&Array.isArray(o.geometries)?o.geometries.forEach(i=>o1(i,n)):o1(o,n)}}),n}function i1(e){const r=new DOMParser().parseFromString(e,"text/xml"),o=u5(r);return p5(o)}async function E1(e){var r;const n={points:[],polylines:[]};try{if(!e||typeof e!="string"||e.trim()==="")return console.warn("KMZ URL 为空或无效"),n;const o=await fetch(e,{mode:"cors",credentials:"omit"});if(!o.ok)throw new Error(`HTTP错误: ${o.status} ${o.statusText}`);const i=await o.arrayBuffer(),a=(await new Bi().loadAsync(i)).files,c=Object.keys(a).filter(p=>!a[p].dir),w=async p=>{const v=a[p];return v?v.async("text"):null},g={points:[],polylines:[]},h=c.find(p=>p.replace(/\\/g,"/").endsWith("wpmz/waylines.wpml"))||c.find(p=>p.toLowerCase().endsWith("waylines.wpml"));if(h){const p=await w(h);if(p){const v=n1(p),y=new DOMParser().parseFromString(v,"text/xml"),d=f5(y);d.length&&(g.polylines=d,g.points=d.flat())}}const Q=c.find(p=>p.replace(/\\/g,"/").endsWith("wpmz/template.kml"))||c.find(p=>p.toLowerCase().endsWith("template.kml"));if(Q){const p=await w(Q);if(p){const v=n1(p),y=new DOMParser().parseFromString(v,"text/xml"),d=h5(y);d!=null&&d.length&&(g.polygonOutline=d);const k=i1(v);k.length&&!g.points.length&&(g.points=k)}}if(!g.points.length&&!g.polylines.length){const p=c.find(v=>v.toLowerCase().endsWith(".kml"));if(p){const v=await w(p);if(v){const u=i1(v);u.length&&(g.points=u,g.polylines=[u])}}}return!g.points.length&&((r=g.polygonOutline)!=null&&r.length)&&(g.points=[...g.polygonOutline]),g.points.length&&!g.polylines.length&&(g.polylines=[g.points]),g}catch(o){return console.error("KMZ解析失败:",o),n}}const m5=async e=>(await E1(e)).points;function qe(e){return e===!1?!1:e===0||String(e)==="0"||e?e:"-"}function x1(e){const{size:n,unit:r="B",maxUnit:o,numberFormatOptions:i}=e,{size:s,unit:l}=zt({size:n,unit:r},{maxUnit:o});return`${s.toLocaleString(void 0,i)} ${l}`}function zt(e,n){const r=["B","KB","MB","GB","TB"],{size:o,unit:i="B"}=e,s=r.indexOf(i);if(s===-1||s===r.length-1)return{size:o,unit:i};const l=(n==null?void 0:n.maxUnit)||"TB",a=r.indexOf(l);return s===a?{size:o,unit:i}:o<1024?{size:o,unit:i}:zt({size:o/1024,unit:r[s+1]},n)}function Bt(e,n="-"){return(r,o)=>r===0||r==="0"?e?e(r,o):r:r?e?e(r,o):r.toString():n}function j1(e,n){const r=e.getFullYear(),o=e.getMonth()+1,i=e.getDate(),s=e.getHours(),l=s%12||12,a=e.getMinutes(),c=e.getSeconds(),w=e.getMilliseconds(),g=s<12?"AM":"PM",h={YYYY:String(r).padStart(4,"0"),YY:String(r%100).padStart(2,"0"),MM:String(o).padStart(2,"0"),M:String(o),DD:String(i).padStart(2,"0"),D:String(i),HH:String(s).padStart(2,"0"),H:String(s),hh:String(l).padStart(2,"0"),h:String(l),mm:String(a).padStart(2,"0"),m:String(a),ss:String(c).padStart(2,"0"),s:String(c),SSS:String(w).padStart(3,"0"),SS:String(w).padStart(3,"0").slice(0,2),S:String(w).padStart(3,"0").charAt(0),A:g,a:g.toLowerCase()};return n.replace(/YYYY|YY|MM|M|DD|D|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a/g,Q=>h[Q]??Q)}function z1(e){if(e==null)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;if(typeof e=="number"){const r=new Date(e);return isNaN(r.getTime())?null:r}let n=new Date(e);return isNaN(n.getTime())?(n=new Date(e.replace(" ","T")),isNaN(n.getTime())?null:n):n}function B1(e){if(e==null)return null;if(e instanceof Date)return e;const n=Number(e);if(Number.isFinite(n)){const r=String(Math.floor(n)).length;if(r===10)return n*1e3;if(r===13)return n;if(n===0)return 0}return e}function g5(e,n="YYYY-MM-DD HH:mm:ss"){const r=B1(e);if(!r&&r!==0)return qe(e);const o=z1(r);return qe(o?j1(o,n):e)}function w5(e="YYYY-MM-DD HH:mm:ss",n="-"){return(r,o)=>{if(r===0||r==="0")return String(r);const i=B1(r);if(!r||r==="Invalid Date")return n;try{const s=z1(i);if(!s)return n;const l=j1(s,e);return!l||l==="Invalid Date"?n:l}catch(s){return console.error("Date formatting failed:",s),n}}}function y5(e="-",n){return Bt(o=>{const i=typeof o=="string"?Number(o):o;return Number.isFinite(i)?x1({size:i,unit:(n==null?void 0:n.unit)||"B",numberFormatOptions:{maximumFractionDigits:n==null?void 0:n.digits,minimumFractionDigits:n==null?void 0:n.digits}}):o},e)}function v5(e="-",n){return Bt(o=>{const i=["B","KB","MB","GB","TB"];let s=typeof o=="string"?Number(o):o,l=(n==null?void 0:n.unit)||"B";const a=(n==null?void 0:n.digits)??2;if(s===0)return`${s.toFixed(a)} ${l}`;let c=i.indexOf(l);for(c===-1&&(c=0,l="B");c<i.length-1&&s%1024===0;)s=s/1024,c++,l=i[c];return`${s.toFixed(a)} ${l}`},e)}function Q5(e,n,r,o){const i=["B","KB","MB","GB","TB"],s=(o==null?void 0:o.digits)??2,l=(o==null?void 0:o.showUnit)??!0,a=typeof e=="string"?Number(e):e;if(!Number.isFinite(a))return e;const c=i.indexOf(n),w=i.indexOf(r);if(c===-1||w===-1)return e;const g=c-w,Q=(a*Math.pow(1024,g)).toFixed(s);return l?`${Q} ${r}`:Number(Q)}const k5=Object.freeze(Object.defineProperty({__proto__:null,convertDataUnit:Q5,defaultAutoDataFormat:v5,defaultDataFormat:y5,defaultDateFormat:w5,defaultFill:qe,defaultFormat:Bt,formatDate:g5,formatSize:x1,getUpperSize:zt},Symbol.toStringTag,{value:"Module"}));function b5(e){return Array.isArray(e)?[...new Set(e)]:e}function M5(e,n){if(!Array.isArray(e))return e;const r=new Map;return e.filter(o=>{const i=o[n];return r.has(i)?!1:(r.set(i,!0),!0)})}function C5(e,n){if(!Array.isArray(e))return e;const r=new Set;return e.filter(o=>{const i=n.map(s=>o[s]).join("|");return r.has(i)?!1:(r.add(i),!0)})}function _5(e,n){if(!Array.isArray(e))return e;const{idKey:r="id",parentKey:o="parentId",childrenKey:i="children",rootParentValue:s=null}=n||{},l=new Map,a=[];return e.forEach(c=>{l.set(c[r],{...c,[i]:[]})}),e.forEach(c=>{const w=l.get(c[r]);if(!w)return;const g=c[o];if(g===s||g===void 0)a.push(w);else{const h=l.get(g);h?(h[i]||(h[i]=[]),h[i].push(w)):a.push(w)}}),a}function D5(e,n="children"){if(!Array.isArray(e))return e;const r=[],o=i=>{i.forEach(s=>{const l=s[n],a={...s};delete a[n],r.push(a),Array.isArray(l)&&l.length>0&&o(l)})};return o(e),r}function O1(e,n,r="children"){if(!Array.isArray(e))return null;for(const o of e){if(n(o))return o;if(Array.isArray(o[r])&&o[r].length>0){const i=O1(o[r],n,r);if(i)return i}}return null}function N5(e,n,r="children"){if(!Array.isArray(e))return;const o=(i,s,l)=>{i.forEach(a=>{n(a,s,l),Array.isArray(a[r])&&a[r].length>0&&o(a[r],a,l+1)})};o(e,null,0)}function A5(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=String(o[n]);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function S5(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=n(o);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function I5(e,n,r="asc"){return Array.isArray(e)?[...e].sort((o,i)=>{const s=o[n],l=i[n];return s<l?r==="asc"?-1:1:s>l?r==="asc"?1:-1:0}):e}function T5(e,n){return Array.isArray(e)?[...e].sort((r,o)=>{for(const{key:i,order:s="asc"}of n){const l=r[i],a=o[i];if(l<a)return s==="asc"?-1:1;if(l>a)return s==="asc"?1:-1}return 0}):e}function F1(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=n?o[n]:o;return r+(Number(i)||0)},0):0}function L5(e,n){return!Array.isArray(e)||e.length===0?0:F1(e,n)/e.length}function E5(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=n?o[n]:o;return Number(i)||0});return Math.max(...r)}function x5(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=n?o[n]:o;return Number(i)||0});return Math.min(...r)}function j5(e,n){if(!Array.isArray(e)||n<=0)return[e];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}function z5(e,n){if(!Array.isArray(e)||!Array.isArray(n))return[];const r=new Set(n);return e.filter(o=>r.has(o))}function B5(e,n){return Array.isArray(e)?Array.isArray(n)?[...new Set([...e,...n])]:e||[]:n||[]}function O5(e,n){if(!Array.isArray(e))return[];if(!Array.isArray(n))return e;const r=new Set(n);return e.filter(o=>!r.has(o))}function P1(e){if(!Array.isArray(e))return e;const n=[...e];for(let r=n.length-1;r>0;r--){const o=Math.floor(Math.random()*(r+1));[n[r],n[o]]=[n[o],n[r]]}return n}function F5(e,n=1){return!Array.isArray(e)||n<=0?[]:P1(e).slice(0,Math.min(n,e.length))}function $1(e,n=1/0){return!Array.isArray(e)||n<=0?e:e.reduce((r,o)=>(Array.isArray(o)?r.push(...$1(o,n-1)):r.push(o),r),[])}function P5(e,n,r){if(!Array.isArray(e))return{data:[],page:n,pageSize:r,total:0,totalPages:0};const o=e.length,i=Math.ceil(o/r),s=(n-1)*r,l=s+r;return{data:e.slice(s,l),page:n,pageSize:r,total:o,totalPages:i}}function $5(e,n,r){if(!Array.isArray(e)||n<0||n>=e.length||r<0||r>=e.length)return e;const o=[...e],[i]=o.splice(n,1);return o.splice(r,0,i),o}function R5(e){return Array.isArray(e)?e.reduce((n,r)=>(n[r]=(n[r]||0)+1,n),{}):{}}const V5=Object.freeze(Object.defineProperty({__proto__:null,arrayToTree:_5,average:L5,chunkArray:j5,countBy:R5,difference:O5,findNodeInTree:O1,flatten:$1,forEachTree:N5,groupBy:A5,groupByFn:S5,intersection:z5,max:E5,min:x5,move:$5,paginate:P5,sample:F5,shuffle:P1,sortBy:I5,sortByMultiple:T5,sum:F1,treeToArray:D5,union:B5,uniqueArray:b5,uniqueArrayByKey:M5,uniqueArrayByKeys:C5},Symbol.toStringTag,{value:"Module"}));async function U5(e){if(!e)return!1;if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch(n){console.error("Clipboard API 失败:",n)}try{const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-9999px",n.style.top="-9999px",document.body.appendChild(n),n.select(),n.setSelectionRange(0,e.length);const r=document.execCommand("copy");return document.body.removeChild(n),r}catch(n){return console.error("复制失败:",n),!1}}async function W5(){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.readText()}catch(e){return console.error("读取剪贴板失败:",e),""}return""}function Ot(e,n){const r=document.createElement("a");typeof e=="string"?r.href=e:r.href=URL.createObjectURL(e),r.download=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof e!="string"&&setTimeout(()=>URL.revokeObjectURL(r.href),100)}function Z5(e,n){const r=JSON.stringify(e,null,2),o=new Blob([r],{type:"application/json"});Ot(o,n)}function Y5(e,n){const r=new Blob([e],{type:"text/plain"});Ot(r,n)}function Ft(e){window.scrollTo(e)}function G5(e,n){const r=typeof e=="string"?document.querySelector(e):e;r&&r.scrollIntoView({behavior:"smooth",block:"start",...n})}function H5(e=!0){Ft({top:0,behavior:e?"smooth":"auto"})}function J5(e=!0){Ft({top:document.documentElement.scrollHeight,behavior:e?"smooth":"auto"})}function R1(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}}function X5(e){let n=0;for(;e;)n+=e.offsetTop,e=e.offsetParent;return n}function K5(e,n=0){if(!e)return!1;const r=e.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return r.top>=0-n&&r.left>=0-n&&r.bottom<=o+n&&r.right<=i+n}function q5(e){if(!e)return!1;const n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth,i=n.top<=r&&n.top+n.height>=0,s=n.left<=o&&n.left+n.width>=0;return i&&s}function e8(e=document.documentElement){document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function t8(e=document.documentElement){document.fullscreenElement||e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function n8(){document.fullscreenElement&&document.exitFullscreen()}function r8(){return!!document.fullscreenElement}function o8(e,n){e&&e.classList.add(n)}function i8(e,n){e&&e.classList.remove(n)}function l8(e,n){e&&e.classList.toggle(n)}function a8(e,n){return e?e.classList.contains(n):!1}function s8(e){return e?Array.from(e.classList):[]}function c8(e){return e?e.getBoundingClientRect():null}function u8(e){return e?e.offsetWidth:0}function d8(e){return e?e.offsetHeight:0}function f8(e,n=document){return n.querySelector(e)}function h8(e,n=document){return Array.from(n.querySelectorAll(e))}function p8(e,n){return e?e.getAttribute(n):null}function m8(e,n,r){e&&e.setAttribute(n,r)}function g8(e,n){e&&e.removeAttribute(n)}function w8(e,n){return e?e.hasAttribute(n):!1}function y8(e,n){return e&&window.getComputedStyle(e)[n]||""}function v8(e,n){e&&Object.keys(n).forEach(r=>{e.style[r]=n[r]})}function Q8(){return{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function V1(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}function k8(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)}function b8(e=0){const{y:n}=R1(),r=window.innerHeight||document.documentElement.clientHeight,o=V1();return n+r>=o-e}const M8=Object.freeze(Object.defineProperty({__proto__:null,addClass:o8,copyToClipboard:U5,downloadFile:Ot,downloadJSON:Z5,downloadText:Y5,enterFullscreen:t8,exitFullscreen:n8,getAttribute:p8,getClasses:s8,getElementHeight:d8,getElementRect:c8,getElementWidth:u8,getOffsetTop:X5,getPageHeight:V1,getPageWidth:k8,getScrollPosition:R1,getStyle:y8,getWindowSize:Q8,hasAttribute:w8,hasClass:a8,isFullscreen:r8,isInViewport:K5,isPartiallyVisible:q5,isScrolledToBottom:b8,querySelector:f8,querySelectorAll:h8,readFromClipboard:W5,removeAttribute:g8,removeClass:i8,scrollTo:Ft,scrollToBottom:J5,scrollToElement:G5,scrollToTop:H5,setAttribute:m8,setStyle:v8,toggleClass:l8,toggleFullscreen:e8},Symbol.toStringTag,{value:"Module"}));function C8(e,n){return Math.floor(Math.random()*(n-e+1))+e}function _8(e,n,r=2){const o=Math.random()*(n-e)+e;return Number(o.toFixed(r))}function D8(e,n,r=1){const o=[];if(r===0)return o;if(r>0)for(let i=e;i<=n;i+=r)o.push(i);else for(let i=e;i>=n;i+=r)o.push(i);return o}function N8(e,n,r){return Math.min(Math.max(e,n),r)}function A8(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i+n*i)/i}function S8(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i-n*i)/i}function I8(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,r+o);return e*Math.pow(10,r)*n*Math.pow(10,o)/i}function T8(e,n){if(n===0)return console.warn("Division by zero"),1/0;const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length;return e*Math.pow(10,o)/(n*Math.pow(10,r))*Math.pow(10,r-o)}function Pt(e,n=0){return Math.round(e*Math.pow(10,n))/Math.pow(10,n)}function L8(e,n=0){return Math.ceil(e*Math.pow(10,n))/Math.pow(10,n)}function E8(e,n=0){return Math.floor(e*Math.pow(10,n))/Math.pow(10,n)}function x8(e,n=0){return Pt(e,n).toFixed(n)}function j8(e,n,r=2){return n===0?0:Pt(e/n*100,r)}function z8(e){return e/100}function B8(e){return e*100}function O8(e,n=2){return String(e).padStart(n,"0")}function F8(e){const n=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千","万"];if(e===0)return"零";if(e<0||e>99999)return String(e);const o=String(e);let i="",s=0;for(let l=0;l<o.length;l++){const a=parseInt(o[l]),c=r[o.length-1-l];a===0?s++:(s>0&&(i+="零"),i+=n[a]+c,s=0)}return e>=10&&e<20&&(i=i.replace("一十","十")),i}function P8(e){const n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=["","拾","佰","仟","万","拾","佰","仟","亿"],o=["角","分"];if(e===0)return"零元整";const[i,s=""]=e.toFixed(2).split(".");let l="";for(let a=0;a<i.length;a++){const c=parseInt(i[a]),w=r[i.length-1-a];c!==0?l+=n[c]+w:l&&!l.endsWith("零")&&(l+="零")}if(l=l.replace(/零+$/,"")+"元",s&&s!=="00")for(let a=0;a<Math.min(s.length,2);a++){const c=parseInt(s[a]);c!==0&&(l+=n[c]+o[a])}else l+="整";return l}function $8(e){return e%2===0}function R8(e){return e%2!==0}function V8(e){if(e<2)return!1;if(e===2)return!0;if(e%2===0)return!1;for(let n=3;n<=Math.sqrt(e);n+=2)if(e%n===0)return!1;return!0}function U8(e,n,r){return e>=n&&e<=r}function W8(e){return Math.abs(e)}function Z8(e){return Math.sqrt(e)}function Y8(e,n){return Math.pow(e,n)}function U1(e){return e<0?NaN:e===0||e===1?1:e*U1(e-1)}function $t(e,n){return n===0?e:$t(n,e%n)}function G8(e,n){return e*n/$t(e,n)}const H8=Object.freeze(Object.defineProperty({__proto__:null,abs:W8,add:A8,ceil:L8,clamp:N8,decimalToPercent:B8,divide:T8,factorial:U1,floor:E8,gcd:$t,inRange:U8,isEven:$8,isOdd:R8,isPrime:V8,lcm:G8,multiply:I8,padZero:O8,percentToDecimal:z8,percentage:j8,pow:Y8,random:C8,randomFloat:_8,range:D8,round:Pt,sqrt:Z8,subtract:S8,toChineseMoney:P8,toChineseNumber:F8,toFixed:x8},Symbol.toStringTag,{value:"Module"}));function ot(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(Array.isArray(e))return e.map(r=>ot(r));const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=ot(e[r]));return n}function J8(e){return e===null||typeof e!="object"?e:Array.isArray(e)?[...e]:{...e}}function W1(...e){if(e.length===0)return{};if(e.length===1)return e[0];const n={};return e.forEach(r=>{!r||typeof r!="object"||Object.keys(r).forEach(o=>{const i=r[o],s=n[o];i&&typeof i=="object"&&!Array.isArray(i)&&s&&typeof s=="object"&&!Array.isArray(s)?n[o]=W1(s,i):n[o]=ot(i)})}),n}function X8(...e){return Object.assign({},...e)}function K8(e,n){if(!e||typeof e!="object")return{};const r={};return n.forEach(o=>{o in e&&(r[o]=e[o])}),r}function q8(e,n){if(!e||typeof e!="object")return{};const r={...e};return n.forEach(o=>{delete r[o]}),r}function e3(e,n,r){if(!e||typeof e!="object")return r;const o=n.split(".");let i=e;for(const s of o)if(i&&typeof i=="object"&&s in i)i=i[s];else return r;return i!==void 0?i:r}function Z1(e,n,r){if(!e||typeof e!="object")return;const o=n.split("."),i=o.pop();if(!i)return;let s=e;for(const l of o)(!(l in s)||typeof s[l]!="object")&&(s[l]={}),s=s[l];s[i]=r}function t3(e,n){if(!e||typeof e!="object")return!1;const r=n.split(".");let o=e;for(const i of r)if(o&&typeof o=="object"&&i in o)o=o[i];else return!1;return!0}function n3(e){return e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function r3(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}function vt(e,n){if(e===n)return!0;if(typeof e!="object"||typeof n!="object"||e===null||n===null)return!1;if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(e instanceof RegExp&&n instanceof RegExp)return e.toString()===n.toString();if(Array.isArray(e)&&Array.isArray(n))return e.length!==n.length?!1:e.every((i,s)=>vt(i,n[s]));const r=Object.keys(e),o=Object.keys(n);return r.length!==o.length?!1:r.every(i=>vt(e[i],n[i]))}function Qt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Qt(r));const n={};return Object.keys(e).forEach(r=>{const o=r.replace(/_([a-z])/g,(s,l)=>l.toUpperCase()),i=e[r];n[o]=typeof i=="object"?Qt(i):i}),n}function kt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>kt(r));const n={};return Object.keys(e).forEach(r=>{const o=r.replace(/([A-Z])/g,"_$1").toLowerCase(),i=e[r];n[o]=typeof i=="object"?kt(i):i}),n}function o3(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(n)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function i3(e){if(!e)return{};const n=e.startsWith("?")?e.slice(1):e,r={};return n.split("&").forEach(o=>{const[i,s]=o.split("=").map(decodeURIComponent);i&&(i in r?Array.isArray(r[i])?r[i].push(s):r[i]=[r[i],s]:r[i]=s)}),r}function Y1(e,n){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{n(e[o],o)&&(r[o]=e[o])}),r}function l3(e,n=!0){return Y1(e,r=>!(r==null||n&&r===""))}function G1(e,n=""){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{const i=n?`${n}.${o}`:o,s=e[o];s&&typeof s=="object"&&!Array.isArray(s)?Object.assign(r,G1(s,i)):r[i]=s}),r}function a3(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{Z1(n,r,e[r])}),n}function s3(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{const o=e[r];n[String(o)]=r}),n}function c3(e){return!e||typeof e!="object"?[]:Object.values(e)}function u3(e){return!e||typeof e!="object"?[]:Object.keys(e)}function d3(e){return!e||typeof e!="object"?[]:Object.entries(e)}const f3=Object.freeze(Object.defineProperty({__proto__:null,deepClone:ot,deepMerge:W1,entries:d3,filterValues:Y1,flattenObject:G1,fromQueryString:i3,get:e3,has:t3,invert:s3,isEmpty:n3,isEqual:vt,isPlainObject:r3,keys:u3,keysToCamelCase:Qt,keysToUnderlineCase:kt,omit:q8,pick:K8,removeEmpty:l3,set:Z1,shallowClone:J8,shallowMerge:X8,toQueryString:o3,unflattenObject:a3,values:c3},Symbol.toStringTag,{value:"Module"}));function h3(e,n=300,r=!1){let o=null,i=!1;const s=function(...l){o&&clearTimeout(o),r&&!i?(e.apply(this,l),i=!0):o=setTimeout(()=>{e.apply(this,l),i=!1,o=null},n)};return s.cancel=()=>{o&&(clearTimeout(o),o=null),i=!1},s}function p3(e,n=300,r){const{leading:o=!0,trailing:i=!0}=r||{};let s=null,l=0,a=null;const c=function(...w){const g=Date.now();!l&&!o&&(l=g);const h=n-(g-l);a=w,h<=0||h>n?(s&&(clearTimeout(s),s=null),l=g,e.apply(this,w),a=null):!s&&i&&(s=setTimeout(()=>{l=o?Date.now():0,s=null,a&&(e.apply(this,a),a=null)},h))};return c.cancel=()=>{s&&(clearTimeout(s),s=null),l=0,a=null},c}function m3(e){let n=!1,r;return function(...o){return n||(n=!0,r=e.apply(this,o)),r}}function H1(e){return new Promise(n=>setTimeout(n,e))}function J1(e){return H1(e)}async function g3(e,n){const{times:r=3,delay:o=1e3,onRetry:i}=n||{};let s;for(let l=0;l<r;l++)try{return await e()}catch(a){s=a,i&&i(a,l+1),l<r-1&&await J1(o)}throw s}function w3(e,n){return Promise.race([e,new Promise((r,o)=>setTimeout(()=>o(new Error("Timeout")),n))])}function y3(e,n){const r=new Map,o=function(...i){const s=n?n(...i):JSON.stringify(i);if(r.has(s))return r.get(s);const l=e.apply(this,i);return r.set(s,l),l};return o.cache=r,o}function v3(e){e.cache&&e.cache.clear()}function Q3(e,n=100){let r=[],o=null;return function(i){r.push(i),o&&clearTimeout(o),o=setTimeout(()=>{e(r),r=[],o=null},n)}}async function k3(e,n){const r=[],o=[];for(const i of e){const s=i().then(l=>{r.push(l),o.splice(o.indexOf(s),1)});o.push(s),o.length>=n&&await Promise.race(o)}return await Promise.all(o),r}async function b3(e){const n=[];for(const r of e){const o=await r();n.push(o)}return n}function M3(e,n){return function(...r){const o=performance.now(),i=e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),i}}function C3(e,n){return async function(...r){const o=performance.now(),i=await e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),i}}function _3(e){const n=new Map;return async function(...r){const o=JSON.stringify(r);if(n.has(o))return n.get(o);const i=e.apply(this,r).finally(()=>{n.delete(o)});return n.set(o,i),i}}function D3(e){let n=null;const r=function(...o){n===null&&(n=requestAnimationFrame(()=>{e.apply(this,o),n=null}))};return r.cancel=()=>{n!==null&&(cancelAnimationFrame(n),n=null)},r}const N3=Object.freeze(Object.defineProperty({__proto__:null,batch:Q3,clearCache:v3,debounce:h3,dedupe:_3,delay:H1,measureTime:M3,measureTimeAsync:C3,memoize:y3,once:m3,promiseLimit:k3,promiseSerial:b3,rafThrottle:D3,retry:g3,sleep:J1,throttle:p3,withTimeout:w3},Symbol.toStringTag,{value:"Module"}));function Ie(e,n){return r=>{const o=String(r||"").trim();return!o||e(o)?!0:typeof n=="function"?n():n}}function X1(e){return e?/^1[3-9]\d{9}$/.test(e):!1}function K1(e){return e?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e):!1}function q1(e){return e?/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(e):!1}function en(e){return e?/^\d{16,19}$/.test(e):!1}function tn(e){return e?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/.test(e):!1}function nn(e){return e?/^(https?:\/\/)([a-zA-Z0-9.-]+)(:[0-9]+)?(\/.*)?$/.test(e):!1}function rn(e){return e?/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/.test(e):!1}function A3(e){return e?/^[\u4e00-\u9fa5]+$/.test(e):!1}function S3(e){return e?/[\u4e00-\u9fa5]/.test(e):!1}function I3(e){return e?/^\d+$/.test(e):!1}function T3(e){return e?/^-?\d+\.?\d*$/.test(e):!1}function L3(e){return e?/^[1-9]\d*$/.test(e):!1}function E3(e){return!e&&e!=="0"?!1:/^(0|[1-9]\d*)$/.test(e)}function x3(e){return e?/^[1-9]\d{4,10}$/.test(e):!1}function j3(e){return e?/^[a-zA-Z][a-zA-Z0-9_-]{5,19}$/.test(e):!1}function z3(e){return e?/^[1-9]\d{5}$/.test(e):!1}function B3(e){return e?/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e):!1}function O3(e){return e?/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{6,}$/.test(e):!1}function F3(e){return e?/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e):!1}function P3(e){if(!e)return!1;const n=Number(e);return/^\d+$/.test(e)&&n>=1&&n<=65535}function $3(e){return e?/^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$|^::$|^([\da-fA-F]{1,4}:){1,6}:$|^:((:[\da-fA-F]{1,4}){1,6})$/.test(e):!1}function R3(e){return e?/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e):!1}function V3(e="请输入有效的手机号"){return Ie(X1,e)}function U3(e="请输入有效的邮箱地址"){return Ie(K1,e)}function W3(e="请输入有效的身份证号"){return Ie(q1,e)}function Z3(e="请输入有效的银行卡号"){return Ie(en,e)}function Y3(e="请输入有效的车牌号"){return Ie(tn,e)}function G3(e="请输入有效的 URL 地址"){return Ie(nn,e)}function H3(e="请输入有效的 IP 地址"){return Ie(rn,e)}const J3=Object.freeze(Object.defineProperty({__proto__:null,bankCardRule:Z3,carNumberRule:Y3,createFormRule:Ie,emailRule:U3,hasChinese:S3,idCardRule:W3,ipRule:H3,isBankCard:en,isCarNumber:tn,isChinese:A3,isEmail:K1,isHexColor:R3,isIP:rn,isIPv6:$3,isIdCard:q1,isMac:F3,isMediumPassword:O3,isNonNegativeInteger:E3,isNumber:I3,isNumeric:T3,isPhone:X1,isPort:P3,isPositiveInteger:L3,isPostcode:z3,isQQ:x3,isStrongPassword:B3,isUrl:nn,isWechat:j3,phoneRule:V3,urlRule:G3},Symbol.toStringTag,{value:"Module"}));function X3(e){return!e||e.length!==11?e:e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function K3(e){if(!e||e.length<8)return e;const n=e.length;return e.substring(0,3)+"*".repeat(n-7)+e.substring(n-4)}function q3(e){return!e||e.length===0||e.length===1?e:e.length===2?e[0]+"*":e.substring(0,e.length-1)+"*"}function el(e){if(!e||e.length<8)return e;const n=e.length,r=e.substring(0,4),o=e.substring(n-4);return`${r} **** **** ${o}`}function tl(e){if(!e||!e.includes("@"))return e;const[n,r]=e.split("@");return n.length<=1?e:n[0]+"***@"+r}function nl(e,n=6){return!e||e.length<=n?e:e.substring(0,n)+"***"}function rl(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function ol(e){return e&&e.replace(/\b\w/g,n=>n.toUpperCase())}function il(e){return e&&e.replace(/_([a-z])/g,(n,r)=>r.toUpperCase())}function ll(e){return e&&e.replace(/([A-Z])/g,"_$1").toLowerCase()}function al(e){return e&&e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sl(e){if(e==null||e==="")return"";const r=String(e).split(".");return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),r.join(".")}function cl(e,n){const{currency:r="¥",decimals:o=2,thousandsSeparator:i=",",decimalSeparator:s="."}=n||{},l=typeof e=="string"?parseFloat(e):e;if(isNaN(l))return e.toString();const a=l.toFixed(o),[c,w]=a.split(".");let h=c.replace(/\B(?=(\d{3})+(?!\d))/g,i);return o>0&&w&&(h+=s+w),r+h}function ul(e,n=2){if(e===0)return"0 B";if(!e)return"";const r=1024,o=["B","KB","MB","GB","TB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(n))+" "+o[i]}function dl(e){return e&&e.replace(/\s/g,"").replace(/(\d{4})(?=\d)/g,"$1 ")}function fl(e){return e&&e.replace(/\s/g,"").replace(/(\d{3})(\d{4})(\d{4})/,"$1 $2 $3")}function hl(e=8,n="alphanumeric"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o="0123456789";let s=r+o;n==="alpha"&&(s=r),n==="number"&&(s=o);let l="";for(let a=0;a<e;a++)l+=s.charAt(Math.floor(Math.random()*s.length));return l}function pl(e){const n=Date.now(),r=Math.random().toString(36).substring(2,8);return e?`${e}_${n}_${r}`:`${n}_${r}`}function ml(e,n,r="..."){return!e||e.length<=n?e:e.substring(0,n)+r}function gl(e){return e&&e.replace(/<[^>]*>/g,"")}function wl(e){if(!e)return e;const n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'/]/g,r=>n[r])}function yl(e){if(!e)return e;const n={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};return e.replace(/&(amp|lt|gt|quot|#x27|#x2F);/g,r=>n[r])}function vl(e){return e==null||e.trim()===""}function Ql(e){return e&&e.split("").reverse().join("")}function kl(e,n){return!e||n<=0?"":e.repeat(n)}function bl(e,n,r=" "){return e||(e=""),e.padStart(n,r)}function Ml(e,n,r=" "){return e||(e=""),e.padEnd(n,r)}const Cl=Object.freeze(Object.defineProperty({__proto__:null,addressDesensitize:nl,bankCardDesensitize:el,capitalize:rl,capitalizeWords:ol,emailDesensitize:tl,escapeHtml:wl,formatBankCard:dl,formatFileSize:ul,formatMoney:cl,formatNumber:sl,formatPhone:fl,generateUUID:pl,idCardDesensitize:K3,isEmpty:vl,nameDesensitize:q3,padEnd:Ml,padStart:bl,phoneDesensitize:X3,randomString:hl,removeHtmlTags:gl,repeat:kl,reverse:Ql,toCamelCase:il,toKebabCase:al,toUnderlineCase:ll,truncate:ml,unescapeHtml:yl},Symbol.toStringTag,{value:"Module"}));function Ne(e){const n=e||(typeof window<"u"?window.location.href:"");if(!n)return{};const r=n.includes("?")?n.split("?")[1].split("#")[0]:"";if(!r)return{};const o={};return r.split("&").forEach(i=>{if(!i)return;const[s,l=""]=i.split("=").map(decodeURIComponent);s&&(s in o?Array.isArray(o[s])?o[s].push(l):o[s]=[o[s],l]:o[s]=l)}),o}function Be(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(n)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function _l(e,n){const o=Ne(n)[e];return o===void 0?null:Array.isArray(o)?o[0]||null:o}function Dl(e,n){const o=Ne(n)[e];return o===void 0?[]:Array.isArray(o)?o:[o]}function Nl(e,n="push"){if(typeof window>"u"||!window.history)return;const o={...Ne(),...e};Object.keys(o).forEach(l=>{(o[l]===null||o[l]===void 0)&&delete o[l]});const i=Be(o),s=i?`${window.location.pathname}?${i}`:window.location.pathname;n==="push"?window.history.pushState(null,"",s):window.history.replaceState(null,"",s)}function Al(e,n="push"){if(typeof window>"u"||!window.history)return;const r=Ne();e.forEach(s=>{delete r[s]});const o=Be(r),i=o?`${window.location.pathname}?${o}`:window.location.pathname;n==="push"?window.history.pushState(null,"",i):window.history.replaceState(null,"",i)}function Sl(e="push"){if(typeof window>"u"||!window.history)return;const n=window.location.pathname;e==="push"?window.history.pushState(null,"",n):window.history.replaceState(null,"",n)}function Il(...e){return e.length===0?"":e.map((n,r)=>r===0?n.replace(/\/+$/,""):r===e.length-1?n.replace(/^\/+/,""):n.replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")}function Tl(e){if(!e)return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:"",search:"",hash:"",host:"",origin:"",href:"",params:{}};try{const n=new URL(e);return{protocol:n.protocol,username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search,hash:n.hash,host:n.host,origin:n.origin,href:n.href,params:Ne(e)}}catch{return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:e.split("?")[0].split("#")[0],search:e.includes("?")?"?"+e.split("?")[1].split("#")[0]:"",hash:e.includes("#")?"#"+e.split("#")[1]:"",host:"",origin:"",href:e,params:Ne(e)}}}function Ll(e){const{protocol:n="https",hostname:r="",port:o="",pathname:i="",params:s={},hash:l=""}=e;if(!r)return i;let a=`${n}://${r}`;o&&(a+=`:${o}`),i&&(a+=i.startsWith("/")?i:`/${i}`);const c=Be(s);return c&&(a+=`?${c}`),l&&(a+=l.startsWith("#")?l:`#${l}`),a}function El(e){return e?/^(https?:)?\/\//.test(e):!1}function xl(e){return e?e.startsWith("/"):!1}function jl(e,n){try{const r=new URL(e),o=new URL(n);return r.origin===o.origin}catch{return!1}}function zl(e){return encodeURIComponent(e)}function Bl(e){try{return decodeURIComponent(e)}catch{return e}}function Ol(e){if(!e)return"";try{return encodeURI(decodeURI(e))}catch{return encodeURI(e)}}function Fl(e){if(!e)return"";try{return decodeURI(e)}catch{return e}}function Pl(e,n){if(!e)return"";if(!n||Object.keys(n).length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?"),a={...s?Ne("?"+s):{},...n},c=Be(a);let w=i;return c&&(w+=`?${c}`),o&&(w+=`#${o}`),w}function $l(e,n){if(!e)return"";if(!n||n.length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?");if(!s)return e;const l=Ne("?"+s);n.forEach(w=>{delete l[w]});const a=Be(l);let c=i;return a&&(c+=`?${a}`),o&&(c+=`#${o}`),c}function on(e){try{return new URL(e).hostname}catch{return""}}function Rl(e){const n=on(e);if(!n)return"";const r=n.split(".");return r.length<=2?n:r.slice(-2).join(".")}function Vl(){return typeof window>"u"?"":window.location.href}function Ul(){return typeof window>"u"?"":window.location.pathname}function Wl(){return typeof window>"u"?{}:Ne(window.location.search)}function Zl(){return typeof window>"u"?"":window.location.hash.replace(/^#/,"")}const Yl=Object.freeze(Object.defineProperty({__proto__:null,addQueryParams:Pl,buildUrl:Ll,clearQueryParams:Sl,decodeParam:Bl,encodeParam:zl,getCurrentHash:Zl,getCurrentPath:Ul,getCurrentQuery:Wl,getCurrentUrl:Vl,getDomain:on,getQueryParam:_l,getQueryParams:Dl,getRootDomain:Rl,isAbsolutePath:xl,isExternalLink:El,isSameOrigin:jl,joinUrl:Il,parseQuery:Ne,parseUrl:Tl,removeQueryParams:Al,removeQueryParamsFromUrl:$l,safeDecodeUrl:Fl,safeEncodeUrl:Ol,stringifyQuery:Be,updateQueryParams:Nl},Symbol.toStringTag,{value:"Module"})),Gl={...k5,array:V5,dom:M8,number:H8,object:f3,perf:N3,regex:J3,string:Cl,url:Yl};exports.twcptResolver=l1.twcptResolver;exports.twcptResolverWithOptions=l1.twcptResolverWithOptions;exports.DialogProvider=Ve;exports.JTWAmap=zo;exports.JTWBtn=ze;exports.JTWCheckbox=bt;exports.JTWCheckboxGroup=Fr;exports.JTWConfirmDialog=m1;exports.JTWConfirmDialogIcon=p1;exports.JTWCopyText=Ai;exports.JTWDatePicker=x0;exports.JTWDateTimePicker=F0;exports.JTWDialog=v1;exports.JTWDialogFooterMode=y1;exports.JTWDialogPosition=g1;exports.JTWDialogSize=w1;exports.JTWDropdownBtn=yn;exports.JTWFileUpload=co;exports.JTWForm=Ir;exports.JTWFormItem=Er;exports.JTWFormLabel=Nr;exports.JTWInput=c1;exports.JTWMessages=h1;exports.JTWMultiSelectBtn=Vn;exports.JTWPagination=f1;exports.JTWPermission=Qi;exports.JTWRadio=d1;exports.JTWRadioGroup=Rr;exports.JTWSearchBox=Zo;exports.JTWSelect=zr;exports.JTWStatusImg=We;exports.JTWTable=w2;exports.JTWToggle=Wr;exports.JTWTooltip=Mt;exports.JTWTreeSelect=Qr;exports.JTWTreeSelectBtn=Q0;exports.JTWTreeSelectInput=S0;exports.PAGE_ACTION_PERMISSION_KEY=At;exports.PAGE_PERMISSION_KEY=Nt;exports.composeIconMapFn=Ii;exports.dialogConfirm=C1;exports.getLocale=M1;exports.getProjectPermissionId=mi;exports.getTwcptColors=pi;exports.getTwcptConfig=gi;exports.parseKMZFromUrl=m5;exports.parseKMZRouteFromUrl=E1;exports.setLocale=tt;exports.t=b1;exports.twConfirmDialog=C1;exports.twDialog=P2;exports.twMessages=xe;exports.twTool=Gl;exports.twcptIconMapFn=Si;exports.twcptInit=fi;exports.useBizRequest=Ei;exports.useI18n=di;exports.usePageActionPermissionSync=Li;exports.usePagePermissionSync=Ti;exports.useRAFPolling=xi;
|
|
65
|
+
*/var l1;function vl(){return l1||(l1=1,(function(e,n){(function(r){e.exports=r()})(function(){return(function r(o,i,s){function l(y,g){if(!i[y]){if(!o[y]){var p=typeof Xe=="function"&&Xe;if(!g&&p)return p(y,!0);if(a)return a(y,!0);var Q=new Error("Cannot find module '"+y+"'");throw Q.code="MODULE_NOT_FOUND",Q}var h=i[y]={exports:{}};o[y][0].call(h.exports,function(v){var u=o[y][1][v];return l(u||v)},h,h.exports,r,o,i,s)}return i[y].exports}for(var a=typeof Xe=="function"&&Xe,c=0;c<s.length;c++)l(s[c]);return l})({1:[function(r,o,i){var s=r("./utils"),l=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(c){for(var y,g,p,Q,h,v,u,w=[],d=0,k=c.length,N=k,D=s.getTypeOf(c)!=="string";d<c.length;)N=k-d,p=D?(y=c[d++],g=d<k?c[d++]:0,d<k?c[d++]:0):(y=c.charCodeAt(d++),g=d<k?c.charCodeAt(d++):0,d<k?c.charCodeAt(d++):0),Q=y>>2,h=(3&y)<<4|g>>4,v=1<N?(15&g)<<2|p>>6:64,u=2<N?63&p:64,w.push(a.charAt(Q)+a.charAt(h)+a.charAt(v)+a.charAt(u));return w.join("")},i.decode=function(c){var y,g,p,Q,h,v,u=0,w=0,d="data:";if(c.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var k,N=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===a.charAt(64)&&N--,c.charAt(c.length-2)===a.charAt(64)&&N--,N%1!=0)throw new Error("Invalid base64 input, bad content length.");for(k=l.uint8array?new Uint8Array(0|N):new Array(0|N);u<c.length;)y=a.indexOf(c.charAt(u++))<<2|(Q=a.indexOf(c.charAt(u++)))>>4,g=(15&Q)<<4|(h=a.indexOf(c.charAt(u++)))>>2,p=(3&h)<<6|(v=a.indexOf(c.charAt(u++))),k[w++]=y,h!==64&&(k[w++]=g),v!==64&&(k[w++]=p);return k}},{"./support":30,"./utils":32}],2:[function(r,o,i){var s=r("./external"),l=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function y(g,p,Q,h,v){this.compressedSize=g,this.uncompressedSize=p,this.crc32=Q,this.compression=h,this.compressedContent=v}y.prototype={getContentWorker:function(){var g=new l(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),p=this;return g.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new l(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},y.createWorkerFrom=function(g,p,Q){return g.pipe(new a).pipe(new c("uncompressedSize")).pipe(p.compressWorker(Q)).pipe(new c("compressedSize")).withStreamInfo("compression",p)},o.exports=y},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,o,i){var s=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,o,i){var s=r("./utils"),l=(function(){for(var a,c=[],y=0;y<256;y++){a=y;for(var g=0;g<8;g++)a=1&a?3988292384^a>>>1:a>>>1;c[y]=a}return c})();o.exports=function(a,c){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(y,g,p,Q){var h=l,v=Q+p;y^=-1;for(var u=Q;u<v;u++)y=y>>>8^h[255&(y^g[u])];return-1^y})(0|c,a,a.length,0):(function(y,g,p,Q){var h=l,v=Q+p;y^=-1;for(var u=Q;u<v;u++)y=y>>>8^h[255&(y^g.charCodeAt(u))];return-1^y})(0|c,a,a.length,0):0}},{"./utils":32}],5:[function(r,o,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,o,i){var s=null;s=typeof Promise<"u"?Promise:r("lie"),o.exports={Promise:s}},{lie:37}],7:[function(r,o,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=r("pako"),a=r("./utils"),c=r("./stream/GenericWorker"),y=s?"uint8array":"array";function g(p,Q){c.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=Q,this.meta={}}i.magic="\b\0",a.inherits(g,c),g.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(y,p.data),!1)},g.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},g.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},g.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(Q){p.push({data:Q,meta:p.meta})}},i.compressWorker=function(p){return new g("Deflate",p)},i.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,o,i){function s(h,v){var u,w="";for(u=0;u<v;u++)w+=String.fromCharCode(255&h),h>>>=8;return w}function l(h,v,u,w,d,k){var N,D,b=h.file,T=h.compression,I=k!==y.utf8encode,$=a.transformTo("string",k(b.name)),M=a.transformTo("string",y.utf8encode(b.name)),L=b.comment,V=a.transformTo("string",k(L)),C=a.transformTo("string",y.utf8encode(L)),x=M.length!==b.name.length,m=C.length!==L.length,R="",K="",G="",U=b.dir,F=b.date,j={crc32:0,compressedSize:0,uncompressedSize:0};v&&!u||(j.crc32=h.crc32,j.compressedSize=h.compressedSize,j.uncompressedSize=h.uncompressedSize);var S=0;v&&(S|=8),I||!x&&!m||(S|=2048);var B=0,te=0;U&&(B|=16),d==="UNIX"?(te=798,B|=(function(E,J){var oe=E;return E||(oe=J?16893:33204),(65535&oe)<<16})(b.unixPermissions,U)):(te=20,B|=(function(E){return 63&(E||0)})(b.dosPermissions)),N=F.getUTCHours(),N<<=6,N|=F.getUTCMinutes(),N<<=5,N|=F.getUTCSeconds()/2,D=F.getUTCFullYear()-1980,D<<=4,D|=F.getUTCMonth()+1,D<<=5,D|=F.getUTCDate(),x&&(K=s(1,1)+s(g($),4)+M,R+="up"+s(K.length,2)+K),m&&(G=s(1,1)+s(g(V),4)+C,R+="uc"+s(G.length,2)+G);var O="";return O+=`
|
|
66
|
+
\0`,O+=s(S,2),O+=T.magic,O+=s(N,2),O+=s(D,2),O+=s(j.crc32,4),O+=s(j.compressedSize,4),O+=s(j.uncompressedSize,4),O+=s($.length,2),O+=s(R.length,2),{fileRecord:p.LOCAL_FILE_HEADER+O+$+R,dirRecord:p.CENTRAL_FILE_HEADER+s(te,2)+O+s(V.length,2)+"\0\0\0\0"+s(B,4)+s(w,4)+$+R+V}}var a=r("../utils"),c=r("../stream/GenericWorker"),y=r("../utf8"),g=r("../crc32"),p=r("../signature");function Q(h,v,u,w){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=u,this.encodeFileName=w,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(Q,c),Q.prototype.push=function(h){var v=h.meta.percent||0,u=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,c.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:u?(v+100*(u-w-1))/u:100}}))},Q.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var v=this.streamFiles&&!h.file.dir;if(v){var u=l(h,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Q.prototype.closedSource=function(h){this.accumulate=!1;var v=this.streamFiles&&!h.file.dir,u=l(h,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),v)this.push({data:(function(w){return p.DATA_DESCRIPTOR+s(w.crc32,4)+s(w.compressedSize,4)+s(w.uncompressedSize,4)})(h),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Q.prototype.flush=function(){for(var h=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var u=this.bytesWritten-h,w=(function(d,k,N,D,b){var T=a.transformTo("string",b(D));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(d,2)+s(d,2)+s(k,4)+s(N,4)+s(T.length,2)+T})(this.dirRecords.length,u,h,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},Q.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Q.prototype.registerPrevious=function(h){this._sources.push(h);var v=this;return h.on("data",function(u){v.processChunk(u)}),h.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),h.on("error",function(u){v.error(u)}),this},Q.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Q.prototype.error=function(h){var v=this._sources;if(!c.prototype.error.call(this,h))return!1;for(var u=0;u<v.length;u++)try{v[u].error(h)}catch{}return!0},Q.prototype.lock=function(){c.prototype.lock.call(this);for(var h=this._sources,v=0;v<h.length;v++)h[v].lock()},o.exports=Q},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,o,i){var s=r("../compressions"),l=r("./ZipFileWorker");i.generateWorker=function(a,c,y){var g=new l(c.streamFiles,y,c.platform,c.encodeFileName),p=0;try{a.forEach(function(Q,h){p++;var v=(function(k,N){var D=k||N,b=s[D];if(!b)throw new Error(D+" is not a valid compression method !");return b})(h.options.compression,c.compression),u=h.options.compressionOptions||c.compressionOptions||{},w=h.dir,d=h.date;h._compressWorker(v,u).withStreamInfo("file",{name:Q,dir:w,date:d,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(g)}),g.entriesCount=p}catch(Q){g.error(Q)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,o,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new s;for(var a in this)typeof this[a]!="function"&&(l[a]=this[a]);return l}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.10.1",s.loadAsync=function(l,a){return new s().loadAsync(l,a)},s.external=r("./external"),o.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,o,i){var s=r("./utils"),l=r("./external"),a=r("./utf8"),c=r("./zipEntries"),y=r("./stream/Crc32Probe"),g=r("./nodejsUtils");function p(Q){return new l.Promise(function(h,v){var u=Q.decompressed.getContentWorker().pipe(new y);u.on("error",function(w){v(w)}).on("end",function(){u.streamInfo.crc32!==Q.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}o.exports=function(Q,h){var v=this;return h=s.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),g.isNode&&g.isStream(Q)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",Q,!0,h.optimizedBinaryString,h.base64).then(function(u){var w=new c(h);return w.load(u),w}).then(function(u){var w=[l.Promise.resolve(u)],d=u.files;if(h.checkCRC32)for(var k=0;k<d.length;k++)w.push(p(d[k]));return l.Promise.all(w)}).then(function(u){for(var w=u.shift(),d=w.files,k=0;k<d.length;k++){var N=d[k],D=N.fileNameStr,b=s.resolve(N.fileNameStr);v.file(b,N.decompressed,{binary:!0,optimizedBinaryString:!0,date:N.date,dir:N.dir,comment:N.fileCommentStr.length?N.fileCommentStr:null,unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions,createFolders:h.createFolders}),N.dir||(v.file(b).unsafeOriginalName=D)}return w.zipComment.length&&(v.comment=w.zipComment),v})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,o,i){var s=r("../utils"),l=r("../stream/GenericWorker");function a(c,y){l.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(y)}s.inherits(a,l),a.prototype._bindStream=function(c){var y=this;(this._stream=c).pause(),c.on("data",function(g){y.push({data:g,meta:{percent:0}})}).on("error",function(g){y.isPaused?this.generatedError=g:y.error(g)}).on("end",function(){y.isPaused?y._upstreamEnded=!0:y.end()})},a.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},o.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,o,i){var s=r("readable-stream").Readable;function l(a,c,y){s.call(this,c),this._helper=a;var g=this;a.on("data",function(p,Q){g.push(p)||g._helper.pause(),y&&y(Q)}).on("error",function(p){g.emit("error",p)}).on("end",function(){g.push(null)})}r("../utils").inherits(l,s),l.prototype._read=function(){this._helper.resume()},o.exports=l},{"../utils":32,"readable-stream":16}],14:[function(r,o,i){o.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,l);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,l)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var l=new Buffer(s);return l.fill(0),l},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(r,o,i){function s(b,T,I){var $,M=a.getTypeOf(T),L=a.extend(I||{},g);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(b=d(b)),L.createFolders&&($=w(b))&&k.call(this,$,!0);var V=M==="string"&&L.binary===!1&&L.base64===!1;I&&I.binary!==void 0||(L.binary=!V),(T instanceof p&&T.uncompressedSize===0||L.dir||!T||T.length===0)&&(L.base64=!1,L.binary=!0,T="",L.compression="STORE",M="string");var C=null;C=T instanceof p||T instanceof c?T:v.isNode&&v.isStream(T)?new u(b,T):a.prepareContent(b,T,L.binary,L.optimizedBinaryString,L.base64);var x=new Q(b,C,L);this.files[b]=x}var l=r("./utf8"),a=r("./utils"),c=r("./stream/GenericWorker"),y=r("./stream/StreamHelper"),g=r("./defaults"),p=r("./compressedObject"),Q=r("./zipObject"),h=r("./generate"),v=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),w=function(b){b.slice(-1)==="/"&&(b=b.substring(0,b.length-1));var T=b.lastIndexOf("/");return 0<T?b.substring(0,T):""},d=function(b){return b.slice(-1)!=="/"&&(b+="/"),b},k=function(b,T){return T=T!==void 0?T:g.createFolders,b=d(b),this.files[b]||s.call(this,b,null,{dir:!0,createFolders:T}),this.files[b]};function N(b){return Object.prototype.toString.call(b)==="[object RegExp]"}var D={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(b){var T,I,$;for(T in this.files)$=this.files[T],(I=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&b(I,$)},filter:function(b){var T=[];return this.forEach(function(I,$){b(I,$)&&T.push($)}),T},file:function(b,T,I){if(arguments.length!==1)return b=this.root+b,s.call(this,b,T,I),this;if(N(b)){var $=b;return this.filter(function(L,V){return!V.dir&&$.test(L)})}var M=this.files[this.root+b];return M&&!M.dir?M:null},folder:function(b){if(!b)return this;if(N(b))return this.filter(function(M,L){return L.dir&&b.test(M)});var T=this.root+b,I=k.call(this,T),$=this.clone();return $.root=I.name,$},remove:function(b){b=this.root+b;var T=this.files[b];if(T||(b.slice(-1)!=="/"&&(b+="/"),T=this.files[b]),T&&!T.dir)delete this.files[b];else for(var I=this.filter(function(M,L){return L.name.slice(0,b.length)===b}),$=0;$<I.length;$++)delete this.files[I[$].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(b){var T,I={};try{if((I=a.extend(b||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=I.type.toLowerCase(),I.compression=I.compression.toUpperCase(),I.type==="binarystring"&&(I.type="string"),!I.type)throw new Error("No output type specified.");a.checkSupport(I.type),I.platform!=="darwin"&&I.platform!=="freebsd"&&I.platform!=="linux"&&I.platform!=="sunos"||(I.platform="UNIX"),I.platform==="win32"&&(I.platform="DOS");var $=I.comment||this.comment||"";T=h.generateWorker(this,I,$)}catch(M){(T=new c("error")).error(M)}return new y(T,I.type||"string",I.mimeType)},generateAsync:function(b,T){return this.generateInternalStream(b).accumulate(T)},generateNodeStream:function(b,T){return(b=b||{}).type||(b.type="nodebuffer"),this.generateInternalStream(b).toNodejsStream(T)}};o.exports=D},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,o,i){o.exports=r("stream")},{stream:void 0}],17:[function(r,o,i){var s=r("./DataReader");function l(a){s.call(this,a);for(var c=0;c<this.data.length;c++)a[c]=255&a[c]}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data[this.zero+a]},l.prototype.lastIndexOfSignature=function(a){for(var c=a.charCodeAt(0),y=a.charCodeAt(1),g=a.charCodeAt(2),p=a.charCodeAt(3),Q=this.length-4;0<=Q;--Q)if(this.data[Q]===c&&this.data[Q+1]===y&&this.data[Q+2]===g&&this.data[Q+3]===p)return Q-this.zero;return-1},l.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),y=a.charCodeAt(1),g=a.charCodeAt(2),p=a.charCodeAt(3),Q=this.readData(4);return c===Q[0]&&y===Q[1]&&g===Q[2]&&p===Q[3]},l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./DataReader":18}],18:[function(r,o,i){var s=r("../utils");function l(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var c,y=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)y=(y<<8)+this.byteAt(c);return this.index+=a,y},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},o.exports=l},{"../utils":32}],19:[function(r,o,i){var s=r("./Uint8ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,o,i){var s=r("./DataReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},l.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},l.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},l.prototype.readData=function(a){this.checkOffset(a);var c=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,o,i){var s=r("./ArrayReader");function l(a){s.call(this,a)}r("../utils").inherits(l,s),l.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,c},o.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,o,i){var s=r("../utils"),l=r("../support"),a=r("./ArrayReader"),c=r("./StringReader"),y=r("./NodeBufferReader"),g=r("./Uint8ArrayReader");o.exports=function(p){var Q=s.getTypeOf(p);return s.checkSupport(Q),Q!=="string"||l.uint8array?Q==="nodebuffer"?new y(p):l.uint8array?new g(s.transformTo("uint8array",p)):new a(s.transformTo("array",p)):new c(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,o,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,o,i){var s=r("./GenericWorker"),l=r("../utils");function a(c){s.call(this,"ConvertWorker to "+c),this.destType=c}l.inherits(a,s),a.prototype.processChunk=function(c){this.push({data:l.transformTo(this.destType,c.data),meta:c.meta})},o.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,o,i){var s=r("./GenericWorker"),l=r("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,s),a.prototype.processChunk=function(c){this.streamInfo.crc32=l(c.data,this.streamInfo.crc32||0),this.push(c)},o.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,o,i){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}s.inherits(a,l),a.prototype.processChunk=function(c){if(c){var y=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=y+c.data.length}l.prototype.processChunk.call(this,c)},o.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,o,i){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataWorker");var y=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(g){y.dataIsReady=!0,y.data=g,y.max=g&&g.length||0,y.type=s.getTypeOf(g),y.isPaused||y._tickAndRepeat()},function(g){y.error(g)})}s.inherits(a,l),a.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,y=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,y);break;case"uint8array":c=this.data.subarray(this.index,y);break;case"array":case"nodebuffer":c=this.data.slice(this.index,y)}return this.index=y,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},o.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,o,i){function s(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,a){return this._listeners[l].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,a){if(this._listeners[l])for(var c=0;c<this._listeners[l].length;c++)this._listeners[l][c].call(this,a)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var a=this;return l.on("data",function(c){a.processChunk(c)}),l.on("end",function(){a.end()}),l.on("error",function(c){a.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,a){return this.extraStreamInfo[l]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},o.exports=s},{}],29:[function(r,o,i){var s=r("../utils"),l=r("./ConvertWorker"),a=r("./GenericWorker"),c=r("../base64"),y=r("../support"),g=r("../external"),p=null;if(y.nodestream)try{p=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function Q(v,u){return new g.Promise(function(w,d){var k=[],N=v._internalType,D=v._outputType,b=v._mimeType;v.on("data",function(T,I){k.push(T),u&&u(I)}).on("error",function(T){k=[],d(T)}).on("end",function(){try{var T=(function(I,$,M){switch(I){case"blob":return s.newBlob(s.transformTo("arraybuffer",$),M);case"base64":return c.encode($);default:return s.transformTo(I,$)}})(D,(function(I,$){var M,L=0,V=null,C=0;for(M=0;M<$.length;M++)C+=$[M].length;switch(I){case"string":return $.join("");case"array":return Array.prototype.concat.apply([],$);case"uint8array":for(V=new Uint8Array(C),M=0;M<$.length;M++)V.set($[M],L),L+=$[M].length;return V;case"nodebuffer":return Buffer.concat($);default:throw new Error("concat : unsupported type '"+I+"'")}})(N,k),b);w(T)}catch(I){d(I)}k=[]}).resume()})}function h(v,u,w){var d=u;switch(u){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=u,this._mimeType=w,s.checkSupport(d),this._worker=v.pipe(new l(d)),v.lock()}catch(k){this._worker=new a("error"),this._worker.error(k)}}h.prototype={accumulate:function(v){return Q(this,v)},on:function(v,u){var w=this;return v==="data"?this._worker.on(v,function(d){u.call(w,d.data,d.meta)}):this._worker.on(v,function(){s.delay(u,arguments,w)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},v)}},o.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,o,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(s),i.blob=l.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,o,i){for(var s=r("./utils"),l=r("./support"),a=r("./nodejsUtils"),c=r("./stream/GenericWorker"),y=new Array(256),g=0;g<256;g++)y[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;y[254]=y[254]=1;function p(){c.call(this,"utf-8 decode"),this.leftOver=null}function Q(){c.call(this,"utf-8 encode")}i.utf8encode=function(h){return l.nodebuffer?a.newBufferFrom(h,"utf-8"):(function(v){var u,w,d,k,N,D=v.length,b=0;for(k=0;k<D;k++)(64512&(w=v.charCodeAt(k)))==55296&&k+1<D&&(64512&(d=v.charCodeAt(k+1)))==56320&&(w=65536+(w-55296<<10)+(d-56320),k++),b+=w<128?1:w<2048?2:w<65536?3:4;for(u=l.uint8array?new Uint8Array(b):new Array(b),k=N=0;N<b;k++)(64512&(w=v.charCodeAt(k)))==55296&&k+1<D&&(64512&(d=v.charCodeAt(k+1)))==56320&&(w=65536+(w-55296<<10)+(d-56320),k++),w<128?u[N++]=w:(w<2048?u[N++]=192|w>>>6:(w<65536?u[N++]=224|w>>>12:(u[N++]=240|w>>>18,u[N++]=128|w>>>12&63),u[N++]=128|w>>>6&63),u[N++]=128|63&w);return u})(h)},i.utf8decode=function(h){return l.nodebuffer?s.transformTo("nodebuffer",h).toString("utf-8"):(function(v){var u,w,d,k,N=v.length,D=new Array(2*N);for(u=w=0;u<N;)if((d=v[u++])<128)D[w++]=d;else if(4<(k=y[d]))D[w++]=65533,u+=k-1;else{for(d&=k===2?31:k===3?15:7;1<k&&u<N;)d=d<<6|63&v[u++],k--;1<k?D[w++]=65533:d<65536?D[w++]=d:(d-=65536,D[w++]=55296|d>>10&1023,D[w++]=56320|1023&d)}return D.length!==w&&(D.subarray?D=D.subarray(0,w):D.length=w),s.applyFromCharCode(D)})(h=s.transformTo(l.uint8array?"uint8array":"array",h))},s.inherits(p,c),p.prototype.processChunk=function(h){var v=s.transformTo(l.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var u=v;(v=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),v.set(u,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var w=(function(k,N){var D;for((N=N||k.length)>k.length&&(N=k.length),D=N-1;0<=D&&(192&k[D])==128;)D--;return D<0||D===0?N:D+y[k[D]]>N?D:N})(v),d=v;w!==v.length&&(l.uint8array?(d=v.subarray(0,w),this.leftOver=v.subarray(w,v.length)):(d=v.slice(0,w),this.leftOver=v.slice(w,v.length))),this.push({data:i.utf8decode(d),meta:h.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=p,s.inherits(Q,c),Q.prototype.processChunk=function(h){this.push({data:i.utf8encode(h.data),meta:h.meta})},i.Utf8EncodeWorker=Q},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,o,i){var s=r("./support"),l=r("./base64"),a=r("./nodejsUtils"),c=r("./external");function y(u){return u}function g(u,w){for(var d=0;d<u.length;++d)w[d]=255&u.charCodeAt(d);return w}r("setimmediate"),i.newBlob=function(u,w){i.checkSupport("blob");try{return new Blob([u],{type:w})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(u),d.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(u,w,d){var k=[],N=0,D=u.length;if(D<=d)return String.fromCharCode.apply(null,u);for(;N<D;)w==="array"||w==="nodebuffer"?k.push(String.fromCharCode.apply(null,u.slice(N,Math.min(N+d,D)))):k.push(String.fromCharCode.apply(null,u.subarray(N,Math.min(N+d,D)))),N+=d;return k.join("")},stringifyByChar:function(u){for(var w="",d=0;d<u.length;d++)w+=String.fromCharCode(u[d]);return w},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function Q(u){var w=65536,d=i.getTypeOf(u),k=!0;if(d==="uint8array"?k=p.applyCanBeUsed.uint8array:d==="nodebuffer"&&(k=p.applyCanBeUsed.nodebuffer),k)for(;1<w;)try{return p.stringifyByChunk(u,d,w)}catch{w=Math.floor(w/2)}return p.stringifyByChar(u)}function h(u,w){for(var d=0;d<u.length;d++)w[d]=u[d];return w}i.applyFromCharCode=Q;var v={};v.string={string:y,array:function(u){return g(u,new Array(u.length))},arraybuffer:function(u){return v.string.uint8array(u).buffer},uint8array:function(u){return g(u,new Uint8Array(u.length))},nodebuffer:function(u){return g(u,a.allocBuffer(u.length))}},v.array={string:Q,array:y,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(u)}},v.arraybuffer={string:function(u){return Q(new Uint8Array(u))},array:function(u){return h(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:y,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(new Uint8Array(u))}},v.uint8array={string:Q,array:function(u){return h(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:y,nodebuffer:function(u){return a.newBufferFrom(u)}},v.nodebuffer={string:Q,array:function(u){return h(u,new Array(u.length))},arraybuffer:function(u){return v.nodebuffer.uint8array(u).buffer},uint8array:function(u){return h(u,new Uint8Array(u.length))},nodebuffer:y},i.transformTo=function(u,w){if(w=w||"",!u)return w;i.checkSupport(u);var d=i.getTypeOf(w);return v[d][u](w)},i.resolve=function(u){for(var w=u.split("/"),d=[],k=0;k<w.length;k++){var N=w[k];N==="."||N===""&&k!==0&&k!==w.length-1||(N===".."?d.pop():d.push(N))}return d.join("/")},i.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(u)?"nodebuffer":s.uint8array&&u instanceof Uint8Array?"uint8array":s.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(u){if(!s[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(u){var w,d,k="";for(d=0;d<(u||"").length;d++)k+="\\x"+((w=u.charCodeAt(d))<16?"0":"")+w.toString(16).toUpperCase();return k},i.delay=function(u,w,d){setImmediate(function(){u.apply(d||null,w||[])})},i.inherits=function(u,w){function d(){}d.prototype=w.prototype,u.prototype=new d},i.extend=function(){var u,w,d={};for(u=0;u<arguments.length;u++)for(w in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],w)&&d[w]===void 0&&(d[w]=arguments[u][w]);return d},i.prepareContent=function(u,w,d,k,N){return c.Promise.resolve(w).then(function(D){return s.blob&&(D instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(D))!==-1)&&typeof FileReader<"u"?new c.Promise(function(b,T){var I=new FileReader;I.onload=function($){b($.target.result)},I.onerror=function($){T($.target.error)},I.readAsArrayBuffer(D)}):D}).then(function(D){var b=i.getTypeOf(D);return b?(b==="arraybuffer"?D=i.transformTo("uint8array",D):b==="string"&&(N?D=l.decode(D):d&&k!==!0&&(D=(function(T){return g(T,s.uint8array?new Uint8Array(T.length):new Array(T.length))})(D))),D):c.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,o,i){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./signature"),c=r("./zipEntry"),y=r("./support");function g(p){this.files=[],this.loadOptions=p}g.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var Q=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(Q)+", expected "+l.pretty(p)+")")}},isSignature:function(p,Q){var h=this.reader.index;this.reader.setIndex(p);var v=this.reader.readString(4)===Q;return this.reader.setIndex(h),v},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var p=this.reader.readData(this.zipCommentLength),Q=y.uint8array?"uint8array":"array",h=l.transformTo(Q,p);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var p,Q,h,v=this.zip64EndOfCentralSize-44;0<v;)p=this.reader.readInt(2),Q=this.reader.readInt(4),h=this.reader.readData(Q),this.zip64ExtensibleData[p]={id:p,length:Q,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var p,Q;for(p=0;p<this.files.length;p++)Q=this.files[p],this.reader.setIndex(Q.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),Q.readLocalPart(this.reader),Q.handleUTF8(),Q.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(p=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var p=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(p);var Q=p;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var v=Q-h;if(0<v)this.isSignature(Q,a.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" bytes.")},prepareReader:function(p){this.reader=s(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,o,i){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./compressedObject"),c=r("./crc32"),y=r("./utf8"),g=r("./compressions"),p=r("./support");function Q(h,v){this.options=h,this.loadOptions=v}Q.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var v,u;if(h.skip(22),this.fileNameLength=h.readInt(2),u=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((v=(function(w){for(var d in g)if(Object.prototype.hasOwnProperty.call(g,d)&&g[d].magic===w)return g[d];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,v,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var v=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(v),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var v,u,w,d=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<d;)v=h.readInt(2),u=h.readInt(2),w=h.readData(u),this.extraFields[v]={id:v,length:u,value:w};h.setIndex(d)},handleUTF8:function(){var h=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=y.utf8decode(this.fileName),this.fileCommentStr=y.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var u=l.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var d=l.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var v=s(h.value);return v.readInt(1)!==1||c(this.fileName)!==v.readInt(4)?null:y.utf8decode(v.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var v=s(h.value);return v.readInt(1)!==1||c(this.fileComment)!==v.readInt(4)?null:y.utf8decode(v.readData(h.length-5))}return null}},o.exports=Q},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,o,i){function s(v,u,w){this.name=v,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=u,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var l=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),c=r("./utf8"),y=r("./compressedObject"),g=r("./stream/GenericWorker");s.prototype={internalStream:function(v){var u=null,w="string";try{if(!v)throw new Error("No output type specified.");var d=(w=v.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),u=this._decompressWorker();var k=!this._dataBinary;k&&!d&&(u=u.pipe(new c.Utf8EncodeWorker)),!k&&d&&(u=u.pipe(new c.Utf8DecodeWorker))}catch(N){(u=new g("error")).error(N)}return new l(u,w,"")},async:function(v,u){return this.internalStream(v).accumulate(u)},nodeStream:function(v,u){return this.internalStream(v||"nodebuffer").toNodejsStream(u)},_compressWorker:function(v,u){if(this._data instanceof y&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new c.Utf8EncodeWorker)),y.createWorkerFrom(w,v,u)},_decompressWorker:function(){return this._data instanceof y?this._data.getContentWorker():this._data instanceof g?this._data:new a(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Q=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<p.length;h++)s.prototype[p[h]]=Q;o.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,o,i){(function(s){var l,a,c=s.MutationObserver||s.WebKitMutationObserver;if(c){var y=0,g=new c(v),p=s.document.createTextNode("");g.observe(p,{characterData:!0}),l=function(){p.data=y=++y%2}}else if(s.setImmediate||s.MessageChannel===void 0)l="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var u=s.document.createElement("script");u.onreadystatechange=function(){v(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},s.document.documentElement.appendChild(u)}:function(){setTimeout(v,0)};else{var Q=new s.MessageChannel;Q.port1.onmessage=v,l=function(){Q.port2.postMessage(0)}}var h=[];function v(){var u,w;a=!0;for(var d=h.length;d;){for(w=h,h=[],u=-1;++u<d;)w[u]();d=h.length}a=!1}o.exports=function(u){h.push(u)!==1||a||l()}}).call(this,typeof Je<"u"?Je:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,o,i){var s=r("immediate");function l(){}var a={},c=["REJECTED"],y=["FULFILLED"],g=["PENDING"];function p(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,d!==l&&u(this,d)}function Q(d,k,N){this.promise=d,typeof k=="function"&&(this.onFulfilled=k,this.callFulfilled=this.otherCallFulfilled),typeof N=="function"&&(this.onRejected=N,this.callRejected=this.otherCallRejected)}function h(d,k,N){s(function(){var D;try{D=k(N)}catch(b){return a.reject(d,b)}D===d?a.reject(d,new TypeError("Cannot resolve promise with itself")):a.resolve(d,D)})}function v(d){var k=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof k=="function")return function(){k.apply(d,arguments)}}function u(d,k){var N=!1;function D(I){N||(N=!0,a.reject(d,I))}function b(I){N||(N=!0,a.resolve(d,I))}var T=w(function(){k(b,D)});T.status==="error"&&D(T.value)}function w(d,k){var N={};try{N.value=d(k),N.status="success"}catch(D){N.status="error",N.value=D}return N}(o.exports=p).prototype.finally=function(d){if(typeof d!="function")return this;var k=this.constructor;return this.then(function(N){return k.resolve(d()).then(function(){return N})},function(N){return k.resolve(d()).then(function(){throw N})})},p.prototype.catch=function(d){return this.then(null,d)},p.prototype.then=function(d,k){if(typeof d!="function"&&this.state===y||typeof k!="function"&&this.state===c)return this;var N=new this.constructor(l);return this.state!==g?h(N,this.state===y?d:k,this.outcome):this.queue.push(new Q(N,d,k)),N},Q.prototype.callFulfilled=function(d){a.resolve(this.promise,d)},Q.prototype.otherCallFulfilled=function(d){h(this.promise,this.onFulfilled,d)},Q.prototype.callRejected=function(d){a.reject(this.promise,d)},Q.prototype.otherCallRejected=function(d){h(this.promise,this.onRejected,d)},a.resolve=function(d,k){var N=w(v,k);if(N.status==="error")return a.reject(d,N.value);var D=N.value;if(D)u(d,D);else{d.state=y,d.outcome=k;for(var b=-1,T=d.queue.length;++b<T;)d.queue[b].callFulfilled(k)}return d},a.reject=function(d,k){d.state=c,d.outcome=k;for(var N=-1,D=d.queue.length;++N<D;)d.queue[N].callRejected(k);return d},p.resolve=function(d){return d instanceof this?d:a.resolve(new this(l),d)},p.reject=function(d){var k=new this(l);return a.reject(k,d)},p.all=function(d){var k=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=d.length,D=!1;if(!N)return this.resolve([]);for(var b=new Array(N),T=0,I=-1,$=new this(l);++I<N;)M(d[I],I);return $;function M(L,V){k.resolve(L).then(function(C){b[V]=C,++T!==N||D||(D=!0,a.resolve($,b))},function(C){D||(D=!0,a.reject($,C))})}},p.race=function(d){var k=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=d.length,D=!1;if(!N)return this.resolve([]);for(var b=-1,T=new this(l);++b<N;)I=d[b],k.resolve(I).then(function($){D||(D=!0,a.resolve(T,$))},function($){D||(D=!0,a.reject(T,$))});var I;return T}},{immediate:36}],38:[function(r,o,i){var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),o.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,o,i){var s=r("./zlib/deflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/messages"),y=r("./zlib/zstream"),g=Object.prototype.toString,p=0,Q=-1,h=0,v=8;function u(d){if(!(this instanceof u))return new u(d);this.options=l.assign({level:Q,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},d||{});var k=this.options;k.raw&&0<k.windowBits?k.windowBits=-k.windowBits:k.gzip&&0<k.windowBits&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var N=s.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(N!==p)throw new Error(c[N]);if(k.header&&s.deflateSetHeader(this.strm,k.header),k.dictionary){var D;if(D=typeof k.dictionary=="string"?a.string2buf(k.dictionary):g.call(k.dictionary)==="[object ArrayBuffer]"?new Uint8Array(k.dictionary):k.dictionary,(N=s.deflateSetDictionary(this.strm,D))!==p)throw new Error(c[N]);this._dict_set=!0}}function w(d,k){var N=new u(k);if(N.push(d,!0),N.err)throw N.msg||c[N.err];return N.result}u.prototype.push=function(d,k){var N,D,b=this.strm,T=this.options.chunkSize;if(this.ended)return!1;D=k===~~k?k:k===!0?4:0,typeof d=="string"?b.input=a.string2buf(d):g.call(d)==="[object ArrayBuffer]"?b.input=new Uint8Array(d):b.input=d,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new l.Buf8(T),b.next_out=0,b.avail_out=T),(N=s.deflate(b,D))!==1&&N!==p)return this.onEnd(N),!(this.ended=!0);b.avail_out!==0&&(b.avail_in!==0||D!==4&&D!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(l.shrinkBuf(b.output,b.next_out))):this.onData(l.shrinkBuf(b.output,b.next_out)))}while((0<b.avail_in||b.avail_out===0)&&N!==1);return D===4?(N=s.deflateEnd(this.strm),this.onEnd(N),this.ended=!0,N===p):D!==2||(this.onEnd(p),!(b.avail_out=0))},u.prototype.onData=function(d){this.chunks.push(d)},u.prototype.onEnd=function(d){d===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},i.Deflate=u,i.deflate=w,i.deflateRaw=function(d,k){return(k=k||{}).raw=!0,w(d,k)},i.gzip=function(d,k){return(k=k||{}).gzip=!0,w(d,k)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,o,i){var s=r("./zlib/inflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/constants"),y=r("./zlib/messages"),g=r("./zlib/zstream"),p=r("./zlib/gzheader"),Q=Object.prototype.toString;function h(u){if(!(this instanceof h))return new h(u);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},u||{});var w=this.options;w.raw&&0<=w.windowBits&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),!(0<=w.windowBits&&w.windowBits<16)||u&&u.windowBits||(w.windowBits+=32),15<w.windowBits&&w.windowBits<48&&(15&w.windowBits)==0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var d=s.inflateInit2(this.strm,w.windowBits);if(d!==c.Z_OK)throw new Error(y[d]);this.header=new p,s.inflateGetHeader(this.strm,this.header)}function v(u,w){var d=new h(w);if(d.push(u,!0),d.err)throw d.msg||y[d.err];return d.result}h.prototype.push=function(u,w){var d,k,N,D,b,T,I=this.strm,$=this.options.chunkSize,M=this.options.dictionary,L=!1;if(this.ended)return!1;k=w===~~w?w:w===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof u=="string"?I.input=a.binstring2buf(u):Q.call(u)==="[object ArrayBuffer]"?I.input=new Uint8Array(u):I.input=u,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new l.Buf8($),I.next_out=0,I.avail_out=$),(d=s.inflate(I,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&M&&(T=typeof M=="string"?a.string2buf(M):Q.call(M)==="[object ArrayBuffer]"?new Uint8Array(M):M,d=s.inflateSetDictionary(this.strm,T)),d===c.Z_BUF_ERROR&&L===!0&&(d=c.Z_OK,L=!1),d!==c.Z_STREAM_END&&d!==c.Z_OK)return this.onEnd(d),!(this.ended=!0);I.next_out&&(I.avail_out!==0&&d!==c.Z_STREAM_END&&(I.avail_in!==0||k!==c.Z_FINISH&&k!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(N=a.utf8border(I.output,I.next_out),D=I.next_out-N,b=a.buf2string(I.output,N),I.next_out=D,I.avail_out=$-D,D&&l.arraySet(I.output,I.output,N,D,0),this.onData(b)):this.onData(l.shrinkBuf(I.output,I.next_out)))),I.avail_in===0&&I.avail_out===0&&(L=!0)}while((0<I.avail_in||I.avail_out===0)&&d!==c.Z_STREAM_END);return d===c.Z_STREAM_END&&(k=c.Z_FINISH),k===c.Z_FINISH?(d=s.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===c.Z_OK):k!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(I.avail_out=0))},h.prototype.onData=function(u){this.chunks.push(u)},h.prototype.onEnd=function(u){u===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},i.Inflate=h,i.inflate=v,i.inflateRaw=function(u,w){return(w=w||{}).raw=!0,v(u,w)},i.ungzip=v},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,o,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(c){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var g=y.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var p in g)g.hasOwnProperty(p)&&(c[p]=g[p])}}return c},i.shrinkBuf=function(c,y){return c.length===y?c:c.subarray?c.subarray(0,y):(c.length=y,c)};var l={arraySet:function(c,y,g,p,Q){if(y.subarray&&c.subarray)c.set(y.subarray(g,g+p),Q);else for(var h=0;h<p;h++)c[Q+h]=y[g+h]},flattenChunks:function(c){var y,g,p,Q,h,v;for(y=p=0,g=c.length;y<g;y++)p+=c[y].length;for(v=new Uint8Array(p),y=Q=0,g=c.length;y<g;y++)h=c[y],v.set(h,Q),Q+=h.length;return v}},a={arraySet:function(c,y,g,p,Q){for(var h=0;h<p;h++)c[Q+h]=y[g+h]},flattenChunks:function(c){return[].concat.apply([],c)}};i.setTyped=function(c){c?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,l)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(r,o,i){var s=r("./common"),l=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var c=new s.Buf8(256),y=0;y<256;y++)c[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;function g(p,Q){if(Q<65537&&(p.subarray&&a||!p.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(p,Q));for(var h="",v=0;v<Q;v++)h+=String.fromCharCode(p[v]);return h}c[254]=c[254]=1,i.string2buf=function(p){var Q,h,v,u,w,d=p.length,k=0;for(u=0;u<d;u++)(64512&(h=p.charCodeAt(u)))==55296&&u+1<d&&(64512&(v=p.charCodeAt(u+1)))==56320&&(h=65536+(h-55296<<10)+(v-56320),u++),k+=h<128?1:h<2048?2:h<65536?3:4;for(Q=new s.Buf8(k),u=w=0;w<k;u++)(64512&(h=p.charCodeAt(u)))==55296&&u+1<d&&(64512&(v=p.charCodeAt(u+1)))==56320&&(h=65536+(h-55296<<10)+(v-56320),u++),h<128?Q[w++]=h:(h<2048?Q[w++]=192|h>>>6:(h<65536?Q[w++]=224|h>>>12:(Q[w++]=240|h>>>18,Q[w++]=128|h>>>12&63),Q[w++]=128|h>>>6&63),Q[w++]=128|63&h);return Q},i.buf2binstring=function(p){return g(p,p.length)},i.binstring2buf=function(p){for(var Q=new s.Buf8(p.length),h=0,v=Q.length;h<v;h++)Q[h]=p.charCodeAt(h);return Q},i.buf2string=function(p,Q){var h,v,u,w,d=Q||p.length,k=new Array(2*d);for(h=v=0;h<d;)if((u=p[h++])<128)k[v++]=u;else if(4<(w=c[u]))k[v++]=65533,h+=w-1;else{for(u&=w===2?31:w===3?15:7;1<w&&h<d;)u=u<<6|63&p[h++],w--;1<w?k[v++]=65533:u<65536?k[v++]=u:(u-=65536,k[v++]=55296|u>>10&1023,k[v++]=56320|1023&u)}return g(k,v)},i.utf8border=function(p,Q){var h;for((Q=Q||p.length)>p.length&&(Q=p.length),h=Q-1;0<=h&&(192&p[h])==128;)h--;return h<0||h===0?Q:h+c[p[h]]>Q?h:Q}},{"./common":41}],43:[function(r,o,i){o.exports=function(s,l,a,c){for(var y=65535&s|0,g=s>>>16&65535|0,p=0;a!==0;){for(a-=p=2e3<a?2e3:a;g=g+(y=y+l[c++]|0)|0,--p;);y%=65521,g%=65521}return y|g<<16|0}},{}],44:[function(r,o,i){o.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,o,i){var s=(function(){for(var l,a=[],c=0;c<256;c++){l=c;for(var y=0;y<8;y++)l=1&l?3988292384^l>>>1:l>>>1;a[c]=l}return a})();o.exports=function(l,a,c,y){var g=s,p=y+c;l^=-1;for(var Q=y;Q<p;Q++)l=l>>>8^g[255&(l^a[Q])];return-1^l}},{}],46:[function(r,o,i){var s,l=r("../utils/common"),a=r("./trees"),c=r("./adler32"),y=r("./crc32"),g=r("./messages"),p=0,Q=4,h=0,v=-2,u=-1,w=4,d=2,k=8,N=9,D=286,b=30,T=19,I=2*D+1,$=15,M=3,L=258,V=L+M+1,C=42,x=113,m=1,R=2,K=3,G=4;function U(f,Y){return f.msg=g[Y],Y}function F(f){return(f<<1)-(4<f?9:0)}function j(f){for(var Y=f.length;0<=--Y;)f[Y]=0}function S(f){var Y=f.state,W=Y.pending;W>f.avail_out&&(W=f.avail_out),W!==0&&(l.arraySet(f.output,Y.pending_buf,Y.pending_out,W,f.next_out),f.next_out+=W,Y.pending_out+=W,f.total_out+=W,f.avail_out-=W,Y.pending-=W,Y.pending===0&&(Y.pending_out=0))}function B(f,Y){a._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,Y),f.block_start=f.strstart,S(f.strm)}function te(f,Y){f.pending_buf[f.pending++]=Y}function O(f,Y){f.pending_buf[f.pending++]=Y>>>8&255,f.pending_buf[f.pending++]=255&Y}function E(f,Y){var W,A,_=f.max_chain_length,z=f.strstart,H=f.prev_length,X=f.nice_match,P=f.strstart>f.w_size-V?f.strstart-(f.w_size-V):0,q=f.window,re=f.w_mask,ee=f.prev,ae=f.strstart+L,he=q[z+H-1],ce=q[z+H];f.prev_length>=f.good_match&&(_>>=2),X>f.lookahead&&(X=f.lookahead);do if(q[(W=Y)+H]===ce&&q[W+H-1]===he&&q[W]===q[z]&&q[++W]===q[z+1]){z+=2,W++;do;while(q[++z]===q[++W]&&q[++z]===q[++W]&&q[++z]===q[++W]&&q[++z]===q[++W]&&q[++z]===q[++W]&&q[++z]===q[++W]&&q[++z]===q[++W]&&q[++z]===q[++W]&&z<ae);if(A=L-(ae-z),z=ae-L,H<A){if(f.match_start=Y,X<=(H=A))break;he=q[z+H-1],ce=q[z+H]}}while((Y=ee[Y&re])>P&&--_!=0);return H<=f.lookahead?H:f.lookahead}function J(f){var Y,W,A,_,z,H,X,P,q,re,ee=f.w_size;do{if(_=f.window_size-f.lookahead-f.strstart,f.strstart>=ee+(ee-V)){for(l.arraySet(f.window,f.window,ee,ee,0),f.match_start-=ee,f.strstart-=ee,f.block_start-=ee,Y=W=f.hash_size;A=f.head[--Y],f.head[Y]=ee<=A?A-ee:0,--W;);for(Y=W=ee;A=f.prev[--Y],f.prev[Y]=ee<=A?A-ee:0,--W;);_+=ee}if(f.strm.avail_in===0)break;if(H=f.strm,X=f.window,P=f.strstart+f.lookahead,q=_,re=void 0,re=H.avail_in,q<re&&(re=q),W=re===0?0:(H.avail_in-=re,l.arraySet(X,H.input,H.next_in,re,P),H.state.wrap===1?H.adler=c(H.adler,X,re,P):H.state.wrap===2&&(H.adler=y(H.adler,X,re,P)),H.next_in+=re,H.total_in+=re,re),f.lookahead+=W,f.lookahead+f.insert>=M)for(z=f.strstart-f.insert,f.ins_h=f.window[z],f.ins_h=(f.ins_h<<f.hash_shift^f.window[z+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[z+M-1])&f.hash_mask,f.prev[z&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=z,z++,f.insert--,!(f.lookahead+f.insert<M)););}while(f.lookahead<V&&f.strm.avail_in!==0)}function oe(f,Y){for(var W,A;;){if(f.lookahead<V){if(J(f),f.lookahead<V&&Y===p)return m;if(f.lookahead===0)break}if(W=0,f.lookahead>=M&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+M-1])&f.hash_mask,W=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),W!==0&&f.strstart-W<=f.w_size-V&&(f.match_length=E(f,W)),f.match_length>=M)if(A=a._tr_tally(f,f.strstart-f.match_start,f.match_length-M),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=M){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+M-1])&f.hash_mask,W=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart,--f.match_length!=0;);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else A=a._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(A&&(B(f,!1),f.strm.avail_out===0))return m}return f.insert=f.strstart<M-1?f.strstart:M-1,Y===Q?(B(f,!0),f.strm.avail_out===0?K:G):f.last_lit&&(B(f,!1),f.strm.avail_out===0)?m:R}function le(f,Y){for(var W,A,_;;){if(f.lookahead<V){if(J(f),f.lookahead<V&&Y===p)return m;if(f.lookahead===0)break}if(W=0,f.lookahead>=M&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+M-1])&f.hash_mask,W=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=M-1,W!==0&&f.prev_length<f.max_lazy_match&&f.strstart-W<=f.w_size-V&&(f.match_length=E(f,W),f.match_length<=5&&(f.strategy===1||f.match_length===M&&4096<f.strstart-f.match_start)&&(f.match_length=M-1)),f.prev_length>=M&&f.match_length<=f.prev_length){for(_=f.strstart+f.lookahead-M,A=a._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-M),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=_&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+M-1])&f.hash_mask,W=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),--f.prev_length!=0;);if(f.match_available=0,f.match_length=M-1,f.strstart++,A&&(B(f,!1),f.strm.avail_out===0))return m}else if(f.match_available){if((A=a._tr_tally(f,0,f.window[f.strstart-1]))&&B(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return m}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(A=a._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<M-1?f.strstart:M-1,Y===Q?(B(f,!0),f.strm.avail_out===0?K:G):f.last_lit&&(B(f,!1),f.strm.avail_out===0)?m:R}function Z(f,Y,W,A,_){this.good_length=f,this.max_lazy=Y,this.nice_length=W,this.max_chain=A,this.func=_}function ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*I),this.dyn_dtree=new l.Buf16(2*(2*b+1)),this.bl_tree=new l.Buf16(2*(2*T+1)),j(this.dyn_ltree),j(this.dyn_dtree),j(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16($+1),this.heap=new l.Buf16(2*D+1),j(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*D+1),j(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ie(f){var Y;return f&&f.state?(f.total_in=f.total_out=0,f.data_type=d,(Y=f.state).pending=0,Y.pending_out=0,Y.wrap<0&&(Y.wrap=-Y.wrap),Y.status=Y.wrap?C:x,f.adler=Y.wrap===2?0:1,Y.last_flush=p,a._tr_init(Y),h):U(f,v)}function de(f){var Y=ie(f);return Y===h&&(function(W){W.window_size=2*W.w_size,j(W.head),W.max_lazy_match=s[W.level].max_lazy,W.good_match=s[W.level].good_length,W.nice_match=s[W.level].nice_length,W.max_chain_length=s[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=M-1,W.match_available=0,W.ins_h=0})(f.state),Y}function pe(f,Y,W,A,_,z){if(!f)return v;var H=1;if(Y===u&&(Y=6),A<0?(H=0,A=-A):15<A&&(H=2,A-=16),_<1||N<_||W!==k||A<8||15<A||Y<0||9<Y||z<0||w<z)return U(f,v);A===8&&(A=9);var X=new ne;return(f.state=X).strm=f,X.wrap=H,X.gzhead=null,X.w_bits=A,X.w_size=1<<X.w_bits,X.w_mask=X.w_size-1,X.hash_bits=_+7,X.hash_size=1<<X.hash_bits,X.hash_mask=X.hash_size-1,X.hash_shift=~~((X.hash_bits+M-1)/M),X.window=new l.Buf8(2*X.w_size),X.head=new l.Buf16(X.hash_size),X.prev=new l.Buf16(X.w_size),X.lit_bufsize=1<<_+6,X.pending_buf_size=4*X.lit_bufsize,X.pending_buf=new l.Buf8(X.pending_buf_size),X.d_buf=1*X.lit_bufsize,X.l_buf=3*X.lit_bufsize,X.level=Y,X.strategy=z,X.method=W,de(f)}s=[new Z(0,0,0,0,function(f,Y){var W=65535;for(W>f.pending_buf_size-5&&(W=f.pending_buf_size-5);;){if(f.lookahead<=1){if(J(f),f.lookahead===0&&Y===p)return m;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var A=f.block_start+W;if((f.strstart===0||f.strstart>=A)&&(f.lookahead=f.strstart-A,f.strstart=A,B(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-V&&(B(f,!1),f.strm.avail_out===0))return m}return f.insert=0,Y===Q?(B(f,!0),f.strm.avail_out===0?K:G):(f.strstart>f.block_start&&(B(f,!1),f.strm.avail_out),m)}),new Z(4,4,8,4,oe),new Z(4,5,16,8,oe),new Z(4,6,32,32,oe),new Z(4,4,16,16,le),new Z(8,16,32,32,le),new Z(8,16,128,128,le),new Z(8,32,128,256,le),new Z(32,128,258,1024,le),new Z(32,258,258,4096,le)],i.deflateInit=function(f,Y){return pe(f,Y,k,15,8,0)},i.deflateInit2=pe,i.deflateReset=de,i.deflateResetKeep=ie,i.deflateSetHeader=function(f,Y){return f&&f.state?f.state.wrap!==2?v:(f.state.gzhead=Y,h):v},i.deflate=function(f,Y){var W,A,_,z;if(!f||!f.state||5<Y||Y<0)return f?U(f,v):v;if(A=f.state,!f.output||!f.input&&f.avail_in!==0||A.status===666&&Y!==Q)return U(f,f.avail_out===0?-5:v);if(A.strm=f,W=A.last_flush,A.last_flush=Y,A.status===C)if(A.wrap===2)f.adler=0,te(A,31),te(A,139),te(A,8),A.gzhead?(te(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),te(A,255&A.gzhead.time),te(A,A.gzhead.time>>8&255),te(A,A.gzhead.time>>16&255),te(A,A.gzhead.time>>24&255),te(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),te(A,255&A.gzhead.os),A.gzhead.extra&&A.gzhead.extra.length&&(te(A,255&A.gzhead.extra.length),te(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(f.adler=y(f.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=69):(te(A,0),te(A,0),te(A,0),te(A,0),te(A,0),te(A,A.level===9?2:2<=A.strategy||A.level<2?4:0),te(A,3),A.status=x);else{var H=k+(A.w_bits-8<<4)<<8;H|=(2<=A.strategy||A.level<2?0:A.level<6?1:A.level===6?2:3)<<6,A.strstart!==0&&(H|=32),H+=31-H%31,A.status=x,O(A,H),A.strstart!==0&&(O(A,f.adler>>>16),O(A,65535&f.adler)),f.adler=1}if(A.status===69)if(A.gzhead.extra){for(_=A.pending;A.gzindex<(65535&A.gzhead.extra.length)&&(A.pending!==A.pending_buf_size||(A.gzhead.hcrc&&A.pending>_&&(f.adler=y(f.adler,A.pending_buf,A.pending-_,_)),S(f),_=A.pending,A.pending!==A.pending_buf_size));)te(A,255&A.gzhead.extra[A.gzindex]),A.gzindex++;A.gzhead.hcrc&&A.pending>_&&(f.adler=y(f.adler,A.pending_buf,A.pending-_,_)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=73)}else A.status=73;if(A.status===73)if(A.gzhead.name){_=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>_&&(f.adler=y(f.adler,A.pending_buf,A.pending-_,_)),S(f),_=A.pending,A.pending===A.pending_buf_size)){z=1;break}z=A.gzindex<A.gzhead.name.length?255&A.gzhead.name.charCodeAt(A.gzindex++):0,te(A,z)}while(z!==0);A.gzhead.hcrc&&A.pending>_&&(f.adler=y(f.adler,A.pending_buf,A.pending-_,_)),z===0&&(A.gzindex=0,A.status=91)}else A.status=91;if(A.status===91)if(A.gzhead.comment){_=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>_&&(f.adler=y(f.adler,A.pending_buf,A.pending-_,_)),S(f),_=A.pending,A.pending===A.pending_buf_size)){z=1;break}z=A.gzindex<A.gzhead.comment.length?255&A.gzhead.comment.charCodeAt(A.gzindex++):0,te(A,z)}while(z!==0);A.gzhead.hcrc&&A.pending>_&&(f.adler=y(f.adler,A.pending_buf,A.pending-_,_)),z===0&&(A.status=103)}else A.status=103;if(A.status===103&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&S(f),A.pending+2<=A.pending_buf_size&&(te(A,255&f.adler),te(A,f.adler>>8&255),f.adler=0,A.status=x)):A.status=x),A.pending!==0){if(S(f),f.avail_out===0)return A.last_flush=-1,h}else if(f.avail_in===0&&F(Y)<=F(W)&&Y!==Q)return U(f,-5);if(A.status===666&&f.avail_in!==0)return U(f,-5);if(f.avail_in!==0||A.lookahead!==0||Y!==p&&A.status!==666){var X=A.strategy===2?(function(P,q){for(var re;;){if(P.lookahead===0&&(J(P),P.lookahead===0)){if(q===p)return m;break}if(P.match_length=0,re=a._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++,re&&(B(P,!1),P.strm.avail_out===0))return m}return P.insert=0,q===Q?(B(P,!0),P.strm.avail_out===0?K:G):P.last_lit&&(B(P,!1),P.strm.avail_out===0)?m:R})(A,Y):A.strategy===3?(function(P,q){for(var re,ee,ae,he,ce=P.window;;){if(P.lookahead<=L){if(J(P),P.lookahead<=L&&q===p)return m;if(P.lookahead===0)break}if(P.match_length=0,P.lookahead>=M&&0<P.strstart&&(ee=ce[ae=P.strstart-1])===ce[++ae]&&ee===ce[++ae]&&ee===ce[++ae]){he=P.strstart+L;do;while(ee===ce[++ae]&&ee===ce[++ae]&&ee===ce[++ae]&&ee===ce[++ae]&&ee===ce[++ae]&&ee===ce[++ae]&&ee===ce[++ae]&&ee===ce[++ae]&&ae<he);P.match_length=L-(he-ae),P.match_length>P.lookahead&&(P.match_length=P.lookahead)}if(P.match_length>=M?(re=a._tr_tally(P,1,P.match_length-M),P.lookahead-=P.match_length,P.strstart+=P.match_length,P.match_length=0):(re=a._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++),re&&(B(P,!1),P.strm.avail_out===0))return m}return P.insert=0,q===Q?(B(P,!0),P.strm.avail_out===0?K:G):P.last_lit&&(B(P,!1),P.strm.avail_out===0)?m:R})(A,Y):s[A.level].func(A,Y);if(X!==K&&X!==G||(A.status=666),X===m||X===K)return f.avail_out===0&&(A.last_flush=-1),h;if(X===R&&(Y===1?a._tr_align(A):Y!==5&&(a._tr_stored_block(A,0,0,!1),Y===3&&(j(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),S(f),f.avail_out===0))return A.last_flush=-1,h}return Y!==Q?h:A.wrap<=0?1:(A.wrap===2?(te(A,255&f.adler),te(A,f.adler>>8&255),te(A,f.adler>>16&255),te(A,f.adler>>24&255),te(A,255&f.total_in),te(A,f.total_in>>8&255),te(A,f.total_in>>16&255),te(A,f.total_in>>24&255)):(O(A,f.adler>>>16),O(A,65535&f.adler)),S(f),0<A.wrap&&(A.wrap=-A.wrap),A.pending!==0?h:1)},i.deflateEnd=function(f){var Y;return f&&f.state?(Y=f.state.status)!==C&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==x&&Y!==666?U(f,v):(f.state=null,Y===x?U(f,-3):h):v},i.deflateSetDictionary=function(f,Y){var W,A,_,z,H,X,P,q,re=Y.length;if(!f||!f.state||(z=(W=f.state).wrap)===2||z===1&&W.status!==C||W.lookahead)return v;for(z===1&&(f.adler=c(f.adler,Y,re,0)),W.wrap=0,re>=W.w_size&&(z===0&&(j(W.head),W.strstart=0,W.block_start=0,W.insert=0),q=new l.Buf8(W.w_size),l.arraySet(q,Y,re-W.w_size,W.w_size,0),Y=q,re=W.w_size),H=f.avail_in,X=f.next_in,P=f.input,f.avail_in=re,f.next_in=0,f.input=Y,J(W);W.lookahead>=M;){for(A=W.strstart,_=W.lookahead-(M-1);W.ins_h=(W.ins_h<<W.hash_shift^W.window[A+M-1])&W.hash_mask,W.prev[A&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=A,A++,--_;);W.strstart=A,W.lookahead=M-1,J(W)}return W.strstart+=W.lookahead,W.block_start=W.strstart,W.insert=W.lookahead,W.lookahead=0,W.match_length=W.prev_length=M-1,W.match_available=0,f.next_in=X,f.input=P,f.avail_in=H,W.wrap=z,h},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,o,i){o.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,o,i){o.exports=function(s,l){var a,c,y,g,p,Q,h,v,u,w,d,k,N,D,b,T,I,$,M,L,V,C,x,m,R;a=s.state,c=s.next_in,m=s.input,y=c+(s.avail_in-5),g=s.next_out,R=s.output,p=g-(l-s.avail_out),Q=g+(s.avail_out-257),h=a.dmax,v=a.wsize,u=a.whave,w=a.wnext,d=a.window,k=a.hold,N=a.bits,D=a.lencode,b=a.distcode,T=(1<<a.lenbits)-1,I=(1<<a.distbits)-1;e:do{N<15&&(k+=m[c++]<<N,N+=8,k+=m[c++]<<N,N+=8),$=D[k&T];t:for(;;){if(k>>>=M=$>>>24,N-=M,(M=$>>>16&255)===0)R[g++]=65535&$;else{if(!(16&M)){if((64&M)==0){$=D[(65535&$)+(k&(1<<M)-1)];continue t}if(32&M){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}L=65535&$,(M&=15)&&(N<M&&(k+=m[c++]<<N,N+=8),L+=k&(1<<M)-1,k>>>=M,N-=M),N<15&&(k+=m[c++]<<N,N+=8,k+=m[c++]<<N,N+=8),$=b[k&I];n:for(;;){if(k>>>=M=$>>>24,N-=M,!(16&(M=$>>>16&255))){if((64&M)==0){$=b[(65535&$)+(k&(1<<M)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(V=65535&$,N<(M&=15)&&(k+=m[c++]<<N,(N+=8)<M&&(k+=m[c++]<<N,N+=8)),h<(V+=k&(1<<M)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(k>>>=M,N-=M,(M=g-p)<V){if(u<(M=V-M)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(x=d,(C=0)===w){if(C+=v-M,M<L){for(L-=M;R[g++]=d[C++],--M;);C=g-V,x=R}}else if(w<M){if(C+=v+w-M,(M-=w)<L){for(L-=M;R[g++]=d[C++],--M;);if(C=0,w<L){for(L-=M=w;R[g++]=d[C++],--M;);C=g-V,x=R}}}else if(C+=w-M,M<L){for(L-=M;R[g++]=d[C++],--M;);C=g-V,x=R}for(;2<L;)R[g++]=x[C++],R[g++]=x[C++],R[g++]=x[C++],L-=3;L&&(R[g++]=x[C++],1<L&&(R[g++]=x[C++]))}else{for(C=g-V;R[g++]=R[C++],R[g++]=R[C++],R[g++]=R[C++],2<(L-=3););L&&(R[g++]=R[C++],1<L&&(R[g++]=R[C++]))}break}}break}}while(c<y&&g<Q);c-=L=N>>3,k&=(1<<(N-=L<<3))-1,s.next_in=c,s.next_out=g,s.avail_in=c<y?y-c+5:5-(c-y),s.avail_out=g<Q?Q-g+257:257-(g-Q),a.hold=k,a.bits=N}},{}],49:[function(r,o,i){var s=r("../utils/common"),l=r("./adler32"),a=r("./crc32"),c=r("./inffast"),y=r("./inftrees"),g=1,p=2,Q=0,h=-2,v=1,u=852,w=592;function d(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function k(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function N(C){var x;return C&&C.state?(x=C.state,C.total_in=C.total_out=x.total=0,C.msg="",x.wrap&&(C.adler=1&x.wrap),x.mode=v,x.last=0,x.havedict=0,x.dmax=32768,x.head=null,x.hold=0,x.bits=0,x.lencode=x.lendyn=new s.Buf32(u),x.distcode=x.distdyn=new s.Buf32(w),x.sane=1,x.back=-1,Q):h}function D(C){var x;return C&&C.state?((x=C.state).wsize=0,x.whave=0,x.wnext=0,N(C)):h}function b(C,x){var m,R;return C&&C.state?(R=C.state,x<0?(m=0,x=-x):(m=1+(x>>4),x<48&&(x&=15)),x&&(x<8||15<x)?h:(R.window!==null&&R.wbits!==x&&(R.window=null),R.wrap=m,R.wbits=x,D(C))):h}function T(C,x){var m,R;return C?(R=new k,(C.state=R).window=null,(m=b(C,x))!==Q&&(C.state=null),m):h}var I,$,M=!0;function L(C){if(M){var x;for(I=new s.Buf32(512),$=new s.Buf32(32),x=0;x<144;)C.lens[x++]=8;for(;x<256;)C.lens[x++]=9;for(;x<280;)C.lens[x++]=7;for(;x<288;)C.lens[x++]=8;for(y(g,C.lens,0,288,I,0,C.work,{bits:9}),x=0;x<32;)C.lens[x++]=5;y(p,C.lens,0,32,$,0,C.work,{bits:5}),M=!1}C.lencode=I,C.lenbits=9,C.distcode=$,C.distbits=5}function V(C,x,m,R){var K,G=C.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new s.Buf8(G.wsize)),R>=G.wsize?(s.arraySet(G.window,x,m-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(R<(K=G.wsize-G.wnext)&&(K=R),s.arraySet(G.window,x,m-R,K,G.wnext),(R-=K)?(s.arraySet(G.window,x,m-R,R,0),G.wnext=R,G.whave=G.wsize):(G.wnext+=K,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=K))),0}i.inflateReset=D,i.inflateReset2=b,i.inflateResetKeep=N,i.inflateInit=function(C){return T(C,15)},i.inflateInit2=T,i.inflate=function(C,x){var m,R,K,G,U,F,j,S,B,te,O,E,J,oe,le,Z,ne,ie,de,pe,f,Y,W,A,_=0,z=new s.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!C||!C.state||!C.output||!C.input&&C.avail_in!==0)return h;(m=C.state).mode===12&&(m.mode=13),U=C.next_out,K=C.output,j=C.avail_out,G=C.next_in,R=C.input,F=C.avail_in,S=m.hold,B=m.bits,te=F,O=j,Y=Q;e:for(;;)switch(m.mode){case v:if(m.wrap===0){m.mode=13;break}for(;B<16;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(2&m.wrap&&S===35615){z[m.check=0]=255&S,z[1]=S>>>8&255,m.check=a(m.check,z,2,0),B=S=0,m.mode=2;break}if(m.flags=0,m.head&&(m.head.done=!1),!(1&m.wrap)||(((255&S)<<8)+(S>>8))%31){C.msg="incorrect header check",m.mode=30;break}if((15&S)!=8){C.msg="unknown compression method",m.mode=30;break}if(B-=4,f=8+(15&(S>>>=4)),m.wbits===0)m.wbits=f;else if(f>m.wbits){C.msg="invalid window size",m.mode=30;break}m.dmax=1<<f,C.adler=m.check=1,m.mode=512&S?10:12,B=S=0;break;case 2:for(;B<16;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(m.flags=S,(255&m.flags)!=8){C.msg="unknown compression method",m.mode=30;break}if(57344&m.flags){C.msg="unknown header flags set",m.mode=30;break}m.head&&(m.head.text=S>>8&1),512&m.flags&&(z[0]=255&S,z[1]=S>>>8&255,m.check=a(m.check,z,2,0)),B=S=0,m.mode=3;case 3:for(;B<32;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}m.head&&(m.head.time=S),512&m.flags&&(z[0]=255&S,z[1]=S>>>8&255,z[2]=S>>>16&255,z[3]=S>>>24&255,m.check=a(m.check,z,4,0)),B=S=0,m.mode=4;case 4:for(;B<16;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}m.head&&(m.head.xflags=255&S,m.head.os=S>>8),512&m.flags&&(z[0]=255&S,z[1]=S>>>8&255,m.check=a(m.check,z,2,0)),B=S=0,m.mode=5;case 5:if(1024&m.flags){for(;B<16;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}m.length=S,m.head&&(m.head.extra_len=S),512&m.flags&&(z[0]=255&S,z[1]=S>>>8&255,m.check=a(m.check,z,2,0)),B=S=0}else m.head&&(m.head.extra=null);m.mode=6;case 6:if(1024&m.flags&&(F<(E=m.length)&&(E=F),E&&(m.head&&(f=m.head.extra_len-m.length,m.head.extra||(m.head.extra=new Array(m.head.extra_len)),s.arraySet(m.head.extra,R,G,E,f)),512&m.flags&&(m.check=a(m.check,R,E,G)),F-=E,G+=E,m.length-=E),m.length))break e;m.length=0,m.mode=7;case 7:if(2048&m.flags){if(F===0)break e;for(E=0;f=R[G+E++],m.head&&f&&m.length<65536&&(m.head.name+=String.fromCharCode(f)),f&&E<F;);if(512&m.flags&&(m.check=a(m.check,R,E,G)),F-=E,G+=E,f)break e}else m.head&&(m.head.name=null);m.length=0,m.mode=8;case 8:if(4096&m.flags){if(F===0)break e;for(E=0;f=R[G+E++],m.head&&f&&m.length<65536&&(m.head.comment+=String.fromCharCode(f)),f&&E<F;);if(512&m.flags&&(m.check=a(m.check,R,E,G)),F-=E,G+=E,f)break e}else m.head&&(m.head.comment=null);m.mode=9;case 9:if(512&m.flags){for(;B<16;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(S!==(65535&m.check)){C.msg="header crc mismatch",m.mode=30;break}B=S=0}m.head&&(m.head.hcrc=m.flags>>9&1,m.head.done=!0),C.adler=m.check=0,m.mode=12;break;case 10:for(;B<32;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}C.adler=m.check=d(S),B=S=0,m.mode=11;case 11:if(m.havedict===0)return C.next_out=U,C.avail_out=j,C.next_in=G,C.avail_in=F,m.hold=S,m.bits=B,2;C.adler=m.check=1,m.mode=12;case 12:if(x===5||x===6)break e;case 13:if(m.last){S>>>=7&B,B-=7&B,m.mode=27;break}for(;B<3;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}switch(m.last=1&S,B-=1,3&(S>>>=1)){case 0:m.mode=14;break;case 1:if(L(m),m.mode=20,x!==6)break;S>>>=2,B-=2;break e;case 2:m.mode=17;break;case 3:C.msg="invalid block type",m.mode=30}S>>>=2,B-=2;break;case 14:for(S>>>=7&B,B-=7&B;B<32;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if((65535&S)!=(S>>>16^65535)){C.msg="invalid stored block lengths",m.mode=30;break}if(m.length=65535&S,B=S=0,m.mode=15,x===6)break e;case 15:m.mode=16;case 16:if(E=m.length){if(F<E&&(E=F),j<E&&(E=j),E===0)break e;s.arraySet(K,R,G,E,U),F-=E,G+=E,j-=E,U+=E,m.length-=E;break}m.mode=12;break;case 17:for(;B<14;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(m.nlen=257+(31&S),S>>>=5,B-=5,m.ndist=1+(31&S),S>>>=5,B-=5,m.ncode=4+(15&S),S>>>=4,B-=4,286<m.nlen||30<m.ndist){C.msg="too many length or distance symbols",m.mode=30;break}m.have=0,m.mode=18;case 18:for(;m.have<m.ncode;){for(;B<3;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}m.lens[H[m.have++]]=7&S,S>>>=3,B-=3}for(;m.have<19;)m.lens[H[m.have++]]=0;if(m.lencode=m.lendyn,m.lenbits=7,W={bits:m.lenbits},Y=y(0,m.lens,0,19,m.lencode,0,m.work,W),m.lenbits=W.bits,Y){C.msg="invalid code lengths set",m.mode=30;break}m.have=0,m.mode=19;case 19:for(;m.have<m.nlen+m.ndist;){for(;Z=(_=m.lencode[S&(1<<m.lenbits)-1])>>>16&255,ne=65535&_,!((le=_>>>24)<=B);){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(ne<16)S>>>=le,B-=le,m.lens[m.have++]=ne;else{if(ne===16){for(A=le+2;B<A;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(S>>>=le,B-=le,m.have===0){C.msg="invalid bit length repeat",m.mode=30;break}f=m.lens[m.have-1],E=3+(3&S),S>>>=2,B-=2}else if(ne===17){for(A=le+3;B<A;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}B-=le,f=0,E=3+(7&(S>>>=le)),S>>>=3,B-=3}else{for(A=le+7;B<A;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}B-=le,f=0,E=11+(127&(S>>>=le)),S>>>=7,B-=7}if(m.have+E>m.nlen+m.ndist){C.msg="invalid bit length repeat",m.mode=30;break}for(;E--;)m.lens[m.have++]=f}}if(m.mode===30)break;if(m.lens[256]===0){C.msg="invalid code -- missing end-of-block",m.mode=30;break}if(m.lenbits=9,W={bits:m.lenbits},Y=y(g,m.lens,0,m.nlen,m.lencode,0,m.work,W),m.lenbits=W.bits,Y){C.msg="invalid literal/lengths set",m.mode=30;break}if(m.distbits=6,m.distcode=m.distdyn,W={bits:m.distbits},Y=y(p,m.lens,m.nlen,m.ndist,m.distcode,0,m.work,W),m.distbits=W.bits,Y){C.msg="invalid distances set",m.mode=30;break}if(m.mode=20,x===6)break e;case 20:m.mode=21;case 21:if(6<=F&&258<=j){C.next_out=U,C.avail_out=j,C.next_in=G,C.avail_in=F,m.hold=S,m.bits=B,c(C,O),U=C.next_out,K=C.output,j=C.avail_out,G=C.next_in,R=C.input,F=C.avail_in,S=m.hold,B=m.bits,m.mode===12&&(m.back=-1);break}for(m.back=0;Z=(_=m.lencode[S&(1<<m.lenbits)-1])>>>16&255,ne=65535&_,!((le=_>>>24)<=B);){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(Z&&(240&Z)==0){for(ie=le,de=Z,pe=ne;Z=(_=m.lencode[pe+((S&(1<<ie+de)-1)>>ie)])>>>16&255,ne=65535&_,!(ie+(le=_>>>24)<=B);){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}S>>>=ie,B-=ie,m.back+=ie}if(S>>>=le,B-=le,m.back+=le,m.length=ne,Z===0){m.mode=26;break}if(32&Z){m.back=-1,m.mode=12;break}if(64&Z){C.msg="invalid literal/length code",m.mode=30;break}m.extra=15&Z,m.mode=22;case 22:if(m.extra){for(A=m.extra;B<A;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}m.length+=S&(1<<m.extra)-1,S>>>=m.extra,B-=m.extra,m.back+=m.extra}m.was=m.length,m.mode=23;case 23:for(;Z=(_=m.distcode[S&(1<<m.distbits)-1])>>>16&255,ne=65535&_,!((le=_>>>24)<=B);){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if((240&Z)==0){for(ie=le,de=Z,pe=ne;Z=(_=m.distcode[pe+((S&(1<<ie+de)-1)>>ie)])>>>16&255,ne=65535&_,!(ie+(le=_>>>24)<=B);){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}S>>>=ie,B-=ie,m.back+=ie}if(S>>>=le,B-=le,m.back+=le,64&Z){C.msg="invalid distance code",m.mode=30;break}m.offset=ne,m.extra=15&Z,m.mode=24;case 24:if(m.extra){for(A=m.extra;B<A;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}m.offset+=S&(1<<m.extra)-1,S>>>=m.extra,B-=m.extra,m.back+=m.extra}if(m.offset>m.dmax){C.msg="invalid distance too far back",m.mode=30;break}m.mode=25;case 25:if(j===0)break e;if(E=O-j,m.offset>E){if((E=m.offset-E)>m.whave&&m.sane){C.msg="invalid distance too far back",m.mode=30;break}J=E>m.wnext?(E-=m.wnext,m.wsize-E):m.wnext-E,E>m.length&&(E=m.length),oe=m.window}else oe=K,J=U-m.offset,E=m.length;for(j<E&&(E=j),j-=E,m.length-=E;K[U++]=oe[J++],--E;);m.length===0&&(m.mode=21);break;case 26:if(j===0)break e;K[U++]=m.length,j--,m.mode=21;break;case 27:if(m.wrap){for(;B<32;){if(F===0)break e;F--,S|=R[G++]<<B,B+=8}if(O-=j,C.total_out+=O,m.total+=O,O&&(C.adler=m.check=m.flags?a(m.check,K,O,U-O):l(m.check,K,O,U-O)),O=j,(m.flags?S:d(S))!==m.check){C.msg="incorrect data check",m.mode=30;break}B=S=0}m.mode=28;case 28:if(m.wrap&&m.flags){for(;B<32;){if(F===0)break e;F--,S+=R[G++]<<B,B+=8}if(S!==(4294967295&m.total)){C.msg="incorrect length check",m.mode=30;break}B=S=0}m.mode=29;case 29:Y=1;break e;case 30:Y=-3;break e;case 31:return-4;case 32:default:return h}return C.next_out=U,C.avail_out=j,C.next_in=G,C.avail_in=F,m.hold=S,m.bits=B,(m.wsize||O!==C.avail_out&&m.mode<30&&(m.mode<27||x!==4))&&V(C,C.output,C.next_out,O-C.avail_out)?(m.mode=31,-4):(te-=C.avail_in,O-=C.avail_out,C.total_in+=te,C.total_out+=O,m.total+=O,m.wrap&&O&&(C.adler=m.check=m.flags?a(m.check,K,O,C.next_out-O):l(m.check,K,O,C.next_out-O)),C.data_type=m.bits+(m.last?64:0)+(m.mode===12?128:0)+(m.mode===20||m.mode===15?256:0),(te==0&&O===0||x===4)&&Y===Q&&(Y=-5),Y)},i.inflateEnd=function(C){if(!C||!C.state)return h;var x=C.state;return x.window&&(x.window=null),C.state=null,Q},i.inflateGetHeader=function(C,x){var m;return C&&C.state?(2&(m=C.state).wrap)==0?h:((m.head=x).done=!1,Q):h},i.inflateSetDictionary=function(C,x){var m,R=x.length;return C&&C.state?(m=C.state).wrap!==0&&m.mode!==11?h:m.mode===11&&l(1,x,R,0)!==m.check?-3:V(C,x,R,R)?(m.mode=31,-4):(m.havedict=1,Q):h},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,o,i){var s=r("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],y=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];o.exports=function(g,p,Q,h,v,u,w,d){var k,N,D,b,T,I,$,M,L,V=d.bits,C=0,x=0,m=0,R=0,K=0,G=0,U=0,F=0,j=0,S=0,B=null,te=0,O=new s.Buf16(16),E=new s.Buf16(16),J=null,oe=0;for(C=0;C<=15;C++)O[C]=0;for(x=0;x<h;x++)O[p[Q+x]]++;for(K=V,R=15;1<=R&&O[R]===0;R--);if(R<K&&(K=R),R===0)return v[u++]=20971520,v[u++]=20971520,d.bits=1,0;for(m=1;m<R&&O[m]===0;m++);for(K<m&&(K=m),C=F=1;C<=15;C++)if(F<<=1,(F-=O[C])<0)return-1;if(0<F&&(g===0||R!==1))return-1;for(E[1]=0,C=1;C<15;C++)E[C+1]=E[C]+O[C];for(x=0;x<h;x++)p[Q+x]!==0&&(w[E[p[Q+x]]++]=x);if(I=g===0?(B=J=w,19):g===1?(B=l,te-=257,J=a,oe-=257,256):(B=c,J=y,-1),C=m,T=u,U=x=S=0,D=-1,b=(j=1<<(G=K))-1,g===1&&852<j||g===2&&592<j)return 1;for(;;){for($=C-U,L=w[x]<I?(M=0,w[x]):w[x]>I?(M=J[oe+w[x]],B[te+w[x]]):(M=96,0),k=1<<C-U,m=N=1<<G;v[T+(S>>U)+(N-=k)]=$<<24|M<<16|L|0,N!==0;);for(k=1<<C-1;S&k;)k>>=1;if(k!==0?(S&=k-1,S+=k):S=0,x++,--O[C]==0){if(C===R)break;C=p[Q+w[x]]}if(K<C&&(S&b)!==D){for(U===0&&(U=K),T+=m,F=1<<(G=C-U);G+U<R&&!((F-=O[G+U])<=0);)G++,F<<=1;if(j+=1<<G,g===1&&852<j||g===2&&592<j)return 1;v[D=S&b]=K<<24|G<<16|T-u|0}}return S!==0&&(v[T+S]=C-U<<24|64<<16|0),d.bits=K,0}},{"../utils/common":41}],51:[function(r,o,i){o.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,o,i){var s=r("../utils/common"),l=0,a=1;function c(_){for(var z=_.length;0<=--z;)_[z]=0}var y=0,g=29,p=256,Q=p+1+g,h=30,v=19,u=2*Q+1,w=15,d=16,k=7,N=256,D=16,b=17,T=18,I=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(2*(Q+2));c(V);var C=new Array(2*h);c(C);var x=new Array(512);c(x);var m=new Array(256);c(m);var R=new Array(g);c(R);var K,G,U,F=new Array(h);function j(_,z,H,X,P){this.static_tree=_,this.extra_bits=z,this.extra_base=H,this.elems=X,this.max_length=P,this.has_stree=_&&_.length}function S(_,z){this.dyn_tree=_,this.max_code=0,this.stat_desc=z}function B(_){return _<256?x[_]:x[256+(_>>>7)]}function te(_,z){_.pending_buf[_.pending++]=255&z,_.pending_buf[_.pending++]=z>>>8&255}function O(_,z,H){_.bi_valid>d-H?(_.bi_buf|=z<<_.bi_valid&65535,te(_,_.bi_buf),_.bi_buf=z>>d-_.bi_valid,_.bi_valid+=H-d):(_.bi_buf|=z<<_.bi_valid&65535,_.bi_valid+=H)}function E(_,z,H){O(_,H[2*z],H[2*z+1])}function J(_,z){for(var H=0;H|=1&_,_>>>=1,H<<=1,0<--z;);return H>>>1}function oe(_,z,H){var X,P,q=new Array(w+1),re=0;for(X=1;X<=w;X++)q[X]=re=re+H[X-1]<<1;for(P=0;P<=z;P++){var ee=_[2*P+1];ee!==0&&(_[2*P]=J(q[ee]++,ee))}}function le(_){var z;for(z=0;z<Q;z++)_.dyn_ltree[2*z]=0;for(z=0;z<h;z++)_.dyn_dtree[2*z]=0;for(z=0;z<v;z++)_.bl_tree[2*z]=0;_.dyn_ltree[2*N]=1,_.opt_len=_.static_len=0,_.last_lit=_.matches=0}function Z(_){8<_.bi_valid?te(_,_.bi_buf):0<_.bi_valid&&(_.pending_buf[_.pending++]=_.bi_buf),_.bi_buf=0,_.bi_valid=0}function ne(_,z,H,X){var P=2*z,q=2*H;return _[P]<_[q]||_[P]===_[q]&&X[z]<=X[H]}function ie(_,z,H){for(var X=_.heap[H],P=H<<1;P<=_.heap_len&&(P<_.heap_len&&ne(z,_.heap[P+1],_.heap[P],_.depth)&&P++,!ne(z,X,_.heap[P],_.depth));)_.heap[H]=_.heap[P],H=P,P<<=1;_.heap[H]=X}function de(_,z,H){var X,P,q,re,ee=0;if(_.last_lit!==0)for(;X=_.pending_buf[_.d_buf+2*ee]<<8|_.pending_buf[_.d_buf+2*ee+1],P=_.pending_buf[_.l_buf+ee],ee++,X===0?E(_,P,z):(E(_,(q=m[P])+p+1,z),(re=I[q])!==0&&O(_,P-=R[q],re),E(_,q=B(--X),H),(re=$[q])!==0&&O(_,X-=F[q],re)),ee<_.last_lit;);E(_,N,z)}function pe(_,z){var H,X,P,q=z.dyn_tree,re=z.stat_desc.static_tree,ee=z.stat_desc.has_stree,ae=z.stat_desc.elems,he=-1;for(_.heap_len=0,_.heap_max=u,H=0;H<ae;H++)q[2*H]!==0?(_.heap[++_.heap_len]=he=H,_.depth[H]=0):q[2*H+1]=0;for(;_.heap_len<2;)q[2*(P=_.heap[++_.heap_len]=he<2?++he:0)]=1,_.depth[P]=0,_.opt_len--,ee&&(_.static_len-=re[2*P+1]);for(z.max_code=he,H=_.heap_len>>1;1<=H;H--)ie(_,q,H);for(P=ae;H=_.heap[1],_.heap[1]=_.heap[_.heap_len--],ie(_,q,1),X=_.heap[1],_.heap[--_.heap_max]=H,_.heap[--_.heap_max]=X,q[2*P]=q[2*H]+q[2*X],_.depth[P]=(_.depth[H]>=_.depth[X]?_.depth[H]:_.depth[X])+1,q[2*H+1]=q[2*X+1]=P,_.heap[1]=P++,ie(_,q,1),2<=_.heap_len;);_.heap[--_.heap_max]=_.heap[1],(function(ce,ke){var Fe,_e,Pe,me,Ge,ut,Ae=ke.dyn_tree,Ut=ke.max_code,fn=ke.stat_desc.static_tree,hn=ke.stat_desc.has_stree,pn=ke.stat_desc.extra_bits,Zt=ke.stat_desc.extra_base,$e=ke.stat_desc.max_length,He=0;for(me=0;me<=w;me++)ce.bl_count[me]=0;for(Ae[2*ce.heap[ce.heap_max]+1]=0,Fe=ce.heap_max+1;Fe<u;Fe++)$e<(me=Ae[2*Ae[2*(_e=ce.heap[Fe])+1]+1]+1)&&(me=$e,He++),Ae[2*_e+1]=me,Ut<_e||(ce.bl_count[me]++,Ge=0,Zt<=_e&&(Ge=pn[_e-Zt]),ut=Ae[2*_e],ce.opt_len+=ut*(me+Ge),hn&&(ce.static_len+=ut*(fn[2*_e+1]+Ge)));if(He!==0){do{for(me=$e-1;ce.bl_count[me]===0;)me--;ce.bl_count[me]--,ce.bl_count[me+1]+=2,ce.bl_count[$e]--,He-=2}while(0<He);for(me=$e;me!==0;me--)for(_e=ce.bl_count[me];_e!==0;)Ut<(Pe=ce.heap[--Fe])||(Ae[2*Pe+1]!==me&&(ce.opt_len+=(me-Ae[2*Pe+1])*Ae[2*Pe],Ae[2*Pe+1]=me),_e--)}})(_,z),oe(q,he,_.bl_count)}function f(_,z,H){var X,P,q=-1,re=z[1],ee=0,ae=7,he=4;for(re===0&&(ae=138,he=3),z[2*(H+1)+1]=65535,X=0;X<=H;X++)P=re,re=z[2*(X+1)+1],++ee<ae&&P===re||(ee<he?_.bl_tree[2*P]+=ee:P!==0?(P!==q&&_.bl_tree[2*P]++,_.bl_tree[2*D]++):ee<=10?_.bl_tree[2*b]++:_.bl_tree[2*T]++,q=P,he=(ee=0)===re?(ae=138,3):P===re?(ae=6,3):(ae=7,4))}function Y(_,z,H){var X,P,q=-1,re=z[1],ee=0,ae=7,he=4;for(re===0&&(ae=138,he=3),X=0;X<=H;X++)if(P=re,re=z[2*(X+1)+1],!(++ee<ae&&P===re)){if(ee<he)for(;E(_,P,_.bl_tree),--ee!=0;);else P!==0?(P!==q&&(E(_,P,_.bl_tree),ee--),E(_,D,_.bl_tree),O(_,ee-3,2)):ee<=10?(E(_,b,_.bl_tree),O(_,ee-3,3)):(E(_,T,_.bl_tree),O(_,ee-11,7));q=P,he=(ee=0)===re?(ae=138,3):P===re?(ae=6,3):(ae=7,4)}}c(F);var W=!1;function A(_,z,H,X){O(_,(y<<1)+(X?1:0),3),(function(P,q,re,ee){Z(P),te(P,re),te(P,~re),s.arraySet(P.pending_buf,P.window,q,re,P.pending),P.pending+=re})(_,z,H)}i._tr_init=function(_){W||((function(){var z,H,X,P,q,re=new Array(w+1);for(P=X=0;P<g-1;P++)for(R[P]=X,z=0;z<1<<I[P];z++)m[X++]=P;for(m[X-1]=P,P=q=0;P<16;P++)for(F[P]=q,z=0;z<1<<$[P];z++)x[q++]=P;for(q>>=7;P<h;P++)for(F[P]=q<<7,z=0;z<1<<$[P]-7;z++)x[256+q++]=P;for(H=0;H<=w;H++)re[H]=0;for(z=0;z<=143;)V[2*z+1]=8,z++,re[8]++;for(;z<=255;)V[2*z+1]=9,z++,re[9]++;for(;z<=279;)V[2*z+1]=7,z++,re[7]++;for(;z<=287;)V[2*z+1]=8,z++,re[8]++;for(oe(V,Q+1,re),z=0;z<h;z++)C[2*z+1]=5,C[2*z]=J(z,5);K=new j(V,I,p+1,Q,w),G=new j(C,$,0,h,w),U=new j(new Array(0),M,0,v,k)})(),W=!0),_.l_desc=new S(_.dyn_ltree,K),_.d_desc=new S(_.dyn_dtree,G),_.bl_desc=new S(_.bl_tree,U),_.bi_buf=0,_.bi_valid=0,le(_)},i._tr_stored_block=A,i._tr_flush_block=function(_,z,H,X){var P,q,re=0;0<_.level?(_.strm.data_type===2&&(_.strm.data_type=(function(ee){var ae,he=4093624447;for(ae=0;ae<=31;ae++,he>>>=1)if(1&he&&ee.dyn_ltree[2*ae]!==0)return l;if(ee.dyn_ltree[18]!==0||ee.dyn_ltree[20]!==0||ee.dyn_ltree[26]!==0)return a;for(ae=32;ae<p;ae++)if(ee.dyn_ltree[2*ae]!==0)return a;return l})(_)),pe(_,_.l_desc),pe(_,_.d_desc),re=(function(ee){var ae;for(f(ee,ee.dyn_ltree,ee.l_desc.max_code),f(ee,ee.dyn_dtree,ee.d_desc.max_code),pe(ee,ee.bl_desc),ae=v-1;3<=ae&&ee.bl_tree[2*L[ae]+1]===0;ae--);return ee.opt_len+=3*(ae+1)+5+5+4,ae})(_),P=_.opt_len+3+7>>>3,(q=_.static_len+3+7>>>3)<=P&&(P=q)):P=q=H+5,H+4<=P&&z!==-1?A(_,z,H,X):_.strategy===4||q===P?(O(_,2+(X?1:0),3),de(_,V,C)):(O(_,4+(X?1:0),3),(function(ee,ae,he,ce){var ke;for(O(ee,ae-257,5),O(ee,he-1,5),O(ee,ce-4,4),ke=0;ke<ce;ke++)O(ee,ee.bl_tree[2*L[ke]+1],3);Y(ee,ee.dyn_ltree,ae-1),Y(ee,ee.dyn_dtree,he-1)})(_,_.l_desc.max_code+1,_.d_desc.max_code+1,re+1),de(_,_.dyn_ltree,_.dyn_dtree)),le(_),X&&Z(_)},i._tr_tally=function(_,z,H){return _.pending_buf[_.d_buf+2*_.last_lit]=z>>>8&255,_.pending_buf[_.d_buf+2*_.last_lit+1]=255&z,_.pending_buf[_.l_buf+_.last_lit]=255&H,_.last_lit++,z===0?_.dyn_ltree[2*H]++:(_.matches++,z--,_.dyn_ltree[2*(m[H]+p+1)]++,_.dyn_dtree[2*B(z)]++),_.last_lit===_.lit_bufsize-1},i._tr_align=function(_){O(_,2,3),E(_,N,V),(function(z){z.bi_valid===16?(te(z,z.bi_buf),z.bi_buf=0,z.bi_valid=0):8<=z.bi_valid&&(z.pending_buf[z.pending++]=255&z.bi_buf,z.bi_buf>>=8,z.bi_valid-=8)})(_)}},{"../utils/common":41}],53:[function(r,o,i){o.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,o,i){(function(s){(function(l,a){if(!l.setImmediate){var c,y,g,p,Q=1,h={},v=!1,u=l.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(l);w=w&&w.setTimeout?w:l,c={}.toString.call(l.process)==="[object process]"?function(D){process.nextTick(function(){k(D)})}:(function(){if(l.postMessage&&!l.importScripts){var D=!0,b=l.onmessage;return l.onmessage=function(){D=!1},l.postMessage("","*"),l.onmessage=b,D}})()?(p="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",N,!1):l.attachEvent("onmessage",N),function(D){l.postMessage(p+D,"*")}):l.MessageChannel?((g=new MessageChannel).port1.onmessage=function(D){k(D.data)},function(D){g.port2.postMessage(D)}):u&&"onreadystatechange"in u.createElement("script")?(y=u.documentElement,function(D){var b=u.createElement("script");b.onreadystatechange=function(){k(D),b.onreadystatechange=null,y.removeChild(b),b=null},y.appendChild(b)}):function(D){setTimeout(k,0,D)},w.setImmediate=function(D){typeof D!="function"&&(D=new Function(""+D));for(var b=new Array(arguments.length-1),T=0;T<b.length;T++)b[T]=arguments[T+1];var I={callback:D,args:b};return h[Q]=I,c(Q),Q++},w.clearImmediate=d}function d(D){delete h[D]}function k(D){if(v)setTimeout(k,0,D);else{var b=h[D];if(b){v=!0;try{(function(T){var I=T.callback,$=T.args;switch($.length){case 0:I();break;case 1:I($[0]);break;case 2:I($[0],$[1]);break;case 3:I($[0],$[1],$[2]);break;default:I.apply(a,$)}})(b)}finally{d(D),v=!1}}}}function N(D){D.source===l&&typeof D.data=="string"&&D.data.indexOf(p)===0&&k(+D.data.slice(p.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Je<"u"?Je:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(pt)),pt.exports}var Ql=vl();const kl=Dt(Ql);function Me(e,n){return Array.from(e.getElementsByTagName(n))}function ot(e){return e[0]==="#"?e:`#${e}`}function bl(e,n,r){return Array.from(e.getElementsByTagNameNS(r,n))}function Qe(e){return e==null||e.normalize(),(e==null?void 0:e.textContent)||""}function we(e,n,r){const o=e.getElementsByTagName(n);return o.length?o[0]:null}function Ce(e,n,r){const o={};if(!e)return o;const i=e.getElementsByTagName(n),s=i.length?i[0]:null;return s&&r?r(s,o):o}function Be(e,n,r){const o=Qe(we(e,n));return o&&r?r(o)||{}:{}}function ye(e,n,r){const o=Number.parseFloat(Qe(we(e,n)));if(!Number.isNaN(o))return r&&r(o),o}function st(e,n){const r={};for(const o of n)Be(e,o,i=>{r[o]=i});return r}function x1(e){return(e==null?void 0:e.nodeType)===1}function j1(e,n){const r={},o=n==="stroke"||n==="fill"?n:`${n}-color`;return e[0]==="#"&&(e=e.substring(1)),e.length===6||e.length===3?r[o]=`#${e}`:e.length===8&&(r[`${n}-opacity`]=Number.parseInt(e.substring(0,2),16)/255,r[o]=`#${e.substring(6,8)}${e.substring(4,6)}${e.substring(2,4)}`),r}function it(e,n,r){const o={};return ye(e,n,i=>{o[r]=i}),o}function Et(e,n){return Ce(e,"color",r=>j1(Qe(r),n))}function Lt(e){return Ce(e,"Icon",(n,r)=>(Be(n,"href",o=>{r.icon=o}),r))}function Ml(e){return Ce(e,"IconStyle",n=>Object.assign(Et(n,"icon"),it(n,"scale","icon-scale"),it(n,"heading","icon-heading"),Ce(n,"hotSpot",r=>{const o=Number.parseFloat(r.getAttribute("x")||""),i=Number.parseFloat(r.getAttribute("y")||""),s=r.getAttribute("xunits")||"",l=r.getAttribute("yunits")||"";return!Number.isNaN(o)&&!Number.isNaN(i)?{"icon-offset":[o,i],"icon-offset-units":[s,l]}:{}}),Lt(n)))}function Cl(e){return Ce(e,"LabelStyle",n=>Object.assign(Et(n,"label"),it(n,"scale","label-scale")))}function _l(e){return Ce(e,"LineStyle",n=>Object.assign(Et(n,"stroke"),it(n,"width","stroke-width")))}function Nl(e){return Ce(e,"PolyStyle",(n,r)=>Object.assign(r,Ce(n,"color",o=>j1(Qe(o),"fill")),Be(n,"fill",o=>{if(o==="0")return{"fill-opacity":0}}),Be(n,"outline",o=>{if(o==="0")return{"stroke-opacity":0}})))}function ct(e){return Object.assign({},Nl(e),_l(e),Cl(e),Ml(e))}const Dl=/\s*/g,Al=/^\s*|\s*$/g,Sl=/\s+/;function B1(e){return e.replace(Dl,"").split(",").map(Number.parseFloat).filter(n=>!Number.isNaN(n)).slice(0,3)}function vt(e){return e.replace(Al,"").split(Sl).map(B1).filter(n=>n.length>=2)}function Tl(e){let n=Me(e,"coord");n.length===0&&(n=bl(e,"coord","*"));const r=n.map(o=>Qe(o).split(" ").map(Number.parseFloat));return r.length===0?null:{geometry:r.length>2?{type:"LineString",coordinates:r}:{type:"Point",coordinates:r[0]},times:Me(e,"when").map(o=>Qe(o))}}function z1(e){if(e.length===0)return e;const n=e[0],r=e[e.length-1];let o=!0;for(let i=0;i<Math.max(n.length,r.length);i++)if(n[i]!==r[i]){o=!1;break}return o?e:e.concat([e[0]])}function et(e){return Qe(we(e,"coordinates"))}function O1(e){let n=[],r=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes.item(o);if(x1(i))switch(i.tagName){case"MultiGeometry":case"MultiTrack":case"gx:MultiTrack":{const s=O1(i);n=n.concat(s.geometries),r=r.concat(s.coordTimes);break}case"Point":{const s=B1(et(i));s.length>=2&&n.push({type:"Point",coordinates:s});break}case"LinearRing":case"LineString":{const s=vt(et(i));s.length>=2&&n.push({type:"LineString",coordinates:s});break}case"Polygon":{const s=[];for(const l of Me(i,"LinearRing")){const a=z1(vt(et(l)));a.length>=4&&s.push(a)}s.length&&n.push({type:"Polygon",coordinates:s});break}case"Track":case"gx:Track":{const s=Tl(i);if(!s)break;const{times:l,geometry:a}=s;n.push(a),l.length&&r.push(l);break}}}return{geometries:n,coordTimes:r}}const Le=e=>Number(e),Qt={string:e=>e,int:Le,uint:Le,short:Le,ushort:Le,float:Le,double:Le,bool:e=>!!e};function xt(e,n){return Ce(e,"ExtendedData",(r,o)=>{for(const i of Me(r,"Data"))o[i.getAttribute("name")||""]=Qe(we(i,"value"));for(const i of Me(r,"SimpleData")){const s=i.getAttribute("name")||"",l=n[s]||Qt.string;o[s]=l(Qe(i))}return o})}function jt(e){const n=we(e,"description");for(const r of Array.from((n==null?void 0:n.childNodes)||[]))if(r.nodeType===4)return{description:{"@type":"html",value:Qe(r)}};return{}}function Bt(e){return Ce(e,"TimeSpan",n=>({timespan:{begin:Qe(we(n,"begin")),end:Qe(we(n,"end"))}}))}function zt(e){return Ce(e,"TimeStamp",n=>({timestamp:Qe(we(n,"when"))}))}function Ot(e,n){return Be(e,"styleUrl",r=>(r=ot(r),n[r]?Object.assign({styleUrl:r},n[r]):{styleUrl:r}))}var be;(function(e){e.ABSOLUTE="absolute",e.RELATIVE_TO_GROUND="relativeToGround",e.CLAMP_TO_GROUND="clampToGround",e.CLAMP_TO_SEAFLOOR="clampToSeaFloor",e.RELATIVE_TO_SEAFLOOR="relativeToSeaFloor"})(be||(be={}));function Il(e){switch(e==null?void 0:e.textContent){case be.ABSOLUTE:return be.ABSOLUTE;case be.CLAMP_TO_GROUND:return be.CLAMP_TO_GROUND;case be.CLAMP_TO_SEAFLOOR:return be.CLAMP_TO_SEAFLOOR;case be.RELATIVE_TO_GROUND:return be.RELATIVE_TO_GROUND;case be.RELATIVE_TO_SEAFLOOR:return be.RELATIVE_TO_SEAFLOOR}return null}function El(e){return we(e,"gx:LatLonQuad")?{geometry:{type:"Polygon",coordinates:[z1(vt(et(e)))]}}:jl(e)}const Ll=Math.PI/180;function xl(e,n,r){const o=[(e[0]+e[2])/2,(e[1]+e[3])/2];return[n[0].map(i=>{const s=i[1]-o[1],l=i[0]-o[0],a=Math.sqrt(s**2+l**2),c=Math.atan2(s,l)+r*Ll;return[o[0]+Math.cos(c)*a,o[1]+Math.sin(c)*a]})]}function jl(e){const n=we(e,"LatLonBox");if(n){const r=ye(n,"north"),o=ye(n,"west"),i=ye(n,"east"),s=ye(n,"south"),l=ye(n,"rotation");if(typeof r=="number"&&typeof s=="number"&&typeof o=="number"&&typeof i=="number"){const a=[o,s,i,r];let c=[[[o,r],[i,r],[i,s],[o,s],[o,r]]];return typeof l=="number"&&(c=xl(a,c,l)),{bbox:a,geometry:{type:"Polygon",coordinates:c}}}}return null}function Bl(e,n,r,o){var c;const i=El(e),s=(i==null?void 0:i.geometry)||null;if(!s&&o.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"groundoverlay"},st(e,["name","address","visibility","open","phoneNumber","description"]),jt(e),Ot(e,n),ct(e),Lt(e),xt(e,r),Bt(e),zt(e))};i!=null&&i.bbox&&(l.bbox=i.bbox),((c=l.properties)==null?void 0:c.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function zl(e){const n=we(e,"Region");return n?{coordinateBox:Fl(n),lod:Ol(e)}:null}function Ol(e){const n=we(e,"Lod");return n?[ye(n,"minLodPixels")??-1,ye(n,"maxLodPixels")??-1,ye(n,"minFadeExtent")??null,ye(n,"maxFadeExtent")??null]:null}function Fl(e){const n=we(e,"LatLonAltBox");if(n){const r=ye(n,"north"),o=ye(n,"west"),i=ye(n,"east"),s=ye(n,"south");if(Il(we(n,"altitudeMode")||we(n,"gx:altitudeMode"))&&console.debug("Encountered an unsupported feature of KML for togeojson: please contact developers for support of altitude mode."),typeof r=="number"&&typeof s=="number"&&typeof o=="number"&&typeof i=="number")return{bbox:[o,s,i,r],geometry:{type:"Polygon",coordinates:[[[o,r],[i,r],[i,s],[o,s],[o,r]]]}}}return null}function Pl(e){const n=we(e,"Link");return n?st(n,["href","refreshMode","refreshInterval","viewRefreshMode","viewRefreshTime","viewBoundScale","viewFormat","httpQuery"]):{}}function $l(e,n,r,o){var c,y,g;const i=zl(e),s=((c=i==null?void 0:i.coordinateBox)==null?void 0:c.geometry)||null;if(!s&&o.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"networklink"},st(e,["name","address","visibility","open","phoneNumber","styleUrl","refreshVisibility","flyToView","description"]),jt(e),Ot(e,n),ct(e),Lt(e),xt(e,r),Bt(e),zt(e),Pl(e),i!=null&&i.lod?{lod:i.lod}:{})};(y=i==null?void 0:i.coordinateBox)!=null&&y.bbox&&(l.bbox=i.coordinateBox.bbox),((g=l.properties)==null?void 0:g.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function Vl(e){return e.length===0?null:e.length===1?e[0]:{type:"GeometryCollection",geometries:e}}function Rl(e,n,r,o){var y;const{coordTimes:i,geometries:s}=O1(e),l=Vl(s);if(!l&&o.skipNullGeometry)return null;const a={type:"Feature",geometry:l,properties:Object.assign(st(e,["name","address","visibility","open","phoneNumber","description"]),jt(e),Ot(e,n),ct(e),xt(e,r),Bt(e),zt(e),i.length?{coordinateProperties:{times:i.length===1?i[0]:i}}:{})};((y=a.properties)==null?void 0:y.visibility)!==void 0&&(a.properties.visibility=a.properties.visibility!=="0");const c=e.getAttribute("id");return c!==null&&c!==""&&(a.id=c),a}function Wl(e){let n=e.getAttribute("id");const r=e.parentNode;return!n&&x1(r)&&r.localName==="CascadingStyle"&&(n=r.getAttribute("kml:id")||r.getAttribute("id")),ot(n||"")}function Ul(e){const n={};for(const r of Me(e,"Style"))n[Wl(r)]=ct(r);for(const r of Me(e,"StyleMap")){const o=ot(r.getAttribute("id")||"");Be(r,"styleUrl",i=>{i=ot(i),n[i]&&(n[o]=n[i])})}return n}function Zl(e){const n={};for(const r of Me(e,"SimpleField"))n[r.getAttribute("name")||""]=Qt[r.getAttribute("type")||""]||Qt.string;return n}function*Yl(e,n={skipNullGeometry:!1}){const r=e,o=Ul(r),i=Zl(r);for(const s of Me(r,"Placemark")){const l=Rl(s,o,i,n);l&&(yield l)}for(const s of Me(r,"GroundOverlay")){const l=Bl(s,o,i,n);l&&(yield l)}for(const s of Me(r,"NetworkLink")){const l=$l(s,o,i,n);l&&(yield l)}}function Gl(e,n={skipNullGeometry:!1}){return{type:"FeatureCollection",features:Array.from(Yl(e,n))}}function kt(e){const n=[],r=e.replace(/\s+/g," ").trim();if(!r)return n;const o=r.split(/\s+/);for(const i of o){const s=i.split(",").map(l=>Number(l.trim()));s.length>=2&&Number.isFinite(s[0])&&Number.isFinite(s[1])&&n.push([s[0],s[1]])}return n}function Hl(e){const n=e.split(",").map(r=>Number(r.trim()));return n.length>=2&&Number.isFinite(n[0])&&Number.isFinite(n[1])?[n[0],n[1]]:null}function a1(e){return e.replace(/wpml:/g,"")}function s1(e){const n=[],r=e.getElementsByTagName("Placemark");for(let o=0;o<r.length;o++){const i=r[o],s=i.getElementsByTagName("LineString")[0],l=i.getElementsByTagName("Point")[0];if(s){const a=s.getElementsByTagName("coordinates")[0];a!=null&&a.textContent&&n.push(...kt(a.textContent))}else if(l){const a=l.getElementsByTagName("coordinates")[0];if(a!=null&&a.textContent){const c=Hl(a.textContent.trim());c&&n.push(c)}}}return n}function Jl(e){const n=[],r=e.getElementsByTagName("Folder");if(r.length===0){const o=s1(e.documentElement);return o.length&&n.push(o),n}for(let o=0;o<r.length;o++){const i=s1(r[o]);i.length&&n.push(i)}return n}function Xl(e){const n=e.getElementsByTagName("LinearRing");for(let o=0;o<n.length;o++){const i=n[o].getElementsByTagName("coordinates")[0];if(i!=null&&i.textContent){const s=kt(i.textContent);if(s.length>=3)return s}}const r=e.getElementsByTagName("Polygon");for(let o=0;o<r.length;o++){const s=r[o].getElementsByTagName("LinearRing")[0];if(s){const l=s.getElementsByTagName("coordinates")[0];if(l!=null&&l.textContent){const a=kt(l.textContent);if(a.length>=3)return a}}}}function c1(e,n){if(e)switch(e.type){case"LineString":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break;case"MultiLineString":for(const r of e.coordinates)for(const o of r)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&n.push([o[0],o[1]]);break;case"Polygon":for(const r of e.coordinates)for(const o of r)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&n.push([o[0],o[1]]);break;case"MultiPolygon":for(const r of e.coordinates)for(const o of r)for(const i of o)i.length>=2&&Number.isFinite(i[0])&&Number.isFinite(i[1])&&n.push([i[0],i[1]]);break;case"Point":Array.isArray(e.coordinates)&&e.coordinates.length>=2&&Number.isFinite(e.coordinates[0])&&Number.isFinite(e.coordinates[1])&&n.push([e.coordinates[0],e.coordinates[1]]);break;case"MultiPoint":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&n.push([r[0],r[1]]);break}}function Kl(e){const n=[];return e.features.forEach(r=>{if(r.geometry){const o=r.geometry;o.type==="GeometryCollection"&&Array.isArray(o.geometries)?o.geometries.forEach(i=>c1(i,n)):c1(o,n)}}),n}function u1(e){const r=new DOMParser().parseFromString(e,"text/xml"),o=Gl(r);return Kl(o)}async function F1(e){var r;const n={points:[],polylines:[]};try{if(!e||typeof e!="string"||e.trim()==="")return console.warn("KMZ URL 为空或无效"),n;const o=await fetch(e,{mode:"cors",credentials:"omit"});if(!o.ok)throw new Error(`HTTP错误: ${o.status} ${o.statusText}`);const i=await o.arrayBuffer(),a=(await new kl().loadAsync(i)).files,c=Object.keys(a).filter(h=>!a[h].dir),y=async h=>{const v=a[h];return v?v.async("text"):null},g={points:[],polylines:[]},p=c.find(h=>h.replace(/\\/g,"/").endsWith("wpmz/waylines.wpml"))||c.find(h=>h.toLowerCase().endsWith("waylines.wpml"));if(p){const h=await y(p);if(h){const v=a1(h),w=new DOMParser().parseFromString(v,"text/xml"),d=Jl(w);d.length&&(g.polylines=d,g.points=d.flat())}}const Q=c.find(h=>h.replace(/\\/g,"/").endsWith("wpmz/template.kml"))||c.find(h=>h.toLowerCase().endsWith("template.kml"));if(Q){const h=await y(Q);if(h){const v=a1(h),w=new DOMParser().parseFromString(v,"text/xml"),d=Xl(w);d!=null&&d.length&&(g.polygonOutline=d);const k=u1(v);k.length&&!g.points.length&&(g.points=k)}}if(!g.points.length&&!g.polylines.length){const h=c.find(v=>v.toLowerCase().endsWith(".kml"));if(h){const v=await y(h);if(v){const u=u1(v);u.length&&(g.points=u,g.polylines=[u])}}}return!g.points.length&&((r=g.polygonOutline)!=null&&r.length)&&(g.points=[...g.polygonOutline]),g.points.length&&!g.polylines.length&&(g.polylines=[g.points]),g}catch(o){return console.error("KMZ解析失败:",o),n}}const ql=async e=>(await F1(e)).points;function tt(e){return e===!1?!1:e===0||String(e)==="0"||e?e:"-"}function P1(e){const{size:n,unit:r="B",maxUnit:o,numberFormatOptions:i}=e,{size:s,unit:l}=Ft({size:n,unit:r},{maxUnit:o});return`${s.toLocaleString(void 0,i)} ${l}`}function Ft(e,n){const r=["B","KB","MB","GB","TB"],{size:o,unit:i="B"}=e,s=r.indexOf(i);if(s===-1||s===r.length-1)return{size:o,unit:i};const l=(n==null?void 0:n.maxUnit)||"TB",a=r.indexOf(l);return s===a?{size:o,unit:i}:o<1024?{size:o,unit:i}:Ft({size:o/1024,unit:r[s+1]},n)}function Pt(e,n="-"){return(r,o)=>r===0||r==="0"?e?e(r,o):r:r?e?e(r,o):r.toString():n}function $1(e,n){const r=e.getFullYear(),o=e.getMonth()+1,i=e.getDate(),s=e.getHours(),l=s%12||12,a=e.getMinutes(),c=e.getSeconds(),y=e.getMilliseconds(),g=s<12?"AM":"PM",p={YYYY:String(r).padStart(4,"0"),YY:String(r%100).padStart(2,"0"),MM:String(o).padStart(2,"0"),M:String(o),DD:String(i).padStart(2,"0"),D:String(i),HH:String(s).padStart(2,"0"),H:String(s),hh:String(l).padStart(2,"0"),h:String(l),mm:String(a).padStart(2,"0"),m:String(a),ss:String(c).padStart(2,"0"),s:String(c),SSS:String(y).padStart(3,"0"),SS:String(y).padStart(3,"0").slice(0,2),S:String(y).padStart(3,"0").charAt(0),A:g,a:g.toLowerCase()};return n.replace(/YYYY|YY|MM|M|DD|D|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a/g,Q=>p[Q]??Q)}function V1(e){if(e==null)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;if(typeof e=="number"){const r=new Date(e);return isNaN(r.getTime())?null:r}let n=new Date(e);return isNaN(n.getTime())?(n=new Date(e.replace(" ","T")),isNaN(n.getTime())?null:n):n}function R1(e){if(e==null)return null;if(e instanceof Date)return e;const n=Number(e);if(Number.isFinite(n)){const r=String(Math.floor(n)).length;if(r===10)return n*1e3;if(r===13)return n;if(n===0)return 0}return e}function ea(e,n="YYYY-MM-DD HH:mm:ss"){const r=R1(e);if(!r&&r!==0)return tt(e);const o=V1(r);return tt(o?$1(o,n):e)}function ta(e="YYYY-MM-DD HH:mm:ss",n="-"){return(r,o)=>{if(r===0||r==="0")return String(r);const i=R1(r);if(!r||r==="Invalid Date")return n;try{const s=V1(i);if(!s)return n;const l=$1(s,e);return!l||l==="Invalid Date"?n:l}catch(s){return console.error("Date formatting failed:",s),n}}}function na(e="-",n){return Pt(o=>{const i=typeof o=="string"?Number(o):o;return Number.isFinite(i)?P1({size:i,unit:(n==null?void 0:n.unit)||"B",numberFormatOptions:{maximumFractionDigits:n==null?void 0:n.digits,minimumFractionDigits:n==null?void 0:n.digits}}):o},e)}function ra(e="-",n){return Pt(o=>{const i=["B","KB","MB","GB","TB"];let s=typeof o=="string"?Number(o):o,l=(n==null?void 0:n.unit)||"B";const a=(n==null?void 0:n.digits)??2;if(s===0)return`${s.toFixed(a)} ${l}`;let c=i.indexOf(l);for(c===-1&&(c=0,l="B");c<i.length-1&&s%1024===0;)s=s/1024,c++,l=i[c];return`${s.toFixed(a)} ${l}`},e)}function oa(e,n,r,o){const i=["B","KB","MB","GB","TB"],s=(o==null?void 0:o.digits)??2,l=(o==null?void 0:o.showUnit)??!0,a=typeof e=="string"?Number(e):e;if(!Number.isFinite(a))return e;const c=i.indexOf(n),y=i.indexOf(r);if(c===-1||y===-1)return e;const g=c-y,Q=(a*Math.pow(1024,g)).toFixed(s);return l?`${Q} ${r}`:Number(Q)}const ia=Object.freeze(Object.defineProperty({__proto__:null,convertDataUnit:oa,defaultAutoDataFormat:ra,defaultDataFormat:na,defaultDateFormat:ta,defaultFill:tt,defaultFormat:Pt,formatDate:ea,formatSize:P1,getUpperSize:Ft},Symbol.toStringTag,{value:"Module"}));function la(e){return Array.isArray(e)?[...new Set(e)]:e}function aa(e,n){if(!Array.isArray(e))return e;const r=new Map;return e.filter(o=>{const i=o[n];return r.has(i)?!1:(r.set(i,!0),!0)})}function sa(e,n){if(!Array.isArray(e))return e;const r=new Set;return e.filter(o=>{const i=n.map(s=>o[s]).join("|");return r.has(i)?!1:(r.add(i),!0)})}function ca(e,n){if(!Array.isArray(e))return e;const{idKey:r="id",parentKey:o="parentId",childrenKey:i="children",rootParentValue:s=null}=n||{},l=new Map,a=[];return e.forEach(c=>{l.set(c[r],{...c,[i]:[]})}),e.forEach(c=>{const y=l.get(c[r]);if(!y)return;const g=c[o];if(g===s||g===void 0)a.push(y);else{const p=l.get(g);p?(p[i]||(p[i]=[]),p[i].push(y)):a.push(y)}}),a}function ua(e,n="children"){if(!Array.isArray(e))return e;const r=[],o=i=>{i.forEach(s=>{const l=s[n],a={...s};delete a[n],r.push(a),Array.isArray(l)&&l.length>0&&o(l)})};return o(e),r}function W1(e,n,r="children"){if(!Array.isArray(e))return null;for(const o of e){if(n(o))return o;if(Array.isArray(o[r])&&o[r].length>0){const i=W1(o[r],n,r);if(i)return i}}return null}function da(e,n,r="children"){if(!Array.isArray(e))return;const o=(i,s,l)=>{i.forEach(a=>{n(a,s,l),Array.isArray(a[r])&&a[r].length>0&&o(a[r],a,l+1)})};o(e,null,0)}function fa(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=String(o[n]);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function ha(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=n(o);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function pa(e,n,r="asc"){return Array.isArray(e)?[...e].sort((o,i)=>{const s=o[n],l=i[n];return s<l?r==="asc"?-1:1:s>l?r==="asc"?1:-1:0}):e}function ma(e,n){return Array.isArray(e)?[...e].sort((r,o)=>{for(const{key:i,order:s="asc"}of n){const l=r[i],a=o[i];if(l<a)return s==="asc"?-1:1;if(l>a)return s==="asc"?1:-1}return 0}):e}function U1(e,n){return Array.isArray(e)?e.reduce((r,o)=>{const i=n?o[n]:o;return r+(Number(i)||0)},0):0}function ga(e,n){return!Array.isArray(e)||e.length===0?0:U1(e,n)/e.length}function wa(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=n?o[n]:o;return Number(i)||0});return Math.max(...r)}function ya(e,n){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=n?o[n]:o;return Number(i)||0});return Math.min(...r)}function va(e,n){if(!Array.isArray(e)||n<=0)return[e];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}function Qa(e,n){if(!Array.isArray(e)||!Array.isArray(n))return[];const r=new Set(n);return e.filter(o=>r.has(o))}function ka(e,n){return Array.isArray(e)?Array.isArray(n)?[...new Set([...e,...n])]:e||[]:n||[]}function ba(e,n){if(!Array.isArray(e))return[];if(!Array.isArray(n))return e;const r=new Set(n);return e.filter(o=>!r.has(o))}function Z1(e){if(!Array.isArray(e))return e;const n=[...e];for(let r=n.length-1;r>0;r--){const o=Math.floor(Math.random()*(r+1));[n[r],n[o]]=[n[o],n[r]]}return n}function Ma(e,n=1){return!Array.isArray(e)||n<=0?[]:Z1(e).slice(0,Math.min(n,e.length))}function Y1(e,n=1/0){return!Array.isArray(e)||n<=0?e:e.reduce((r,o)=>(Array.isArray(o)?r.push(...Y1(o,n-1)):r.push(o),r),[])}function Ca(e,n,r){if(!Array.isArray(e))return{data:[],page:n,pageSize:r,total:0,totalPages:0};const o=e.length,i=Math.ceil(o/r),s=(n-1)*r,l=s+r;return{data:e.slice(s,l),page:n,pageSize:r,total:o,totalPages:i}}function _a(e,n,r){if(!Array.isArray(e)||n<0||n>=e.length||r<0||r>=e.length)return e;const o=[...e],[i]=o.splice(n,1);return o.splice(r,0,i),o}function Na(e){return Array.isArray(e)?e.reduce((n,r)=>(n[r]=(n[r]||0)+1,n),{}):{}}const Da=Object.freeze(Object.defineProperty({__proto__:null,arrayToTree:ca,average:ga,chunkArray:va,countBy:Na,difference:ba,findNodeInTree:W1,flatten:Y1,forEachTree:da,groupBy:fa,groupByFn:ha,intersection:Qa,max:wa,min:ya,move:_a,paginate:Ca,sample:Ma,shuffle:Z1,sortBy:pa,sortByMultiple:ma,sum:U1,treeToArray:ua,union:ka,uniqueArray:la,uniqueArrayByKey:aa,uniqueArrayByKeys:sa},Symbol.toStringTag,{value:"Module"}));async function Aa(e){if(!e)return!1;if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch(n){console.error("Clipboard API 失败:",n)}try{const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-9999px",n.style.top="-9999px",document.body.appendChild(n),n.select(),n.setSelectionRange(0,e.length);const r=document.execCommand("copy");return document.body.removeChild(n),r}catch(n){return console.error("复制失败:",n),!1}}async function Sa(){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.readText()}catch(e){return console.error("读取剪贴板失败:",e),""}return""}function $t(e,n){const r=document.createElement("a");typeof e=="string"?r.href=e:r.href=URL.createObjectURL(e),r.download=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof e!="string"&&setTimeout(()=>URL.revokeObjectURL(r.href),100)}function Ta(e,n){const r=JSON.stringify(e,null,2),o=new Blob([r],{type:"application/json"});$t(o,n)}function Ia(e,n){const r=new Blob([e],{type:"text/plain"});$t(r,n)}function Vt(e){window.scrollTo(e)}function Ea(e,n){const r=typeof e=="string"?document.querySelector(e):e;r&&r.scrollIntoView({behavior:"smooth",block:"start",...n})}function La(e=!0){Vt({top:0,behavior:e?"smooth":"auto"})}function xa(e=!0){Vt({top:document.documentElement.scrollHeight,behavior:e?"smooth":"auto"})}function G1(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}}function ja(e){let n=0;for(;e;)n+=e.offsetTop,e=e.offsetParent;return n}function Ba(e,n=0){if(!e)return!1;const r=e.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return r.top>=0-n&&r.left>=0-n&&r.bottom<=o+n&&r.right<=i+n}function za(e){if(!e)return!1;const n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth,i=n.top<=r&&n.top+n.height>=0,s=n.left<=o&&n.left+n.width>=0;return i&&s}function Oa(e=document.documentElement){document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function Fa(e=document.documentElement){document.fullscreenElement||e.requestFullscreen().catch(n=>{console.error("进入全屏失败:",n)})}function Pa(){document.fullscreenElement&&document.exitFullscreen()}function $a(){return!!document.fullscreenElement}function Va(e,n){e&&e.classList.add(n)}function Ra(e,n){e&&e.classList.remove(n)}function Wa(e,n){e&&e.classList.toggle(n)}function Ua(e,n){return e?e.classList.contains(n):!1}function Za(e){return e?Array.from(e.classList):[]}function Ya(e){return e?e.getBoundingClientRect():null}function Ga(e){return e?e.offsetWidth:0}function Ha(e){return e?e.offsetHeight:0}function Ja(e,n=document){return n.querySelector(e)}function Xa(e,n=document){return Array.from(n.querySelectorAll(e))}function Ka(e,n){return e?e.getAttribute(n):null}function qa(e,n,r){e&&e.setAttribute(n,r)}function e5(e,n){e&&e.removeAttribute(n)}function t5(e,n){return e?e.hasAttribute(n):!1}function n5(e,n){return e&&window.getComputedStyle(e)[n]||""}function r5(e,n){e&&Object.keys(n).forEach(r=>{e.style[r]=n[r]})}function o5(){return{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function H1(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}function i5(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)}function l5(e=0){const{y:n}=G1(),r=window.innerHeight||document.documentElement.clientHeight,o=H1();return n+r>=o-e}const a5=Object.freeze(Object.defineProperty({__proto__:null,addClass:Va,copyToClipboard:Aa,downloadFile:$t,downloadJSON:Ta,downloadText:Ia,enterFullscreen:Fa,exitFullscreen:Pa,getAttribute:Ka,getClasses:Za,getElementHeight:Ha,getElementRect:Ya,getElementWidth:Ga,getOffsetTop:ja,getPageHeight:H1,getPageWidth:i5,getScrollPosition:G1,getStyle:n5,getWindowSize:o5,hasAttribute:t5,hasClass:Ua,isFullscreen:$a,isInViewport:Ba,isPartiallyVisible:za,isScrolledToBottom:l5,querySelector:Ja,querySelectorAll:Xa,readFromClipboard:Sa,removeAttribute:e5,removeClass:Ra,scrollTo:Vt,scrollToBottom:xa,scrollToElement:Ea,scrollToTop:La,setAttribute:qa,setStyle:r5,toggleClass:Wa,toggleFullscreen:Oa},Symbol.toStringTag,{value:"Module"}));function s5(e,n){return Math.floor(Math.random()*(n-e+1))+e}function c5(e,n,r=2){const o=Math.random()*(n-e)+e;return Number(o.toFixed(r))}function u5(e,n,r=1){const o=[];if(r===0)return o;if(r>0)for(let i=e;i<=n;i+=r)o.push(i);else for(let i=e;i>=n;i+=r)o.push(i);return o}function d5(e,n,r){return Math.min(Math.max(e,n),r)}function f5(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i+n*i)/i}function h5(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i-n*i)/i}function p5(e,n){const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length,i=Math.pow(10,r+o);return e*Math.pow(10,r)*n*Math.pow(10,o)/i}function m5(e,n){if(n===0)return console.warn("Division by zero"),1/0;const r=(e.toString().split(".")[1]||"").length,o=(n.toString().split(".")[1]||"").length;return e*Math.pow(10,o)/(n*Math.pow(10,r))*Math.pow(10,r-o)}function Rt(e,n=0){return Math.round(e*Math.pow(10,n))/Math.pow(10,n)}function g5(e,n=0){return Math.ceil(e*Math.pow(10,n))/Math.pow(10,n)}function w5(e,n=0){return Math.floor(e*Math.pow(10,n))/Math.pow(10,n)}function y5(e,n=0){return Rt(e,n).toFixed(n)}function v5(e,n,r=2){return n===0?0:Rt(e/n*100,r)}function Q5(e){return e/100}function k5(e){return e*100}function b5(e,n=2){return String(e).padStart(n,"0")}function M5(e){const n=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千","万"];if(e===0)return"零";if(e<0||e>99999)return String(e);const o=String(e);let i="",s=0;for(let l=0;l<o.length;l++){const a=parseInt(o[l]),c=r[o.length-1-l];a===0?s++:(s>0&&(i+="零"),i+=n[a]+c,s=0)}return e>=10&&e<20&&(i=i.replace("一十","十")),i}function C5(e){const n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=["","拾","佰","仟","万","拾","佰","仟","亿"],o=["角","分"];if(e===0)return"零元整";const[i,s=""]=e.toFixed(2).split(".");let l="";for(let a=0;a<i.length;a++){const c=parseInt(i[a]),y=r[i.length-1-a];c!==0?l+=n[c]+y:l&&!l.endsWith("零")&&(l+="零")}if(l=l.replace(/零+$/,"")+"元",s&&s!=="00")for(let a=0;a<Math.min(s.length,2);a++){const c=parseInt(s[a]);c!==0&&(l+=n[c]+o[a])}else l+="整";return l}function _5(e){return e%2===0}function N5(e){return e%2!==0}function D5(e){if(e<2)return!1;if(e===2)return!0;if(e%2===0)return!1;for(let n=3;n<=Math.sqrt(e);n+=2)if(e%n===0)return!1;return!0}function A5(e,n,r){return e>=n&&e<=r}function S5(e){return Math.abs(e)}function T5(e){return Math.sqrt(e)}function I5(e,n){return Math.pow(e,n)}function J1(e){return e<0?NaN:e===0||e===1?1:e*J1(e-1)}function Wt(e,n){return n===0?e:Wt(n,e%n)}function E5(e,n){return e*n/Wt(e,n)}const L5=Object.freeze(Object.defineProperty({__proto__:null,abs:S5,add:f5,ceil:g5,clamp:d5,decimalToPercent:k5,divide:m5,factorial:J1,floor:w5,gcd:Wt,inRange:A5,isEven:_5,isOdd:N5,isPrime:D5,lcm:E5,multiply:p5,padZero:b5,percentToDecimal:Q5,percentage:v5,pow:I5,random:s5,randomFloat:c5,range:u5,round:Rt,sqrt:T5,subtract:h5,toChineseMoney:C5,toChineseNumber:M5,toFixed:y5},Symbol.toStringTag,{value:"Module"}));function lt(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(Array.isArray(e))return e.map(r=>lt(r));const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=lt(e[r]));return n}function x5(e){return e===null||typeof e!="object"?e:Array.isArray(e)?[...e]:{...e}}function X1(...e){if(e.length===0)return{};if(e.length===1)return e[0];const n={};return e.forEach(r=>{!r||typeof r!="object"||Object.keys(r).forEach(o=>{const i=r[o],s=n[o];i&&typeof i=="object"&&!Array.isArray(i)&&s&&typeof s=="object"&&!Array.isArray(s)?n[o]=X1(s,i):n[o]=lt(i)})}),n}function j5(...e){return Object.assign({},...e)}function B5(e,n){if(!e||typeof e!="object")return{};const r={};return n.forEach(o=>{o in e&&(r[o]=e[o])}),r}function z5(e,n){if(!e||typeof e!="object")return{};const r={...e};return n.forEach(o=>{delete r[o]}),r}function O5(e,n,r){if(!e||typeof e!="object")return r;const o=n.split(".");let i=e;for(const s of o)if(i&&typeof i=="object"&&s in i)i=i[s];else return r;return i!==void 0?i:r}function K1(e,n,r){if(!e||typeof e!="object")return;const o=n.split("."),i=o.pop();if(!i)return;let s=e;for(const l of o)(!(l in s)||typeof s[l]!="object")&&(s[l]={}),s=s[l];s[i]=r}function F5(e,n){if(!e||typeof e!="object")return!1;const r=n.split(".");let o=e;for(const i of r)if(o&&typeof o=="object"&&i in o)o=o[i];else return!1;return!0}function P5(e){return e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function $5(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}function bt(e,n){if(e===n)return!0;if(typeof e!="object"||typeof n!="object"||e===null||n===null)return!1;if(e instanceof Date&&n instanceof Date)return e.getTime()===n.getTime();if(e instanceof RegExp&&n instanceof RegExp)return e.toString()===n.toString();if(Array.isArray(e)&&Array.isArray(n))return e.length!==n.length?!1:e.every((i,s)=>bt(i,n[s]));const r=Object.keys(e),o=Object.keys(n);return r.length!==o.length?!1:r.every(i=>bt(e[i],n[i]))}function Mt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Mt(r));const n={};return Object.keys(e).forEach(r=>{const o=r.replace(/_([a-z])/g,(s,l)=>l.toUpperCase()),i=e[r];n[o]=typeof i=="object"?Mt(i):i}),n}function Ct(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Ct(r));const n={};return Object.keys(e).forEach(r=>{const o=r.replace(/([A-Z])/g,"_$1").toLowerCase(),i=e[r];n[o]=typeof i=="object"?Ct(i):i}),n}function V5(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(n)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function R5(e){if(!e)return{};const n=e.startsWith("?")?e.slice(1):e,r={};return n.split("&").forEach(o=>{const[i,s]=o.split("=").map(decodeURIComponent);i&&(i in r?Array.isArray(r[i])?r[i].push(s):r[i]=[r[i],s]:r[i]=s)}),r}function q1(e,n){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{n(e[o],o)&&(r[o]=e[o])}),r}function W5(e,n=!0){return q1(e,r=>!(r==null||n&&r===""))}function en(e,n=""){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{const i=n?`${n}.${o}`:o,s=e[o];s&&typeof s=="object"&&!Array.isArray(s)?Object.assign(r,en(s,i)):r[i]=s}),r}function U5(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{K1(n,r,e[r])}),n}function Z5(e){if(!e||typeof e!="object")return{};const n={};return Object.keys(e).forEach(r=>{const o=e[r];n[String(o)]=r}),n}function Y5(e){return!e||typeof e!="object"?[]:Object.values(e)}function G5(e){return!e||typeof e!="object"?[]:Object.keys(e)}function H5(e){return!e||typeof e!="object"?[]:Object.entries(e)}const J5=Object.freeze(Object.defineProperty({__proto__:null,deepClone:lt,deepMerge:X1,entries:H5,filterValues:q1,flattenObject:en,fromQueryString:R5,get:O5,has:F5,invert:Z5,isEmpty:P5,isEqual:bt,isPlainObject:$5,keys:G5,keysToCamelCase:Mt,keysToUnderlineCase:Ct,omit:z5,pick:B5,removeEmpty:W5,set:K1,shallowClone:x5,shallowMerge:j5,toQueryString:V5,unflattenObject:U5,values:Y5},Symbol.toStringTag,{value:"Module"}));function X5(e,n=300,r=!1){let o=null,i=!1;const s=function(...l){o&&clearTimeout(o),r&&!i?(e.apply(this,l),i=!0):o=setTimeout(()=>{e.apply(this,l),i=!1,o=null},n)};return s.cancel=()=>{o&&(clearTimeout(o),o=null),i=!1},s}function K5(e,n=300,r){const{leading:o=!0,trailing:i=!0}=r||{};let s=null,l=0,a=null;const c=function(...y){const g=Date.now();!l&&!o&&(l=g);const p=n-(g-l);a=y,p<=0||p>n?(s&&(clearTimeout(s),s=null),l=g,e.apply(this,y),a=null):!s&&i&&(s=setTimeout(()=>{l=o?Date.now():0,s=null,a&&(e.apply(this,a),a=null)},p))};return c.cancel=()=>{s&&(clearTimeout(s),s=null),l=0,a=null},c}function q5(e){let n=!1,r;return function(...o){return n||(n=!0,r=e.apply(this,o)),r}}function tn(e){return new Promise(n=>setTimeout(n,e))}function nn(e){return tn(e)}async function e3(e,n){const{times:r=3,delay:o=1e3,onRetry:i}=n||{};let s;for(let l=0;l<r;l++)try{return await e()}catch(a){s=a,i&&i(a,l+1),l<r-1&&await nn(o)}throw s}function t3(e,n){return Promise.race([e,new Promise((r,o)=>setTimeout(()=>o(new Error("Timeout")),n))])}function n3(e,n){const r=new Map,o=function(...i){const s=n?n(...i):JSON.stringify(i);if(r.has(s))return r.get(s);const l=e.apply(this,i);return r.set(s,l),l};return o.cache=r,o}function r3(e){e.cache&&e.cache.clear()}function o3(e,n=100){let r=[],o=null;return function(i){r.push(i),o&&clearTimeout(o),o=setTimeout(()=>{e(r),r=[],o=null},n)}}async function i3(e,n){const r=[],o=[];for(const i of e){const s=i().then(l=>{r.push(l),o.splice(o.indexOf(s),1)});o.push(s),o.length>=n&&await Promise.race(o)}return await Promise.all(o),r}async function l3(e){const n=[];for(const r of e){const o=await r();n.push(o)}return n}function a3(e,n){return function(...r){const o=performance.now(),i=e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),i}}function s3(e,n){return async function(...r){const o=performance.now(),i=await e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${n||e.name||"Function"}: ${l}ms`),i}}function c3(e){const n=new Map;return async function(...r){const o=JSON.stringify(r);if(n.has(o))return n.get(o);const i=e.apply(this,r).finally(()=>{n.delete(o)});return n.set(o,i),i}}function u3(e){let n=null;const r=function(...o){n===null&&(n=requestAnimationFrame(()=>{e.apply(this,o),n=null}))};return r.cancel=()=>{n!==null&&(cancelAnimationFrame(n),n=null)},r}const d3=Object.freeze(Object.defineProperty({__proto__:null,batch:o3,clearCache:r3,debounce:X5,dedupe:c3,delay:tn,measureTime:a3,measureTimeAsync:s3,memoize:n3,once:q5,promiseLimit:i3,promiseSerial:l3,rafThrottle:u3,retry:e3,sleep:nn,throttle:K5,withTimeout:t3},Symbol.toStringTag,{value:"Module"}));function Se(e,n){return r=>{const o=String(r||"").trim();return!o||e(o)?!0:typeof n=="function"?n():n}}function rn(e){return e?/^1[3-9]\d{9}$/.test(e):!1}function on(e){return e?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e):!1}function ln(e){return e?/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(e):!1}function an(e){return e?/^\d{16,19}$/.test(e):!1}function sn(e){return e?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/.test(e):!1}function cn(e){return e?/^(https?:\/\/)([a-zA-Z0-9.-]+)(:[0-9]+)?(\/.*)?$/.test(e):!1}function un(e){return e?/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/.test(e):!1}function f3(e){return e?/^[\u4e00-\u9fa5]+$/.test(e):!1}function h3(e){return e?/[\u4e00-\u9fa5]/.test(e):!1}function p3(e){return e?/^\d+$/.test(e):!1}function m3(e){return e?/^-?\d+\.?\d*$/.test(e):!1}function g3(e){return e?/^[1-9]\d*$/.test(e):!1}function w3(e){return!e&&e!=="0"?!1:/^(0|[1-9]\d*)$/.test(e)}function y3(e){return e?/^[1-9]\d{4,10}$/.test(e):!1}function v3(e){return e?/^[a-zA-Z][a-zA-Z0-9_-]{5,19}$/.test(e):!1}function Q3(e){return e?/^[1-9]\d{5}$/.test(e):!1}function k3(e){return e?/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e):!1}function b3(e){return e?/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{6,}$/.test(e):!1}function M3(e){return e?/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e):!1}function C3(e){if(!e)return!1;const n=Number(e);return/^\d+$/.test(e)&&n>=1&&n<=65535}function _3(e){return e?/^([\da-fA-F]{1,4}:){7}[\da-fA-F]{1,4}$|^::$|^([\da-fA-F]{1,4}:){1,6}:$|^:((:[\da-fA-F]{1,4}){1,6})$/.test(e):!1}function N3(e){return e?/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e):!1}function D3(e="请输入有效的手机号"){return Se(rn,e)}function A3(e="请输入有效的邮箱地址"){return Se(on,e)}function S3(e="请输入有效的身份证号"){return Se(ln,e)}function T3(e="请输入有效的银行卡号"){return Se(an,e)}function I3(e="请输入有效的车牌号"){return Se(sn,e)}function E3(e="请输入有效的 URL 地址"){return Se(cn,e)}function L3(e="请输入有效的 IP 地址"){return Se(un,e)}const x3=Object.freeze(Object.defineProperty({__proto__:null,bankCardRule:T3,carNumberRule:I3,createFormRule:Se,emailRule:A3,hasChinese:h3,idCardRule:S3,ipRule:L3,isBankCard:an,isCarNumber:sn,isChinese:f3,isEmail:on,isHexColor:N3,isIP:un,isIPv6:_3,isIdCard:ln,isMac:M3,isMediumPassword:b3,isNonNegativeInteger:w3,isNumber:p3,isNumeric:m3,isPhone:rn,isPort:C3,isPositiveInteger:g3,isPostcode:Q3,isQQ:y3,isStrongPassword:k3,isUrl:cn,isWechat:v3,phoneRule:D3,urlRule:E3},Symbol.toStringTag,{value:"Module"}));function j3(e){return!e||e.length!==11?e:e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function B3(e){if(!e||e.length<8)return e;const n=e.length;return e.substring(0,3)+"*".repeat(n-7)+e.substring(n-4)}function z3(e){return!e||e.length===0||e.length===1?e:e.length===2?e[0]+"*":e.substring(0,e.length-1)+"*"}function O3(e){if(!e||e.length<8)return e;const n=e.length,r=e.substring(0,4),o=e.substring(n-4);return`${r} **** **** ${o}`}function F3(e){if(!e||!e.includes("@"))return e;const[n,r]=e.split("@");return n.length<=1?e:n[0]+"***@"+r}function P3(e,n=6){return!e||e.length<=n?e:e.substring(0,n)+"***"}function $3(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function V3(e){return e&&e.replace(/\b\w/g,n=>n.toUpperCase())}function R3(e){return e&&e.replace(/_([a-z])/g,(n,r)=>r.toUpperCase())}function W3(e){return e&&e.replace(/([A-Z])/g,"_$1").toLowerCase()}function U3(e){return e&&e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Z3(e){if(e==null||e==="")return"";const r=String(e).split(".");return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),r.join(".")}function Y3(e,n){const{currency:r="¥",decimals:o=2,thousandsSeparator:i=",",decimalSeparator:s="."}=n||{},l=typeof e=="string"?parseFloat(e):e;if(isNaN(l))return e.toString();const a=l.toFixed(o),[c,y]=a.split(".");let p=c.replace(/\B(?=(\d{3})+(?!\d))/g,i);return o>0&&y&&(p+=s+y),r+p}function G3(e,n=2){if(e===0)return"0 B";if(!e)return"";const r=1024,o=["B","KB","MB","GB","TB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(n))+" "+o[i]}function H3(e){return e&&e.replace(/\s/g,"").replace(/(\d{4})(?=\d)/g,"$1 ")}function J3(e){return e&&e.replace(/\s/g,"").replace(/(\d{3})(\d{4})(\d{4})/,"$1 $2 $3")}function X3(e=8,n="alphanumeric"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o="0123456789";let s=r+o;n==="alpha"&&(s=r),n==="number"&&(s=o);let l="";for(let a=0;a<e;a++)l+=s.charAt(Math.floor(Math.random()*s.length));return l}function K3(e){const n=Date.now(),r=Math.random().toString(36).substring(2,8);return e?`${e}_${n}_${r}`:`${n}_${r}`}function q3(e,n,r="..."){return!e||e.length<=n?e:e.substring(0,n)+r}function e8(e){return e&&e.replace(/<[^>]*>/g,"")}function t8(e){if(!e)return e;const n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return e.replace(/[&<>"'/]/g,r=>n[r])}function n8(e){if(!e)return e;const n={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};return e.replace(/&(amp|lt|gt|quot|#x27|#x2F);/g,r=>n[r])}function r8(e){return e==null||e.trim()===""}function o8(e){return e&&e.split("").reverse().join("")}function i8(e,n){return!e||n<=0?"":e.repeat(n)}function l8(e,n,r=" "){return e||(e=""),e.padStart(n,r)}function a8(e,n,r=" "){return e||(e=""),e.padEnd(n,r)}const s8=Object.freeze(Object.defineProperty({__proto__:null,addressDesensitize:P3,bankCardDesensitize:O3,capitalize:$3,capitalizeWords:V3,emailDesensitize:F3,escapeHtml:t8,formatBankCard:H3,formatFileSize:G3,formatMoney:Y3,formatNumber:Z3,formatPhone:J3,generateUUID:K3,idCardDesensitize:B3,isEmpty:r8,nameDesensitize:z3,padEnd:a8,padStart:l8,phoneDesensitize:j3,randomString:X3,removeHtmlTags:e8,repeat:i8,reverse:o8,toCamelCase:R3,toKebabCase:U3,toUnderlineCase:W3,truncate:q3,unescapeHtml:n8},Symbol.toStringTag,{value:"Module"}));function De(e){const n=e||(typeof window<"u"?window.location.href:"");if(!n)return{};const r=n.includes("?")?n.split("?")[1].split("#")[0]:"";if(!r)return{};const o={};return r.split("&").forEach(i=>{if(!i)return;const[s,l=""]=i.split("=").map(decodeURIComponent);s&&(s in o?Array.isArray(o[s])?o[s].push(l):o[s]=[o[s],l]:o[s]=l)}),o}function Oe(e){return!e||typeof e!="object"?"":Object.keys(e).filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(n)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(n)}=${encodeURIComponent(r)}`}).join("&")}function c8(e,n){const o=De(n)[e];return o===void 0?null:Array.isArray(o)?o[0]||null:o}function u8(e,n){const o=De(n)[e];return o===void 0?[]:Array.isArray(o)?o:[o]}function d8(e,n="push"){if(typeof window>"u"||!window.history)return;const o={...De(),...e};Object.keys(o).forEach(l=>{(o[l]===null||o[l]===void 0)&&delete o[l]});const i=Oe(o),s=i?`${window.location.pathname}?${i}`:window.location.pathname;n==="push"?window.history.pushState(null,"",s):window.history.replaceState(null,"",s)}function f8(e,n="push"){if(typeof window>"u"||!window.history)return;const r=De();e.forEach(s=>{delete r[s]});const o=Oe(r),i=o?`${window.location.pathname}?${o}`:window.location.pathname;n==="push"?window.history.pushState(null,"",i):window.history.replaceState(null,"",i)}function h8(e="push"){if(typeof window>"u"||!window.history)return;const n=window.location.pathname;e==="push"?window.history.pushState(null,"",n):window.history.replaceState(null,"",n)}function p8(...e){return e.length===0?"":e.map((n,r)=>r===0?n.replace(/\/+$/,""):r===e.length-1?n.replace(/^\/+/,""):n.replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")}function m8(e){if(!e)return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:"",search:"",hash:"",host:"",origin:"",href:"",params:{}};try{const n=new URL(e);return{protocol:n.protocol,username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search,hash:n.hash,host:n.host,origin:n.origin,href:n.href,params:De(e)}}catch{return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:e.split("?")[0].split("#")[0],search:e.includes("?")?"?"+e.split("?")[1].split("#")[0]:"",hash:e.includes("#")?"#"+e.split("#")[1]:"",host:"",origin:"",href:e,params:De(e)}}}function g8(e){const{protocol:n="https",hostname:r="",port:o="",pathname:i="",params:s={},hash:l=""}=e;if(!r)return i;let a=`${n}://${r}`;o&&(a+=`:${o}`),i&&(a+=i.startsWith("/")?i:`/${i}`);const c=Oe(s);return c&&(a+=`?${c}`),l&&(a+=l.startsWith("#")?l:`#${l}`),a}function w8(e){return e?/^(https?:)?\/\//.test(e):!1}function y8(e){return e?e.startsWith("/"):!1}function v8(e,n){try{const r=new URL(e),o=new URL(n);return r.origin===o.origin}catch{return!1}}function Q8(e){return encodeURIComponent(e)}function k8(e){try{return decodeURIComponent(e)}catch{return e}}function b8(e){if(!e)return"";try{return encodeURI(decodeURI(e))}catch{return encodeURI(e)}}function M8(e){if(!e)return"";try{return decodeURI(e)}catch{return e}}function C8(e,n){if(!e)return"";if(!n||Object.keys(n).length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?"),a={...s?De("?"+s):{},...n},c=Oe(a);let y=i;return c&&(y+=`?${c}`),o&&(y+=`#${o}`),y}function _8(e,n){if(!e)return"";if(!n||n.length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?");if(!s)return e;const l=De("?"+s);n.forEach(y=>{delete l[y]});const a=Oe(l);let c=i;return a&&(c+=`?${a}`),o&&(c+=`#${o}`),c}function dn(e){try{return new URL(e).hostname}catch{return""}}function N8(e){const n=dn(e);if(!n)return"";const r=n.split(".");return r.length<=2?n:r.slice(-2).join(".")}function D8(){return typeof window>"u"?"":window.location.href}function A8(){return typeof window>"u"?"":window.location.pathname}function S8(){return typeof window>"u"?{}:De(window.location.search)}function T8(){return typeof window>"u"?"":window.location.hash.replace(/^#/,"")}const I8=Object.freeze(Object.defineProperty({__proto__:null,addQueryParams:C8,buildUrl:g8,clearQueryParams:h8,decodeParam:k8,encodeParam:Q8,getCurrentHash:T8,getCurrentPath:A8,getCurrentQuery:S8,getCurrentUrl:D8,getDomain:dn,getQueryParam:c8,getQueryParams:u8,getRootDomain:N8,isAbsolutePath:y8,isExternalLink:w8,isSameOrigin:v8,joinUrl:p8,parseQuery:De,parseUrl:m8,removeQueryParams:f8,removeQueryParamsFromUrl:_8,safeDecodeUrl:M8,safeEncodeUrl:b8,stringifyQuery:Oe,updateQueryParams:d8},Symbol.toStringTag,{value:"Module"})),E8={...ia,array:Da,dom:a5,number:L5,object:J5,perf:d3,regex:x3,string:s8,url:I8};exports.twcptResolver=d1.twcptResolver;exports.twcptResolverWithOptions=d1.twcptResolverWithOptions;exports.DialogProvider=Ue;exports.JTWAmap=V2;exports.JTWBtn=ze;exports.JTWCheckbox=_t;exports.JTWCheckboxGroup=Zo;exports.JTWConfirmDialog=Q1;exports.JTWConfirmDialogIcon=v1;exports.JTWCopyText=xi;exports.JTWDatePicker=Pr;exports.JTWDateTimePicker=Ur;exports.JTWDialog=C1;exports.JTWDialogFooterMode=M1;exports.JTWDialogPosition=k1;exports.JTWDialogSize=b1;exports.JTWDropdownBtn=Cn;exports.JTWFileUpload=g2;exports.JTWForm=zo;exports.JTWFormItem=Po;exports.JTWFormLabel=xo;exports.JTWInput=p1;exports.JTWMessages=y1;exports.JTWMultiSelectBtn=Hn;exports.JTWPagination=w1;exports.JTWPdfView=fl;exports.JTWPdfViewLoadState=We;exports.JTWPermission=Ni;exports.JTWPopupProxy=Wi;exports.JTWPopupProxyMode=yt;exports.JTWPopupProxyPlacement=S1;exports.JTWPopupProxyTrigger=xe;exports.JTWRadio=g1;exports.JTWRadioGroup=Ho;exports.JTWSearchBox=K2;exports.JTWSelect=Ro;exports.JTWStatusImg=Ye;exports.JTWTable=M0;exports.JTWToggle=Ko;exports.JTWTooltip=Nt;exports.JTWTreeSelect=Do;exports.JTWTreeSelectBtn=Nr;exports.JTWTreeSelectInput=jr;exports.PAGE_ACTION_PERMISSION_KEY=It;exports.PAGE_PERMISSION_KEY=Tt;exports.composeIconMapFn=pl;exports.dialogConfirm=T1;exports.getLocale=A1;exports.getProjectPermissionId=ki;exports.getTwcptColors=Qi;exports.getTwcptConfig=bi;exports.parseKMZFromUrl=ql;exports.parseKMZRouteFromUrl=F1;exports.setLocale=rt;exports.t=D1;exports.twConfirmDialog=T1;exports.twDialog=Z0;exports.twMessages=je;exports.twTool=E8;exports.twcptIconMapFn=hl;exports.twcptInit=yi;exports.useBizRequest=wl;exports.useI18n=wi;exports.usePageActionPermissionSync=gl;exports.usePagePermissionSync=ml;exports.useRAFPolling=yl;
|