twcpt 0.0.16 → 0.0.18

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/twcpt.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),fe=require("element-plus"),n1=require("./resolver.cjs"),he={LARGE:"large",NORMAL:"normal",SMALL:"small"},we={BUTTON:"button",TEXT:"text"},Pt={PRIMARY:"primary",GREEN:"green",ORANGE:"orange",RED:"red",CYAN:"cyan",BROWN:"brown",YELLOW:"yellow",BLUE:"blue",PURPLE:"purple",LIME:"lime",MAGENTA:"magenta",PINK:"pink"},rn=n.defineComponent({name:"JTWBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:he.NORMAL,validator:e=>Object.values(he).includes(e)},type:{type:String,default:we.BUTTON,validator:e=>Object.values(we).includes(e)},color:{type:String,default:"primary",validator:e=>Object.values(Pt).includes(e)},textColor:{type:String,default:void 0,validator:e=>!e||Object.values(Pt).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:t,expose:r}){const i=n.ref(null),o=n.computed(()=>e.tips!=null?String(e.tips):""),s=n.computed(()=>({"j-tw-btn":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.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===we.TEXT&&!e.flat})),l=n.computed(()=>{const h=e.color||"primary",k={"--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&&(k["--j-btn-text-color"]=`var(--j-color-${e.textColor})`),k}),a={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},c=n.computed(()=>({...a,...e.tooltipConfig})),g=h=>{t("click",h)};return r({get $el(){var h;return(h=i.value)==null?void 0:h.$el},click:()=>{var h,k;(k=(h=i.value)==null?void 0:h.$el)==null||k.click()}}),{elBtnRef:i,tooltipContent:o,computedClass:s,computedStyle:l,mergedTooltipConfig:c,handleClick:g}}}),ue=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r};function on(e,t,r,i,o,s){const l=n.resolveComponent("el-button"),a=n.resolveComponent("el-tooltip");return n.openBlock(),n.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:n.withCtx(()=>[n.createVNode(l,n.mergeProps({ref:"elBtnRef",class:e.computedClass,style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleClick}),n.createSlots({default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.label),1)])]),_:2},[e.$slots.icon?{name:"icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading-icon",{},()=>[t[0]||(t[0]=n.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"},[n.createElementVNode("defs",null,[n.createElementVNode("clipPath",{id:"master_svg0_37_06013"},[n.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0"})])]),n.createElementVNode("g",{"clip-path":"url(#master_svg0_37_06013)"},[n.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0",fill:"transparent",style:{"mix-blend-mode":"passthrough"}}),n.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 $e=ue(rn,[["render",on]]),an=n.defineComponent({name:"JTWDropdownBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:he.NORMAL,validator:e=>Object.values(he).includes(e)},type:{type:String,default:we.BUTTON,validator:e=>Object.values(we).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:t,expose:r}){const i=n.ref(null),o=n.ref(null),s=n.ref(null),l=n.ref(null),a=n.ref(!1),c=n.ref({}),g=n.computed(()=>e.tips!=null?String(e.tips):""),y=n.computed(()=>{if(e.modelValue!=null){const D=e.options.find(E=>E.value===e.modelValue);if(D)return D.label}return e.label}),h=n.computed(()=>({"j-tw-dropdown-btn":!0,"j-tw-dropdown-btn--large":e.size===he.LARGE,"j-tw-dropdown-btn--normal":e.size===he.NORMAL,"j-tw-dropdown-btn--small":e.size===he.SMALL})),k=n.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__main":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===we.TEXT})),m=n.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__trigger":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===we.TEXT})),Q=n.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=n.computed(()=>({...u,...e.tooltipConfig})),f=()=>{if(!i.value||!l.value)return;const D=i.value.getBoundingClientRect(),E=l.value.getBoundingClientRect(),b=window.innerHeight-D.bottom,S=D.top;let p=D.bottom+4;E.height>50&&b<E.height+20&&S>E.height+20&&(p=D.top-E.height-4),c.value={top:`${p}px`,left:`${D.left}px`}},v=()=>{a.value=!0,n.nextTick(()=>{n.nextTick(()=>{f()})})},M=()=>{a.value=!1},A=()=>{a.value?M():v()},N=D=>{t("click",D),A()},B=D=>{D.disabled||(t("update:modelValue",D.value),t("select",D),M())},L=D=>{if(!i.value||!l.value)return;const E=D.target;!i.value.contains(E)&&!l.value.contains(E)&&M()};return n.watch(a,D=>{D?(document.addEventListener("click",L),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0)):(document.removeEventListener("click",L),window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0))}),n.onMounted(()=>{}),n.onBeforeUnmount(()=>{document.removeEventListener("click",L),window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0)}),r({get $el(){return i.value},click:()=>{var D,E;(E=(D=o.value)==null?void 0:D.$el)==null||E.click()},openDropdown:v,closeDropdown:M}),{dropdownRef:i,mainBtnRef:o,dropdownBtnRef:s,dropdownMenuRef:l,dropdownVisible:a,dropdownMenuStyle:c,tooltipContent:g,displayLabel:y,dropdownClass:h,mainBtnClass:k,dropdownBtnClass:m,computedStyle:Q,mergedTooltipConfig:w,handleMainClick:N,toggleDropdown:A,handleOptionClick:B}}}),ln="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",sn="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",cn="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",un={class:"j-tw-dropdown-btn__label"},dn=["onClick"],fn={class:"j-tw-dropdown-btn__option-label"},hn={key:0,src:cn,class:"j-tw-dropdown-btn__selected-icon",alt:"Selected"};function pn(e,t,r,i,o,s){const l=n.resolveComponent("el-button"),a=n.resolveComponent("el-tooltip");return n.openBlock(),n.createElementBlock("div",{ref:"dropdownRef",class:n.normalizeClass(e.dropdownClass),style:n.normalizeStyle(e.computedStyle)},[n.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:n.withCtx(()=>[n.createVNode(l,n.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}),n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",un,[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.displayLabel),1)])]),n.createElementVNode("img",{src:sn,class:n.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:n.withCtx(()=>[n.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading-icon",{},()=>[t[1]||(t[1]=n.createElementVNode("img",{src:ln,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"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-dropdown-fade"},{default:n.withCtx(()=>[e.dropdownVisible?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-dropdown-btn__menu",style:n.normalizeStyle({...e.dropdownMenuStyle,...e.computedStyle}),onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,c=>(n.openBlock(),n.createElementBlock("div",{key:c.value,class:n.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:g=>e.handleOptionClick(c)},[n.createElementVNode("span",fn,n.toDisplayString(c.label),1),c.value===e.modelValue?(n.openBlock(),n.createElementBlock("img",hn)):n.createCommentVNode("",!0)],10,dn))),128))],4)):n.createCommentVNode("",!0)]),_:1})]))],6)}const gn=ue(an,[["render",pn]]),mn=n.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",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_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",vn="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",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_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",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_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",bn="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",Mn="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",Cn={key:0,src:wn,alt:"collapse",class:"j-tw-tree-select-btn__expand-icon"},An={key:1,src:yn,alt:"expand",class:"j-tw-tree-select-btn__expand-icon"},_n={key:2,class:"j-tw-tree-select-btn__expand-placeholder"},Dn={class:"j-tw-tree-select-btn__radio"},Nn={key:0,src:vn,alt:"indeterminate",class:"j-tw-tree-select-btn__radio-icon"},In={key:1,src:Qn,alt:"checked",class:"j-tw-tree-select-btn__radio-icon"},Sn={key:2,src:kn,alt:"unchecked",class:"j-tw-tree-select-btn__radio-icon"},Tn={key:0,src:bn,alt:"selected",class:"j-tw-tree-select-btn__radio-icon"},xn={key:1,src:Mn,alt:"unselected",class:"j-tw-tree-select-btn__radio-icon"},Ln={class:"j-tw-tree-select-btn__node-label"};function En(e,t,r,i,o,s){const l=n.resolveComponent("TreeNode",!0);return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.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:n.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"}),onClick:t[1]||(t[1]=a=>e.handleNodeClick(e.node))},[e.level>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-tree-select-btn__node-line",style:n.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):n.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:"j-tw-tree-select-btn__expand-btn",onClick:t[0]||(t[0]=n.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(n.openBlock(),n.createElementBlock("img",Cn)):(n.openBlock(),n.createElementBlock("img",An))])):(n.openBlock(),n.createElementBlock("div",_n)),n.createElementVNode("div",Dn,[e.multiple?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(n.openBlock(),n.createElementBlock("img",Nn)):e.isNodeChecked(e.node.value)?(n.openBlock(),n.createElementBlock("img",In)):(n.openBlock(),n.createElementBlock("img",Sn))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.tempSelectedValue===e.node.value?(n.openBlock(),n.createElementBlock("img",Tn)):(n.openBlock(),n.createElementBlock("img",xn))],64))]),n.createElementVNode("span",Ln,[n.renderSlot(e.$slots,"default",{node:e.node},()=>[n.createTextVNode(n.toDisplayString(e.node.label),1)])])],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.node.children,(a,c)=>(n.openBlock(),n.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:n.withCtx(({node:g})=>[n.renderSlot(e.$slots,"default",{node:g},()=>[n.createTextVNode(n.toDisplayString(g.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)):n.createCommentVNode("",!0)],64)}const r1=ue(mn,[["render",En]]),zn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDQuMDAwMDAxTDgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxWiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",jn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDY4QzgsNzAuMjA5MTM3LDkuNzkwODYxMSw3MiwxMi4wMDAwMDEwMDAwMDAwMDEsNzJMNjAsNzJDNjIuMjA5MTQxLDcyLDY0LDcwLjIwOTEzNyw2NCw2OEw2NCw0LjAwMDAwMDVDNjQsMS43OTA4NjExLDYyLjIwOTE0MSwwLDYwLDBMMTIuMDAwMDAwNDk5OTk5OTk5LDBDOS43OTA4NjExLDAsOCwxLjc5MDg2MTEsOCw0LjAwMDAwMUw4LDY4WiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",Bn="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",On=n.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 t={default:zn,empty:jn,loading:Bn},r=n.computed(()=>t[e.name]||t.default),i=n.computed(()=>{const o={};return e.width!==void 0&&(o.width=typeof e.width=="number"?`${e.width}px`:e.width),e.height!==void 0&&(o.height=typeof e.height=="number"?`${e.height}px`:e.height),o});return{imageSrc:r,imageStyle:i}}}),Fn={class:"j-tw-status-img"},Pn=["src","alt"];function Rn(e,t,r,i,o,s){return n.openBlock(),n.createElementBlock("div",Fn,[n.createElementVNode("img",{src:e.imageSrc,alt:e.name,style:n.normalizeStyle(e.imageStyle),class:"j-tw-status-img__image"},null,12,Pn)])}const nt=ue(On,[["render",Rn]]),$n=n.defineComponent({name:"JTWTreeSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWBtn:$e,TreeNode:r1,JTWStatusImg:nt},inheritAttrs:!1,props:{size:{type:String,default:he.NORMAL,validator:e=>Object.values(he).includes(e)},type:{type:String,default:we.BUTTON,validator:e=>Object.values(we).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:t,expose:r}){const i=n.ref(null),o=n.ref(null),s=n.ref(null),l=n.ref(null),a=n.ref(!1),c=n.ref({}),g=n.ref(""),y=n.ref(new Set),h=n.ref(void 0),k=n.ref(new Set),m=n.ref(!1);e.defaultExpandFirst&&e.data.length>0&&y.value.add(e.data[0].value),n.watch(()=>e.data,U=>{e.defaultExpandFirst&&U.length>0&&y.value.size===0&&y.value.add(U[0].value)},{immediate:!0});const Q=n.computed(()=>e.tips!=null?String(e.tips):""),u=(U,K)=>{for(const te of U){if(te.value===K)return te;if(te.children){const ce=u(te.children,K);if(ce)return ce}}return null},w=U=>{if(!U.children||U.children.length===0)return[];const K=[];for(const te of U.children)K.push(te.value),K.push(...w(te));return K},f=(U,K)=>{for(const te of U)if(te.children){if(te.children.some(pe=>pe.value===K))return te;const ce=f(te.children,K);if(ce)return ce}return null},v=U=>{const K=f(e.data,U);return K&&K.children?K.children.map(te=>te.value).filter(te=>te!==U):e.data.map(te=>te.value).filter(te=>te!==U)},M=U=>{const K=f(e.data,U);K&&K.children&&(K.children.every(ce=>k.value.has(ce.value))?k.value.add(K.value):k.value.delete(K.value))},A=U=>e.multiple?k.value.has(U):h.value===U,N=U=>{if(!U.children||U.children.length===0)return[];const K=[];for(const te of U.children)K.push(te.value),K.push(...N(te));return K},B=U=>{if(!e.multiple||!U.children||U.children.length===0)return!1;const K=N(U),te=K.filter(ce=>k.value.has(ce)).length;return te>0&&te<K.length},L=U=>e.multiple?k.value.has(U):h.value===U,P=n.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,K)=>{if(!K)return U;const te=[];for(const ce of U){const pe=ce.label.toLowerCase().includes(K.toLowerCase()),d=ce.children?D(ce.children,K):[];(pe||d.length>0)&&(te.push({...ce,children:d.length>0?d:ce.children}),d.length>0&&y.value.add(ce.value))}return te},E=n.computed(()=>D(e.data,g.value)),$=n.computed(()=>({"j-tw-tree-select-btn":!0,"j-tw-tree-select-btn--large":e.size===he.LARGE,"j-tw-tree-select-btn--normal":e.size===he.NORMAL,"j-tw-tree-select-btn--small":e.size===he.SMALL})),b=n.computed(()=>({"j-tw-btn":!0,"j-tw-tree-select-btn__main":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===we.TEXT})),S=n.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)"})),p={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},R=n.computed(()=>({...p,...e.tooltipConfig})),X=()=>{if(!i.value||!s.value)return;const U=i.value.getBoundingClientRect(),K=s.value.getBoundingClientRect(),ce=window.innerHeight-U.bottom,pe=U.top;let d=U.bottom+4;K.height>50&&ce<K.height+20&&pe>K.height+20&&(d=U.top-K.height-4),c.value={top:`${d}px`,left:`${U.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},Z=()=>{a.value=!0,e.multiple&&Array.isArray(e.modelValue)?k.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),g.value="",n.nextTick(()=>{n.nextTick(()=>{X()})})},ae=()=>{a.value=!1,g.value=""},Y=()=>{a.value?ae():Z()},ne=U=>{t("click",U),Y()},j=U=>{y.value.has(U)?y.value.delete(U):(e.accordion&&v(U).forEach(te=>{y.value.delete(te)}),y.value.add(U))},z=U=>{if(!U.disabled)if(e.multiple){const K=k.value.has(U.value),te=w(U);K?(k.value.delete(U.value),te.forEach(pe=>k.value.delete(pe))):(k.value.add(U.value),te.forEach(pe=>k.value.add(pe))),M(U.value);const ce=e.data.filter(pe=>k.value.has(pe.value));t("select",ce)}else h.value=U.value,t("select",U)},re=()=>{if(e.multiple){const U=Array.from(k.value),K=U.map(te=>u(e.data,te)).filter(te=>te!==null);t("update:modelValue",U),t("confirm",K.length>0?K:null)}else if(h.value!=null){const U=u(e.data,h.value);t("update:modelValue",h.value),t("confirm",U)}else t("update:modelValue",void 0),t("confirm",null);ae()},T=()=>{t("cancel"),ae()},O=()=>{e.multiple?(k.value.clear(),t("update:modelValue",[]),t("confirm",null)):(h.value=void 0,t("update:modelValue",void 0),t("confirm",null))},ee=n.computed(()=>e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null),le=U=>{if(!i.value||!s.value)return;const K=U.target;!i.value.contains(K)&&!s.value.contains(K)&&ae()};return n.watch(a,U=>{U?(document.addEventListener("click",le),window.addEventListener("resize",X),window.addEventListener("scroll",X,!0)):(document.removeEventListener("click",le),window.removeEventListener("resize",X),window.removeEventListener("scroll",X,!0))}),n.onMounted(()=>{}),n.onBeforeUnmount(()=>{document.removeEventListener("click",le),window.removeEventListener("resize",X),window.removeEventListener("scroll",X,!0)}),r({get $el(){return i.value},click:()=>{var U,K;(K=(U=o.value)==null?void 0:U.$el)==null||K.click()},openDropdown:Z,closeDropdown:ae}),{treeSelectRef:i,mainBtnRef:o,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:g,expandedKeys:y,tempSelectedValue:h,tempSelectedValues:k,tooltipContent:Q,displayLabel:P,filteredData:E,treeSelectClass:$,mainBtnClass:b,computedStyle:S,mergedTooltipConfig:R,handleMainClick:ne,toggleDropdown:Y,toggleExpand:j,handleNodeClick:z,handleConfirm:re,handleCancel:T,handleClear:O,showClearIcon:ee,isHovering:m,isNodeChecked:A,isNodeIndeterminate:B,isNodeSelected:L}}}),Vn="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",Un="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",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='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",Zn={class:"j-tw-tree-select-btn__label"},Yn={class:"j-tw-tree-select-btn__search"},Gn=["placeholder"],Hn={class:"j-tw-tree-select-btn__tree",ref:"treeContainerRef"},Jn={key:0,class:"j-tw-tree-select-btn__empty"},Xn={class:"j-tw-tree-select-btn__footer"};function Kn(e,t,r,i,o,s){const l=n.resolveComponent("el-button"),a=n.resolveComponent("el-tooltip"),c=n.resolveComponent("JTWStatusImg"),g=n.resolveComponent("TreeNode"),y=n.resolveComponent("JTWBtn");return n.openBlock(),n.createElementBlock("div",{ref:"treeSelectRef",class:n.normalizeClass(e.treeSelectClass),style:n.normalizeStyle(e.computedStyle)},[n.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:n.withCtx(()=>[n.createVNode(l,n.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:t[1]||(t[1]=h=>e.isHovering=!0),onMouseleave:t[2]||(t[2]=h=>e.isHovering=!1)}),n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",Zn,[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["j-tw-tree-select-btn__clear",{"j-tw-tree-select-btn__clear--hover":e.isHovering}]),onClick:t[0]||(t[0]=n.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...t[6]||(t[6]=[n.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-tree-select-btn__clear-icon"},[n.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"}),n.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)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["j-tw-tree-select-btn__arrow",{"j-tw-tree-select-btn__arrow--open":e.dropdownVisible}])},[...t[7]||(t[7]=[n.createElementVNode("img",{src:Un,alt:"Dropdown arrow"},null,-1)])],2)]),_:2},[e.$slots.icon?{name:"icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading-icon",{},()=>[t[5]||(t[5]=n.createElementVNode("img",{src:Vn,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"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-tree-select-fade"},{default:n.withCtx(()=>[e.dropdownVisible?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-btn__menu",style:n.normalizeStyle(e.dropdownMenuStyle),onClick:t[4]||(t[4]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",Yn,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-btn__search-input",placeholder:e.searchPlaceholder},null,8,Gn),[[n.vModelText,e.searchText]]),t[8]||(t[8]=n.createElementVNode("img",{src:Wn,alt:"search",class:"j-tw-tree-select-btn__search-icon"},null,-1))]),n.createElementVNode("div",Hn,[e.filteredData.length===0?(n.openBlock(),n.createElementBlock("div",Jn,[n.createVNode(c,{width:32,height:32}),t[9]||(t[9]=n.createElementVNode("p",{class:"j-tw-tree-select-btn__empty-text"},"暂无数据",-1))])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filteredData,h=>(n.openBlock(),n.createBlock(g,{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:n.withCtx(({node:k})=>[n.renderSlot(e.$slots,"default",{node:k},()=>[n.createTextVNode(n.toDisplayString(k.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),n.createElementVNode("div",Xn,[n.createVNode(y,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),n.createVNode(y,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])])],4)):n.createCommentVNode("",!0)]),_:3})]))],6)}const qn=ue($n,[["render",Kn]]),er=n.defineComponent({name:"JTWTreeSelectInput",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption,JTWBtn:$e,TreeNode:r1,JTWStatusImg:nt},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:t,expose:r}){const i=n.ref(null),o=n.ref(null),s=n.ref(null),l=n.ref(null),a=n.ref(!1),c=n.ref({}),g=n.ref(""),y=n.ref(new Set),h=n.ref(void 0),k=n.ref(new Set);n.watch(()=>e.data,T=>{e.defaultExpandFirst&&T.length>0&&y.value.size===0&&y.value.add(T[0].value)},{immediate:!0});const m=(T,O)=>{for(const ee of T){if(ee.value===O)return ee;if(ee.children){const le=m(ee.children,O);if(le)return le}}return null},Q=T=>{if(!T.children||T.children.length===0)return[];const O=[];for(const ee of T.children)O.push(ee.value),O.push(...Q(ee));return O},u=(T,O)=>{for(const ee of T)if(ee.children){if(ee.children.some(ie=>ie.value===O))return ee;const le=u(ee.children,O);if(le)return le}return null},w=T=>{const O=u(e.data,T);return O&&O.children?O.children.map(ee=>ee.value).filter(ee=>ee!==T):e.data.map(ee=>ee.value).filter(ee=>ee!==T)},f=T=>{const O=u(e.data,T);O&&O.children&&(O.children.every(le=>k.value.has(le.value))?k.value.add(O.value):k.value.delete(O.value))},v=T=>e.multiple?k.value.has(T):h.value===T,M=T=>{if(!T.children||T.children.length===0)return[];const O=[];for(const ee of T.children)O.push(ee.value),O.push(...M(ee));return O},A=T=>{if(!e.multiple||!T.children||T.children.length===0)return!1;const O=M(T),ee=O.filter(le=>k.value.has(le)).length;return ee>0&&ee<O.length},N=T=>e.multiple?k.value.has(T):h.value===T,B=n.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue.map(T=>{const O=m(e.data,T);return O?{value:O.value,label:O.label}:null}).filter(T=>T!==null);if(!Array.isArray(e.modelValue)){const T=m(e.data,e.modelValue);return T?[{value:T.value,label:T.label}]:[]}}return[]}),L=n.computed(()=>{if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue;if(!Array.isArray(e.modelValue))return e.modelValue}),P=(T,O)=>{if(!O)return T;const ee=[];for(const le of T){const ie=le.label.toLowerCase().includes(O.toLowerCase()),U=le.children?P(le.children,O):[];(ie||U.length>0)&&(ee.push({...le,children:U.length>0?U:le.children}),U.length>0&&y.value.add(le.value))}return ee},D=n.computed(()=>P(e.data,g.value)),E=n.computed(()=>e.autoFill?e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null:e.clearable),$=()=>{if(!i.value||!s.value)return;const T=i.value.getBoundingClientRect(),O=s.value.getBoundingClientRect(),le=window.innerHeight-T.bottom,ie=T.top;let U=T.bottom+4;O.height>50&&le<O.height+20&&ie>O.height+20&&(U=T.top-O.height-4),c.value={top:`${U}px`,left:`${T.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},b=()=>{e.disabled||(a.value=!0,e.multiple&&Array.isArray(e.modelValue)?k.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),g.value="",n.nextTick(()=>{n.nextTick(()=>{$()})}))},S=()=>{a.value=!1,g.value=""},p=T=>{T.target.closest(".el-select__clear")||T.preventDefault()},R=T=>{T.stopPropagation(),a.value||b()},X=T=>{T&&n.nextTick(()=>{var O;(O=o.value)==null||O.blur()})},Z=()=>{e.multiple?k.value.clear():h.value=void 0,t("update:modelValue",e.multiple?[]:void 0),t("clear"),t("change",e.multiple?[]:void 0),S()},ae=T=>{y.value.has(T)?y.value.delete(T):(e.accordion&&w(T).forEach(ee=>{y.value.delete(ee)}),y.value.add(T))},Y=T=>{if(!T.disabled)if(e.multiple){const O=k.value.has(T.value),ee=Q(T);O?(k.value.delete(T.value),ee.forEach(ie=>k.value.delete(ie))):(k.value.add(T.value),ee.forEach(ie=>k.value.add(ie))),f(T.value);const le=e.data.filter(ie=>k.value.has(ie.value));if(t("select",le),e.autoFill){const ie=Array.from(k.value);t("update:modelValue",ie),t("change",ie)}e.autoClose&&S()}else h.value=T.value,t("select",T),e.autoFill&&(h.value!=null?(t("update:modelValue",h.value),t("change",h.value)):(t("update:modelValue",void 0),t("change",void 0))),e.autoClose&&h.value!=null&&S()},ne=()=>{if(e.multiple){const T=Array.from(k.value),O=T.map(ee=>m(e.data,ee)).filter(ee=>ee!==null);t("update:modelValue",T),t("confirm",O.length>0?O:null),t("change",T)}else if(h.value!=null){const T=m(e.data,h.value);t("update:modelValue",h.value),t("confirm",T),t("change",h.value)}else t("update:modelValue",void 0),t("confirm",null),t("change",void 0);S()},j=()=>{t("cancel"),S()},z=T=>{if(!i.value||!s.value)return;const O=T.target;!i.value.contains(O)&&!s.value.contains(O)&&S()};return n.watch(a,T=>{T?(setTimeout(()=>{document.addEventListener("mousedown",z)},100),window.addEventListener("resize",$),window.addEventListener("scroll",$,!0)):(document.removeEventListener("mousedown",z),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0))}),n.onBeforeUnmount(()=>{document.removeEventListener("mousedown",z),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0)}),r({get $el(){return i.value},focus:()=>{var T;(T=o.value)==null||T.focus()},blur:()=>{var T;(T=o.value)==null||T.blur()},openDropdown:b,closeDropdown:S}),{treeSelectInputRef:i,selectRef:o,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:g,expandedKeys:y,tempSelectedValue:h,tempSelectedValues:k,displayOptions:B,selectDisplayValue:L,filteredData:D,computedClearable:E,handleMouseDown:p,handleSelectClick:R,handleVisibleChange:X,handleClear:Z,toggleExpand:ae,handleNodeClick:Y,handleConfirm:ne,handleCancel:j,isNodeChecked:v,isNodeIndeterminate:A,isNodeSelected:N}}}),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='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",nr={class:"j-tw-tree-select-input__search"},rr=["placeholder"],or={class:"j-tw-tree-select-input__tree",ref:"treeContainerRef"},ir={key:0,class:"j-tw-tree-select-input__empty"},ar={key:0,class:"j-tw-tree-select-input__footer"};function lr(e,t,r,i,o,s){const l=n.resolveComponent("el-option"),a=n.resolveComponent("el-select"),c=n.resolveComponent("JTWStatusImg"),g=n.resolveComponent("TreeNode"),y=n.resolveComponent("JTWBtn");return n.openBlock(),n.createElementBlock("div",{ref:"treeSelectInputRef",class:n.normalizeClass(["j-tw-tree-select-input",{"j-tw-tree-select-input--open":e.dropdownVisible,"j-tw-tree-select-input--bg-grey":e.bgGrey}]),onMousedown:t[2]||(t[2]=(...h)=>e.handleMouseDown&&e.handleMouseDown(...h))},[n.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:n.withModifiers(e.handleSelectClick,["stop"]),onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.displayOptions,h=>(n.openBlock(),n.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"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-tree-select-fade"},{default:n.withCtx(()=>[e.dropdownVisible?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-input__menu",style:n.normalizeStyle(e.dropdownMenuStyle),onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",nr,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-input__search-input",placeholder:e.searchPlaceholder},null,8,rr),[[n.vModelText,e.searchText]]),t[3]||(t[3]=n.createElementVNode("img",{src:tr,alt:"search",class:"j-tw-tree-select-input__search-icon"},null,-1))]),n.createElementVNode("div",or,[e.filteredData.length===0?(n.openBlock(),n.createElementBlock("div",ir,[n.createVNode(c,{width:32,height:32}),t[4]||(t[4]=n.createElementVNode("p",{class:"j-tw-tree-select-input__empty-text"},"暂无数据",-1))])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filteredData,h=>(n.openBlock(),n.createBlock(g,{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:n.withCtx(({node:k})=>[n.renderSlot(e.$slots,"default",{node:k},()=>[n.createTextVNode(n.toDisplayString(k.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?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",ar,[n.createVNode(y,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),n.createVNode(y,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])]))],4)):n.createCommentVNode("",!0)]),_:3})]))],34)}const sr=ue(er,[["render",lr]]),cr=n.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:t,expose:r}){const i=n.inject("elFormItem",null),o=n.ref(null),s=n.ref(null),l=n.computed({get(){return e.modelValue},set(f){t("update:modelValue",f)}}),a=f=>{var v;t("change",f),e.validateEvent&&i&&((v=i.validate)==null||v.call(i,"change"))},c=f=>{var v;t("blur",f),e.validateEvent&&i&&((v=i.validate)==null||v.call(i,"blur"))},g=f=>{t("focus",f)},y=()=>{t("clear")},h=f=>{t("visible-change",f)},k=n.computed(()=>{var f;return{...e.popperOptions,modifiers:[...((f=e.popperOptions)==null?void 0:f.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),m=n.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"本周",value:()=>{const f=new Date,v=f.getDay(),M=v===0?6:v-1,A=new Date(f);A.setDate(f.getDate()-M),A.setHours(0,0,0,0);const N=new Date(A);return N.setDate(A.getDate()+6),N.setHours(23,59,59,999),[A,N]}},{text:"本月",value:()=>{const f=new Date,v=new Date(f.getFullYear(),f.getMonth(),1),M=new Date(f.getFullYear(),f.getMonth()+1,0,23,59,59,999);return[v,M]}},{text:"本年度",value:()=>{const f=new Date,v=new Date(f.getFullYear(),0,1),M=new Date(f.getFullYear(),11,31,23,59,59,999);return[v,M]}}]});return r({get $el(){return o.value},focus:()=>{var v;const f=(v=o.value)==null?void 0:v.querySelector("input");f==null||f.focus()},blur:()=>{var v;const f=(v=o.value)==null?void 0:v.querySelector("input");f==null||f.blur()}}),{datePickerRef:o,elDatePickerRef:s,internalValue:l,computedPopperOptions:k,computedShortcuts:m,handleChange:a,handleBlur:c,handleFocus:g,handleClear:y,handleVisibleChange:h}}}),ur="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",dr={class:"j-tw-date-picker__separator"};function fr(e,t,r,i,o,s){const l=n.resolveComponent("el-date-picker");return n.openBlock(),n.createElementBlock("div",{ref:"datePickerRef",class:n.normalizeClass(["j-tw-date-picker",{"j-tw-date-picker--bg-grey":e.bgGrey,"j-tw-date-picker--dense":e.dense}])},[n.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":t[0]||(t[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":n.withCtx(()=>[...t[1]||(t[1]=[n.createElementVNode("img",{src:ur,alt:"calendar",class:"j-tw-date-picker__calendar-icon"},null,-1)])]),"range-separator":n.withCtx(()=>[n.createElementVNode("span",dr,n.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 hr=ue(cr,[["render",fr]]),pr=n.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:t,expose:r}){const i=n.inject("elFormItem",null),o=n.ref(null),s=n.ref(null),l=n.computed({get(){return e.modelValue},set(f){t("update:modelValue",f)}}),a=f=>{var v;t("change",f),e.validateEvent&&i&&((v=i.validate)==null||v.call(i,"change"))},c=f=>{var v;t("blur",f),e.validateEvent&&i&&((v=i.validate)==null||v.call(i,"blur"))},g=f=>{t("focus",f)},y=()=>{t("clear")},h=f=>{t("visible-change",f)},k=n.computed(()=>{var f;return{...e.popperOptions,modifiers:[...((f=e.popperOptions)==null?void 0:f.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),m=n.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"最近1小时",value:()=>{const f=new Date;return[new Date(f.getTime()-3600*1e3),f]}},{text:"今日",value:()=>{const f=new Date,v=new Date(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0,0),M=new Date(f.getFullYear(),f.getMonth(),f.getDate(),23,59,59,999);return[v,M]}},{text:"昨日",value:()=>{const f=new Date,v=new Date(f.getFullYear(),f.getMonth(),f.getDate()-1,0,0,0,0),M=new Date(f.getFullYear(),f.getMonth(),f.getDate()-1,23,59,59,999);return[v,M]}}]});return r({get $el(){return o.value},focus:()=>{var v;const f=(v=o.value)==null?void 0:v.querySelector("input");f==null||f.focus()},blur:()=>{var v;const f=(v=o.value)==null?void 0:v.querySelector("input");f==null||f.blur()}}),{dateTimePickerRef:o,elDatePickerRef:s,internalValue:l,computedPopperOptions:k,computedShortcuts:m,handleChange:a,handleBlur:c,handleFocus:g,handleClear:y,handleVisibleChange:h}}}),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'%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",mr={class:"j-tw-datetime-picker__separator"};function wr(e,t,r,i,o,s){const l=n.resolveComponent("el-date-picker");return n.openBlock(),n.createElementBlock("div",{ref:"dateTimePickerRef",class:n.normalizeClass(["j-tw-datetime-picker",{"j-tw-datetime-picker--bg-grey":e.bgGrey,"j-tw-datetime-picker--dense":e.dense}])},[n.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":t[0]||(t[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":n.withCtx(()=>[...t[1]||(t[1]=[n.createElementVNode("img",{src:gr,alt:"calendar",class:"j-tw-datetime-picker__calendar-icon"},null,-1)])]),"range-separator":n.withCtx(()=>[n.createElementVNode("span",mr,n.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 yr=ue(pr,[["render",wr]]),vr=n.defineComponent({name:"JTWCheckbox",components:{ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,setup(){return{}}});function Qr(e,t,r,i,o,s){const l=n.resolveComponent("el-checkbox");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elCheckboxRef",class:"j-tw-checkbox"},e.$attrs),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)}const o1=ue(vr,[["render",Qr]]),kr=n.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:t}){return{handleSizeChange:o=>{t("sizeChange",o),t("update:pageSize",o),t("update:page",1)},handleCurrentChange:o=>{t("currentChange",o),t("update:page",o)}}}}),br={class:"j-tw-pagination"};function Mr(e,t,r,i,o,s){const l=n.resolveComponent("el-pagination");return n.openBlock(),n.createElementBlock("div",br,[n.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 i1=ue(kr,[["render",Mr]]),Cr=n.defineComponent({name:"JTWTable",components:{JTWCheckbox:o1,JTWPagination:i1},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,sizeChange:e=>!0,currentChange:e=>!0,"update:pagination":e=>!0},setup(e,{emit:t,expose:r}){const i=n.ref(null),o=n.ref([]),s=(M,A)=>typeof e.rowKey=="function"?e.rowKey(M):M[e.rowKey]??A,l=M=>{const A={};return M.width&&(A.width=typeof M.width=="number"?`${M.width}px`:M.width),M.minWidth&&(A.minWidth=typeof M.minWidth=="number"?`${M.minWidth}px`:M.minWidth),M.width||(A.flex="1"),A},a=M=>o.value.some(A=>s(A,-1)===s(M,-1)),c=n.computed(()=>e.rows.length>0&&e.rows.every(M=>a(M))),g=n.computed(()=>{const M=e.rows.filter(A=>a(A)).length;return M>0&&M<e.rows.length}),y=M=>{o.value=M?[...e.rows]:[],t("selectionChange",o.value)},h=(M,A)=>{A?a(M)||o.value.push(M):o.value=o.value.filter(N=>s(N,-1)!==s(M,-1)),t("selectionChange",o.value)},k=M=>{t("sortChange",M)},m=()=>{const M=e.pagination;return M||null},Q=M=>{t("sizeChange",M);const A=m();A&&t("update:pagination",{...A,pageSize:M,page:1})},u=M=>{t("currentChange",M);const A=m();A&&t("update:pagination",{...A,page:M})};return r({get $el(){return i.value},tableRef:i,clearSelection:()=>{o.value=[],t("selectionChange",[])},toggleRowSelection:(M,A)=>{const N=A??!a(M);h(M,N)}}),{tableRef:i,selectedRows:o,isAllSelected:c,isIndeterminate:g,isRowSelected:a,getRowKey:s,getColStyle:l,emptyText:e.emptyText,handleSelectAll:y,handleRowSelect:h,handleSortChange:k,handleSizeChange:Q,handleCurrentChange:u}}}),Ar="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzBfMjcwXzUzODIzIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjODBBNkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMxNjVERkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJiZ2JsdXJfbWFzdGVyX3N2ZzFfMTMxM18wOTQ3NzFfY2xpcF9wYXRoIj48cGF0aCBkPSJNMjQgNEMyMi40ODY3NCA0IDIxLjE2OTc0NiAzLjE1OTY4MzIgMjAuNDkwMTkyIDEuOTIwMjI0MUMxOS45NTkxNjkgMC45NTE2NzQxIDE5LjEwNDU3IDAgMTggMEwyLjAwMDAwMDUgMEMwLjg5NTQzMDU2IDAgMCAwLjg5NTQzMDU2IDAgMi4wMDAwMDAyTDAgMjBDMCAyMi4yMDkxMzkgMS43OTA4NjExIDI0IDQuMDAwMDAxIDI0TDY4IDI0QzcwLjIwOTEzNyAyNCA3MiAyMi4yMDkxMzkgNzIgMjBMNzIgMi4wMDAwMDA1QzcyIDAuODk1NDMwNTYgNzEuMTA0NTY4IDAgNzAgMEw1NCAwQzUyLjg5NTQzMiAwIDUyLjA0MDgyOSAwLjk1MTY3NDIyIDUxLjUwOTgwOCAxLjkyMDIyNDFDNTAuODMwMjU0IDMuMTU5NjgzMiA0OS41MTMyNiA0IDQ4IDRMMjQgNFoiLz48L2NsaXBQYXRoPjxsaW5lYXJHcmFkaWVudCB4MT0iMC41IiB5MT0iMCIgeDI9IjAuNSIgeTI9IjEiIGlkPSJtYXN0ZXJfc3ZnMl8yNzBfNTM4MTciPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNDQ0RCRkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzk5QjhGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxTDgsNjhaIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcwXzI3MF81MzgyMykiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcxXzEzMTNfMDk0NzcxX2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcyXzI3MF81MzgxNykiIGZpbGwtb3BhY2l0eT0iMSIvPjwvc3ZnPg==",_r={class:"j-tw-table__header"},Dr={key:0,class:"j-tw-table__header-cell j-tw-table__header-cell--selection"},Nr={key:1,class:"j-tw-table__header-cell",style:{width:"60px","flex-shrink":"0"}},Ir={key:2,class:"j-tw-table__header-cell j-tw-table__header-cell--action"},Sr={class:"j-tw-table__body-wrapper"},Tr={key:0,class:"j-tw-table__body"},xr={key:0,class:"j-tw-table__cell j-tw-table__cell--selection"},Lr={key:1,class:"j-tw-table__cell",style:{width:"60px","flex-shrink":"0"}},Er={key:1},zr={key:2,class:"j-tw-table__cell j-tw-table__cell--action"},jr={key:1,class:"j-tw-table__empty"},Br={class:"j-tw-table__empty-text"},Or={key:0,class:"j-tw-table__pagination"};function Fr(e,t,r,i,o,s){const l=n.resolveComponent("JTWCheckbox"),a=n.resolveComponent("JTWPagination"),c=n.resolveDirective("loading");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["j-tw-table",{"j-tw-table--dense":e.dense,"j-tw-table--fixed":e.height}]),style:n.normalizeStyle(e.height?{height:typeof e.height=="number"?`${e.height}px`:e.height}:{})},[n.renderSlot(e.$slots,"header"),n.createElementVNode("div",_r,[e.selection?(n.openBlock(),n.createElementBlock("div",Dr,[n.createVNode(l,{"model-value":e.isAllSelected,indeterminate:e.isIndeterminate,onChange:t[0]||(t[0]=g=>e.handleSelectAll(!!g))},null,8,["model-value","indeterminate"])])):n.createCommentVNode("",!0),e.showIndex?(n.openBlock(),n.createElementBlock("div",Nr," 序号 ")):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columns,g=>(n.openBlock(),n.createElementBlock("div",{key:g.prop,class:"j-tw-table__header-cell",style:n.normalizeStyle(e.getColStyle(g))},n.toDisplayString(g.label),5))),128)),e.$slots.action?(n.openBlock(),n.createElementBlock("div",Ir," 操作 ")):n.createCommentVNode("",!0)]),n.createElementVNode("div",Sr,[e.rows&&e.rows.length>0?(n.openBlock(),n.createElementBlock("div",Tr,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rows,(g,y)=>(n.openBlock(),n.createElementBlock("div",{key:e.getRowKey(g,y),class:n.normalizeClass(["j-tw-table__row",{"j-tw-table__row--selected":e.isRowSelected(g)}])},[e.selection?(n.openBlock(),n.createElementBlock("div",xr,[n.createVNode(l,{"model-value":e.isRowSelected(g),onChange:h=>e.handleRowSelect(g,!!h)},null,8,["model-value","onChange"])])):n.createCommentVNode("",!0),e.showIndex?(n.openBlock(),n.createElementBlock("div",Lr,n.toDisplayString(y+1),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columns,h=>(n.openBlock(),n.createElementBlock("div",{key:h.prop,class:n.normalizeClass(["j-tw-table__cell",`j-tw-table__cell--align-${h.align||"left"}`]),style:n.normalizeStyle(e.getColStyle(h))},[h.type==="slot"?n.renderSlot(e.$slots,`col-${h.prop}`,{key:0,row:g,$index:y,column:h}):(n.openBlock(),n.createElementBlock("span",Er,n.toDisplayString(g[h.prop]??"-"),1))],6))),128)),e.$slots.action?(n.openBlock(),n.createElementBlock("div",zr,[n.renderSlot(e.$slots,"action",{row:g,$index:y})])):n.createCommentVNode("",!0)],2))),128))])):(n.openBlock(),n.createElementBlock("div",jr,[n.renderSlot(e.$slots,"empty",{},()=>[t[1]||(t[1]=n.createElementVNode("img",{class:"j-tw-table__empty-img",src:Ar,alt:"no data"},null,-1)),n.createElementVNode("span",Br,n.toDisplayString(e.emptyText),1)])]))]),e.pagination!==!1&&e.pagination?(n.openBlock(),n.createElementBlock("div",Or,[n.createVNode(a,{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"])])):n.createCommentVNode("",!0)],6)),[[c,e.loading]])}const Pr=ue(Cr,[["render",Fr]]),Rr=n.defineComponent({name:"JTWMessageItem",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},content:{type:String,required:!0},duration:{type:Number,default:3e3},showClose:{type:Boolean,default:!1},offset:{type:Number,default:20},onClose:{type:Function,default:void 0}},emits:{destroy:e=>!0},setup(e,{emit:t}){const r=n.ref(!1);let i;const o=n.computed(()=>({"j-tw-message":!0,[`j-tw-message--${e.type}`]:!0})),s=n.computed(()=>({top:`${e.offset}px`})),l=()=>{e.duration>0&&(i=window.setTimeout(()=>{c()},e.duration))},a=()=>{i&&(clearTimeout(i),i=void 0)},c=()=>{var k;r.value=!1,(k=e.onClose)==null||k.call(e)},g=()=>{t("destroy",e.id)},y=()=>{a()},h=()=>{l()};return n.onMounted(()=>{r.value=!0,l()}),{visible:r,computedClass:o,computedStyle:s,handleClose:c,handleAfterLeave:g,handleMouseEnter:y,handleMouseLeave:h}}}),$r={class:"j-tw-message__icon"},Vr={key:0,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ur={key:1,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wr={key:2,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zr={key:3,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yr={key:4,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gr={class:"j-tw-message__content"};function Hr(e,t,r,i,o,s){return n.openBlock(),n.createBlock(n.Transition,{name:"j-tw-message-fade",onAfterLeave:e.handleAfterLeave},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.computedClass),style:n.normalizeStyle(e.computedStyle),onMouseenter:t[1]||(t[1]=(...l)=>e.handleMouseEnter&&e.handleMouseEnter(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.handleMouseLeave&&e.handleMouseLeave(...l))},[n.createElementVNode("div",$r,[e.type==="success"?(n.openBlock(),n.createElementBlock("svg",Vr,[...t[3]||(t[3]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.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"?(n.openBlock(),n.createElementBlock("svg",Ur,[...t[4]||(t[4]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.createElementVNode("path",{d:"M8 4.5V8.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1),n.createElementVNode("circle",{cx:"8",cy:"11",r:"0.75",fill:"white"},null,-1)])])):e.type==="error"?(n.openBlock(),n.createElementBlock("svg",Wr,[...t[5]||(t[5]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.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"?(n.openBlock(),n.createElementBlock("svg",Zr,[...t[6]||(t[6]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),n.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):(n.openBlock(),n.createElementBlock("svg",Yr,[...t[7]||(t[7]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),n.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))]),n.createElementVNode("div",Gr,n.toDisplayString(e.content),1),e.showClose?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-message__close",onClick:t[0]||(t[0]=(...l)=>e.handleClose&&e.handleClose(...l))},[...t[8]||(t[8]=[n.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[n.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)])])):n.createCommentVNode("",!0)],38)):n.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])}const Jr=ue(Rr,[["render",Hr]]),Ie=n.ref([]),Xr=n.defineComponent({name:"JTWMessages",components:{MessageItem:Jr},setup(){const e=r=>{const i=Ie.value.findIndex(o=>o.id===r);i!==-1&&Ie.value.splice(i,1)};return{messages:n.computed(()=>Ie.value.filter(o=>o.visible).map((o,s)=>({...o,offset:20+s*56}))),handleDestroy:e}}}),Kr={class:"j-tw-message-container"};function qr(e,t,r,i,o,s){const l=n.resolveComponent("MessageItem");return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createElementVNode("div",Kr,[n.createVNode(n.TransitionGroup,{name:"j-tw-message-list"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.messages,a=>(n.openBlock(),n.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,onDestroy:e.handleDestroy},null,8,["id","type","content","duration","show-close","offset","on-close","onDestroy"]))),128))]),_:1})])])}const a1=ue(Xr,[["render",qr]]),dt={WARN:"warn",INFO:"info",SUCCESS:"success",ERROR:"error"},e2=n.defineComponent({name:"JTWConfirmDialog",components:{JTWBtn:$e},props:{visible:{type:Boolean,default:!1},message:{type:String,required:!0},icon:{type:String,default:dt.WARN},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"}},emits:{confirm:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const r=()=>{t("confirm")},i=()=>{t("cancel")},o=()=>{t("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:n.computed(()=>s[e.icon??dt.WARN]),handleConfirm:r,handleCancel:i,handleMaskClick:o}}}),t2={class:"j-tw-confirm-dialog__header"},n2=["innerHTML"],r2={class:"j-tw-confirm-dialog__message"},o2={class:"j-tw-confirm-dialog__footer"};function i2(e,t,r,i,o,s){const l=n.resolveComponent("JTWBtn");return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-confirm-dialog-fade"},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__mask",onClick:t[1]||(t[1]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a))},[n.createElementVNode("div",{class:"j-tw-confirm-dialog__wrapper",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",t2,[n.createElementVNode("span",{class:"j-tw-confirm-dialog__icon",innerHTML:e.iconSvg},null,8,n2),n.createElementVNode("span",r2,n.toDisplayString(e.message),1)]),n.createElementVNode("div",o2,[n.createVNode(l,{label:e.cancelText||"取消",flat:"",onClick:e.handleCancel},null,8,["label","onClick"]),n.createVNode(l,{label:e.confirmText||"确定",onClick:e.handleConfirm},null,8,["label","onClick"])])])])):n.createCommentVNode("",!0)]),_:1})])}const l1=ue(e2,[["render",i2]]),s1={CENTER:"center",RIGHT:"right"},c1={SM:"sm",MD:"md",LG:"lg"},u1={BOTH:"both",CANCEL_ONLY:"cancel-only",CONFIRM_ONLY:"confirm-only"};var a2={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 Fe=new Map;let _e={};const kt={configure(e){_e=e},async register(e){try{console.log("[jwDialog] 开始注册 dialog, props:",e);const t=e.dialogId||Math.random().toString(36).slice(2),r={...e,dialogId:t},i=n.ref(null),o=_e.locale||a2;console.log("[jwDialog] 创建 WrapperComponent...");const s={setup(){return{dialogRef:i}},render(){return n.h(fe.ElConfigProvider,{locale:o},{default:()=>n.h(d1,{...r,ref:g=>{console.log("[jwDialog] ref 回调被调用, el:",g),i.value=g}})})}};console.log("[jwDialog] 创建 Vue app...");const l=n.createApp(s);_e.router&&l.use(_e.router),_e.store&&l.use(_e.store),_e.i18n&&l.use(_e.i18n),_e.plugins&&_e.plugins.forEach(g=>l.use(g)),console.log("[jwDialog] 挂载 app...");const a=document.createElement("div");l.mount(a),console.log("[jwDialog] app 已挂载, mountEl:",a),await n.nextTick(),console.log("[jwDialog] nextTick 后, dialogRef.value:",i.value);const c=i.value;if(!c)throw new Error("dialogRef.value 为 null,组件可能没有正确挂载");return Fe.set(t,{app:l,appInstance:c}),n.nextTick(()=>{c&&(console.log("[jwDialog] 调用 appInstance.open()"),c.open())}),console.log("[jwDialog] 注册成功, 返回 appInstance"),c}catch(t){throw console.error("[jwDialog] 注册失败:",t),console.error("[jwDialog] 错误堆栈:",t instanceof Error?t.stack:"无堆栈信息"),t}},destroy(e){const t=Fe.get(e);if(t){try{const r=t.app._container;t.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}Fe.delete(e)}},destroyAll(){Fe.forEach((e,t)=>{try{const r=e.app._container;e.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}}),Fe.clear()}};async function l2(e){return kt.register(e)}const s2=n.defineComponent({name:"JTWDialog",components:{JTWBtn:$e},props:{dialogId:{type:String},title:{type:String,default:""},position:{type:String,default:s1.CENTER},size:{type:String,default:c1.MD},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},footerMode:{type:String,default:u1.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:t}){var $;const r=n.ref(!1),i=n.ref(null),o=n.ref(null),s=n.ref(!1),l=n.ref(e.cancelText),a=n.ref(e.confirmText),c=n.ref((($=e.footerExtra)==null?void 0:$.bind)||{}),g=n.ref(e.width),y=n.computed(()=>e.position==="right"?"j-tw-dialog-slide-right":"j-tw-dialog-fade"),h=n.computed(()=>`j-tw-dialog__wrapper--${e.size}`),k=n.computed(()=>{const b={};return g.value&&(b.width=g.value,b.maxWidth=g.value),e.position==="right"&&e.topOffset!=="0px"&&(b.height=`calc(100vh - ${e.topOffset})`,b.maxHeight=`calc(100vh - ${e.topOffset})`,b.top=e.topOffset),b}),m=n.computed(()=>{var b;return{...e.componentBind,dialogInstance:{...((b=e.componentBind)==null?void 0:b.dialogInstance)||{},open:u,close:w,setLoading:f,changeCancelText:v,changeConfirmText:M,setFooterExtraBind:A,setDialogWidth:N}}}),Q=n.computed(()=>{var b;return{...(b=e.footerExtra)==null?void 0:b.bind,...c.value}}),u=()=>{r.value=!0,n.nextTick(()=>{var b;(b=i.value)==null||b.focus()})},w=()=>{r.value=!1},f=b=>{s.value=b},v=b=>{l.value=b},M=b=>{a.value=b},A=b=>{c.value={...c.value,...b}},N=b=>{g.value=b},B=()=>{e.closeOnMask&&w()},L=()=>{e.closeOnEsc&&w()},P=()=>{const b=o.value;b!=null&&b.handleClickCancel?b.handleClickCancel():w()},D=()=>{const b=o.value;b!=null&&b.handleClickConfirm&&b.handleClickConfirm()},E=()=>{e.dialogId&&kt.destroy(e.dialogId)};return n.onErrorCaptured((b,S,p)=>(console.error("[JTWDialog] Component error captured:",b,p),!1)),t({open:u,close:w,setLoading:f,changeCancelText:v,changeConfirmText:M,setFooterExtraBind:A,setDialogWidth:N,loading:s}),{visible:r,maskRef:i,dynamicCompRef:o,loading:s,cancelText:l,confirmText:a,transitionName:y,sizeClass:h,wrapperStyle:k,computedComponentBind:m,computedFooterExtraBind:Q,open:u,close:w,setLoading:f,changeCancelText:v,changeConfirmText:M,handleMaskClick:B,handleEscKey:L,handleClickCancel:P,handleClickConfirm:D,handleAfterLeave:E}}}),c2={key:0,class:"j-tw-dialog__header"},u2={class:"j-tw-dialog__title"},d2={class:"j-tw-dialog__error"},f2={style:{"font-size":"12px",color:"#999","margin-top":"8px"}},h2={key:2,class:"j-tw-dialog__loading"},p2={key:1,class:"j-tw-dialog__footer-extra"},g2={key:2,class:"j-tw-dialog__footer"};function m2(e,t,r,i,o,s){const l=n.resolveComponent("JTWBtn");return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:e.transitionName,onAfterLeave:e.handleAfterLeave},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["j-tw-dialog__mask",{"j-tw-dialog__mask--right":e.position==="right"}]),onClick:t[2]||(t[2]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a)),onKeydown:t[3]||(t[3]=n.withKeys((...a)=>e.handleEscKey&&e.handleEscKey(...a),["esc"])),tabindex:"-1",ref:"maskRef"},[n.createElementVNode("div",{class:n.normalizeClass(["j-tw-dialog__wrapper",`j-tw-dialog__wrapper--${e.position}`,e.sizeClass]),style:n.normalizeStyle(e.wrapperStyle),onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[e.showHeader?(n.openBlock(),n.createElementBlock("div",c2,[n.createElementVNode("span",u2,[n.renderSlot(e.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(e.title),1)])]),n.createElementVNode("button",{class:"j-tw-dialog__close",onClick:t[0]||(t[0]=(...a)=>e.close&&e.close(...a)),type:"button"},[...t[4]||(t[4]=[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[n.createElementVNode("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["j-tw-dialog__body",{"j-tw-dialog__body--no-padding":!e.bodyPadded}])},[e.component?(n.openBlock(),n.createBlock(n.Suspense,{key:0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component),n.mergeProps(e.computedComponentBind,n.toHandlers(e.componentOn||{}),{ref:"dynamicCompRef"}),null,16))]),fallback:n.withCtx(()=>[...t[5]||(t[5]=[n.createElementVNode("div",{class:"j-tw-dialog__loading"},[n.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"},[n.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:n.withCtx(({error:a})=>[n.createElementVNode("div",d2,[t[6]||(t[6]=n.createElementVNode("p",null,"组件加载失败",-1)),n.createElementVNode("p",f2,n.toDisplayString((a==null?void 0:a.message)||"请刷新页面重试"),1)])]),_:1})):n.renderSlot(e.$slots,"default",{key:1}),e.loading?(n.openBlock(),n.createElementBlock("div",h2,[...t[7]||(t[7]=[n.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"},[n.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})],-1)])])):n.createCommentVNode("",!0)],2),e.footerExtra?(n.openBlock(),n.createElementBlock("div",p2,[(n.openBlock(),n.createBlock(n.Suspense,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.footerExtra.component),n.normalizeProps(n.guardReactiveProps(e.computedFooterExtraBind)),null,16))]),fallback:n.withCtx(()=>[...t[8]||(t[8]=[n.createElementVNode("div",{class:"j-tw-dialog__loading"},[n.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"},[n.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}))])):n.createCommentVNode("",!0),e.showFooter?(n.openBlock(),n.createElementBlock("div",g2,[e.footerMode==="both"||e.footerMode==="cancel-only"?(n.openBlock(),n.createBlock(l,{key:0,label:e.cancelText||"取消",flat:"",onClick:e.handleClickCancel},null,8,["label","onClick"])):n.createCommentVNode("",!0),e.footerMode==="both"||e.footerMode==="confirm-only"?(n.openBlock(),n.createBlock(l,{key:1,label:e.confirmText||"确定",onClick:e.handleClickConfirm},null,8,["label","onClick"])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)],6)],34)):n.createCommentVNode("",!0)]),_:3},8,["name","onAfterLeave"])])}const d1=ue(s2,[["render",m2]]),w2=n.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}}}),y2="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",v2="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",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_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",b2="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",M2="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",C2="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",A2={key:0,src:y2,alt:"collapse",class:"j-tw-tree-select__expand-icon"},_2={key:1,src:v2,alt:"expand",class:"j-tw-tree-select__expand-icon"},D2={key:2,class:"j-tw-tree-select__expand-placeholder"},N2={key:0,src:Q2,alt:"indeterminate",class:"j-tw-tree-select__checkbox-icon"},I2={key:1,src:k2,alt:"checked",class:"j-tw-tree-select__checkbox-icon"},S2={key:2,src:b2,alt:"unchecked",class:"j-tw-tree-select__checkbox-icon"},T2={key:0,src:M2,alt:"selected",class:"j-tw-tree-select__checkbox-icon"},x2={key:1,src:C2,alt:"unselected",class:"j-tw-tree-select__checkbox-icon"};function L2(e,t,r,i,o,s){const l=n.resolveComponent("TreeNode",!0);return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.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:n.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"})},[e.level>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-tree-select__node-line",style:n.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):n.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:"j-tw-tree-select__expand-btn",onClick:t[0]||(t[0]=n.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(n.openBlock(),n.createElementBlock("img",A2)):(n.openBlock(),n.createElementBlock("img",_2))])):(n.openBlock(),n.createElementBlock("div",D2)),e.shouldShowCheckbox(e.node)?(n.openBlock(),n.createElementBlock("div",{key:3,class:"j-tw-tree-select__checkbox",onClick:t[1]||(t[1]=n.withModifiers(a=>e.handleNodeClick(e.node),["stop"]))},[e.multiple?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(n.openBlock(),n.createElementBlock("img",N2)):e.isNodeChecked(e.node.value)?(n.openBlock(),n.createElementBlock("img",I2)):(n.openBlock(),n.createElementBlock("img",S2))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.innerValue===e.node.value?(n.openBlock(),n.createElementBlock("img",T2)):(n.openBlock(),n.createElementBlock("img",x2))],64))])):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"j-tw-tree-select__node-label",onClick:t[2]||(t[2]=a=>e.handleNodeClick(e.node))},[n.renderSlot(e.$slots,"default",{node:e.node},()=>[n.createTextVNode(n.toDisplayString(e.node.label),1)])]),e.node.count?(n.openBlock(),n.createElementBlock("span",{key:4,class:"j-tw-tree-select__node-count",onClick:t[3]||(t[3]=a=>e.handleNodeClick(e.node))},n.toDisplayString(e.node.count),1)):n.createCommentVNode("",!0)],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.node.children,(a,c)=>(n.openBlock(),n.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:n.withCtx(({node:g})=>[n.renderSlot(e.$slots,"default",{node:g},()=>[n.createTextVNode(n.toDisplayString(g.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)):n.createCommentVNode("",!0)],64)}const E2=ue(w2,[["render",L2]]),z2=n.defineComponent({name:"JTWTreeSelect",components:{TreeNode:E2,JTWStatusImg:nt},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,t)=>!0,blur:e=>!0},setup(e,{emit:t,expose:r}){const i=n.inject("elFormItem",null),o=n.ref(null),s=n.ref(""),l=n.ref(new Set),a=n.ref(e.modelValue),c=n.ref(new Set),g=D=>{if(!D||D.length===0)return;const E=b=>b.find(S=>S.children&&Array.isArray(S.children)&&S.children.length>0);let $=E(D);for(;$&&($.children&&Array.isArray($.children)&&$.children.length>0);)l.value.add($.value),$=E($.children)};n.watch(()=>e.data,D=>{e.defaultExpandFirst&&D.length>0&&l.value.size===0&&g(D)},{immediate:!0,deep:!0}),n.watch(()=>e.modelValue,D=>{a.value=D,e.multiple&&Array.isArray(D)&&(c.value=new Set(D))},{immediate:!0});const y=(D,E)=>{for(const $ of D){if($.value===E)return $;if($.children){const b=y($.children,E);if(b)return b}}return null},h=D=>{if(!D.children||D.children.length===0)return[];const E=[];for(const $ of D.children)E.push($.value),E.push(...h($));return E},k=(D,E)=>{for(const $ of D)if($.children){if($.children.some(S=>S.value===E))return $;const b=k($.children,E);if(b)return b}return null},m=D=>{const E=k(e.data,D);return E&&E.children?E.children.map($=>$.value).filter($=>$!==D):e.data.map($=>$.value).filter($=>$!==D)},Q=D=>{if(!e.checkStrictly)return;const E=k(e.data,D);E&&E.children&&(E.children.every(b=>c.value.has(b.value))?c.value.add(E.value):c.value.delete(E.value),Q(E.value))},u=D=>e.multiple?c.value.has(D):a.value===D,w=D=>{if(!e.multiple||!D.children||D.children.length===0||!e.checkStrictly)return!1;const E=D.children.map(b=>b.value),$=E.filter(b=>c.value.has(b)).length;return $>0&&$<E.length},f=D=>e.multiple?c.value.has(D):a.value===D,v=D=>e.checkStrictly||e.checkIndependently?!0:!D.children||D.children.length===0,M=(D,E)=>{if(!E)return D;const $=[];for(const b of D){const S=b.label.toLowerCase().includes(E.toLowerCase()),p=b.children?M(b.children,E):[];(S||p.length>0)&&($.push({...b,children:p.length>0?p:b.children}),p.length>0&&l.value.add(b.value))}return $},A=D=>{if(!e.nodeDataMap||Object.keys(e.nodeDataMap).length===0)return D;const E=new Set(e.selectedDataValues);return D.map($=>{const b=e.nodeDataMap[$.value];let S="";if(b&&Array.isArray(b)){const p=b.length;S=`(${b.filter(X=>E.has(X.value)).length}/${p})`}return{...$,count:S,children:$.children?A($.children):$.children}})},N=n.computed(()=>{const D=e.externalSearchText||s.value,E=M(e.data,D);return A(E)});n.watch(()=>e.externalSearchText,D=>{D!=null&&(s.value="")});const B=D=>{l.value.has(D)?l.value.delete(D):(e.accordion&&m(D).forEach($=>{l.value.delete($)}),l.value.add(D))},L=D=>{var E,$;if(!D.disabled){if(!e.checkStrictly&&!e.checkIndependently&&D.children&&D.children.length>0){B(D.value);return}if(e.multiple){const b=c.value.has(D.value),S=h(D);b?(c.value.delete(D.value),e.checkStrictly&&!e.checkIndependently&&S.forEach(X=>c.value.delete(X))):(c.value.add(D.value),e.checkStrictly&&!e.checkIndependently&&S.forEach(X=>c.value.add(X))),e.checkStrictly&&!e.checkIndependently&&Q(D.value);const p=Array.from(c.value),R=p.map(X=>y(e.data,X)).filter(X=>X!==null);t("update:modelValue",p),t("change",p,R.length>0?R:null),e.validateEvent&&i&&((E=i.validate)==null||E.call(i,"change"))}else if(a.value!==D.value){a.value=D.value;const b=y(e.data,D.value);t("update:modelValue",D.value),t("change",D.value,b),e.validateEvent&&i&&(($=i.validate)==null||$.call(i,"change"))}}};return r({get $el(){return o.value}}),{treeSelectRef:o,searchText:s,expandedKeys:l,innerValue:a,innerValues:c,filteredData:N,toggleExpand:B,handleNodeClick:L,isNodeChecked:u,isNodeIndeterminate:w,isNodeSelected:f,shouldShowCheckbox:v}}}),j2="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",B2={key:0,class:"j-tw-tree-select__search"},O2=["placeholder"],F2={key:0,class:"j-tw-tree-select__empty"};function P2(e,t,r,i,o,s){const l=n.resolveComponent("JTWStatusImg"),a=n.resolveComponent("TreeNode");return n.openBlock(),n.createElementBlock("div",{ref:"treeSelectRef",class:n.normalizeClass(["j-tw-tree-select",{"j-tw-tree-select--borderless":!e.bordered,"j-tw-tree-select--no-search":!e.showSearch}])},[e.showSearch?(n.openBlock(),n.createElementBlock("div",B2,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=c=>e.searchText=c),type:"text",class:"j-tw-tree-select__search-input",placeholder:e.searchPlaceholder},null,8,O2),[[n.vModelText,e.searchText]]),t[1]||(t[1]=n.createElementVNode("img",{src:j2,alt:"search",class:"j-tw-tree-select__search-icon"},null,-1))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"j-tw-tree-select__tree",style:n.normalizeStyle({maxHeight:e.maxHeight?`${e.maxHeight}px`:"none"})},[e.filteredData.length===0?(n.openBlock(),n.createElementBlock("div",F2,[n.createVNode(l,{width:32,height:32}),t[2]||(t[2]=n.createElementVNode("p",{class:"j-tw-tree-select__empty-text"},"暂无数据",-1))])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filteredData,c=>(n.openBlock(),n.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:n.withCtx(({node:g})=>[n.renderSlot(e.$slots,"default",{node:g},()=>[n.createTextVNode(n.toDisplayString(g.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 R2=ue(z2,[["render",P2]]),$2=n.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:t}){const r=n.computed(()=>{const o=!!e.label||!!t.label;return e.horizontal?!0:o});return{directionClass:n.computed(()=>e.vertical?"form-label--vertical":e.horizontal?"form-label--horizontal":"form-label--vertical"),showLabel:r,slots:t}}}),V2={class:"label-content"},U2={class:"form-content"},W2={class:"form-value__inner"},Z2={class:"form-item-detail-wrapper"};function Y2(e,t,r,i,o,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["j-tw-form-label",[e.directionClass,{required:e.required}]])},[e.showLabel?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["form-label",[e.labelClass,{required:e.required}]])},[n.createElementVNode("div",V2,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),n.renderSlot(e.$slots,"label-hint")])],2)):n.createCommentVNode("",!0),n.createElementVNode("div",U2,[n.createElementVNode("div",{class:n.normalizeClass(["form-value",e.valueClass])},[n.createElementVNode("div",W2,[n.renderSlot(e.$slots,"default")])],2),n.createElementVNode("div",Z2,[n.renderSlot(e.$slots,"form-item-detail")])])],2)}const G2=ue($2,[["render",Y2]]),H2=n.defineComponent({name:"JTWForm",components:{ElForm:fe.ElForm},inheritAttrs:!1,setup(e,{expose:t}){const r=n.ref(null);return t({validate:(...o)=>r.value.validate(...o),validateField:(...o)=>r.value.validateField(...o),resetFields:(...o)=>r.value.resetFields(...o),scrollToField:(...o)=>r.value.scrollToField(...o),clearValidate:(...o)=>r.value.clearValidate(...o)}),{elFormRef:r}}});function J2(e,t,r,i,o,s){const l=n.resolveComponent("el-form");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elFormRef"},e.$attrs),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)}const X2=ue(H2,[["render",J2]]),K2=n.defineComponent({name:"JTWFormItem",components:{ElFormItem:fe.ElFormItem},inheritAttrs:!1,setup(e,{expose:t}){const r=n.ref(null);return t({get size(){var o;return((o=r.value)==null?void 0:o.size)||""},get validateMessage(){var o;return((o=r.value)==null?void 0:o.validateMessage)||""},get validateState(){var o;return((o=r.value)==null?void 0:o.validateState)||""},validate:(...o)=>r.value.validate(...o),clearValidate:()=>r.value.clearValidate(),resetField:()=>r.value.resetField()}),{elFormItemRef:r}}});function q2(e,t,r,i,o,s){const l=n.resolveComponent("el-form-item");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elFormItemRef"},e.$attrs),n.createSlots({default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:2},[e.$slots.label?{name:"label",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"label")]),key:"0"}:void 0,e.$slots.error?{name:"error",fn:n.withCtx(({error:a})=>[n.renderSlot(e.$slots,"error",{error:a})]),key:"1"}:void 0]),1040)}const e0=ue(K2,[["render",q2]]),t0=n.defineComponent({name:"JTWInput",components:{ElInput:fe.ElInput},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0}},setup(e,{expose:t}){const r=n.ref(null);return t({get input(){var o;return(o=r.value)==null?void 0:o.input},get textareaStyle(){var o;return(o=r.value)==null?void 0:o.textareaStyle},focus:()=>{var o;return(o=r.value)==null?void 0:o.focus()},blur:()=>{var o;return(o=r.value)==null?void 0:o.blur()},select:()=>{var o;return(o=r.value)==null?void 0:o.select()},clear:()=>{var o;return(o=r.value)==null?void 0:o.clear()},resizeTextarea:()=>{var o;return(o=r.value)==null?void 0:o.resizeTextarea()}}),{elInputRef:r}}});function n0(e,t,r,i,o,s){const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.$attrs),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class"])}const r0=ue(t0,[["render",n0]]),o0=n.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:t,attrs:r}){const i=n.ref(null),o=n.ref(!1),s=n.computed(()=>{var y;return((y=e.props)==null?void 0:y.label)||"label"}),l=n.computed(()=>{var y;return((y=e.props)==null?void 0:y.value)||"value"}),a=n.computed(()=>r.multiple!==void 0&&r.multiple!==!1),c=y=>{o.value=y};return t({focus:()=>{var y;return(y=i.value)==null?void 0:y.focus()},blur:()=>{var y;return(y=i.value)==null?void 0:y.blur()}}),{elSelectRef:i,dropdownVisible:o,labelKey:s,valueKey:l,isMultiple:a,handleVisibleChange:c}}});function i0(e,t,r,i,o,s){const l=n.resolveComponent("el-option"),a=n.resolveComponent("el-select");return n.openBlock(),n.createBlock(a,n.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}),n.createSlots({default:n.withCtx(()=>[e.options&&e.options.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.options,c=>(n.openBlock(),n.createBlock(l,{key:c[e.valueKey],label:c[e.labelKey],value:c[e.valueKey],disabled:c.disabled},null,8,["label","value","disabled"]))),128)):n.renderSlot(e.$slots,"default",{key:1})]),_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.header?{name:"header",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"header")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"footer")]),key:"3"}:void 0]),1040,["class","onVisibleChange"])}const a0=ue(o0,[["render",i0]]),l0=n.defineComponent({name:"JTWCheckboxGroup",components:{ElCheckboxGroup:fe.ElCheckboxGroup,ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function s0(e,t,r,i,o,s){const l=n.resolveComponent("el-checkbox"),a=n.resolveComponent("el-checkbox-group");return n.openBlock(),n.createBlock(a,n.mergeProps({ref:"elCheckboxGroupRef",class:"j-tw-checkbox-group"},e.$attrs),{default:n.withCtx(()=>[e.options&&e.options.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.options,c=>(n.openBlock(),n.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):n.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const c0=ue(l0,[["render",s0]]),u0=n.defineComponent({name:"JTWRadio",components:{ElRadio:fe.ElRadio},inheritAttrs:!1,setup(){return{}}});function d0(e,t,r,i,o,s){const l=n.resolveComponent("el-radio");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elRadioRef",class:"j-tw-radio"},e.$attrs),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)}const f0=ue(u0,[["render",d0]]),h0=n.defineComponent({name:"JTWRadioGroup",components:{ElRadioGroup:fe.ElRadioGroup,ElRadio:fe.ElRadio},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function p0(e,t,r,i,o,s){const l=n.resolveComponent("el-radio"),a=n.resolveComponent("el-radio-group");return n.openBlock(),n.createBlock(a,n.mergeProps({ref:"elRadioGroupRef",class:"j-tw-radio-group"},e.$attrs),{default:n.withCtx(()=>[e.options&&e.options.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.options,c=>(n.openBlock(),n.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):n.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const g0=ue(h0,[["render",p0]]),Rt={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"},$t={DARK:"dark",LIGHT:"light"},Vt={HOVER:"hover",CLICK:"click",FOCUS:"focus",CONTEXTMENU:"contextmenu"},m0=n.defineComponent({name:"JTWTooltip",components:{ElTooltip:fe.ElTooltip},props:{content:{type:[String,Number],default:""},placement:{type:String,default:Rt.TOP,validator:e=>Object.values(Rt).includes(e)},effect:{type:String,default:$t.DARK,validator:e=>Object.values($t).includes(e)},trigger:{type:String,default:Vt.HOVER,validator:e=>Object.values(Vt).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:t,expose:r}){const i=n.ref(null),o=n.computed(()=>e.content!=null?String(e.content):""),s=n.computed(()=>{const c=["j-tw-tooltip-popper"];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),l=c=>{t("visible-change",c)};return r({get $el(){var c;return(c=i.value)==null?void 0:c.$el},show:()=>{var c,g,y;(y=(g=(c=i.value)==null?void 0:c.popperRef)==null?void 0:g.show)==null||y.call(g)},hide:()=>{var c,g,y;(y=(g=(c=i.value)==null?void 0:c.popperRef)==null?void 0:g.hide)==null||y.call(g)}}),{computedPopperClass:s,elTooltipRef:i,handleVisibleChange:l,tooltipContent:o}}});function w0(e,t,r,i,o,s){const l=n.resolveComponent("el-tooltip");return n.openBlock(),n.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},n.createSlots({default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:2},[e.$slots.content?{name:"content",fn:n.withCtx(()=>[n.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 y0=ue(m0,[["render",w0]]),v0=n.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:t}){const r=n.computed(()=>e.size&&["","default","small","large"].includes(e.size)?e.size:e.dense?"small":"default"),i=n.computed(()=>{const a={};return e.color&&(a["--el-switch-on-color"]=e.color,e.keepColor&&(a["--el-switch-off-color"]=e.color)),a}),o=n.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:i,computedClass:o,handleUpdateModelValue:a=>{e.readonly||t("update:modelValue",a)},handleChange:a=>{e.readonly||t("change",a)}}}});function Q0(e,t,r,i,o,s){const l=n.resolveComponent("el-switch");return n.openBlock(),n.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:n.normalizeStyle(e.computedStyle),class:n.normalizeClass(e.computedClass),"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange},n.createSlots({_:2},[e.$slots.default?{name:"default",fn:n.withCtx(()=>[n.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 k0=ue(v0,[["render",Q0],["__scopeId","data-v-8bf04c8a"]]);var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ye={exports:{}},b0=Ye.exports,Ut;function M0(){return Ut||(Ut=1,(function(e){(function(t,r){e.exports?e.exports=r():t.coordtransform=r()})(b0,function(){var t=52.35987755982988,r=3.141592653589793,i=6378245,o=.006693421622965943,s=function(u,w){var u=+u,w=+w,f=u-.0065,v=w-.006,M=Math.sqrt(f*f+v*v)-2e-5*Math.sin(v*t),A=Math.atan2(v,f)-3e-6*Math.cos(f*t),N=M*Math.cos(A),B=M*Math.sin(A);return[N,B]},l=function(w,u){var u=+u,w=+w,f=Math.sqrt(w*w+u*u)+2e-5*Math.sin(u*t),v=Math.atan2(u,w)+3e-6*Math.cos(w*t),M=f*Math.cos(v)+.0065,A=f*Math.sin(v)+.006;return[M,A]},a=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var f=g(w-105,u-35),v=y(w-105,u-35),M=u/180*r,A=Math.sin(M);A=1-o*A*A;var N=Math.sqrt(A);f=f*180/(i*(1-o)/(A*N)*r),v=v*180/(i/N*Math.cos(M)*r);var B=u+f,L=w+v;return[L,B]},c=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var f=g(w-105,u-35),v=y(w-105,u-35),M=u/180*r,A=Math.sin(M);A=1-o*A*A;var N=Math.sqrt(A);f=f*180/(i*(1-o)/(A*N)*r),v=v*180/(i/N*Math.cos(M)*r);var B=u+f,L=w+v;return[w*2-L,u*2-B]},g=function(w,u){var u=+u,w=+w,f=-100+2*w+3*u+.2*u*u+.1*w*u+.2*Math.sqrt(Math.abs(w));return f+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,f+=(20*Math.sin(u*r)+40*Math.sin(u/3*r))*2/3,f+=(160*Math.sin(u/12*r)+320*Math.sin(u*r/30))*2/3,f},y=function(w,u){var u=+u,w=+w,f=300+w+2*u+.1*w*w+.1*w*u+.1*Math.sqrt(Math.abs(w));return f+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,f+=(20*Math.sin(w*r)+40*Math.sin(w/3*r))*2/3,f+=(150*Math.sin(w/12*r)+300*Math.sin(w/30*r))*2/3,f},h=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}})})(Ye)),Ye.exports}var C0=M0();const f1=bt(C0);function Re(e){if(!e||!Array.isArray(e)||e.length<2)return!1;const[t,r]=e;return!isNaN(t)&&!isNaN(r)&&t!==null&&r!==null}function xe(e){return!e||!Array.isArray(e)||e.length===0?[]:e.filter(t=>Re(t)).map(t=>{if(t.length>=2)try{const[r,i]=f1.wgs84togcj02(t[0],t[1]);return[r,i]}catch(r){return console.warn("Coordinate transformation failed:",t,r),t}return t})}function ft(e){return Array.isArray(e)&&e.length>0&&Array.isArray(e[0])&&e[0].length>0&&Array.isArray(e[0][0])}function Mt(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return null;try{const[r,i]=f1.wgs84togcj02(e,t);return[r,i]}catch{return null}}var Ge={exports:{}},A0=Ge.exports,Wt;function _0(){return Wt||(Wt=1,(function(e,t){(function(r,i){e.exports=i()})(A0,function(){function r(h){var k=[];return h.AMapUI&&k.push(i(h.AMapUI)),h.Loca&&k.push(o(h.Loca)),Promise.all(k)}function i(h){return new Promise(function(k,m){var Q=[];if(h.plugins)for(var u=0;u<h.plugins.length;u+=1)l.AMapUI.plugins.indexOf(h.plugins[u])==-1&&Q.push(h.plugins[u]);if(a.AMapUI===s.failed)m("前次请求 AMapUI 失败");else if(a.AMapUI===s.notload){a.AMapUI=s.loading,l.AMapUI.version=h.version||l.AMapUI.version,u=l.AMapUI.version;var w=document.body||document.head,f=document.createElement("script");f.type="text/javascript",f.src="https://webapi.amap.com/ui/"+u+"/main.js",f.onerror=function(v){a.AMapUI=s.failed,m("请求 AMapUI 失败")},f.onload=function(){if(a.AMapUI=s.loaded,Q.length)window.AMapUI.loadUI(Q,function(){for(var v=0,M=Q.length;v<M;v++){var A=Q[v].split("/").slice(-1)[0];window.AMapUI[A]=arguments[v]}for(k();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()});else for(k();c.AMapUI.length;)c.AMapUI.splice(0,1)[0]()},w.appendChild(f)}else a.AMapUI===s.loaded?h.version&&h.version!==l.AMapUI.version?m("不允许多个版本 AMapUI 混用"):Q.length?window.AMapUI.loadUI(Q,function(){for(var v=0,M=Q.length;v<M;v++){var A=Q[v].split("/").slice(-1)[0];window.AMapUI[A]=arguments[v]}k()}):k():h.version&&h.version!==l.AMapUI.version?m("不允许多个版本 AMapUI 混用"):c.AMapUI.push(function(v){v?m(v):Q.length?window.AMapUI.loadUI(Q,function(){for(var M=0,A=Q.length;M<A;M++){var N=Q[M].split("/").slice(-1)[0];window.AMapUI[N]=arguments[M]}k()}):k()})})}function o(h){return new Promise(function(k,m){if(a.Loca===s.failed)m("前次请求 Loca 失败");else if(a.Loca===s.notload){a.Loca=s.loading,l.Loca.version=h.version||l.Loca.version;var Q=l.Loca.version,u=l.AMap.version.startsWith("2"),w=Q.startsWith("2");if(u&&!w||!u&&w)m("JSAPI 与 Loca 版本不对应!!");else{u=l.key,w=document.body||document.head;var f=document.createElement("script");f.type="text/javascript",f.src="https://webapi.amap.com/loca?v="+Q+"&key="+u,f.onerror=function(v){a.Loca=s.failed,m("请求 AMapUI 失败")},f.onload=function(){for(a.Loca=s.loaded,k();c.Loca.length;)c.Loca.splice(0,1)[0]()},w.appendChild(f)}}else a.Loca===s.loaded?h.version&&h.version!==l.Loca.version?m("不允许多个版本 Loca 混用"):k():h.version&&h.version!==l.Loca.version?m("不允许多个版本 Loca 混用"):c.Loca.push(function(v){v?m(v):m()})})}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:[]},g=[],y=function(h){typeof h=="function"&&(a.AMap===s.loaded?h(window.AMap):g.push(h))};return{load:function(h){return new Promise(function(k,m){if(a.AMap==s.failed)m("");else if(a.AMap==s.notload){var Q=h.key,u=h.version,w=h.plugins;Q?(window.AMap&&location.host!=="lbs.amap.com"&&m("禁止多种API加载方式混用"),l.key=Q,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(v){if(delete window.___onAPILoaded,v)a.AMap=s.failed,m(v);else for(a.AMap=s.loaded,r(h).then(function(){k(window.AMap)}).catch(m);g.length;)g.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="+Q+"&plugin="+l.AMap.plugins.join(","),w.onerror=function(v){a.AMap=s.failed,m(v)},u.appendChild(w)):m("请填写key")}else if(a.AMap==s.loaded)if(h.key&&h.key!==l.key)m("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)m("不允许多个版本 JSAPI 混用");else{if(Q=[],h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&Q.push(h.plugins[u]);Q.length?window.AMap.plugin(Q,function(){r(h).then(function(){k(window.AMap)}).catch(m)}):r(h).then(function(){k(window.AMap)}).catch(m)}else if(h.key&&h.key!==l.key)m("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)m("不允许多个版本 JSAPI 混用");else{var f=[];if(h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&f.push(h.plugins[u]);y(function(){f.length?window.AMap.plugin(f,function(){r(h).then(function(){k(window.AMap)}).catch(m)}):r(h).then(function(){k(window.AMap)}).catch(m)})}})},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:[]}}}})})(Ge)),Ge.exports}var D0=_0();const N0=bt(D0);let Xe="",ht="";const I0="2.0";function S0(e){Xe=e.key,ht=e.securityCode}function T0(){typeof window<"u"&&ht&&(window._AMapSecurityConfig={securityJsCode:ht})}function x0(){typeof window<"u"&&(window.forceWebGL=!0)}let Pe=null,lt=null;const st=new Set;function L0(e){return e!=null&&e.length?Array.from(new Set(e.filter(Boolean))):[]}async function E0(){if(!(typeof window.Loca<"u")){if(!lt){const e=`https://webapi.amap.com/loca?v=2.0.0&key=${Xe}`;lt=new Promise((t,r)=>{const i=document.createElement("script");i.type="text/javascript",i.src=e,i.onload=()=>t(),i.onerror=o=>r(o),document.head.appendChild(i)})}await lt}}async function z0(e={}){const{plugins:t=[],withLoca:r=!1}=e,i=L0(t),o=typeof window<"u"?window:null;if(o!=null&&o.AMap&&!Pe&&(console.warn("[AMap Loader] 检测到已存在的 AMap 实例,将复用现有实例"),Pe=Promise.resolve(o.AMap)),!Pe){if(!Xe)throw new Error("AMap key 未配置,请在 twcptInit 中设置 amap.key");T0(),x0(),i.forEach(a=>st.add(a)),Pe=N0.load({key:Xe,version:I0,plugins:i})}const s=await Pe;if(typeof window<"u"){const a=window;a.AMap||(a.AMap=s)}const l=i.filter(a=>!st.has(a));return l.length&&typeof(s==null?void 0:s.plugin)=="function"&&(await new Promise(a=>{s.plugin(l,()=>a())}),l.forEach(a=>st.add(a))),r&&await E0(),s}const j0=[116.407428,39.91923];function B0(e){const{center:t,zoom:r,viewMode:i,mapType:o,isDark:s}=e;let l=null,a=null,c=null;async function g(w){if(!w)return null;try{await z0({plugins:["AMap.DistrictSearch"]})}catch(L){return console.error("AMap 加载失败:",L),null}const f=window.AMap;if(!f)return null;const v=t.value;let M=j0;const A=Mt(v[0],v[1]);A&&Re(A)&&(M=A);const N=i.value,B=N==="3D";return l=new f.Map(w,{zoom:r.value,center:M,mapStyle:s.value?"amap://styles/dark":"amap://styles/whitesmoke",viewMode:N,...B&&{pitch:50,rotateEnable:!0,pitchEnable:!0}}),o.value==="satellite"&&(a=new f.TileLayer.Satellite,l.add(a)),c=new f.InfoWindow({isCustom:!0,offset:new f.Pixel(0,-40),closeWhenClickMap:!0}),l}function y(){l&&(c&&(c.close(),c=null),a&&(l.remove(a),a=null),l.destroy(),l=null)}function h(){return l}function k(){return c}function m(w){l&&l.setMapStyle(w?"amap://styles/dark":"amap://styles/whitesmoke")}function Q(w){l&&typeof l.setViewMode=="function"&&l.setViewMode(w)}function u(w){if(!l)return;const f=window.AMap;w==="satellite"?(a||(a=new f.TileLayer.Satellite),l.add(a)):(a&&(l.remove(a),a=null),l.setMapStyle(s.value?"amap://styles/dark":"amap://styles/whitesmoke"))}return{initMap:g,destroyMap:y,getMap:h,getInfoWindow:k,setMapStyle:m,setViewMode:Q,setMapType:u}}const O0=[116.398,39.92],Te={completed:"#00B42A",notCollected:"#E6A23C",defaultHighlight:"#165dff",single:"#00B42A"},F0="#FF8C00",ve={polyline:40,polylineHighlight:45,polylineBorder:44,track:50,startMarker:60,pointLabel:10};function P0(e){const{getMap:t,lineArr:r,mapLineArr:i,trackLineArr:o,highlightLineIndex:s,highlightStrokeColor:l,routeCompletedList:a,startPointIcon:c}=e;let g=null;const y=[];let h=null;function k(){const Q=t();Q&&(g&&(Q.remove(g),g=null),y.forEach(u=>Q.remove(u)),y.length=0,h&&(Q.remove(h),h=null))}function m(){const Q=t();if(!Q)return;k();const u=r.value||[],w=i.value||[],f=o.value||[],v=s.value,M=l.value||Te.defaultHighlight,A=w.length>0||f.length>0;if(!A&&(!u||u.length===0))return;const N=window.AMap;if(A){const L=ve.polyline;if([w,f].forEach((P,D)=>{if(!P||P.length===0)return;const E=D===0;P.forEach($=>{const b=xe($);if(b.length===0)return;const S=new N.Polyline({path:b,strokeColor:E?Te.completed:Te.notCollected,strokeWeight:2,strokeOpacity:.85,strokeStyle:E?"solid":"dashed",lineJoin:"round",lineCap:"round",zIndex:L});y.push(S),Q.add(S)})}),v>=0&&Array.isArray(u[v])&&u[v].length>0){const P=xe(u[v]);if(P.length>0){const D=new N.Polyline({path:P,strokeColor:M,strokeWeight:3,strokeOpacity:.95,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});y.push(D),Q.add(D)}}if(u[0]&&u[0].length>0){const P=xe(u[0]);P.length>0&&(h=new N.Marker({position:P[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),Q.add(h))}y.length>0&&Q.setFitView(y)}else if(u&&u.length>0&&ft(u)){const B=a.value||[],L=B.length>0,P=L?Te.notCollected:Te.completed,D=L?3:2,E=3,$=10,b=[];if(u.forEach((S,p)=>{const R=xe(S);if(R.length===0)return;const X=p===v,Z=L&&(B[p]===!0||B[p]===2),ae=L&&Z?Te.completed:P;if(L&&X){const Y=new N.Polyline({path:R,strokeColor:M,strokeWeight:$,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineBorder}),ne=new N.Polyline({path:R,strokeColor:ae,strokeWeight:D,strokeOpacity:1,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});y.push(Y,ne),b.push({polyline:Y,isHighlight:!0}),b.push({polyline:ne,isHighlight:!0})}else{const Y=new N.Polyline({path:R,strokeColor:ae,strokeWeight:X?E:D,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:X?ve.polylineHighlight:ve.polyline});y.push(Y),b.push({polyline:Y,isHighlight:X})}}),b.filter(S=>!S.isHighlight).forEach(S=>Q.add(S.polyline)),b.filter(S=>S.isHighlight).forEach(S=>Q.add(S.polyline)),u[0]&&u[0].length>0){const S=xe(u[0]);S.length>0&&(h=new N.Marker({position:S[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),Q.add(h))}y.length>0&&Q.setFitView(y)}else{const B=xe(u);B.length>0&&(g=new N.Polyline({path:B,strokeColor:Te.single,strokeWeight:3,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polyline}),Q.add(g),h=new N.Marker({position:B[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),Q.add(h),Q.setFitView(g)),g&&Q.setFitView([g])}}return{drawPolyline:m,clear:k}}const 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='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 Zt(e,t){return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),fe=require("element-plus"),n1=require("./resolver.cjs"),he={LARGE:"large",NORMAL:"normal",SMALL:"small"},we={BUTTON:"button",TEXT:"text"},Pt={PRIMARY:"primary",GREEN:"green",ORANGE:"orange",RED:"red",CYAN:"cyan",BROWN:"brown",YELLOW:"yellow",BLUE:"blue",PURPLE:"purple",LIME:"lime",MAGENTA:"magenta",PINK:"pink"},rn=n.defineComponent({name:"JTWBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:he.NORMAL,validator:e=>Object.values(he).includes(e)},type:{type:String,default:we.BUTTON,validator:e=>Object.values(we).includes(e)},color:{type:String,default:"primary",validator:e=>Object.values(Pt).includes(e)},textColor:{type:String,default:void 0,validator:e=>!e||Object.values(Pt).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:t,expose:r}){const o=n.ref(null),i=n.computed(()=>e.tips!=null?String(e.tips):""),s=n.computed(()=>({"j-tw-btn":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.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===we.TEXT&&!e.flat})),l=n.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=n.computed(()=>({...a,...e.tooltipConfig})),g=h=>{t("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:g}}}),ue=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r};function on(e,t,r,o,i,s){const l=n.resolveComponent("el-button"),a=n.resolveComponent("el-tooltip");return n.openBlock(),n.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:n.withCtx(()=>[n.createVNode(l,n.mergeProps({ref:"elBtnRef",class:e.computedClass,style:e.computedStyle,loading:e.loading},e.$attrs,{onClick:e.handleClick}),n.createSlots({default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.label),1)])]),_:2},[e.$slots.icon?{name:"icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading-icon",{},()=>[t[0]||(t[0]=n.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"},[n.createElementVNode("defs",null,[n.createElementVNode("clipPath",{id:"master_svg0_37_06013"},[n.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0"})])]),n.createElementVNode("g",{"clip-path":"url(#master_svg0_37_06013)"},[n.createElementVNode("rect",{x:"0",y:"0",width:"16",height:"16",rx:"0",fill:"transparent",style:{"mix-blend-mode":"passthrough"}}),n.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 Ve=ue(rn,[["render",on]]),an=n.defineComponent({name:"JTWDropdownBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip},inheritAttrs:!1,props:{size:{type:String,default:he.NORMAL,validator:e=>Object.values(he).includes(e)},type:{type:String,default:we.BUTTON,validator:e=>Object.values(we).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:t,expose:r}){const o=n.ref(null),i=n.ref(null),s=n.ref(null),l=n.ref(null),a=n.ref(!1),c=n.ref({}),g=n.computed(()=>e.tips!=null?String(e.tips):""),y=n.computed(()=>{if(e.modelValue!=null){const D=e.options.find(E=>E.value===e.modelValue);if(D)return D.label}return e.label}),h=n.computed(()=>({"j-tw-dropdown-btn":!0,"j-tw-dropdown-btn--large":e.size===he.LARGE,"j-tw-dropdown-btn--normal":e.size===he.NORMAL,"j-tw-dropdown-btn--small":e.size===he.SMALL})),Q=n.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__main":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===we.TEXT})),m=n.computed(()=>({"j-tw-btn":!0,"j-tw-dropdown-btn__trigger":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===we.TEXT})),k=n.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=n.computed(()=>({...u,...e.tooltipConfig})),f=()=>{if(!o.value||!l.value)return;const D=o.value.getBoundingClientRect(),E=l.value.getBoundingClientRect(),C=window.innerHeight-D.bottom,I=D.top;let p=D.bottom+4;E.height>50&&C<E.height+20&&I>E.height+20&&(p=D.top-E.height-4),c.value={top:`${p}px`,left:`${D.left}px`}},v=()=>{a.value=!0,n.nextTick(()=>{n.nextTick(()=>{f()})})},b=()=>{a.value=!1},A=()=>{a.value?b():v()},N=D=>{t("click",D),A()},j=D=>{D.disabled||(t("update:modelValue",D.value),t("select",D),b())},L=D=>{if(!o.value||!l.value)return;const E=D.target;!o.value.contains(E)&&!l.value.contains(E)&&b()};return n.watch(a,D=>{D?(document.addEventListener("click",L),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0)):(document.removeEventListener("click",L),window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0))}),n.onMounted(()=>{}),n.onBeforeUnmount(()=>{document.removeEventListener("click",L),window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0)}),r({get $el(){return o.value},click:()=>{var D,E;(E=(D=i.value)==null?void 0:D.$el)==null||E.click()},openDropdown:v,closeDropdown:b}),{dropdownRef:o,mainBtnRef:i,dropdownBtnRef:s,dropdownMenuRef:l,dropdownVisible:a,dropdownMenuStyle:c,tooltipContent:g,displayLabel:y,dropdownClass:h,mainBtnClass:Q,dropdownBtnClass:m,computedStyle:k,mergedTooltipConfig:w,handleMainClick:N,toggleDropdown:A,handleOptionClick:j}}}),ln="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",sn="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",cn="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",un={class:"j-tw-dropdown-btn__label"},dn=["onClick"],fn={class:"j-tw-dropdown-btn__option-label"},hn={key:0,src:cn,class:"j-tw-dropdown-btn__selected-icon",alt:"Selected"};function pn(e,t,r,o,i,s){const l=n.resolveComponent("el-button"),a=n.resolveComponent("el-tooltip");return n.openBlock(),n.createElementBlock("div",{ref:"dropdownRef",class:n.normalizeClass(e.dropdownClass),style:n.normalizeStyle(e.computedStyle)},[n.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:n.withCtx(()=>[n.createVNode(l,n.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}),n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",un,[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.displayLabel),1)])]),n.createElementVNode("img",{src:sn,class:n.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:n.withCtx(()=>[n.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading-icon",{},()=>[t[1]||(t[1]=n.createElementVNode("img",{src:ln,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"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-dropdown-fade"},{default:n.withCtx(()=>[e.dropdownVisible?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-dropdown-btn__menu",style:n.normalizeStyle({...e.dropdownMenuStyle,...e.computedStyle}),onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,c=>(n.openBlock(),n.createElementBlock("div",{key:c.value,class:n.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:g=>e.handleOptionClick(c)},[n.createElementVNode("span",fn,n.toDisplayString(c.label),1),c.value===e.modelValue?(n.openBlock(),n.createElementBlock("img",hn)):n.createCommentVNode("",!0)],10,dn))),128))],4)):n.createCommentVNode("",!0)]),_:1})]))],6)}const gn=ue(an,[["render",pn]]),mn=n.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",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_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",vn="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",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_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",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_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",bn="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",Mn="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",Cn={key:0,src:wn,alt:"collapse",class:"j-tw-tree-select-btn__expand-icon"},An={key:1,src:yn,alt:"expand",class:"j-tw-tree-select-btn__expand-icon"},_n={key:2,class:"j-tw-tree-select-btn__expand-placeholder"},Dn={class:"j-tw-tree-select-btn__radio"},Nn={key:0,src:vn,alt:"indeterminate",class:"j-tw-tree-select-btn__radio-icon"},In={key:1,src:Qn,alt:"checked",class:"j-tw-tree-select-btn__radio-icon"},Sn={key:2,src:kn,alt:"unchecked",class:"j-tw-tree-select-btn__radio-icon"},Tn={key:0,src:bn,alt:"selected",class:"j-tw-tree-select-btn__radio-icon"},xn={key:1,src:Mn,alt:"unselected",class:"j-tw-tree-select-btn__radio-icon"},Ln={class:"j-tw-tree-select-btn__node-label"};function En(e,t,r,o,i,s){const l=n.resolveComponent("TreeNode",!0);return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.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:n.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"}),onClick:t[1]||(t[1]=a=>e.handleNodeClick(e.node))},[e.level>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-tree-select-btn__node-line",style:n.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):n.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:"j-tw-tree-select-btn__expand-btn",onClick:t[0]||(t[0]=n.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(n.openBlock(),n.createElementBlock("img",Cn)):(n.openBlock(),n.createElementBlock("img",An))])):(n.openBlock(),n.createElementBlock("div",_n)),n.createElementVNode("div",Dn,[e.multiple?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(n.openBlock(),n.createElementBlock("img",Nn)):e.isNodeChecked(e.node.value)?(n.openBlock(),n.createElementBlock("img",In)):(n.openBlock(),n.createElementBlock("img",Sn))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.tempSelectedValue===e.node.value?(n.openBlock(),n.createElementBlock("img",Tn)):(n.openBlock(),n.createElementBlock("img",xn))],64))]),n.createElementVNode("span",Ln,[n.renderSlot(e.$slots,"default",{node:e.node},()=>[n.createTextVNode(n.toDisplayString(e.node.label),1)])])],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.node.children,(a,c)=>(n.openBlock(),n.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:n.withCtx(({node:g})=>[n.renderSlot(e.$slots,"default",{node:g},()=>[n.createTextVNode(n.toDisplayString(g.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)):n.createCommentVNode("",!0)],64)}const r1=ue(mn,[["render",En]]),zn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDQuMDAwMDAxTDgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxWiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",jn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48Y2xpcFBhdGggaWQ9Im1hc3Rlcl9zdmcwXzM3XzA4Mjg2Ij48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHJ4PSIwIi8+PC9jbGlwUGF0aD48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzFfMTFfNDQzOTkiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM4MEE2RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzE2NURGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9ImJnYmx1cl9tYXN0ZXJfc3ZnMl8zN18wODI4OF9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCA0QzIyLjQ4Njc0IDQgMjEuMTY5NzQ2IDMuMTU5NjgzMiAyMC40OTAxOTIgMS45MjAyMjQxQzE5Ljk1OTE2OSAwLjk1MTY3NDEgMTkuMTA0NTcgMCAxOCAwTDIuMDAwMDAwNSAwQzAuODk1NDMwNTYgMCAwIDAuODk1NDMwNTYgMCAyLjAwMDAwMDJMMCAyMEMwIDIyLjIwOTEzOSAxLjc5MDg2MTEgMjQgNC4wMDAwMDEgMjRMNjggMjRDNzAuMjA5MTM3IDI0IDcyIDIyLjIwOTEzOSA3MiAyMEw3MiAyLjAwMDAwMDVDNzIgMC44OTU0MzA1NiA3MS4xMDQ1NjggMCA3MCAwTDU0IDBDNTIuODk1NDMyIDAgNTIuMDQwODI5IDAuOTUxNjc0MjIgNTEuNTA5ODA4IDEuOTIwMjI0MUM1MC44MzAyNTQgMy4xNTk2ODMyIDQ5LjUxMzI2IDQgNDggNEwyNCA0WiIvPjwvY2xpcFBhdGg+PGxpbmVhckdyYWRpZW50IHgxPSIwLjUiIHkxPSIwIiB4Mj0iMC41IiB5Mj0iMSIgaWQ9Im1hc3Rlcl9zdmczXzExXzQzODA1Ij48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjQ0NEQkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5OUI4RkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNtYXN0ZXJfc3ZnMF8zN18wODI4NikiPjxwYXRoIGQ9Ik04LDY4QzgsNzAuMjA5MTM3LDkuNzkwODYxMSw3MiwxMi4wMDAwMDEwMDAwMDAwMDEsNzJMNjAsNzJDNjIuMjA5MTQxLDcyLDY0LDcwLjIwOTEzNyw2NCw2OEw2NCw0LjAwMDAwMDVDNjQsMS43OTA4NjExLDYyLjIwOTE0MSwwLDYwLDBMMTIuMDAwMDAwNDk5OTk5OTk5LDBDOS43OTA4NjExLDAsOCwxLjc5MDg2MTEsOCw0LjAwMDAwMUw4LDY4WiIgZmlsbD0idXJsKCNtYXN0ZXJfc3ZnMV8xMV80NDM5OSkiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcyXzM3XzA4Mjg4X2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmczXzExXzQzODA1KSIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==",Bn="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",On=n.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 t={default:zn,empty:jn,loading:Bn},r=n.computed(()=>t[e.name]||t.default),o=n.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}}}),Fn={class:"j-tw-status-img"},Pn=["src","alt"];function Rn(e,t,r,o,i,s){return n.openBlock(),n.createElementBlock("div",Fn,[n.createElementVNode("img",{src:e.imageSrc,alt:e.name,style:n.normalizeStyle(e.imageStyle),class:"j-tw-status-img__image"},null,12,Pn)])}const rt=ue(On,[["render",Rn]]),$n=n.defineComponent({name:"JTWTreeSelectBtn",components:{ElButton:fe.ElButton,ElTooltip:fe.ElTooltip,JTWBtn:Ve,TreeNode:r1,JTWStatusImg:rt},inheritAttrs:!1,props:{size:{type:String,default:he.NORMAL,validator:e=>Object.values(he).includes(e)},type:{type:String,default:we.BUTTON,validator:e=>Object.values(we).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:t,expose:r}){const o=n.ref(null),i=n.ref(null),s=n.ref(null),l=n.ref(null),a=n.ref(!1),c=n.ref({}),g=n.ref(""),y=n.ref(new Set),h=n.ref(void 0),Q=n.ref(new Set),m=n.ref(!1);e.defaultExpandFirst&&e.data.length>0&&y.value.add(e.data[0].value),n.watch(()=>e.data,U=>{e.defaultExpandFirst&&U.length>0&&y.value.size===0&&y.value.add(U[0].value)},{immediate:!0});const k=n.computed(()=>e.tips!=null?String(e.tips):""),u=(U,K)=>{for(const te of U){if(te.value===K)return te;if(te.children){const ce=u(te.children,K);if(ce)return ce}}return null},w=U=>{if(!U.children||U.children.length===0)return[];const K=[];for(const te of U.children)K.push(te.value),K.push(...w(te));return K},f=(U,K)=>{for(const te of U)if(te.children){if(te.children.some(pe=>pe.value===K))return te;const ce=f(te.children,K);if(ce)return ce}return null},v=U=>{const K=f(e.data,U);return K&&K.children?K.children.map(te=>te.value).filter(te=>te!==U):e.data.map(te=>te.value).filter(te=>te!==U)},b=U=>{const K=f(e.data,U);K&&K.children&&(K.children.every(ce=>Q.value.has(ce.value))?Q.value.add(K.value):Q.value.delete(K.value))},A=U=>e.multiple?Q.value.has(U):h.value===U,N=U=>{if(!U.children||U.children.length===0)return[];const K=[];for(const te of U.children)K.push(te.value),K.push(...N(te));return K},j=U=>{if(!e.multiple||!U.children||U.children.length===0)return!1;const K=N(U),te=K.filter(ce=>Q.value.has(ce)).length;return te>0&&te<K.length},L=U=>e.multiple?Q.value.has(U):h.value===U,R=n.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,K)=>{if(!K)return U;const te=[];for(const ce of U){const pe=ce.label.toLowerCase().includes(K.toLowerCase()),d=ce.children?D(ce.children,K):[];(pe||d.length>0)&&(te.push({...ce,children:d.length>0?d:ce.children}),d.length>0&&y.value.add(ce.value))}return te},E=n.computed(()=>D(e.data,g.value)),$=n.computed(()=>({"j-tw-tree-select-btn":!0,"j-tw-tree-select-btn--large":e.size===he.LARGE,"j-tw-tree-select-btn--normal":e.size===he.NORMAL,"j-tw-tree-select-btn--small":e.size===he.SMALL})),C=n.computed(()=>({"j-tw-btn":!0,"j-tw-tree-select-btn__main":!0,"j-tw-btn--large":e.size===he.LARGE,"j-tw-btn--normal":e.size===he.NORMAL,"j-tw-btn--small":e.size===he.SMALL,"j-tw-btn--button":e.type===we.BUTTON&&!e.outline,"j-tw-btn--outline":e.outline,"j-tw-btn--text":e.type===we.TEXT})),I=n.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)"})),p={placement:"top",effect:"dark",trigger:"hover",showArrow:!0,openDelay:0,closeDelay:200,offset:5},P=n.computed(()=>({...p,...e.tooltipConfig})),X=()=>{if(!o.value||!s.value)return;const U=o.value.getBoundingClientRect(),K=s.value.getBoundingClientRect(),ce=window.innerHeight-U.bottom,pe=U.top;let d=U.bottom+4;K.height>50&&ce<K.height+20&&pe>K.height+20&&(d=U.top-K.height-4),c.value={top:`${d}px`,left:`${U.left}px`,width:`${e.dropdownWidth}px`,maxHeight:`${e.dropdownMaxHeight}px`}},Z=()=>{a.value=!0,e.multiple&&Array.isArray(e.modelValue)?Q.value=new Set(e.modelValue):Array.isArray(e.modelValue)||(h.value=e.modelValue),g.value="",n.nextTick(()=>{n.nextTick(()=>{X()})})},ae=()=>{a.value=!1,g.value=""},Y=()=>{a.value?ae():Z()},ne=U=>{t("click",U),Y()},B=U=>{y.value.has(U)?y.value.delete(U):(e.accordion&&v(U).forEach(te=>{y.value.delete(te)}),y.value.add(U))},z=U=>{if(!U.disabled)if(e.multiple){const K=Q.value.has(U.value),te=w(U);K?(Q.value.delete(U.value),te.forEach(pe=>Q.value.delete(pe))):(Q.value.add(U.value),te.forEach(pe=>Q.value.add(pe))),b(U.value);const ce=e.data.filter(pe=>Q.value.has(pe.value));t("select",ce)}else h.value=U.value,t("select",U)},re=()=>{if(e.multiple){const U=Array.from(Q.value),K=U.map(te=>u(e.data,te)).filter(te=>te!==null);t("update:modelValue",U),t("confirm",K.length>0?K:null)}else if(h.value!=null){const U=u(e.data,h.value);t("update:modelValue",h.value),t("confirm",U)}else t("update:modelValue",void 0),t("confirm",null);ae()},T=()=>{t("cancel"),ae()},O=()=>{e.multiple?(Q.value.clear(),t("update:modelValue",[]),t("confirm",null)):(h.value=void 0,t("update:modelValue",void 0),t("confirm",null))},ee=n.computed(()=>e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null),le=U=>{if(!o.value||!s.value)return;const K=U.target;!o.value.contains(K)&&!s.value.contains(K)&&ae()};return n.watch(a,U=>{U?(document.addEventListener("click",le),window.addEventListener("resize",X),window.addEventListener("scroll",X,!0)):(document.removeEventListener("click",le),window.removeEventListener("resize",X),window.removeEventListener("scroll",X,!0))}),n.onMounted(()=>{}),n.onBeforeUnmount(()=>{document.removeEventListener("click",le),window.removeEventListener("resize",X),window.removeEventListener("scroll",X,!0)}),r({get $el(){return o.value},click:()=>{var U,K;(K=(U=i.value)==null?void 0:U.$el)==null||K.click()},openDropdown:Z,closeDropdown:ae}),{treeSelectRef:o,mainBtnRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:g,expandedKeys:y,tempSelectedValue:h,tempSelectedValues:Q,tooltipContent:k,displayLabel:R,filteredData:E,treeSelectClass:$,mainBtnClass:C,computedStyle:I,mergedTooltipConfig:P,handleMainClick:ne,toggleDropdown:Y,toggleExpand:B,handleNodeClick:z,handleConfirm:re,handleCancel:T,handleClear:O,showClearIcon:ee,isHovering:m,isNodeChecked:A,isNodeIndeterminate:j,isNodeSelected:L}}}),Vn="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",Un="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",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='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",Zn={class:"j-tw-tree-select-btn__label"},Yn={class:"j-tw-tree-select-btn__search"},Gn=["placeholder"],Hn={class:"j-tw-tree-select-btn__tree",ref:"treeContainerRef"},Jn={key:0,class:"j-tw-tree-select-btn__empty"},Xn={class:"j-tw-tree-select-btn__footer"};function Kn(e,t,r,o,i,s){const l=n.resolveComponent("el-button"),a=n.resolveComponent("el-tooltip"),c=n.resolveComponent("JTWStatusImg"),g=n.resolveComponent("TreeNode"),y=n.resolveComponent("JTWBtn");return n.openBlock(),n.createElementBlock("div",{ref:"treeSelectRef",class:n.normalizeClass(e.treeSelectClass),style:n.normalizeStyle(e.computedStyle)},[n.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:n.withCtx(()=>[n.createVNode(l,n.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:t[1]||(t[1]=h=>e.isHovering=!0),onMouseleave:t[2]||(t[2]=h=>e.isHovering=!1)}),n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",Zn,[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.displayLabel),1)])]),e.showClearIcon?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["j-tw-tree-select-btn__clear",{"j-tw-tree-select-btn__clear--hover":e.isHovering}]),onClick:t[0]||(t[0]=n.withModifiers((...h)=>e.handleClear&&e.handleClear(...h),["stop"]))},[...t[6]||(t[6]=[n.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:"j-tw-tree-select-btn__clear-icon"},[n.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"}),n.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)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["j-tw-tree-select-btn__arrow",{"j-tw-tree-select-btn__arrow--open":e.dropdownVisible}])},[...t[7]||(t[7]=[n.createElementVNode("img",{src:Un,alt:"Dropdown arrow"},null,-1)])],2)]),_:2},[e.$slots.icon?{name:"icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"icon")]),key:"0"}:void 0,e.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading-icon",{},()=>[t[5]||(t[5]=n.createElementVNode("img",{src:Vn,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"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-tree-select-fade"},{default:n.withCtx(()=>[e.dropdownVisible?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-btn__menu",style:n.normalizeStyle(e.dropdownMenuStyle),onClick:t[4]||(t[4]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",Yn,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-btn__search-input",placeholder:e.searchPlaceholder},null,8,Gn),[[n.vModelText,e.searchText]]),t[8]||(t[8]=n.createElementVNode("img",{src:Wn,alt:"search",class:"j-tw-tree-select-btn__search-icon"},null,-1))]),n.createElementVNode("div",Hn,[e.filteredData.length===0?(n.openBlock(),n.createElementBlock("div",Jn,[n.createVNode(c,{width:32,height:32}),t[9]||(t[9]=n.createElementVNode("p",{class:"j-tw-tree-select-btn__empty-text"},"暂无数据",-1))])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filteredData,h=>(n.openBlock(),n.createBlock(g,{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:n.withCtx(({node:Q})=>[n.renderSlot(e.$slots,"default",{node:Q},()=>[n.createTextVNode(n.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),n.createElementVNode("div",Xn,[n.createVNode(y,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),n.createVNode(y,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])])],4)):n.createCommentVNode("",!0)]),_:3})]))],6)}const qn=ue($n,[["render",Kn]]),er=n.defineComponent({name:"JTWTreeSelectInput",components:{ElSelect:fe.ElSelect,ElOption:fe.ElOption,JTWBtn:Ve,TreeNode:r1,JTWStatusImg:rt},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:t,expose:r}){const o=n.ref(null),i=n.ref(null),s=n.ref(null),l=n.ref(null),a=n.ref(!1),c=n.ref({}),g=n.ref(""),y=n.ref(new Set),h=n.ref(void 0),Q=n.ref(new Set);n.watch(()=>e.data,T=>{e.defaultExpandFirst&&T.length>0&&y.value.size===0&&y.value.add(T[0].value)},{immediate:!0});const m=(T,O)=>{for(const ee of T){if(ee.value===O)return ee;if(ee.children){const le=m(ee.children,O);if(le)return le}}return null},k=T=>{if(!T.children||T.children.length===0)return[];const O=[];for(const ee of T.children)O.push(ee.value),O.push(...k(ee));return O},u=(T,O)=>{for(const ee of T)if(ee.children){if(ee.children.some(ie=>ie.value===O))return ee;const le=u(ee.children,O);if(le)return le}return null},w=T=>{const O=u(e.data,T);return O&&O.children?O.children.map(ee=>ee.value).filter(ee=>ee!==T):e.data.map(ee=>ee.value).filter(ee=>ee!==T)},f=T=>{const O=u(e.data,T);O&&O.children&&(O.children.every(le=>Q.value.has(le.value))?Q.value.add(O.value):Q.value.delete(O.value))},v=T=>e.multiple?Q.value.has(T):h.value===T,b=T=>{if(!T.children||T.children.length===0)return[];const O=[];for(const ee of T.children)O.push(ee.value),O.push(...b(ee));return O},A=T=>{if(!e.multiple||!T.children||T.children.length===0)return!1;const O=b(T),ee=O.filter(le=>Q.value.has(le)).length;return ee>0&&ee<O.length},N=T=>e.multiple?Q.value.has(T):h.value===T,j=n.computed(()=>{if(e.modelValue!=null){if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue.map(T=>{const O=m(e.data,T);return O?{value:O.value,label:O.label}:null}).filter(T=>T!==null);if(!Array.isArray(e.modelValue)){const T=m(e.data,e.modelValue);return T?[{value:T.value,label:T.label}]:[]}}return[]}),L=n.computed(()=>{if(e.multiple&&Array.isArray(e.modelValue))return e.modelValue;if(!Array.isArray(e.modelValue))return e.modelValue}),R=(T,O)=>{if(!O)return T;const ee=[];for(const le of T){const ie=le.label.toLowerCase().includes(O.toLowerCase()),U=le.children?R(le.children,O):[];(ie||U.length>0)&&(ee.push({...le,children:U.length>0?U:le.children}),U.length>0&&y.value.add(le.value))}return ee},D=n.computed(()=>R(e.data,g.value)),E=n.computed(()=>e.autoFill?e.multiple&&Array.isArray(e.modelValue)?e.modelValue.length>0:e.modelValue!=null:e.clearable),$=()=>{if(!o.value||!s.value)return;const T=o.value.getBoundingClientRect(),O=s.value.getBoundingClientRect(),le=window.innerHeight-T.bottom,ie=T.top;let U=T.bottom+4;O.height>50&&le<O.height+20&&ie>O.height+20&&(U=T.top-O.height-4),c.value={top:`${U}px`,left:`${T.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),g.value="",n.nextTick(()=>{n.nextTick(()=>{$()})}))},I=()=>{a.value=!1,g.value=""},p=T=>{T.target.closest(".el-select__clear")||T.preventDefault()},P=T=>{T.stopPropagation(),a.value||C()},X=T=>{T&&n.nextTick(()=>{var O;(O=i.value)==null||O.blur()})},Z=()=>{e.multiple?Q.value.clear():h.value=void 0,t("update:modelValue",e.multiple?[]:void 0),t("clear"),t("change",e.multiple?[]:void 0),I()},ae=T=>{y.value.has(T)?y.value.delete(T):(e.accordion&&w(T).forEach(ee=>{y.value.delete(ee)}),y.value.add(T))},Y=T=>{if(!T.disabled)if(e.multiple){const O=Q.value.has(T.value),ee=k(T);O?(Q.value.delete(T.value),ee.forEach(ie=>Q.value.delete(ie))):(Q.value.add(T.value),ee.forEach(ie=>Q.value.add(ie))),f(T.value);const le=e.data.filter(ie=>Q.value.has(ie.value));if(t("select",le),e.autoFill){const ie=Array.from(Q.value);t("update:modelValue",ie),t("change",ie)}e.autoClose&&I()}else h.value=T.value,t("select",T),e.autoFill&&(h.value!=null?(t("update:modelValue",h.value),t("change",h.value)):(t("update:modelValue",void 0),t("change",void 0))),e.autoClose&&h.value!=null&&I()},ne=()=>{if(e.multiple){const T=Array.from(Q.value),O=T.map(ee=>m(e.data,ee)).filter(ee=>ee!==null);t("update:modelValue",T),t("confirm",O.length>0?O:null),t("change",T)}else if(h.value!=null){const T=m(e.data,h.value);t("update:modelValue",h.value),t("confirm",T),t("change",h.value)}else t("update:modelValue",void 0),t("confirm",null),t("change",void 0);I()},B=()=>{t("cancel"),I()},z=T=>{if(!o.value||!s.value)return;const O=T.target;!o.value.contains(O)&&!s.value.contains(O)&&I()};return n.watch(a,T=>{T?(setTimeout(()=>{document.addEventListener("mousedown",z)},100),window.addEventListener("resize",$),window.addEventListener("scroll",$,!0)):(document.removeEventListener("mousedown",z),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0))}),n.onBeforeUnmount(()=>{document.removeEventListener("mousedown",z),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0)}),r({get $el(){return o.value},focus:()=>{var T;(T=i.value)==null||T.focus()},blur:()=>{var T;(T=i.value)==null||T.blur()},openDropdown:C,closeDropdown:I}),{treeSelectInputRef:o,selectRef:i,dropdownMenuRef:s,treeContainerRef:l,dropdownVisible:a,dropdownMenuStyle:c,searchText:g,expandedKeys:y,tempSelectedValue:h,tempSelectedValues:Q,displayOptions:j,selectDisplayValue:L,filteredData:D,computedClearable:E,handleMouseDown:p,handleSelectClick:P,handleVisibleChange:X,handleClear:Z,toggleExpand:ae,handleNodeClick:Y,handleConfirm:ne,handleCancel:B,isNodeChecked:v,isNodeIndeterminate:A,isNodeSelected:N}}}),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='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",nr={class:"j-tw-tree-select-input__search"},rr=["placeholder"],or={class:"j-tw-tree-select-input__tree",ref:"treeContainerRef"},ir={key:0,class:"j-tw-tree-select-input__empty"},ar={key:0,class:"j-tw-tree-select-input__footer"};function lr(e,t,r,o,i,s){const l=n.resolveComponent("el-option"),a=n.resolveComponent("el-select"),c=n.resolveComponent("JTWStatusImg"),g=n.resolveComponent("TreeNode"),y=n.resolveComponent("JTWBtn");return n.openBlock(),n.createElementBlock("div",{ref:"treeSelectInputRef",class:n.normalizeClass(["j-tw-tree-select-input",{"j-tw-tree-select-input--open":e.dropdownVisible,"j-tw-tree-select-input--bg-grey":e.bgGrey}]),onMousedown:t[2]||(t[2]=(...h)=>e.handleMouseDown&&e.handleMouseDown(...h))},[n.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:n.withModifiers(e.handleSelectClick,["stop"]),onClear:e.handleClear,onVisibleChange:e.handleVisibleChange},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.displayOptions,h=>(n.openBlock(),n.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"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-tree-select-fade"},{default:n.withCtx(()=>[e.dropdownVisible?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"dropdownMenuRef",class:"j-tw-tree-select-input__menu",style:n.normalizeStyle(e.dropdownMenuStyle),onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",nr,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=h=>e.searchText=h),type:"text",class:"j-tw-tree-select-input__search-input",placeholder:e.searchPlaceholder},null,8,rr),[[n.vModelText,e.searchText]]),t[3]||(t[3]=n.createElementVNode("img",{src:tr,alt:"search",class:"j-tw-tree-select-input__search-icon"},null,-1))]),n.createElementVNode("div",or,[e.filteredData.length===0?(n.openBlock(),n.createElementBlock("div",ir,[n.createVNode(c,{width:32,height:32}),t[4]||(t[4]=n.createElementVNode("p",{class:"j-tw-tree-select-input__empty-text"},"暂无数据",-1))])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filteredData,h=>(n.openBlock(),n.createBlock(g,{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:n.withCtx(({node:Q})=>[n.renderSlot(e.$slots,"default",{node:Q},()=>[n.createTextVNode(n.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?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",ar,[n.createVNode(y,{label:"取消",flat:"",onClick:e.handleCancel},null,8,["onClick"]),n.createVNode(y,{label:"确定",onClick:e.handleConfirm},null,8,["onClick"])]))],4)):n.createCommentVNode("",!0)]),_:3})]))],34)}const sr=ue(er,[["render",lr]]),cr=n.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:t,expose:r}){const o=n.inject("elFormItem",null),i=n.ref(null),s=n.ref(null),l=n.computed({get(){return e.modelValue},set(f){t("update:modelValue",f)}}),a=f=>{var v;t("change",f),e.validateEvent&&o&&((v=o.validate)==null||v.call(o,"change"))},c=f=>{var v;t("blur",f),e.validateEvent&&o&&((v=o.validate)==null||v.call(o,"blur"))},g=f=>{t("focus",f)},y=()=>{t("clear")},h=f=>{t("visible-change",f)},Q=n.computed(()=>{var f;return{...e.popperOptions,modifiers:[...((f=e.popperOptions)==null?void 0:f.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),m=n.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"本周",value:()=>{const f=new Date,v=f.getDay(),b=v===0?6:v-1,A=new Date(f);A.setDate(f.getDate()-b),A.setHours(0,0,0,0);const N=new Date(A);return N.setDate(A.getDate()+6),N.setHours(23,59,59,999),[A,N]}},{text:"本月",value:()=>{const f=new Date,v=new Date(f.getFullYear(),f.getMonth(),1),b=new Date(f.getFullYear(),f.getMonth()+1,0,23,59,59,999);return[v,b]}},{text:"本年度",value:()=>{const f=new Date,v=new Date(f.getFullYear(),0,1),b=new Date(f.getFullYear(),11,31,23,59,59,999);return[v,b]}}]});return r({get $el(){return i.value},focus:()=>{var v;const f=(v=i.value)==null?void 0:v.querySelector("input");f==null||f.focus()},blur:()=>{var v;const f=(v=i.value)==null?void 0:v.querySelector("input");f==null||f.blur()}}),{datePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:Q,computedShortcuts:m,handleChange:a,handleBlur:c,handleFocus:g,handleClear:y,handleVisibleChange:h}}}),ur="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",dr={class:"j-tw-date-picker__separator"};function fr(e,t,r,o,i,s){const l=n.resolveComponent("el-date-picker");return n.openBlock(),n.createElementBlock("div",{ref:"datePickerRef",class:n.normalizeClass(["j-tw-date-picker",{"j-tw-date-picker--bg-grey":e.bgGrey,"j-tw-date-picker--dense":e.dense}])},[n.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":t[0]||(t[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":n.withCtx(()=>[...t[1]||(t[1]=[n.createElementVNode("img",{src:ur,alt:"calendar",class:"j-tw-date-picker__calendar-icon"},null,-1)])]),"range-separator":n.withCtx(()=>[n.createElementVNode("span",dr,n.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 hr=ue(cr,[["render",fr]]),pr=n.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:t,expose:r}){const o=n.inject("elFormItem",null),i=n.ref(null),s=n.ref(null),l=n.computed({get(){return e.modelValue},set(f){t("update:modelValue",f)}}),a=f=>{var v;t("change",f),e.validateEvent&&o&&((v=o.validate)==null||v.call(o,"change"))},c=f=>{var v;t("blur",f),e.validateEvent&&o&&((v=o.validate)==null||v.call(o,"blur"))},g=f=>{t("focus",f)},y=()=>{t("clear")},h=f=>{t("visible-change",f)},Q=n.computed(()=>{var f;return{...e.popperOptions,modifiers:[...((f=e.popperOptions)==null?void 0:f.modifiers)||[],{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!1}}]}}),m=n.computed(()=>{if(e.showShortcuts)return e.shortcuts?e.shortcuts:[{text:"最近1小时",value:()=>{const f=new Date;return[new Date(f.getTime()-3600*1e3),f]}},{text:"今日",value:()=>{const f=new Date,v=new Date(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0,0),b=new Date(f.getFullYear(),f.getMonth(),f.getDate(),23,59,59,999);return[v,b]}},{text:"昨日",value:()=>{const f=new Date,v=new Date(f.getFullYear(),f.getMonth(),f.getDate()-1,0,0,0,0),b=new Date(f.getFullYear(),f.getMonth(),f.getDate()-1,23,59,59,999);return[v,b]}}]});return r({get $el(){return i.value},focus:()=>{var v;const f=(v=i.value)==null?void 0:v.querySelector("input");f==null||f.focus()},blur:()=>{var v;const f=(v=i.value)==null?void 0:v.querySelector("input");f==null||f.blur()}}),{dateTimePickerRef:i,elDatePickerRef:s,internalValue:l,computedPopperOptions:Q,computedShortcuts:m,handleChange:a,handleBlur:c,handleFocus:g,handleClear:y,handleVisibleChange:h}}}),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'%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",mr={class:"j-tw-datetime-picker__separator"};function wr(e,t,r,o,i,s){const l=n.resolveComponent("el-date-picker");return n.openBlock(),n.createElementBlock("div",{ref:"dateTimePickerRef",class:n.normalizeClass(["j-tw-datetime-picker",{"j-tw-datetime-picker--bg-grey":e.bgGrey,"j-tw-datetime-picker--dense":e.dense}])},[n.createVNode(l,{ref:"elDatePickerRef",modelValue:e.internalValue,"onUpdate:modelValue":t[0]||(t[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":n.withCtx(()=>[...t[1]||(t[1]=[n.createElementVNode("img",{src:gr,alt:"calendar",class:"j-tw-datetime-picker__calendar-icon"},null,-1)])]),"range-separator":n.withCtx(()=>[n.createElementVNode("span",mr,n.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 yr=ue(pr,[["render",wr]]),vr=n.defineComponent({name:"JTWCheckbox",components:{ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,setup(){return{}}});function Qr(e,t,r,o,i,s){const l=n.resolveComponent("el-checkbox");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elCheckboxRef",class:"j-tw-checkbox"},e.$attrs),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)}const o1=ue(vr,[["render",Qr]]),kr=n.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:t}){return{handleSizeChange:i=>{t("sizeChange",i),t("update:pageSize",i),t("update:page",1)},handleCurrentChange:i=>{t("currentChange",i),t("update:page",i)}}}}),br={class:"j-tw-pagination"};function Mr(e,t,r,o,i,s){const l=n.resolveComponent("el-pagination");return n.openBlock(),n.createElementBlock("div",br,[n.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 i1=ue(kr,[["render",Mr]]),Cr=n.defineComponent({name:"JTWTable",components:{JTWCheckbox:o1,JTWPagination:i1},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,sizeChange:e=>!0,currentChange:e=>!0,"update:pagination":e=>!0},setup(e,{emit:t,expose:r}){const o=n.ref(null),i=n.ref([]),s=(b,A)=>typeof e.rowKey=="function"?e.rowKey(b):b[e.rowKey]??A,l=b=>{const A={};return b.width&&(A.width=typeof b.width=="number"?`${b.width}px`:b.width),b.minWidth&&(A.minWidth=typeof b.minWidth=="number"?`${b.minWidth}px`:b.minWidth),b.width||(A.flex="1"),A},a=b=>i.value.some(A=>s(A,-1)===s(b,-1)),c=n.computed(()=>e.rows.length>0&&e.rows.every(b=>a(b))),g=n.computed(()=>{const b=e.rows.filter(A=>a(A)).length;return b>0&&b<e.rows.length}),y=b=>{i.value=b?[...e.rows]:[],t("selectionChange",i.value)},h=(b,A)=>{A?a(b)||i.value.push(b):i.value=i.value.filter(N=>s(N,-1)!==s(b,-1)),t("selectionChange",i.value)},Q=b=>{t("sortChange",b)},m=()=>{const b=e.pagination;return b||null},k=b=>{t("sizeChange",b);const A=m();A&&t("update:pagination",{...A,pageSize:b,page:1})},u=b=>{t("currentChange",b);const A=m();A&&t("update:pagination",{...A,page:b})};return r({get $el(){return o.value},tableRef:o,clearSelection:()=>{i.value=[],t("selectionChange",[])},toggleRowSelection:(b,A)=>{const N=A??!a(b);h(b,N)}}),{tableRef:o,selectedRows:i,isAllSelected:c,isIndeterminate:g,isRowSelected:a,getRowKey:s,getColStyle:l,emptyText:e.emptyText,handleSelectAll:y,handleRowSelect:h,handleSortChange:Q,handleSizeChange:k,handleCurrentChange:u}}}),Ar="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSI3MiIgaGVpZ2h0PSI3MiIgdmlld0JveD0iMCAwIDcyIDcyIj48ZGVmcz48bGluZWFyR3JhZGllbnQgeDE9IjAuNSIgeTE9IjAiIHgyPSIwLjUiIHkyPSIxIiBpZD0ibWFzdGVyX3N2ZzBfMjcwXzUzODIzIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjODBBNkZGIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMxNjVERkYiIHN0b3Atb3BhY2l0eT0iMSIvPjwvbGluZWFyR3JhZGllbnQ+PGNsaXBQYXRoIGlkPSJiZ2JsdXJfbWFzdGVyX3N2ZzFfMTMxM18wOTQ3NzFfY2xpcF9wYXRoIj48cGF0aCBkPSJNMjQgNEMyMi40ODY3NCA0IDIxLjE2OTc0NiAzLjE1OTY4MzIgMjAuNDkwMTkyIDEuOTIwMjI0MUMxOS45NTkxNjkgMC45NTE2NzQxIDE5LjEwNDU3IDAgMTggMEwyLjAwMDAwMDUgMEMwLjg5NTQzMDU2IDAgMCAwLjg5NTQzMDU2IDAgMi4wMDAwMDAyTDAgMjBDMCAyMi4yMDkxMzkgMS43OTA4NjExIDI0IDQuMDAwMDAxIDI0TDY4IDI0QzcwLjIwOTEzNyAyNCA3MiAyMi4yMDkxMzkgNzIgMjBMNzIgMi4wMDAwMDA1QzcyIDAuODk1NDMwNTYgNzEuMTA0NTY4IDAgNzAgMEw1NCAwQzUyLjg5NTQzMiAwIDUyLjA0MDgyOSAwLjk1MTY3NDIyIDUxLjUwOTgwOCAxLjkyMDIyNDFDNTAuODMwMjU0IDMuMTU5NjgzMiA0OS41MTMyNiA0IDQ4IDRMMjQgNFoiLz48L2NsaXBQYXRoPjxsaW5lYXJHcmFkaWVudCB4MT0iMC41IiB5MT0iMCIgeDI9IjAuNSIgeTI9IjEiIGlkPSJtYXN0ZXJfc3ZnMl8yNzBfNTM4MTciPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNDQ0RCRkYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzk5QjhGRiIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTgsNjhDOCw3MC4yMDkxMzcsOS43OTA4NjExLDcyLDEyLjAwMDAwMTAwMDAwMDAwMSw3Mkw2MCw3MkM2Mi4yMDkxNDEsNzIsNjQsNzAuMjA5MTM3LDY0LDY4TDY0LDQuMDAwMDAwNUM2NCwxLjc5MDg2MTEsNjIuMjA5MTQxLDAsNjAsMEwxMi4wMDAwMDA0OTk5OTk5OTksMEM5Ljc5MDg2MTEsMCw4LDEuNzkwODYxMSw4LDQuMDAwMDAxTDgsNjhaIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcwXzI3MF81MzgyMykiIGZpbGwtb3BhY2l0eT0iMSIvPjxyZWN0IHg9IjM4IiB5PSIxOSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDU3LC0xOSkiLz48cmVjdCB4PSIxNi44MjgzNjkxNDA2MjUiIHk9IjI2IiB3aWR0aD0iMTQiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwtMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwyMy4zMTM2OTE0MDQ4MzczLC00LjI4NDIyOTcyODIwNDA4MikiLz48cmVjdCB4PSI1NC44OTk1MzYxMzI4MTI1IiB5PSIyNiIgd2lkdGg9IjE0IiBoZWlnaHQ9IjQiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjEiIHRyYW5zZm9ybT0ibWF0cml4KC0wLjcwNzEwNjc2OTA4NDkzMDQsMC43MDcxMDY3NjkwODQ5MzA0LDAuNzA3MTA2NzY5MDg0OTMwNCwwLjcwNzEwNjc2OTA4NDkzMDQsNzUuMzM0NTkzNzU1NzM4NzUsLTMxLjIwNDYwOTYxNTM0MjYzMykiLz48Zm9yZWlnbk9iamVjdCB4PSIwIiB5PSI0OCIgd2lkdGg9IjcyIiBoZWlnaHQ9IjI0Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iYmFja2Ryb3AtZmlsdGVyOmJsdXIoMnB4KTstd2Via2l0LWJhY2tkcm9wLWZpbHRlcjpibHVyKDJweCk7Y2xpcC1wYXRoOnVybCgjYmdibHVyX21hc3Rlcl9zdmcxXzEzMTNfMDk0NzcxX2NsaXBfcGF0aCk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxwYXRoIGQ9Ik0yNCw1MkMyMi40ODY3NCw1MiwyMS4xNjk3NDYsNTEuMTU5NjgzMiwyMC40OTAxOTIsNDkuOTIwMjI0MUMxOS45NTkxNjksNDguOTUxNjc0MSwxOS4xMDQ1Nyw0OCwxOCw0OEwyLjAwMDAwMDUsNDhDMC44OTU0MzA1Niw0OCwwLDQ4Ljg5NTQzMDU2LDAsNTAuMDAwMDAwMkwwLDY4QzAsNzAuMjA5MTM5LDEuNzkwODYxMSw3Miw0LjAwMDAwMSw3Mkw2OCw3MkM3MC4yMDkxMzcsNzIsNzIsNzAuMjA5MTM5LDcyLDY4TDcyLDUwLjAwMDAwMDVDNzIsNDguODk1NDMwNTYsNzEuMTA0NTY4LDQ4LDcwLDQ4TDU0LDQ4QzUyLjg5NTQzMiw0OCw1Mi4wNDA4MjksNDguOTUxNjc0MjIsNTEuNTA5ODA4LDQ5LjkyMDIyNDFDNTAuODMwMjU0LDUxLjE1OTY4MzIsNDkuNTEzMjYsNTIsNDgsNTJMMjQsNTJaIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNDQ0RCRkYiIGZpbGwtb3BhY2l0eT0iMC41Ii8+PHBhdGggZD0iTTI0LDUyQzIyLjQ4Njc0LDUyLDIxLjE2OTc0Niw1MS4xNTk2ODMyLDIwLjQ5MDE5Miw0OS45MjAyMjQxQzE5Ljk1OTE2OSw0OC45NTE2NzQxLDE5LjEwNDU3LDQ4LDE4LDQ4TDIuMDAwMDAwNSw0OEMwLjg5NTQzMDU2LDQ4LDAsNDguODk1NDMwNTYsMCw1MC4wMDAwMDAyTDAsNjhDMCw3MC4yMDkxMzksMS43OTA4NjExLDcyLDQuMDAwMDAxLDcyTDY4LDcyQzcwLjIwOTEzNyw3Miw3Miw3MC4yMDkxMzksNzIsNjhMNzIsNTAuMDAwMDAwNUM3Miw0OC44OTU0MzA1Niw3MS4xMDQ1NjgsNDgsNzAsNDhMNTQsNDhDNTIuODk1NDMyLDQ4LDUyLjA0MDgyOSw0OC45NTE2NzQyMiw1MS41MDk4MDgsNDkuOTIwMjI0MUM1MC44MzAyNTQsNTEuMTU5NjgzMiw0OS41MTMyNiw1Miw0OCw1MkwyNCw1MlpNMjQsNTNRMjEuMDM4Mjk2LDUzLDE5LjYxMzMzNSw1MC40MDA5NzU5UTE4Ljg0NTIzLDQ4Ljk5OTk5OTg4LDE4LDQ4Ljk5OTk5OTg4TDIuMDAwMDAwNSw0OVEwLjk5OTk5OTg4LDQ5LDAuOTk5OTk5ODgsNTAuMDAwMDAwNUwxLDY4UTEsNjkuMjQyNjQwOTk5OTk5OTksMS44Nzg2Nzk2LDcwLjEyMTMyMVEyLjc1NzM2LDcxLDQuMDAwMDAxLDcxTDY4LDcxUTY5LjI0MjYzOCw3MSw3MC4xMjEzMjMsNzAuMTIxMzIxUTcxLDY5LjI0MjYzOCw3MSw2OEw3MSw1MC4wMDAwMDA1UTcxLDQ4Ljk5OTk5OTg4LDcwLDQ4Ljk5OTk5OTg4TDU0LDQ5UTUzLjE1NDc2Niw0OSw1Mi4zODY2NjUsNTAuNDAwOTczOFE1MC45NjE3LDUzLDQ4LDUzTDI0LDUzWiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI21hc3Rlcl9zdmcyXzI3MF81MzgxNykiIGZpbGwtb3BhY2l0eT0iMSIvPjwvc3ZnPg==",_r={class:"j-tw-table__header"},Dr={key:0,class:"j-tw-table__header-cell j-tw-table__header-cell--selection"},Nr={key:1,class:"j-tw-table__header-cell",style:{width:"60px","flex-shrink":"0"}},Ir={key:2,class:"j-tw-table__header-cell j-tw-table__header-cell--action"},Sr={class:"j-tw-table__body-wrapper"},Tr={key:0,class:"j-tw-table__body"},xr={key:0,class:"j-tw-table__cell j-tw-table__cell--selection"},Lr={key:1,class:"j-tw-table__cell",style:{width:"60px","flex-shrink":"0"}},Er={key:1},zr={key:2,class:"j-tw-table__cell j-tw-table__cell--action"},jr={key:1,class:"j-tw-table__empty"},Br={class:"j-tw-table__empty-text"},Or={key:0,class:"j-tw-table__pagination"};function Fr(e,t,r,o,i,s){const l=n.resolveComponent("JTWCheckbox"),a=n.resolveComponent("JTWPagination"),c=n.resolveDirective("loading");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["j-tw-table",{"j-tw-table--dense":e.dense,"j-tw-table--fixed":e.height}]),style:n.normalizeStyle(e.height?{height:typeof e.height=="number"?`${e.height}px`:e.height}:{})},[n.renderSlot(e.$slots,"header"),n.createElementVNode("div",_r,[e.selection?(n.openBlock(),n.createElementBlock("div",Dr,[n.createVNode(l,{"model-value":e.isAllSelected,indeterminate:e.isIndeterminate,onChange:t[0]||(t[0]=g=>e.handleSelectAll(!!g))},null,8,["model-value","indeterminate"])])):n.createCommentVNode("",!0),e.showIndex?(n.openBlock(),n.createElementBlock("div",Nr," 序号 ")):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columns,g=>(n.openBlock(),n.createElementBlock("div",{key:g.prop,class:"j-tw-table__header-cell",style:n.normalizeStyle(e.getColStyle(g))},n.toDisplayString(g.label),5))),128)),e.$slots.action?(n.openBlock(),n.createElementBlock("div",Ir," 操作 ")):n.createCommentVNode("",!0)]),n.createElementVNode("div",Sr,[e.rows&&e.rows.length>0?(n.openBlock(),n.createElementBlock("div",Tr,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rows,(g,y)=>(n.openBlock(),n.createElementBlock("div",{key:e.getRowKey(g,y),class:n.normalizeClass(["j-tw-table__row",{"j-tw-table__row--selected":e.isRowSelected(g)}])},[e.selection?(n.openBlock(),n.createElementBlock("div",xr,[n.createVNode(l,{"model-value":e.isRowSelected(g),onChange:h=>e.handleRowSelect(g,!!h)},null,8,["model-value","onChange"])])):n.createCommentVNode("",!0),e.showIndex?(n.openBlock(),n.createElementBlock("div",Lr,n.toDisplayString(y+1),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columns,h=>(n.openBlock(),n.createElementBlock("div",{key:h.prop,class:n.normalizeClass(["j-tw-table__cell",`j-tw-table__cell--align-${h.align||"left"}`]),style:n.normalizeStyle(e.getColStyle(h))},[h.type==="slot"?n.renderSlot(e.$slots,`col-${h.prop}`,{key:0,row:g,$index:y,column:h}):(n.openBlock(),n.createElementBlock("span",Er,n.toDisplayString(g[h.prop]??"-"),1))],6))),128)),e.$slots.action?(n.openBlock(),n.createElementBlock("div",zr,[n.renderSlot(e.$slots,"action",{row:g,$index:y})])):n.createCommentVNode("",!0)],2))),128))])):(n.openBlock(),n.createElementBlock("div",jr,[n.renderSlot(e.$slots,"empty",{},()=>[t[1]||(t[1]=n.createElementVNode("img",{class:"j-tw-table__empty-img",src:Ar,alt:"no data"},null,-1)),n.createElementVNode("span",Br,n.toDisplayString(e.emptyText),1)])]))]),e.pagination!==!1&&e.pagination?(n.openBlock(),n.createElementBlock("div",Or,[n.createVNode(a,{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"])])):n.createCommentVNode("",!0)],6)),[[c,e.loading]])}const Pr=ue(Cr,[["render",Fr]]),Rr=n.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:20},onClose:{type:Function,default:void 0}},emits:{destroy:e=>!0},setup(e,{emit:t}){const r=n.ref(!1);let o;const i=n.computed(()=>({"j-tw-message":!0,[`j-tw-message--${e.type}`]:!0})),s=n.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)},g=()=>{t("destroy",e.id)},y=()=>{a()},h=()=>{l()};return n.onMounted(()=>{r.value=!0,l()}),{visible:r,computedClass:i,computedStyle:s,handleClose:c,handleAfterLeave:g,handleMouseEnter:y,handleMouseLeave:h}}}),$r={class:"j-tw-message__icon"},Vr={key:0,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ur={key:1,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wr={key:2,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zr={key:3,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yr={key:4,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gr=["innerHTML"],Hr={key:2,class:"j-tw-message__content"};function Jr(e,t,r,o,i,s){return n.openBlock(),n.createBlock(n.Transition,{name:"j-tw-message-fade",onAfterLeave:e.handleAfterLeave},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.computedClass),style:n.normalizeStyle(e.computedStyle),onMouseenter:t[1]||(t[1]=(...l)=>e.handleMouseEnter&&e.handleMouseEnter(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.handleMouseLeave&&e.handleMouseLeave(...l))},[n.createElementVNode("div",$r,[e.type==="success"?(n.openBlock(),n.createElementBlock("svg",Vr,[...t[3]||(t[3]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.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"?(n.openBlock(),n.createElementBlock("svg",Ur,[...t[4]||(t[4]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.createElementVNode("path",{d:"M8 4.5V8.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1),n.createElementVNode("circle",{cx:"8",cy:"11",r:"0.75",fill:"white"},null,-1)])])):e.type==="error"?(n.openBlock(),n.createElementBlock("svg",Wr,[...t[5]||(t[5]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.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"?(n.openBlock(),n.createElementBlock("svg",Zr,[...t[6]||(t[6]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),n.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])])):(n.openBlock(),n.createElementBlock("svg",Yr,[...t[7]||(t[7]=[n.createElementVNode("circle",{cx:"8",cy:"8",r:"8",fill:"currentColor"},null,-1),n.createElementVNode("circle",{cx:"8",cy:"5.5",r:"0.75",fill:"white"},null,-1),n.createElementVNode("path",{d:"M8 7.5V11.5",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])]))]),e.html&&typeof e.content=="string"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-message__content",innerHTML:e.content},null,8,Gr)):typeof e.content=="object"?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.content),{key:1,class:"j-tw-message__content"})):(n.openBlock(),n.createElementBlock("div",Hr,n.toDisplayString(e.content),1)),e.showClose?(n.openBlock(),n.createElementBlock("div",{key:3,class:"j-tw-message__close",onClick:t[0]||(t[0]=(...l)=>e.handleClose&&e.handleClose(...l))},[...t[8]||(t[8]=[n.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[n.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)])])):n.createCommentVNode("",!0)],38)):n.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])}const Xr=ue(Rr,[["render",Jr]]),Ie=n.ref([]),Kr=n.defineComponent({name:"JTWMessages",components:{MessageItem:Xr},setup(){const e=r=>{const o=Ie.value.findIndex(i=>i.id===r);o!==-1&&Ie.value.splice(o,1)};return{messages:n.computed(()=>Ie.value.filter(r=>r.visible)),handleDestroy:e}}}),qr={class:"j-tw-message-container"};function e2(e,t,r,o,i,s){const l=n.resolveComponent("MessageItem");return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createElementVNode("div",qr,[n.createVNode(n.TransitionGroup,{name:"j-tw-message-list"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.messages,a=>(n.openBlock(),n.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 a1=ue(Kr,[["render",e2]]),ft={WARN:"warn",INFO:"info",SUCCESS:"success",ERROR:"error"},t2=n.defineComponent({name:"JTWConfirmDialog",components:{JTWBtn:Ve},props:{visible:{type:Boolean,default:!1},message:{type:[String,Object],required:!0},html:{type:Boolean,default:!1},icon:{type:String,default:ft.WARN},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"}},emits:{confirm:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const r=()=>{t("confirm")},o=()=>{t("cancel")},i=()=>{t("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:n.computed(()=>s[e.icon??ft.WARN]),handleConfirm:r,handleCancel:o,handleMaskClick:i}}}),n2={class:"j-tw-confirm-dialog__header"},r2=["innerHTML"],o2=["innerHTML"],i2={key:2,class:"j-tw-confirm-dialog__message"},a2={class:"j-tw-confirm-dialog__footer"};function l2(e,t,r,o,i,s){const l=n.resolveComponent("JTWBtn");return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"j-tw-confirm-dialog-fade"},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__mask",onClick:t[1]||(t[1]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a))},[n.createElementVNode("div",{class:"j-tw-confirm-dialog__wrapper",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",n2,[n.createElementVNode("span",{class:"j-tw-confirm-dialog__icon",innerHTML:e.iconSvg},null,8,r2),e.html&&typeof e.message=="string"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-confirm-dialog__message",innerHTML:e.message},null,8,o2)):typeof e.message=="object"?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.message),{key:1,class:"j-tw-confirm-dialog__message"})):(n.openBlock(),n.createElementBlock("span",i2,n.toDisplayString(e.message),1))]),n.createElementVNode("div",a2,[n.createVNode(l,{label:e.cancelText||"取消",flat:"",onClick:e.handleCancel},null,8,["label","onClick"]),n.createVNode(l,{label:e.confirmText||"确定",onClick:e.handleConfirm},null,8,["label","onClick"])])])])):n.createCommentVNode("",!0)]),_:1})])}const l1=ue(t2,[["render",l2]]),s1={CENTER:"center",RIGHT:"right"},c1={SM:"sm",MD:"md",LG:"lg"},u1={BOTH:"both",CANCEL_ONLY:"cancel-only",CONFIRM_ONLY:"confirm-only"};var s2={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 Fe=new Map;let _e={};const Re={configure(e){_e=e},async register(e){try{console.log("[twDialog] 开始注册 dialog, props:",e);const t=e.dialogId||Math.random().toString(36).slice(2),r={...e,dialogId:t},o=n.ref(null),i=_e.locale||s2;console.log("[twDialog] 创建 WrapperComponent...");const s={setup(){return{dialogRef:o}},render(){return n.h(fe.ElConfigProvider,{locale:i},{default:()=>n.h(d1,{...r,ref:g=>{console.log("[twDialog] ref 回调被调用, el:",g),o.value=g}})})}};console.log("[twDialog] 创建 Vue app...");const l=n.createApp(s);_e.router&&l.use(_e.router),_e.store&&l.use(_e.store),_e.i18n&&l.use(_e.i18n),_e.plugins&&_e.plugins.forEach(g=>l.use(g)),console.log("[twDialog] 挂载 app...");const a=document.createElement("div");l.mount(a),console.log("[twDialog] app 已挂载, mountEl:",a),await n.nextTick(),console.log("[twDialog] nextTick 后, dialogRef.value:",o.value);const c=o.value;if(!c)throw new Error("dialogRef.value 为 null,组件可能没有正确挂载");return Fe.set(t,{app:l,appInstance:c}),n.nextTick(()=>{c&&(console.log("[twDialog] 调用 appInstance.open()"),c.open())}),console.log("[twDialog] 注册成功, 返回 appInstance"),c}catch(t){throw console.error("[twDialog] 注册失败:",t),console.error("[twDialog] 错误堆栈:",t instanceof Error?t.stack:"无堆栈信息"),t}},destroy(e){const t=Fe.get(e);if(t){try{const r=t.app._container;t.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}Fe.delete(e)}},destroyAll(){Fe.forEach((e,t)=>{try{const r=e.app._container;e.app.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}}),Fe.clear()}};async function c2(e){return Re.register(e)}const u2=n.defineComponent({name:"JTWDialog",components:{JTWBtn:Ve},props:{dialogId:{type:String},title:{type:String,default:""},position:{type:String,default:s1.CENTER},size:{type:String,default:c1.MD},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},footerMode:{type:String,default:u1.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:t}){var C;const r=n.ref(!1),o=n.ref(null),i=n.ref(null),s=n.ref(!1),l=n.ref(e.cancelText),a=n.ref(e.confirmText),c=n.ref(((C=e.footerExtra)==null?void 0:C.bind)||{}),g=n.ref(e.width),y=n.computed(()=>e.position==="right"?"j-tw-dialog-slide-right":"j-tw-dialog-fade"),h=n.computed(()=>`j-tw-dialog__wrapper--${e.size}`),Q=n.computed(()=>{const I={};return e.topOffset!=="0px"&&(I.height=`calc(100vh - ${e.topOffset})`,I.top=e.topOffset),I}),m=n.computed(()=>{const I={};return g.value&&(I.width=g.value,I.maxWidth=g.value),e.position==="right"&&e.topOffset!=="0px"&&(I.height=`calc(100vh - ${e.topOffset})`,I.maxHeight=`calc(100vh - ${e.topOffset})`),I}),k=n.computed(()=>{var I;return{...e.componentBind,dialogInstance:{...((I=e.componentBind)==null?void 0:I.dialogInstance)||{},open:w,close:f,setLoading:v,changeCancelText:b,changeConfirmText:A,setFooterExtraBind:N,setDialogWidth:j}}}),u=n.computed(()=>{var I;return{...(I=e.footerExtra)==null?void 0:I.bind,...c.value}}),w=()=>{r.value=!0,n.nextTick(()=>{var I;(I=o.value)==null||I.focus()})},f=()=>{r.value=!1},v=I=>{s.value=I},b=I=>{l.value=I},A=I=>{a.value=I},N=I=>{c.value={...c.value,...I}},j=I=>{g.value=I},L=()=>{e.closeOnMask&&f()},R=()=>{e.closeOnEsc&&f()},D=()=>{const I=i.value;I!=null&&I.handleClickCancel?I.handleClickCancel():f()},E=()=>{const I=i.value;I!=null&&I.handleClickConfirm&&I.handleClickConfirm()},$=()=>{e.dialogId&&Re.destroy(e.dialogId)};return n.onErrorCaptured((I,p,P)=>(console.error("[JTWDialog] Component error captured:",I,P),!1)),t({open:w,close:f,setLoading:v,changeCancelText:b,changeConfirmText:A,setFooterExtraBind:N,setDialogWidth:j,loading:s}),{visible:r,maskRef:o,dynamicCompRef:i,loading:s,cancelText:l,confirmText:a,transitionName:y,sizeClass:h,maskStyle:Q,wrapperStyle:m,computedComponentBind:k,computedFooterExtraBind:u,open:w,close:f,setLoading:v,changeCancelText:b,changeConfirmText:A,handleMaskClick:L,handleEscKey:R,handleClickCancel:D,handleClickConfirm:E,handleAfterLeave:$}}}),d2={key:0,class:"j-tw-dialog__header"},f2={class:"j-tw-dialog__title"},h2={class:"j-tw-dialog__error"},p2={style:{"font-size":"12px",color:"#999","margin-top":"8px"}},g2={key:2,class:"j-tw-dialog__loading"},m2={key:1,class:"j-tw-dialog__footer-extra"},w2={key:2,class:"j-tw-dialog__footer"};function y2(e,t,r,o,i,s){const l=n.resolveComponent("JTWBtn");return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:e.transitionName,onAfterLeave:e.handleAfterLeave},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["j-tw-dialog__mask",{"j-tw-dialog__mask--right":e.position==="right"}]),style:n.normalizeStyle(e.maskStyle),onClick:t[2]||(t[2]=(...a)=>e.handleMaskClick&&e.handleMaskClick(...a)),onKeydown:t[3]||(t[3]=n.withKeys((...a)=>e.handleEscKey&&e.handleEscKey(...a),["esc"])),tabindex:"-1",ref:"maskRef"},[n.createElementVNode("div",{class:n.normalizeClass(["j-tw-dialog__wrapper",`j-tw-dialog__wrapper--${e.position}`,e.sizeClass]),style:n.normalizeStyle(e.wrapperStyle),onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[e.showHeader?(n.openBlock(),n.createElementBlock("div",d2,[n.createElementVNode("span",f2,[n.renderSlot(e.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(e.title),1)])]),n.createElementVNode("button",{class:"j-tw-dialog__close",onClick:t[0]||(t[0]=(...a)=>e.close&&e.close(...a)),type:"button"},[...t[4]||(t[4]=[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[n.createElementVNode("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["j-tw-dialog__body",{"j-tw-dialog__body--no-padding":!e.bodyPadded}])},[e.component?(n.openBlock(),n.createBlock(n.Suspense,{key:0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component),n.mergeProps(e.computedComponentBind,n.toHandlers(e.componentOn||{}),{ref:"dynamicCompRef"}),null,16))]),fallback:n.withCtx(()=>[...t[5]||(t[5]=[n.createElementVNode("div",{class:"j-tw-dialog__loading"},[n.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"},[n.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:n.withCtx(({error:a})=>[n.createElementVNode("div",h2,[t[6]||(t[6]=n.createElementVNode("p",null,"组件加载失败",-1)),n.createElementVNode("p",p2,n.toDisplayString((a==null?void 0:a.message)||"请刷新页面重试"),1)])]),_:1})):n.renderSlot(e.$slots,"default",{key:1}),e.loading?(n.openBlock(),n.createElementBlock("div",g2,[...t[7]||(t[7]=[n.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"},[n.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":"31.416","stroke-dashoffset":"10"})],-1)])])):n.createCommentVNode("",!0)],2),e.footerExtra?(n.openBlock(),n.createElementBlock("div",m2,[(n.openBlock(),n.createBlock(n.Suspense,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.footerExtra.component),n.normalizeProps(n.guardReactiveProps(e.computedFooterExtraBind)),null,16))]),fallback:n.withCtx(()=>[...t[8]||(t[8]=[n.createElementVNode("div",{class:"j-tw-dialog__loading"},[n.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"},[n.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}))])):n.createCommentVNode("",!0),e.showFooter?(n.openBlock(),n.createElementBlock("div",w2,[e.footerMode==="both"||e.footerMode==="cancel-only"?(n.openBlock(),n.createBlock(l,{key:0,label:e.cancelText||"取消",flat:"",onClick:e.handleClickCancel},null,8,["label","onClick"])):n.createCommentVNode("",!0),e.footerMode==="both"||e.footerMode==="confirm-only"?(n.openBlock(),n.createBlock(l,{key:1,label:e.confirmText||"确定",onClick:e.handleClickConfirm},null,8,["label","onClick"])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)],6)],38)):n.createCommentVNode("",!0)]),_:3},8,["name","onAfterLeave"])])}const d1=ue(u2,[["render",y2]]),v2=n.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}}}),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_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",b2="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",M2="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",C2="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",A2="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",_2="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",D2={key:0,src:Q2,alt:"collapse",class:"j-tw-tree-select__expand-icon"},N2={key:1,src:k2,alt:"expand",class:"j-tw-tree-select__expand-icon"},I2={key:2,class:"j-tw-tree-select__expand-placeholder"},S2={key:0,src:b2,alt:"indeterminate",class:"j-tw-tree-select__checkbox-icon"},T2={key:1,src:M2,alt:"checked",class:"j-tw-tree-select__checkbox-icon"},x2={key:2,src:C2,alt:"unchecked",class:"j-tw-tree-select__checkbox-icon"},L2={key:0,src:A2,alt:"selected",class:"j-tw-tree-select__checkbox-icon"},E2={key:1,src:_2,alt:"unselected",class:"j-tw-tree-select__checkbox-icon"};function z2(e,t,r,o,i,s){const l=n.resolveComponent("TreeNode",!0);return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.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:n.normalizeStyle({paddingLeft:`${16+e.level*28}px`,position:"relative"})},[e.level>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"j-tw-tree-select__node-line",style:n.normalizeStyle({left:`${16+(e.level-1)*28+10}px`})},null,4)):n.createCommentVNode("",!0),e.node.children&&e.node.children.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:"j-tw-tree-select__expand-btn",onClick:t[0]||(t[0]=n.withModifiers(a=>e.toggleExpand(e.node.value),["stop"]))},[e.expandedKeys.has(e.node.value)?(n.openBlock(),n.createElementBlock("img",D2)):(n.openBlock(),n.createElementBlock("img",N2))])):(n.openBlock(),n.createElementBlock("div",I2)),e.shouldShowCheckbox(e.node)?(n.openBlock(),n.createElementBlock("div",{key:3,class:"j-tw-tree-select__checkbox",onClick:t[1]||(t[1]=n.withModifiers(a=>e.handleNodeClick(e.node),["stop"]))},[e.multiple?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.isNodeIndeterminate(e.node)?(n.openBlock(),n.createElementBlock("img",S2)):e.isNodeChecked(e.node.value)?(n.openBlock(),n.createElementBlock("img",T2)):(n.openBlock(),n.createElementBlock("img",x2))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.innerValue===e.node.value?(n.openBlock(),n.createElementBlock("img",L2)):(n.openBlock(),n.createElementBlock("img",E2))],64))])):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"j-tw-tree-select__node-label",onClick:t[2]||(t[2]=a=>e.handleNodeClick(e.node))},[n.renderSlot(e.$slots,"default",{node:e.node},()=>[n.createTextVNode(n.toDisplayString(e.node.label),1)])]),e.node.count?(n.openBlock(),n.createElementBlock("span",{key:4,class:"j-tw-tree-select__node-count",onClick:t[3]||(t[3]=a=>e.handleNodeClick(e.node))},n.toDisplayString(e.node.count),1)):n.createCommentVNode("",!0)],6),e.node.children&&e.node.children.length>0&&e.expandedKeys.has(e.node.value)?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.node.children,(a,c)=>(n.openBlock(),n.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:n.withCtx(({node:g})=>[n.renderSlot(e.$slots,"default",{node:g},()=>[n.createTextVNode(n.toDisplayString(g.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)):n.createCommentVNode("",!0)],64)}const j2=ue(v2,[["render",z2]]),B2=n.defineComponent({name:"JTWTreeSelect",components:{TreeNode:j2,JTWStatusImg:rt},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,t)=>!0,blur:e=>!0},setup(e,{emit:t,expose:r}){const o=n.inject("elFormItem",null),i=n.ref(null),s=n.ref(""),l=n.ref(new Set),a=n.ref(e.modelValue),c=n.ref(new Set),g=D=>{if(!D||D.length===0)return;const E=C=>C.find(I=>I.children&&Array.isArray(I.children)&&I.children.length>0);let $=E(D);for(;$&&($.children&&Array.isArray($.children)&&$.children.length>0);)l.value.add($.value),$=E($.children)};n.watch(()=>e.data,D=>{e.defaultExpandFirst&&D.length>0&&l.value.size===0&&g(D)},{immediate:!0,deep:!0}),n.watch(()=>e.modelValue,D=>{a.value=D,e.multiple&&Array.isArray(D)&&(c.value=new Set(D))},{immediate:!0});const y=(D,E)=>{for(const $ of D){if($.value===E)return $;if($.children){const C=y($.children,E);if(C)return C}}return null},h=D=>{if(!D.children||D.children.length===0)return[];const E=[];for(const $ of D.children)E.push($.value),E.push(...h($));return E},Q=(D,E)=>{for(const $ of D)if($.children){if($.children.some(I=>I.value===E))return $;const C=Q($.children,E);if(C)return C}return null},m=D=>{const E=Q(e.data,D);return E&&E.children?E.children.map($=>$.value).filter($=>$!==D):e.data.map($=>$.value).filter($=>$!==D)},k=D=>{if(!e.checkStrictly)return;const E=Q(e.data,D);E&&E.children&&(E.children.every(C=>c.value.has(C.value))?c.value.add(E.value):c.value.delete(E.value),k(E.value))},u=D=>e.multiple?c.value.has(D):a.value===D,w=D=>{if(!e.multiple||!D.children||D.children.length===0||!e.checkStrictly)return!1;const E=D.children.map(C=>C.value),$=E.filter(C=>c.value.has(C)).length;return $>0&&$<E.length},f=D=>e.multiple?c.value.has(D):a.value===D,v=D=>e.checkStrictly||e.checkIndependently?!0:!D.children||D.children.length===0,b=(D,E)=>{if(!E)return D;const $=[];for(const C of D){const I=C.label.toLowerCase().includes(E.toLowerCase()),p=C.children?b(C.children,E):[];(I||p.length>0)&&($.push({...C,children:p.length>0?p:C.children}),p.length>0&&l.value.add(C.value))}return $},A=D=>{if(!e.nodeDataMap||Object.keys(e.nodeDataMap).length===0)return D;const E=new Set(e.selectedDataValues);return D.map($=>{const C=e.nodeDataMap[$.value];let I="";if(C&&Array.isArray(C)){const p=C.length;I=`(${C.filter(X=>E.has(X.value)).length}/${p})`}return{...$,count:I,children:$.children?A($.children):$.children}})},N=n.computed(()=>{const D=e.externalSearchText||s.value,E=b(e.data,D);return A(E)});n.watch(()=>e.externalSearchText,D=>{D!=null&&(s.value="")});const j=D=>{l.value.has(D)?l.value.delete(D):(e.accordion&&m(D).forEach($=>{l.value.delete($)}),l.value.add(D))},L=D=>{var E,$;if(!D.disabled){if(!e.checkStrictly&&!e.checkIndependently&&D.children&&D.children.length>0){j(D.value);return}if(e.multiple){const C=c.value.has(D.value),I=h(D);C?(c.value.delete(D.value),e.checkStrictly&&!e.checkIndependently&&I.forEach(X=>c.value.delete(X))):(c.value.add(D.value),e.checkStrictly&&!e.checkIndependently&&I.forEach(X=>c.value.add(X))),e.checkStrictly&&!e.checkIndependently&&k(D.value);const p=Array.from(c.value),P=p.map(X=>y(e.data,X)).filter(X=>X!==null);t("update:modelValue",p),t("change",p,P.length>0?P:null),e.validateEvent&&o&&((E=o.validate)==null||E.call(o,"change"))}else if(a.value!==D.value){a.value=D.value;const C=y(e.data,D.value);t("update:modelValue",D.value),t("change",D.value,C),e.validateEvent&&o&&(($=o.validate)==null||$.call(o,"change"))}}};return r({get $el(){return i.value}}),{treeSelectRef:i,searchText:s,expandedKeys:l,innerValue:a,innerValues:c,filteredData:N,toggleExpand:j,handleNodeClick:L,isNodeChecked:u,isNodeIndeterminate:w,isNodeSelected:f,shouldShowCheckbox:v}}}),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_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",F2={key:0,class:"j-tw-tree-select__search"},P2=["placeholder"],R2={key:0,class:"j-tw-tree-select__empty"};function $2(e,t,r,o,i,s){const l=n.resolveComponent("JTWStatusImg"),a=n.resolveComponent("TreeNode");return n.openBlock(),n.createElementBlock("div",{ref:"treeSelectRef",class:n.normalizeClass(["j-tw-tree-select",{"j-tw-tree-select--borderless":!e.bordered,"j-tw-tree-select--no-search":!e.showSearch}])},[e.showSearch?(n.openBlock(),n.createElementBlock("div",F2,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=c=>e.searchText=c),type:"text",class:"j-tw-tree-select__search-input",placeholder:e.searchPlaceholder},null,8,P2),[[n.vModelText,e.searchText]]),t[1]||(t[1]=n.createElementVNode("img",{src:O2,alt:"search",class:"j-tw-tree-select__search-icon"},null,-1))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"j-tw-tree-select__tree",style:n.normalizeStyle({maxHeight:e.maxHeight?`${e.maxHeight}px`:"none"})},[e.filteredData.length===0?(n.openBlock(),n.createElementBlock("div",R2,[n.createVNode(l,{width:32,height:32}),t[2]||(t[2]=n.createElementVNode("p",{class:"j-tw-tree-select__empty-text"},"暂无数据",-1))])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filteredData,c=>(n.openBlock(),n.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:n.withCtx(({node:g})=>[n.renderSlot(e.$slots,"default",{node:g},()=>[n.createTextVNode(n.toDisplayString(g.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 V2=ue(B2,[["render",$2]]),U2=n.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:t}){const r=n.computed(()=>{const i=!!e.label||!!t.label;return e.horizontal?!0:i});return{directionClass:n.computed(()=>e.vertical?"form-label--vertical":e.horizontal?"form-label--horizontal":"form-label--vertical"),showLabel:r,slots:t}}}),W2={class:"label-content"},Z2={class:"form-content"},Y2={class:"form-value__inner"},G2={class:"form-item-detail-wrapper"};function H2(e,t,r,o,i,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["j-tw-form-label",[e.directionClass,{required:e.required}]])},[e.showLabel?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["form-label",[e.labelClass,{required:e.required}]])},[n.createElementVNode("div",W2,[n.createTextVNode(n.toDisplayString(e.label)+" ",1),n.renderSlot(e.$slots,"label-hint")])],2)):n.createCommentVNode("",!0),n.createElementVNode("div",Z2,[n.createElementVNode("div",{class:n.normalizeClass(["form-value",e.valueClass])},[n.createElementVNode("div",Y2,[n.renderSlot(e.$slots,"default")])],2),n.createElementVNode("div",G2,[n.renderSlot(e.$slots,"form-item-detail")])])],2)}const J2=ue(U2,[["render",H2]]),X2=n.defineComponent({name:"JTWForm",components:{ElForm:fe.ElForm},inheritAttrs:!1,setup(e,{expose:t}){const r=n.ref(null);return t({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 K2(e,t,r,o,i,s){const l=n.resolveComponent("el-form");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elFormRef"},e.$attrs),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)}const q2=ue(X2,[["render",K2]]),e0=n.defineComponent({name:"JTWFormItem",components:{ElFormItem:fe.ElFormItem},inheritAttrs:!1,setup(e,{expose:t}){const r=n.ref(null);return t({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 t0(e,t,r,o,i,s){const l=n.resolveComponent("el-form-item");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elFormItemRef"},e.$attrs),n.createSlots({default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:2},[e.$slots.label?{name:"label",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"label")]),key:"0"}:void 0,e.$slots.error?{name:"error",fn:n.withCtx(({error:a})=>[n.renderSlot(e.$slots,"error",{error:a})]),key:"1"}:void 0]),1040)}const n0=ue(e0,[["render",t0]]),r0=n.defineComponent({name:"JTWInput",components:{ElInput:fe.ElInput},inheritAttrs:!1,props:{bgGrey:{type:Boolean,default:!0}},setup(e,{expose:t}){const r=n.ref(null);return t({get input(){var i;return(i=r.value)==null?void 0:i.input},get textareaStyle(){var i;return(i=r.value)==null?void 0:i.textareaStyle},focus:()=>{var i;return(i=r.value)==null?void 0:i.focus()},blur:()=>{var i;return(i=r.value)==null?void 0:i.blur()},select:()=>{var i;return(i=r.value)==null?void 0:i.select()},clear:()=>{var i;return(i=r.value)==null?void 0:i.clear()},resizeTextarea:()=>{var i;return(i=r.value)==null?void 0:i.resizeTextarea()}}),{elInputRef:r}}});function o0(e,t,r,o,i,s){const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elInputRef",class:["tw-input",{"tw-input--bg-grey":e.bgGrey}]},e.$attrs),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["class"])}const i0=ue(r0,[["render",o0]]),a0=n.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:t,attrs:r}){const o=n.ref(null),i=n.ref(!1),s=n.computed(()=>{var y;return((y=e.props)==null?void 0:y.label)||"label"}),l=n.computed(()=>{var y;return((y=e.props)==null?void 0:y.value)||"value"}),a=n.computed(()=>r.multiple!==void 0&&r.multiple!==!1),c=y=>{i.value=y};return t({focus:()=>{var y;return(y=o.value)==null?void 0:y.focus()},blur:()=>{var y;return(y=o.value)==null?void 0:y.blur()}}),{elSelectRef:o,dropdownVisible:i,labelKey:s,valueKey:l,isMultiple:a,handleVisibleChange:c}}});function l0(e,t,r,o,i,s){const l=n.resolveComponent("el-option"),a=n.resolveComponent("el-select");return n.openBlock(),n.createBlock(a,n.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}),n.createSlots({default:n.withCtx(()=>[e.options&&e.options.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.options,c=>(n.openBlock(),n.createBlock(l,{key:c[e.valueKey],label:c[e.labelKey],value:c[e.valueKey],disabled:c.disabled},null,8,["label","value","disabled"]))),128)):n.renderSlot(e.$slots,"default",{key:1})]),_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.header?{name:"header",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"header")]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"footer")]),key:"3"}:void 0]),1040,["class","onVisibleChange"])}const s0=ue(a0,[["render",l0]]),c0=n.defineComponent({name:"JTWCheckboxGroup",components:{ElCheckboxGroup:fe.ElCheckboxGroup,ElCheckbox:fe.ElCheckbox},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function u0(e,t,r,o,i,s){const l=n.resolveComponent("el-checkbox"),a=n.resolveComponent("el-checkbox-group");return n.openBlock(),n.createBlock(a,n.mergeProps({ref:"elCheckboxGroupRef",class:"j-tw-checkbox-group"},e.$attrs),{default:n.withCtx(()=>[e.options&&e.options.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.options,c=>(n.openBlock(),n.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):n.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const d0=ue(c0,[["render",u0]]),f0=n.defineComponent({name:"JTWRadio",components:{ElRadio:fe.ElRadio},inheritAttrs:!1,setup(){return{}}});function h0(e,t,r,o,i,s){const l=n.resolveComponent("el-radio");return n.openBlock(),n.createBlock(l,n.mergeProps({ref:"elRadioRef",class:"j-tw-radio"},e.$attrs),{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},16)}const p0=ue(f0,[["render",h0]]),g0=n.defineComponent({name:"JTWRadioGroup",components:{ElRadioGroup:fe.ElRadioGroup,ElRadio:fe.ElRadio},inheritAttrs:!1,props:{options:{type:Array,default:void 0}},setup(){return{}}});function m0(e,t,r,o,i,s){const l=n.resolveComponent("el-radio"),a=n.resolveComponent("el-radio-group");return n.openBlock(),n.createBlock(a,n.mergeProps({ref:"elRadioGroupRef",class:"j-tw-radio-group"},e.$attrs),{default:n.withCtx(()=>[e.options&&e.options.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.options,c=>(n.openBlock(),n.createBlock(l,{key:String(c.value),label:c.value,disabled:c.disabled},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["label","disabled"]))),128)):n.renderSlot(e.$slots,"default",{key:1})]),_:3},16)}const w0=ue(g0,[["render",m0]]),Rt={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"},$t={DARK:"dark",LIGHT:"light"},Vt={HOVER:"hover",CLICK:"click",FOCUS:"focus",CONTEXTMENU:"contextmenu"},y0=n.defineComponent({name:"JTWTooltip",components:{ElTooltip:fe.ElTooltip},props:{content:{type:[String,Number],default:""},placement:{type:String,default:Rt.TOP,validator:e=>Object.values(Rt).includes(e)},effect:{type:String,default:$t.DARK,validator:e=>Object.values($t).includes(e)},trigger:{type:String,default:Vt.HOVER,validator:e=>Object.values(Vt).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:t,expose:r}){const o=n.ref(null),i=n.computed(()=>e.content!=null?String(e.content):""),s=n.computed(()=>{const c=["j-tw-tooltip-popper"];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),l=c=>{t("visible-change",c)};return r({get $el(){var c;return(c=o.value)==null?void 0:c.$el},show:()=>{var c,g,y;(y=(g=(c=o.value)==null?void 0:c.popperRef)==null?void 0:g.show)==null||y.call(g)},hide:()=>{var c,g,y;(y=(g=(c=o.value)==null?void 0:c.popperRef)==null?void 0:g.hide)==null||y.call(g)}}),{computedPopperClass:s,elTooltipRef:o,handleVisibleChange:l,tooltipContent:i}}});function v0(e,t,r,o,i,s){const l=n.resolveComponent("el-tooltip");return n.openBlock(),n.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},n.createSlots({default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:2},[e.$slots.content?{name:"content",fn:n.withCtx(()=>[n.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 Q0=ue(y0,[["render",v0]]),k0=n.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:t}){const r=n.computed(()=>e.size&&["","default","small","large"].includes(e.size)?e.size:e.dense?"small":"default"),o=n.computed(()=>{const a={};return e.color&&(a["--el-switch-on-color"]=e.color,e.keepColor&&(a["--el-switch-off-color"]=e.color)),a}),i=n.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||t("update:modelValue",a)},handleChange:a=>{e.readonly||t("change",a)}}}});function b0(e,t,r,o,i,s){const l=n.resolveComponent("el-switch");return n.openBlock(),n.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:n.normalizeStyle(e.computedStyle),class:n.normalizeClass(e.computedClass),"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange},n.createSlots({_:2},[e.$slots.default?{name:"default",fn:n.withCtx(()=>[n.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 M0=ue(k0,[["render",b0],["__scopeId","data-v-8bf04c8a"]]);var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ge={exports:{}},C0=Ge.exports,Ut;function A0(){return Ut||(Ut=1,(function(e){(function(t,r){e.exports?e.exports=r():t.coordtransform=r()})(C0,function(){var t=52.35987755982988,r=3.141592653589793,o=6378245,i=.006693421622965943,s=function(u,w){var u=+u,w=+w,f=u-.0065,v=w-.006,b=Math.sqrt(f*f+v*v)-2e-5*Math.sin(v*t),A=Math.atan2(v,f)-3e-6*Math.cos(f*t),N=b*Math.cos(A),j=b*Math.sin(A);return[N,j]},l=function(w,u){var u=+u,w=+w,f=Math.sqrt(w*w+u*u)+2e-5*Math.sin(u*t),v=Math.atan2(u,w)+3e-6*Math.cos(w*t),b=f*Math.cos(v)+.0065,A=f*Math.sin(v)+.006;return[b,A]},a=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var f=g(w-105,u-35),v=y(w-105,u-35),b=u/180*r,A=Math.sin(b);A=1-i*A*A;var N=Math.sqrt(A);f=f*180/(o*(1-i)/(A*N)*r),v=v*180/(o/N*Math.cos(b)*r);var j=u+f,L=w+v;return[L,j]},c=function(w,u){var u=+u,w=+w;if(h(w,u))return[w,u];var f=g(w-105,u-35),v=y(w-105,u-35),b=u/180*r,A=Math.sin(b);A=1-i*A*A;var N=Math.sqrt(A);f=f*180/(o*(1-i)/(A*N)*r),v=v*180/(o/N*Math.cos(b)*r);var j=u+f,L=w+v;return[w*2-L,u*2-j]},g=function(w,u){var u=+u,w=+w,f=-100+2*w+3*u+.2*u*u+.1*w*u+.2*Math.sqrt(Math.abs(w));return f+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,f+=(20*Math.sin(u*r)+40*Math.sin(u/3*r))*2/3,f+=(160*Math.sin(u/12*r)+320*Math.sin(u*r/30))*2/3,f},y=function(w,u){var u=+u,w=+w,f=300+w+2*u+.1*w*w+.1*w*u+.1*Math.sqrt(Math.abs(w));return f+=(20*Math.sin(6*w*r)+20*Math.sin(2*w*r))*2/3,f+=(20*Math.sin(w*r)+40*Math.sin(w/3*r))*2/3,f+=(150*Math.sin(w/12*r)+300*Math.sin(w/30*r))*2/3,f},h=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}})})(Ge)),Ge.exports}var _0=A0();const f1=bt(_0);function $e(e){if(!e||!Array.isArray(e)||e.length<2)return!1;const[t,r]=e;return!isNaN(t)&&!isNaN(r)&&t!==null&&r!==null}function xe(e){return!e||!Array.isArray(e)||e.length===0?[]:e.filter(t=>$e(t)).map(t=>{if(t.length>=2)try{const[r,o]=f1.wgs84togcj02(t[0],t[1]);return[r,o]}catch(r){return console.warn("Coordinate transformation failed:",t,r),t}return t})}function ht(e){return Array.isArray(e)&&e.length>0&&Array.isArray(e[0])&&e[0].length>0&&Array.isArray(e[0][0])}function Mt(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return null;try{const[r,o]=f1.wgs84togcj02(e,t);return[r,o]}catch{return null}}var He={exports:{}},D0=He.exports,Wt;function N0(){return Wt||(Wt=1,(function(e,t){(function(r,o){e.exports=o()})(D0,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,m){var k=[];if(h.plugins)for(var u=0;u<h.plugins.length;u+=1)l.AMapUI.plugins.indexOf(h.plugins[u])==-1&&k.push(h.plugins[u]);if(a.AMapUI===s.failed)m("前次请求 AMapUI 失败");else if(a.AMapUI===s.notload){a.AMapUI=s.loading,l.AMapUI.version=h.version||l.AMapUI.version,u=l.AMapUI.version;var w=document.body||document.head,f=document.createElement("script");f.type="text/javascript",f.src="https://webapi.amap.com/ui/"+u+"/main.js",f.onerror=function(v){a.AMapUI=s.failed,m("请求 AMapUI 失败")},f.onload=function(){if(a.AMapUI=s.loaded,k.length)window.AMapUI.loadUI(k,function(){for(var v=0,b=k.length;v<b;v++){var A=k[v].split("/").slice(-1)[0];window.AMapUI[A]=arguments[v]}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(f)}else a.AMapUI===s.loaded?h.version&&h.version!==l.AMapUI.version?m("不允许多个版本 AMapUI 混用"):k.length?window.AMapUI.loadUI(k,function(){for(var v=0,b=k.length;v<b;v++){var A=k[v].split("/").slice(-1)[0];window.AMapUI[A]=arguments[v]}Q()}):Q():h.version&&h.version!==l.AMapUI.version?m("不允许多个版本 AMapUI 混用"):c.AMapUI.push(function(v){v?m(v):k.length?window.AMapUI.loadUI(k,function(){for(var b=0,A=k.length;b<A;b++){var N=k[b].split("/").slice(-1)[0];window.AMapUI[N]=arguments[b]}Q()}):Q()})})}function i(h){return new Promise(function(Q,m){if(a.Loca===s.failed)m("前次请求 Loca 失败");else if(a.Loca===s.notload){a.Loca=s.loading,l.Loca.version=h.version||l.Loca.version;var k=l.Loca.version,u=l.AMap.version.startsWith("2"),w=k.startsWith("2");if(u&&!w||!u&&w)m("JSAPI 与 Loca 版本不对应!!");else{u=l.key,w=document.body||document.head;var f=document.createElement("script");f.type="text/javascript",f.src="https://webapi.amap.com/loca?v="+k+"&key="+u,f.onerror=function(v){a.Loca=s.failed,m("请求 AMapUI 失败")},f.onload=function(){for(a.Loca=s.loaded,Q();c.Loca.length;)c.Loca.splice(0,1)[0]()},w.appendChild(f)}}else a.Loca===s.loaded?h.version&&h.version!==l.Loca.version?m("不允许多个版本 Loca 混用"):Q():h.version&&h.version!==l.Loca.version?m("不允许多个版本 Loca 混用"):c.Loca.push(function(v){v?m(v):m()})})}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:[]},g=[],y=function(h){typeof h=="function"&&(a.AMap===s.loaded?h(window.AMap):g.push(h))};return{load:function(h){return new Promise(function(Q,m){if(a.AMap==s.failed)m("");else if(a.AMap==s.notload){var k=h.key,u=h.version,w=h.plugins;k?(window.AMap&&location.host!=="lbs.amap.com"&&m("禁止多种API加载方式混用"),l.key=k,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(v){if(delete window.___onAPILoaded,v)a.AMap=s.failed,m(v);else for(a.AMap=s.loaded,r(h).then(function(){Q(window.AMap)}).catch(m);g.length;)g.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="+k+"&plugin="+l.AMap.plugins.join(","),w.onerror=function(v){a.AMap=s.failed,m(v)},u.appendChild(w)):m("请填写key")}else if(a.AMap==s.loaded)if(h.key&&h.key!==l.key)m("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)m("不允许多个版本 JSAPI 混用");else{if(k=[],h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&k.push(h.plugins[u]);k.length?window.AMap.plugin(k,function(){r(h).then(function(){Q(window.AMap)}).catch(m)}):r(h).then(function(){Q(window.AMap)}).catch(m)}else if(h.key&&h.key!==l.key)m("多个不一致的 key");else if(h.version&&h.version!==l.AMap.version)m("不允许多个版本 JSAPI 混用");else{var f=[];if(h.plugins)for(u=0;u<h.plugins.length;u+=1)l.AMap.plugins.indexOf(h.plugins[u])==-1&&f.push(h.plugins[u]);y(function(){f.length?window.AMap.plugin(f,function(){r(h).then(function(){Q(window.AMap)}).catch(m)}):r(h).then(function(){Q(window.AMap)}).catch(m)})}})},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:[]}}}})})(He)),He.exports}var I0=N0();const S0=bt(I0);let Ke="",pt="";const T0="2.0";function x0(e){Ke=e.key,pt=e.securityCode}function L0(){typeof window<"u"&&pt&&(window._AMapSecurityConfig={securityJsCode:pt})}function E0(){typeof window<"u"&&(window.forceWebGL=!0)}let Pe=null,st=null;const ct=new Set;function z0(e){return e!=null&&e.length?Array.from(new Set(e.filter(Boolean))):[]}async function j0(){if(!(typeof window.Loca<"u")){if(!st){const e=`https://webapi.amap.com/loca?v=2.0.0&key=${Ke}`;st=new Promise((t,r)=>{const o=document.createElement("script");o.type="text/javascript",o.src=e,o.onload=()=>t(),o.onerror=i=>r(i),document.head.appendChild(o)})}await st}}async function B0(e={}){const{plugins:t=[],withLoca:r=!1}=e,o=z0(t),i=typeof window<"u"?window:null;if(i!=null&&i.AMap&&!Pe&&(console.warn("[AMap Loader] 检测到已存在的 AMap 实例,将复用现有实例"),Pe=Promise.resolve(i.AMap)),!Pe){if(!Ke)throw new Error("AMap key 未配置,请在 twcptInit 中设置 amap.key");L0(),E0(),o.forEach(a=>ct.add(a)),Pe=S0.load({key:Ke,version:T0,plugins:o})}const s=await Pe;if(typeof window<"u"){const a=window;a.AMap||(a.AMap=s)}const l=o.filter(a=>!ct.has(a));return l.length&&typeof(s==null?void 0:s.plugin)=="function"&&(await new Promise(a=>{s.plugin(l,()=>a())}),l.forEach(a=>ct.add(a))),r&&await j0(),s}const O0=[116.407428,39.91923];function F0(e){const{center:t,zoom:r,viewMode:o,mapType:i,isDark:s}=e;let l=null,a=null,c=null;async function g(w){if(!w)return null;try{await B0({plugins:["AMap.DistrictSearch"]})}catch(L){return console.error("AMap 加载失败:",L),null}const f=window.AMap;if(!f)return null;const v=t.value;let b=O0;const A=Mt(v[0],v[1]);A&&$e(A)&&(b=A);const N=o.value,j=N==="3D";return l=new f.Map(w,{zoom:r.value,center:b,mapStyle:s.value?"amap://styles/dark":"amap://styles/whitesmoke",viewMode:N,...j&&{pitch:50,rotateEnable:!0,pitchEnable:!0}}),i.value==="satellite"&&(a=new f.TileLayer.Satellite,l.add(a)),c=new f.InfoWindow({isCustom:!0,offset:new f.Pixel(0,-40),closeWhenClickMap:!0}),l}function y(){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 m(w){l&&l.setMapStyle(w?"amap://styles/dark":"amap://styles/whitesmoke")}function k(w){l&&typeof l.setViewMode=="function"&&l.setViewMode(w)}function u(w){if(!l)return;const f=window.AMap;w==="satellite"?(a||(a=new f.TileLayer.Satellite),l.add(a)):(a&&(l.remove(a),a=null),l.setMapStyle(s.value?"amap://styles/dark":"amap://styles/whitesmoke"))}return{initMap:g,destroyMap:y,getMap:h,getInfoWindow:Q,setMapStyle:m,setViewMode:k,setMapType:u}}const P0=[116.398,39.92],Te={completed:"#00B42A",notCollected:"#E6A23C",defaultHighlight:"#165dff",single:"#00B42A"},R0="#FF8C00",ve={polyline:40,polylineHighlight:45,polylineBorder:44,track:50,startMarker:60,pointLabel:10};function $0(e){const{getMap:t,lineArr:r,mapLineArr:o,trackLineArr:i,highlightLineIndex:s,highlightStrokeColor:l,routeCompletedList:a,startPointIcon:c}=e;let g=null;const y=[];let h=null;function Q(){const k=t();k&&(g&&(k.remove(g),g=null),y.forEach(u=>k.remove(u)),y.length=0,h&&(k.remove(h),h=null))}function m(){const k=t();if(!k)return;Q();const u=r.value||[],w=o.value||[],f=i.value||[],v=s.value,b=l.value||Te.defaultHighlight,A=w.length>0||f.length>0;if(!A&&(!u||u.length===0))return;const N=window.AMap;if(A){const L=ve.polyline;if([w,f].forEach((R,D)=>{if(!R||R.length===0)return;const E=D===0;R.forEach($=>{const C=xe($);if(C.length===0)return;const I=new N.Polyline({path:C,strokeColor:E?Te.completed:Te.notCollected,strokeWeight:2,strokeOpacity:.85,strokeStyle:E?"solid":"dashed",lineJoin:"round",lineCap:"round",zIndex:L});y.push(I),k.add(I)})}),v>=0&&Array.isArray(u[v])&&u[v].length>0){const R=xe(u[v]);if(R.length>0){const D=new N.Polyline({path:R,strokeColor:b,strokeWeight:3,strokeOpacity:.95,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});y.push(D),k.add(D)}}if(u[0]&&u[0].length>0){const R=xe(u[0]);R.length>0&&(h=new N.Marker({position:R[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),k.add(h))}y.length>0&&k.setFitView(y)}else if(u&&u.length>0&&ht(u)){const j=a.value||[],L=j.length>0,R=L?Te.notCollected:Te.completed,D=L?3:2,E=3,$=10,C=[];if(u.forEach((I,p)=>{const P=xe(I);if(P.length===0)return;const X=p===v,Z=L&&(j[p]===!0||j[p]===2),ae=L&&Z?Te.completed:R;if(L&&X){const Y=new N.Polyline({path:P,strokeColor:b,strokeWeight:$,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineBorder}),ne=new N.Polyline({path:P,strokeColor:ae,strokeWeight:D,strokeOpacity:1,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polylineHighlight});y.push(Y,ne),C.push({polyline:Y,isHighlight:!0}),C.push({polyline:ne,isHighlight:!0})}else{const Y=new N.Polyline({path:P,strokeColor:ae,strokeWeight:X?E:D,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:X?ve.polylineHighlight:ve.polyline});y.push(Y),C.push({polyline:Y,isHighlight:X})}}),C.filter(I=>!I.isHighlight).forEach(I=>k.add(I.polyline)),C.filter(I=>I.isHighlight).forEach(I=>k.add(I.polyline)),u[0]&&u[0].length>0){const I=xe(u[0]);I.length>0&&(h=new N.Marker({position:I[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),k.add(h))}y.length>0&&k.setFitView(y)}else{const j=xe(u);j.length>0&&(g=new N.Polyline({path:j,strokeColor:Te.single,strokeWeight:3,strokeOpacity:.85,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.polyline}),k.add(g),h=new N.Marker({position:j[0],icon:new N.Icon({image:c,size:new N.Size(70,70),imageSize:new N.Size(70,70)}),offset:new N.Pixel(-35,-50),zIndex:ve.startMarker,title:"起点(机巢)"}),k.add(h),k.setFitView(g)),g&&k.setFitView([g])}}return{drawPolyline:m,clear:Q}}const 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='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 Zt(e,t){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 R0(e){const{getMap:t,getInfoWindow:r,points:i,pointType:o,circleRadius:s,isDark:l,pointIcon:a}=e,c=n.ref([]),g=n.ref([]),y=n.ref([]);function h(){const Q=t();Q&&(c.value.forEach(u=>Q.remove(u)),y.value.forEach(u=>Q.remove(u)),g.value.forEach(u=>Q.remove(u)),c.value=[],y.value=[],g.value=[])}function k(Q,u,w){const f=r(),v=t();if(!f||!v)return;const M=`map-action-button-${Date.now()}`,A=`
22
- <div id="${M}" class="map-action-button" style="
21
+ `}function V0(e){const{getMap:t,getInfoWindow:r,points:o,pointType:i,circleRadius:s,isDark:l,pointIcon:a}=e,c=n.ref([]),g=n.ref([]),y=n.ref([]);function h(){const k=t();k&&(c.value.forEach(u=>k.remove(u)),y.value.forEach(u=>k.remove(u)),g.value.forEach(u=>k.remove(u)),c.value=[],y.value=[],g.value=[])}function Q(k,u,w){const f=r(),v=t();if(!f||!v)return;const b=`map-action-button-${Date.now()}`,A=`
22
+ <div id="${b}" 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
- `;f.setContent(A),f.setOffset(new window.AMap.Pixel(0,80)),f.open(v,Q),setTimeout(()=>{const N=document.getElementById(M);N&&(N.onclick=B=>{B.stopPropagation(),u&&window.open(u,"_blank")})},100)}function m(){const Q=t();if(!Q)return;h();const u=window.AMap,w=i.value||[],f=o.value==="base",v=s.value*1e3,M=l.value;w.forEach(A=>{let N=null;if(A&&Re(A))N=A;else if(A.longitude!=null&&A.latitude!=null)N=[A.longitude,A.latitude];else return;if(!Re(N)){console.warn("Invalid position for marker:",N);return}const B=Mt(N[0],N[1]);if(!B){console.warn("Coordinate transformation failed for marker:",N);return}N=B;const L=A.name||A.nickName||A.label||"";if(f){const P=new u.Marker({position:N,title:L,icon:new u.Icon({image:h1,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)&&k(N,A.link||A.url)}),c.value.push(P),Q.add(P),L){const D=new u.Marker({position:N,content:Zt(L,M),offset:new u.Pixel(0,-40),zIndex:ve.pointLabel});y.value.push(D),Q.add(D)}}else{const P=new u.Marker({position:N,title:L,...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",$=>{console.error("Marker icon loading error:",$)});const D=new u.Circle({center:N,radius:v,fillOpacity:.1,fillColor:"#165DFF",strokeColor:"#165DFF",strokeOpacity:.5,strokeWeight:2,cursor:"pointer"}),E=()=>{r()&&r().close(),(A.link||A.url)&&k(N,A.link||A.url),A.onClick&&A.onClick(A)};if(P.on("click",E),D.on("click",E),g.value.push(D),c.value.push(P),Q.add(P),Q.add(D),L){const $=new u.Marker({position:N,content:Zt(L,M),offset:new u.Pixel(0,-75),zIndex:ve.pointLabel});y.value.push($),Q.add($)}}}),c.value.length>0&&Q.setFitView(c.value)}return{drawPoints:m,showActionButton:k,clear:h,mapPoints:c,circles:g,textLabels:y}}function $0(e){const{getMap:t,trackPoints:r}=e,i=n.ref([]);function o(){const l=t();!l||i.value.length===0||(i.value.forEach(a=>{a.pulseAnimation&&clearInterval(a.pulseAnimation),l.remove(a)}),i.value=[])}function s(){const l=t();if(!l)return;o();const a=r.value;if(!a||a.length===0){l.setFitView();return}const c=xe(a);if(c.length<2){l.setFitView();return}const g=window.AMap,y=new g.Polyline({path:c,strokeColor:F0,strokeWeight:4,strokeOpacity:.9,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.track});i.value.push(y),l.add(y),l.setFitView()}return{drawTrackPoints:s,clear:o,trackMarkers:i}}const V0=h1,U0=n.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:()=>O0},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:V0},containerStyle:{type:Object,default:()=>({})}},setup(e,{expose:t}){const r=n.ref(null),i=n.toRef(e,"isDark"),o=B0({center:n.toRef(e,"center"),zoom:n.toRef(e,"zoom"),viewMode:n.toRef(e,"viewMode"),mapType:n.toRef(e,"mapType"),isDark:i}),s=P0({getMap:o.getMap,lineArr:n.toRef(e,"lineArr"),mapLineArr:n.toRef(e,"mapLineArr"),trackLineArr:n.toRef(e,"trackLineArr"),highlightLineIndex:n.toRef(e,"highlightLineIndex"),highlightStrokeColor:n.toRef(e,"highlightStrokeColor"),routeCompletedList:n.toRef(e,"routeCompletedList"),startPointIcon:e.pointIcon}),l=R0({getMap:o.getMap,getInfoWindow:o.getInfoWindow,points:n.toRef(e,"points"),pointType:n.toRef(e,"pointType"),circleRadius:n.toRef(e,"circleRadius"),isDark:i,pointIcon:e.pointIcon}),a=$0({getMap:o.getMap,trackPoints:n.toRef(e,"trackPoints")});async function c(){await o.initMap(r.value)&&setTimeout(()=>{o.getMap()&&(l.drawPoints(),s.drawPolyline(),a.drawTrackPoints())},100)}n.watch(()=>e.lineArr,()=>{o.getMap()&&s.drawPolyline()},{deep:!0,immediate:!0}),n.watch(()=>[e.highlightLineIndex,e.highlightStrokeColor],()=>{var h,k;if(!o.getMap())return;((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((k=e.trackLineArr)==null?void 0:k.length)||0)>0||ft(e.lineArr))&&s.drawPolyline()},{deep:!0}),n.watch(()=>e.routeCompletedList,()=>{var h,k;if(!o.getMap())return;!((((h=e.mapLineArr)==null?void 0:h.length)||0)>0||(((k=e.trackLineArr)==null?void 0:k.length)||0)>0)&&ft(e.lineArr)&&s.drawPolyline()},{deep:!0}),n.watch(()=>[e.mapLineArr,e.trackLineArr],()=>{var y,h;o.getMap()&&((((y=e.mapLineArr)==null?void 0:y.length)||0)>0||(((h=e.trackLineArr)==null?void 0:h.length)||0)>0)&&s.drawPolyline()},{deep:!0}),n.watch(()=>e.trackPoints,()=>{o.getMap()&&a.drawTrackPoints()},{deep:!0,immediate:!0}),n.watch(()=>e.center,y=>{const h=o.getMap();if(!h||!y||!Re(y))return;const k=Array.isArray(y)&&y.length>=2?Mt(y[0],y[1]):null;k&&h.setCenter(k),l.drawPoints(),s.drawPolyline(),a.drawTrackPoints()},{deep:!0,immediate:!0}),n.watch(()=>e.isDark,y=>{o.getMap()&&(e.mapType==="satellite"||o.setMapStyle(y),l.drawPoints())},{immediate:!1}),n.watch(()=>e.viewMode,y=>{o.setViewMode(y)},{immediate:!1}),n.watch(()=>e.mapType,y=>{o.getMap()&&o.setMapType(y)},{immediate:!1}),n.onMounted(()=>{c()}),n.onBeforeUnmount(()=>{l.clear(),s.clear(),a.clear(),o.destroyMap()});function g(){l.clear(),s.clear(),a.clear(),o.destroyMap()}return t({getMap:o.getMap,destroyMap:g}),{mapContainer:r}}}),W0={ref:"mapContainer",class:"j-tw-amap-wrapper"};function Z0(e,t,r,i,o,s){return n.openBlock(),n.createElementBlock("div",{class:"j-tw-amap-container",style:n.normalizeStyle(e.containerStyle)},[n.createElementVNode("div",W0,null,512)],4)}const Y0=ue(U0,[["render",Z0],["__scopeId","data-v-401e2b79"]]);let Yt=!1,G0=0;function H0(){return`j-tw-message-${Date.now()}-${++G0}`}function J0(){if(Yt)return;Yt=!0;const e=document.createElement("div");document.body.appendChild(e),n.createApp(a1).mount(e)}function X0(e){J0();const t=H0(),r=56,i=e.offset??20,o=Ie.value.filter(a=>a.visible).length,s=i+o*r,l={id:t,type:e.type??"info",content:e.content,duration:e.duration??3e3,showClose:e.showClose??!1,offset:s,onClose:e.onClose,visible:!0};return Ie.value.push(l),{id:t,close:()=>{const a=Ie.value.findIndex(c=>c.id===t);a!==-1&&(Ie.value[a].visible=!1)}}}const p1={show(e){return X0(e)},closeAll(){Ie.value.forEach(e=>{e.visible=!1})}};function g1(e){return new Promise(t=>{const r=n.ref(!1),i=document.createElement("div");document.body.appendChild(i);const o=()=>{g.unmount(),document.body.contains(i)&&document.body.removeChild(i)},s=y=>{r.value=!1,setTimeout(o,250),t(y)},l=()=>s(!0),a=()=>s(!1),c=n.defineComponent({setup(){return()=>n.h(l1,{visible:r.value,message:e.message,icon:e.icon,confirmText:e.confirmText,cancelText:e.cancelText,onConfirm:l,onCancel:a})}}),g=n.createApp(c);g.mount(i),n.nextTick(()=>{r.value=!0})})}const K0="#165DFF",q0="#000000",eo="#FFFFFF",to="#00B42A",no="#FF7D00",ro="#F53F3F",oo="#14C9C9",io="#D97706",ao="#F7BA1E",lo="#3491FA",so="#722ED1",co="#9FDB1D",uo="#F5319D",fo="#F77EBE",Gt={primary:K0,"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:q0,white:eo,green:to,"green-1":"#00875A","green-2":"#00B42A","green-3":"#23C343","green-4":"#4CD263","green-5":"#7BE188","green-6":"#AFF0B5",orange:no,"orange-1":"#D25F00","orange-2":"#FF7D00","orange-3":"#FF9A2E","orange-4":"#FFB65D","orange-5":"#FFCF8B","orange-6":"#FFE4BA",red:ro,"red-1":"#CB2634","red-2":"#F53F3F","red-3":"#F76560","red-4":"#F98981","red-5":"#FDACA7","red-6":"#FFCCC7",cyan:oo,"cyan-1":"#0DA5AA","cyan-2":"#14C9C9","cyan-3":"#37D4CF","cyan-4":"#5ADFD7","cyan-5":"#87E8DD","cyan-6":"#B2F1E8",brown:io,"brown-1":"#B35C00","brown-2":"#D97706","brown-3":"#E89A3C","brown-4":"#F3B765","brown-5":"#F9D28F","brown-6":"#FDEAB8",yellow:ao,"yellow-1":"#D48806","yellow-2":"#F7BA1E","yellow-3":"#FADC19","yellow-4":"#FCEE21","yellow-5":"#FEF65B","yellow-6":"#FFFB8F",blue:lo,"blue-1":"#146AFF","blue-2":"#3491FA","blue-3":"#57A3F7","blue-4":"#79BBF8","blue-5":"#A8D3FB","blue-6":"#C7E2FD",purple:so,"purple-1":"#551DB1","purple-2":"#722ED1","purple-3":"#8E51DA","purple-4":"#A871E3","purple-5":"#C396ED","purple-6":"#DDBEF6",lime:co,"lime-1":"#7BC616","lime-2":"#9FDB1D","lime-3":"#B4E04B","lime-4":"#C8E672","lime-5":"#DCEC9A","lime-6":"#EFF4C6",magenta:uo,"magenta-1":"#CB247A","magenta-2":"#F5319D","magenta-3":"#F754B0","magenta-4":"#F975C2","magenta-5":"#FB9DD1","magenta-6":"#FDC5E3",pink:fo,"pink-1":"#D6549D","pink-2":"#F77EBE","pink-3":"#F99AC8","pink-4":"#FAB4D4","pink-5":"#FCCEE0","pink-6":"#FEE7EF"},ho=async e=>(await{"zh-CN":()=>Promise.resolve().then(()=>require("./index-C5mRo5Yi.cjs")),"en-US":()=>Promise.resolve().then(()=>require("./index-BrYPwI7i.cjs"))}[e]()).default,ct={},po=async e=>(ct[e]||(ct[e]=await ho(e)),ct[e]),Ct=n.ref("zh-CN"),pt=n.ref(null);function go(e,t){const r=t.split(".");let i=e;for(const o of r)if(i&&typeof i=="object"&&o in i)i=i[o];else return t;return typeof i=="string"?i:t}function mo(e,t){return t?e.replace(/\{(\w+)\}/g,(r,i)=>t[i]!==void 0?String(t[i]):r):e}function m1(e,t){if(!pt.value)return console.warn("[twcpt] i18n messages not loaded yet, please call setLocale first"),e;const r=go(pt.value,e);return mo(r,t)}async function Ke(e){Ct.value=e;try{pt.value=await po(e)}catch(t){console.error(`[twcpt] Failed to load locale messages for ${e}:`,t)}}function w1(){return Ct.value}function wo(){return{t:m1,locale:Ct,setLocale:Ke,getLocale:w1}}const y1=Symbol("pagePermissionIds"),v1=Symbol("pageActionPermissionIds");let rt={};function yo(e){const{app:t,pagePermissionIds:r,pageActionPermissionIds:i,projectPermissionId:o,defaultLanguage:s,colors:l,disableBFCache:a,amap:c}=e;rt={colors:l,projectPermissionId:o},c&&(S0(c),console.log("[twcpt] AMap configuration set successfully.")),a&&window.addEventListener("pageshow",h=>{h.persisted&&window.location.reload()}),s?Ke(s).catch(h=>{console.error("[twcpt] Failed to set default language:",h)}):Ke("zh-CN").catch(h=>{console.error("[twcpt] Failed to load default locale:",h)});const g=r?n.isRef(r)?r:n.ref(r):void 0,y=i?n.isRef(i)?i:n.ref(i):void 0;g&&(console.log("[twcpt] Permission IDs provided:",g.value),t.provide(y1,g)),y&&(console.log("[twcpt] Action Permission IDs provided:",y.value),t.provide(v1,y)),l&&vo(l),o&&console.log("[twcpt] Project Permission ID:",o),console.log("[twcpt] Initialization completed successfully.")}function vo(e){const t=e&&Object.keys(e).length>0,r=t?{...Gt,...e}:Gt;let i=document.getElementById("twcpt-color-vars");i||(i=document.createElement("style"),i.id="twcpt-color-vars",document.head.appendChild(i));const o=Object.entries(r).map(([s,l])=>` --j-color-${s}: ${l};`).join(`
49
- `);i.textContent=`:root {
50
- ${o}
48
+ `;f.setContent(A),f.setOffset(new window.AMap.Pixel(0,80)),f.open(v,k),setTimeout(()=>{const N=document.getElementById(b);N&&(N.onclick=j=>{j.stopPropagation(),u&&window.open(u,"_blank")})},100)}function m(){const k=t();if(!k)return;h();const u=window.AMap,w=o.value||[],f=i.value==="base",v=s.value*1e3,b=l.value;w.forEach(A=>{let N=null;if(A&&$e(A))N=A;else if(A.longitude!=null&&A.latitude!=null)N=[A.longitude,A.latitude];else return;if(!$e(N)){console.warn("Invalid position for marker:",N);return}const j=Mt(N[0],N[1]);if(!j){console.warn("Coordinate transformation failed for marker:",N);return}N=j;const L=A.name||A.nickName||A.label||"";if(f){const R=new u.Marker({position:N,title:L,icon:new u.Icon({image:h1,size:new u.Size(60,60),imageSize:new u.Size(60,60)}),offset:new u.Pixel(-11,-25)});if(R.on("error",D=>{console.error("Marker icon loading error:",D)}),R.on("click",()=>{r()&&r().close(),(A.link||A.url)&&Q(N,A.link||A.url)}),c.value.push(R),k.add(R),L){const D=new u.Marker({position:N,content:Zt(L,b),offset:new u.Pixel(0,-40),zIndex:ve.pointLabel});y.value.push(D),k.add(D)}}else{const R=new u.Marker({position:N,title:L,...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)});R.on("error",$=>{console.error("Marker icon loading error:",$)});const D=new u.Circle({center:N,radius:v,fillOpacity:.1,fillColor:"#165DFF",strokeColor:"#165DFF",strokeOpacity:.5,strokeWeight:2,cursor:"pointer"}),E=()=>{r()&&r().close(),(A.link||A.url)&&Q(N,A.link||A.url),A.onClick&&A.onClick(A)};if(R.on("click",E),D.on("click",E),g.value.push(D),c.value.push(R),k.add(R),k.add(D),L){const $=new u.Marker({position:N,content:Zt(L,b),offset:new u.Pixel(0,-75),zIndex:ve.pointLabel});y.value.push($),k.add($)}}}),c.value.length>0&&k.setFitView(c.value)}return{drawPoints:m,showActionButton:Q,clear:h,mapPoints:c,circles:g,textLabels:y}}function U0(e){const{getMap:t,trackPoints:r}=e,o=n.ref([]);function i(){const l=t();!l||o.value.length===0||(o.value.forEach(a=>{a.pulseAnimation&&clearInterval(a.pulseAnimation),l.remove(a)}),o.value=[])}function s(){const l=t();if(!l)return;i();const a=r.value;if(!a||a.length===0){l.setFitView();return}const c=xe(a);if(c.length<2){l.setFitView();return}const g=window.AMap,y=new g.Polyline({path:c,strokeColor:R0,strokeWeight:4,strokeOpacity:.9,strokeStyle:"solid",lineJoin:"round",lineCap:"round",zIndex:ve.track});o.value.push(y),l.add(y),l.setFitView()}return{drawTrackPoints:s,clear:i,trackMarkers:o}}const W0=h1,Z0=n.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:()=>P0},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:W0},containerStyle:{type:Object,default:()=>({})}},setup(e,{expose:t}){const r=n.ref(null),o=n.toRef(e,"isDark"),i=F0({center:n.toRef(e,"center"),zoom:n.toRef(e,"zoom"),viewMode:n.toRef(e,"viewMode"),mapType:n.toRef(e,"mapType"),isDark:o}),s=$0({getMap:i.getMap,lineArr:n.toRef(e,"lineArr"),mapLineArr:n.toRef(e,"mapLineArr"),trackLineArr:n.toRef(e,"trackLineArr"),highlightLineIndex:n.toRef(e,"highlightLineIndex"),highlightStrokeColor:n.toRef(e,"highlightStrokeColor"),routeCompletedList:n.toRef(e,"routeCompletedList"),startPointIcon:e.pointIcon}),l=V0({getMap:i.getMap,getInfoWindow:i.getInfoWindow,points:n.toRef(e,"points"),pointType:n.toRef(e,"pointType"),circleRadius:n.toRef(e,"circleRadius"),isDark:o,pointIcon:e.pointIcon}),a=U0({getMap:i.getMap,trackPoints:n.toRef(e,"trackPoints")});async function c(){await i.initMap(r.value)&&setTimeout(()=>{i.getMap()&&(l.drawPoints(),s.drawPolyline(),a.drawTrackPoints())},100)}n.watch(()=>e.lineArr,()=>{i.getMap()&&s.drawPolyline()},{deep:!0,immediate:!0}),n.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}),n.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}),n.watch(()=>[e.mapLineArr,e.trackLineArr],()=>{var y,h;i.getMap()&&((((y=e.mapLineArr)==null?void 0:y.length)||0)>0||(((h=e.trackLineArr)==null?void 0:h.length)||0)>0)&&s.drawPolyline()},{deep:!0}),n.watch(()=>e.trackPoints,()=>{i.getMap()&&a.drawTrackPoints()},{deep:!0,immediate:!0}),n.watch(()=>e.center,y=>{const h=i.getMap();if(!h||!y||!$e(y))return;const Q=Array.isArray(y)&&y.length>=2?Mt(y[0],y[1]):null;Q&&h.setCenter(Q),l.drawPoints(),s.drawPolyline(),a.drawTrackPoints()},{deep:!0,immediate:!0}),n.watch(()=>e.isDark,y=>{i.getMap()&&(e.mapType==="satellite"||i.setMapStyle(y),l.drawPoints())},{immediate:!1}),n.watch(()=>e.viewMode,y=>{i.setViewMode(y)},{immediate:!1}),n.watch(()=>e.mapType,y=>{i.getMap()&&i.setMapType(y)},{immediate:!1}),n.onMounted(()=>{c()}),n.onBeforeUnmount(()=>{l.clear(),s.clear(),a.clear(),i.destroyMap()});function g(){l.clear(),s.clear(),a.clear(),i.destroyMap()}return t({getMap:i.getMap,destroyMap:g}),{mapContainer:r}}}),Y0={ref:"mapContainer",class:"j-tw-amap-wrapper"};function G0(e,t,r,o,i,s){return n.openBlock(),n.createElementBlock("div",{class:"j-tw-amap-container",style:n.normalizeStyle(e.containerStyle)},[n.createElementVNode("div",Y0,null,512)],4)}const H0=ue(Z0,[["render",G0],["__scopeId","data-v-401e2b79"]]);let Yt=!1,J0=0;function X0(){return`j-tw-message-${Date.now()}-${++J0}`}function K0(){if(Yt)return;Yt=!0;const e=document.createElement("div");document.body.appendChild(e),n.createApp(a1).mount(e)}function q0(e){K0();const t=X0(),r=56,o=e.offset??20,i=Ie.value.filter(a=>a.visible).length,s=o+i*r,l={id:t,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 Ie.value.push(l),{id:t,close:()=>{const a=Ie.value.findIndex(c=>c.id===t);a!==-1&&(Ie.value[a].visible=!1)}}}const p1={show(e){return q0(e)},closeAll(){Ie.value.forEach(e=>{e.visible=!1})}};function g1(e){return new Promise(t=>{const r=n.ref(!1),o=document.createElement("div");document.body.appendChild(o);const i=()=>{g.unmount(),document.body.contains(o)&&document.body.removeChild(o)},s=y=>{r.value=!1,setTimeout(i,250),t(y)},l=()=>s(!0),a=()=>s(!1),c=n.defineComponent({setup(){return()=>n.h(l1,{visible:r.value,message:e.message,html:e.html,icon:e.icon,confirmText:e.confirmText,cancelText:e.cancelText,onConfirm:l,onCancel:a})}}),g=n.createApp(c);g.mount(o),n.nextTick(()=>{r.value=!0})})}const eo="#165DFF",to="#000000",no="#FFFFFF",ro="#00B42A",oo="#FF7D00",io="#F53F3F",ao="#14C9C9",lo="#D97706",so="#F7BA1E",co="#3491FA",uo="#722ED1",fo="#9FDB1D",ho="#F5319D",po="#F77EBE",Gt={primary:eo,"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:to,white:no,green:ro,"green-1":"#00875A","green-2":"#00B42A","green-3":"#23C343","green-4":"#4CD263","green-5":"#7BE188","green-6":"#AFF0B5",orange:oo,"orange-1":"#D25F00","orange-2":"#FF7D00","orange-3":"#FF9A2E","orange-4":"#FFB65D","orange-5":"#FFCF8B","orange-6":"#FFE4BA",red:io,"red-1":"#CB2634","red-2":"#F53F3F","red-3":"#F76560","red-4":"#F98981","red-5":"#FDACA7","red-6":"#FFCCC7",cyan:ao,"cyan-1":"#0DA5AA","cyan-2":"#14C9C9","cyan-3":"#37D4CF","cyan-4":"#5ADFD7","cyan-5":"#87E8DD","cyan-6":"#B2F1E8",brown:lo,"brown-1":"#B35C00","brown-2":"#D97706","brown-3":"#E89A3C","brown-4":"#F3B765","brown-5":"#F9D28F","brown-6":"#FDEAB8",yellow:so,"yellow-1":"#D48806","yellow-2":"#F7BA1E","yellow-3":"#FADC19","yellow-4":"#FCEE21","yellow-5":"#FEF65B","yellow-6":"#FFFB8F",blue:co,"blue-1":"#146AFF","blue-2":"#3491FA","blue-3":"#57A3F7","blue-4":"#79BBF8","blue-5":"#A8D3FB","blue-6":"#C7E2FD",purple:uo,"purple-1":"#551DB1","purple-2":"#722ED1","purple-3":"#8E51DA","purple-4":"#A871E3","purple-5":"#C396ED","purple-6":"#DDBEF6",lime:fo,"lime-1":"#7BC616","lime-2":"#9FDB1D","lime-3":"#B4E04B","lime-4":"#C8E672","lime-5":"#DCEC9A","lime-6":"#EFF4C6",magenta:ho,"magenta-1":"#CB247A","magenta-2":"#F5319D","magenta-3":"#F754B0","magenta-4":"#F975C2","magenta-5":"#FB9DD1","magenta-6":"#FDC5E3",pink:po,"pink-1":"#D6549D","pink-2":"#F77EBE","pink-3":"#F99AC8","pink-4":"#FAB4D4","pink-5":"#FCCEE0","pink-6":"#FEE7EF"},go=async e=>(await{"zh-CN":()=>Promise.resolve().then(()=>require("./index-C5mRo5Yi.cjs")),"en-US":()=>Promise.resolve().then(()=>require("./index-BrYPwI7i.cjs"))}[e]()).default,ut={},mo=async e=>(ut[e]||(ut[e]=await go(e)),ut[e]),Ct=n.ref("zh-CN"),gt=n.ref(null);function wo(e,t){const r=t.split(".");let o=e;for(const i of r)if(o&&typeof o=="object"&&i in o)o=o[i];else return t;return typeof o=="string"?o:t}function yo(e,t){return t?e.replace(/\{(\w+)\}/g,(r,o)=>t[o]!==void 0?String(t[o]):r):e}function m1(e,t){if(!gt.value)return console.warn("[twcpt] i18n messages not loaded yet, please call setLocale first"),e;const r=wo(gt.value,e);return yo(r,t)}async function qe(e){Ct.value=e;try{gt.value=await mo(e)}catch(t){console.error(`[twcpt] Failed to load locale messages for ${e}:`,t)}}function w1(){return Ct.value}function vo(){return{t:m1,locale:Ct,setLocale:qe,getLocale:w1}}const y1=Symbol("pagePermissionIds"),v1=Symbol("pageActionPermissionIds");let ot={};function Qo(e){const{app:t,router:r,pagePermissionIds:o,pageActionPermissionIds:i,projectPermissionId:s,defaultLanguage:l,colors:a,disableBFCache:c,amap:g}=e;ot={colors:a,projectPermissionId:s},Re.configure({router:r}),r&&(r.beforeEach(()=>{Re.destroyAll()}),console.log("[twcpt] Router listener set successfully.")),g&&(x0(g),console.log("[twcpt] AMap configuration set successfully.")),c&&window.addEventListener("pageshow",Q=>{Q.persisted&&window.location.reload()}),l?qe(l).catch(Q=>{console.error("[twcpt] Failed to set default language:",Q)}):qe("zh-CN").catch(Q=>{console.error("[twcpt] Failed to load default locale:",Q)});const y=o?n.isRef(o)?o:n.ref(o):void 0,h=i?n.isRef(i)?i:n.ref(i):void 0;y&&(console.log("[twcpt] Permission IDs provided:",y.value),t.provide(y1,y)),h&&(console.log("[twcpt] Action Permission IDs provided:",h.value),t.provide(v1,h)),a&&ko(a),s&&console.log("[twcpt] Project Permission ID:",s),console.log("[twcpt] Initialization completed successfully.")}function ko(e){const t=e&&Object.keys(e).length>0,r=t?{...Gt,...e}:Gt;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
+ `);o.textContent=`:root {
50
+ ${i}
51
51
  }
52
52
 
53
53
  .twcpt-container {
54
- ${o}
55
- }`,console.log("[twcpt] Custom colors applied:",t?e:"Using default colors")}function Qo(){return rt.colors}function ko(){return rt.projectPermissionId}function bo(){return{...rt}}const Ht={"app:clear":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwIDIwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQoNCiAgICA8ZyBpZD0iY3VzdG9tLXN2ZyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSJlU0lNLUdyb3VwLUFkZC1maXJzdC1sZXZlbC1ncm91cHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03MTkuMDAwMDAwLCAtMzA5LjAwMDAwMCkiPg0KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hC0xNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzYxLjAwMDAwMCwgMjAzLjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkwLjAwMDAwMCwgNzIuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtN+Wkh+S7vS04IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMjYuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNjguMDAwMDAwLCA4LjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PC9yZWN0Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQ9Ik0xMCwxLjY2NjY2NjY3IEM1LjQwNSwxLjY2NjY2NjY3IDEuNjY2NjY2NjcsNS40MDUgMS42NjY2NjY2NywxMCBDMS42NjY2NjY2NywxNC41OTUgNS40MDUsMTguMzMzMzMzMyAxMCwxOC4zMzMzMzMzIEMxNC41OTUsMTguMzMzMzMzMyAxOC4zMzMzMzMzLDE0LjU5NSAxOC4zMzMzMzMzLDEwIEMxOC4zMzMzMzMzLDUuNDA1IDE0LjU5NSwxLjY2NjY2NjY3IDEwLDEuNjY2NjY2NjciDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPSJQYXRoIiBmaWxsPSIjRUJFQ0YwIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkPSJNMTIuMjU1ODMzMyw3Ljc0NDE2NjY3IEMxMS45Myw3LjQxODMzMzMzIDExLjQwMzMzMzMsNy40MTgzMzMzMyAxMS4wNzc1LDcuNzQ0MTY2NjcgTDEwLDguODIxNjY2NjcgTDguOTIyNSw3Ljc0NDE2NjY3IEM4LjU5NjY2NjY3LDcuNDE4MzMzMzMgOC4wNyw3LjQxODMzMzMzIDcuNzQ0MTY2NjcsNy43NDQxNjY2NyBDNy40MTgzMzMzMyw4LjA3IDcuNDE4MzMzMzMsOC41OTY2NjY2NyA3Ljc0NDE2NjY3LDguOTIyNSBMOC44MjE2NjY2NywxMCBMNy43NDQxNjY2NywxMS4wNzc1IEM3LjQxODMzMzMzLDExLjQwMzMzMzMgNy40MTgzMzMzMywxMS45MyA3Ljc0NDE2NjY3LDEyLjI1NTgzMzMgQzcuOTA2NjY2NjcsMTIuNDE4MzMzMyA4LjEyLDEyLjUgOC4zMzMzMzMzMywxMi41IEM4LjU0NjY2NjY3LDEyLjUgOC43NiwxMi40MTgzMzMzIDguOTIyNSwxMi4yNTU4MzMzIEwxMCwxMS4xNzgzMzMzIEwxMS4wNzc1LDEyLjI1NTgzMzMgQzExLjI0LDEyLjQxODMzMzMgMTEuNDUzMzMzMywxMi41IDExLjY2NjY2NjcsMTIuNSBDMTEuODgsMTIuNSAxMi4wOTMzMzMzLDEyLjQxODMzMzMgMTIuMjU1ODMzMywxMi4yNTU4MzMzIEMxMi41ODE2NjY3LDExLjkzIDEyLjU4MTY2NjcsMTEuNDAzMzMzMyAxMi4yNTU4MzMzLDExLjA3NzUgTDExLjE3ODMzMzMsMTAgTDEyLjI1NTgzMzMsOC45MjI1IEMxMi41ODE2NjY3LDguNTk2NjY2NjcgMTIuNTgxNjY2Nyw4LjA3IDEyLjI1NTgzMzMsNy43NDQxNjY2NyINCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9IlBhdGgiIGZpbGw9IiM5OTlEQjQiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+"},Mo=e=>{const t="img:",r=[e,e.toLowerCase()];if(e.startsWith("app:")){const o=e.slice(4);r.push(o,o.toLowerCase())}else r.push(`app:${e}`,`app:${e.toLowerCase()}`);const i=r.find(o=>Ht[o]!==void 0);if(i)return{icon:t+Ht[i]}};function Co(...e){return t=>{for(const r of e){if(!r)continue;const i=r(t);if(i!==void 0)return i}}}function Q1(e,t,r=o=>JSON.stringify(o),i=o=>JSON.parse(o)){const o=e,s=()=>{try{const c=localStorage.getItem(o),g=c?i(c):t;return console.log(`[storageSync] 初始化 ${o}:`,g),g}catch(c){return console.warn(`[storageSync] Failed to read ${o}:`,c),t}},l=n.ref(s());n.watch(l,(c,g)=>{try{console.log(`[storageSync] ${o} 更新:`,{oldValue:g,newValue:c,timestamp:new Date().toISOString()}),localStorage.setItem(o,r(c)),console.log(`[storageSync] ${o} 已写入 localStorage`)}catch(y){console.error(`[storageSync] Failed to write ${o}:`,y)}},{deep:!0});const a=c=>{if(c.key===o&&c.newValue!==null)try{const g=i(c.newValue);console.log(`[storageSync] 监听到 storage 事件 ${o}:`,{oldValue:c.oldValue,newValue:c.newValue,url:c.url,timestamp:new Date().toISOString()}),JSON.stringify(l.value)!==JSON.stringify(g)?(console.log(`[storageSync] ${o} 从其他标签页同步更新:`,g),l.value=g):console.log(`[storageSync] ${o} 值未改变,跳过更新`)}catch(g){console.warn(`[storageSync] Failed to parse storage event for ${o}:`,g)}else c.key===o&&c.newValue===null&&(console.log(`[storageSync] ${o} 被清空,重置为初始值`),l.value=t)};return window.addEventListener("storage",a),l}const k1=e=>e.join(","),b1=e=>e?e.split(",").filter(Boolean):[];function Ao(e){return Q1(e,[],k1,b1)}function _o(e){return Q1(e,[],k1,b1)}function Jt(e){if(typeof e=="string")return e;if(e==null)return"请求失败";try{return JSON.stringify(e)}catch{return"请求失败"}}function Do(e){const t=p1,r=(e==null?void 0:e.intercept)??!1;let i;const o=a=>typeof a=="object"&&a!==null&&"ok"in a&&"code"in a&&"data"in a;return{run:async a=>{try{const c=await a(),g=o(c)?c:o(c==null?void 0:c.data)?c.data:void 0;if(!g){r||t.show({content:"响应格式错误",type:"error"});return}if((g==null?void 0:g.ok)===!0&&(g==null?void 0:g.code)===0)return g.data;r&&i?i(g):r||t.show({content:Jt(g==null?void 0:g.msg),type:"error"});return}catch(c){r||t.show({content:Jt((c==null?void 0:c.msg)??(c==null?void 0:c.message)),type:"error"});return}},error:a=>{i=a}}}function No(e,t={}){const{interval:r=5e3,immediate:i=!1,onError:o,autoStopWhenHidden:s=!0}=t;let l=null,a=0,c=r,g=!document.hidden,y=!1;const h=async()=>{if(s&&!g){l=null,y=!1;return}const f=Date.now();if(f-a>=c){a=f;try{await e()}catch(M){o?o(M):console.error("RAFPolling error:",M)}}y&&(l=requestAnimationFrame(h))},k=()=>{g=!document.hidden,g&&y&&l===null?(a=Date.now(),h()):!g&&s&&Q()},m=()=>{y||(y=!0,a=Date.now(),i&&e().catch(f=>{o?o(f):console.error("RAFPolling error:",f)}),h(),s&&document.addEventListener("visibilitychange",k))},Q=()=>{y=!1,l!==null&&(cancelAnimationFrame(l),l=null),s&&document.removeEventListener("visibilitychange",k)};return{start:m,stop:Q,isRunning:()=>y,updateInterval:f=>{c=f}}}function Ze(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 ut={exports:{}};/*!
54
+ ${i}
55
+ }`,console.log("[twcpt] Custom colors applied:",t?e:"Using default colors")}function bo(){return ot.colors}function Mo(){return ot.projectPermissionId}function Co(){return{...ot}}const Ht={"app:clear":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjIwcHgiIGhlaWdodD0iMjBweCIgdmlld0JveD0iMCAwIDIwIDIwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyINCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQoNCiAgICA8ZyBpZD0iY3VzdG9tLXN2ZyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSJlU0lNLUdyb3VwLUFkZC1maXJzdC1sZXZlbC1ncm91cHMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03MTkuMDAwMDAwLCAtMzA5LjAwMDAwMCkiPg0KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hC0xNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzYxLjAwMDAwMCwgMjAzLjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkwLjAwMDAwMCwgNzIuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtN+Wkh+S7vS04IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgMjYuMDAwMDAwKSI+DQogICAgICAgICAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNjguMDAwMDAwLCA4LjAwMDAwMCkiPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PC9yZWN0Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGQ9Ik0xMCwxLjY2NjY2NjY3IEM1LjQwNSwxLjY2NjY2NjY3IDEuNjY2NjY2NjcsNS40MDUgMS42NjY2NjY2NywxMCBDMS42NjY2NjY2NywxNC41OTUgNS40MDUsMTguMzMzMzMzMyAxMCwxOC4zMzMzMzMzIEMxNC41OTUsMTguMzMzMzMzMyAxOC4zMzMzMzMzLDE0LjU5NSAxOC4zMzMzMzMzLDEwIEMxOC4zMzMzMzMzLDUuNDA1IDE0LjU5NSwxLjY2NjY2NjY3IDEwLDEuNjY2NjY2NjciDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPSJQYXRoIiBmaWxsPSIjRUJFQ0YwIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkPSJNMTIuMjU1ODMzMyw3Ljc0NDE2NjY3IEMxMS45Myw3LjQxODMzMzMzIDExLjQwMzMzMzMsNy40MTgzMzMzMyAxMS4wNzc1LDcuNzQ0MTY2NjcgTDEwLDguODIxNjY2NjcgTDguOTIyNSw3Ljc0NDE2NjY3IEM4LjU5NjY2NjY3LDcuNDE4MzMzMzMgOC4wNyw3LjQxODMzMzMzIDcuNzQ0MTY2NjcsNy43NDQxNjY2NyBDNy40MTgzMzMzMyw4LjA3IDcuNDE4MzMzMzMsOC41OTY2NjY2NyA3Ljc0NDE2NjY3LDguOTIyNSBMOC44MjE2NjY2NywxMCBMNy43NDQxNjY2NywxMS4wNzc1IEM3LjQxODMzMzMzLDExLjQwMzMzMzMgNy40MTgzMzMzMywxMS45MyA3Ljc0NDE2NjY3LDEyLjI1NTgzMzMgQzcuOTA2NjY2NjcsMTIuNDE4MzMzMyA4LjEyLDEyLjUgOC4zMzMzMzMzMywxMi41IEM4LjU0NjY2NjY3LDEyLjUgOC43NiwxMi40MTgzMzMzIDguOTIyNSwxMi4yNTU4MzMzIEwxMCwxMS4xNzgzMzMzIEwxMS4wNzc1LDEyLjI1NTgzMzMgQzExLjI0LDEyLjQxODMzMzMgMTEuNDUzMzMzMywxMi41IDExLjY2NjY2NjcsMTIuNSBDMTEuODgsMTIuNSAxMi4wOTMzMzMzLDEyLjQxODMzMzMgMTIuMjU1ODMzMywxMi4yNTU4MzMzIEMxMi41ODE2NjY3LDExLjkzIDEyLjU4MTY2NjcsMTEuNDAzMzMzMyAxMi4yNTU4MzMzLDExLjA3NzUgTDExLjE3ODMzMzMsMTAgTDEyLjI1NTgzMzMsOC45MjI1IEMxMi41ODE2NjY3LDguNTk2NjY2NjcgMTIuNTgxNjY2Nyw4LjA3IDEyLjI1NTgzMzMsNy43NDQxNjY2NyINCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ9IlBhdGgiIGZpbGw9IiM5OTlEQjQiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+"},Ao=e=>{const t="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=>Ht[i]!==void 0);if(o)return{icon:t+Ht[o]}};function _o(...e){return t=>{for(const r of e){if(!r)continue;const o=r(t);if(o!==void 0)return o}}}function Q1(e,t,r=i=>JSON.stringify(i),o=i=>JSON.parse(i)){const i=e,s=()=>{try{const c=localStorage.getItem(i),g=c?o(c):t;return console.log(`[storageSync] 初始化 ${i}:`,g),g}catch(c){return console.warn(`[storageSync] Failed to read ${i}:`,c),t}},l=n.ref(s());n.watch(l,(c,g)=>{try{console.log(`[storageSync] ${i} 更新:`,{oldValue:g,newValue:c,timestamp:new Date().toISOString()}),localStorage.setItem(i,r(c)),console.log(`[storageSync] ${i} 已写入 localStorage`)}catch(y){console.error(`[storageSync] Failed to write ${i}:`,y)}},{deep:!0});const a=c=>{if(c.key===i&&c.newValue!==null)try{const g=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(g)?(console.log(`[storageSync] ${i} 从其他标签页同步更新:`,g),l.value=g):console.log(`[storageSync] ${i} 值未改变,跳过更新`)}catch(g){console.warn(`[storageSync] Failed to parse storage event for ${i}:`,g)}else c.key===i&&c.newValue===null&&(console.log(`[storageSync] ${i} 被清空,重置为初始值`),l.value=t)};return window.addEventListener("storage",a),l}const k1=e=>e.join(","),b1=e=>e?e.split(",").filter(Boolean):[];function Do(e){return Q1(e,[],k1,b1)}function No(e){return Q1(e,[],k1,b1)}function Jt(e){if(typeof e=="string")return e;if(e==null)return"请求失败";try{return JSON.stringify(e)}catch{return"请求失败"}}function Io(e){const t=p1,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(),g=i(c)?c:i(c==null?void 0:c.data)?c.data:void 0;if(!g){r||t.show({content:"响应格式错误",type:"error"});return}if((g==null?void 0:g.ok)===!0&&(g==null?void 0:g.code)===0)return g.data;r&&o?o(g):r||t.show({content:Jt(g==null?void 0:g.msg),type:"error"});return}catch(c){r||t.show({content:Jt((c==null?void 0:c.msg)??(c==null?void 0:c.message)),type:"error"});return}},error:a=>{o=a}}}function So(e,t={}){const{interval:r=5e3,immediate:o=!1,onError:i,autoStopWhenHidden:s=!0}=t;let l=null,a=0,c=r,g=!document.hidden,y=!1;const h=async()=>{if(s&&!g){l=null,y=!1;return}const f=Date.now();if(f-a>=c){a=f;try{await e()}catch(b){i?i(b):console.error("RAFPolling error:",b)}}y&&(l=requestAnimationFrame(h))},Q=()=>{g=!document.hidden,g&&y&&l===null?(a=Date.now(),h()):!g&&s&&k()},m=()=>{y||(y=!0,a=Date.now(),o&&e().catch(f=>{i?i(f):console.error("RAFPolling error:",f)}),h(),s&&document.addEventListener("visibilitychange",Q))},k=()=>{y=!1,l!==null&&(cancelAnimationFrame(l),l=null),s&&document.removeEventListener("visibilitychange",Q)};return{start:m,stop:k,isRunning:()=>y,updateInterval:f=>{c=f}}}function Ye(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 dt={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 Xt;function Io(){return Xt||(Xt=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(i,o,s){function l(g,y){if(!o[g]){if(!i[g]){var h=typeof Ze=="function"&&Ze;if(!y&&h)return h(g,!0);if(a)return a(g,!0);var k=new Error("Cannot find module '"+g+"'");throw k.code="MODULE_NOT_FOUND",k}var m=o[g]={exports:{}};i[g][0].call(m.exports,function(Q){var u=i[g][1][Q];return l(u||Q)},m,m.exports,r,i,o,s)}return o[g].exports}for(var a=typeof Ze=="function"&&Ze,c=0;c<s.length;c++)l(s[c]);return l})({1:[function(r,i,o){var s=r("./utils"),l=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(c){for(var g,y,h,k,m,Q,u,w=[],f=0,v=c.length,M=v,A=s.getTypeOf(c)!=="string";f<c.length;)M=v-f,h=A?(g=c[f++],y=f<v?c[f++]:0,f<v?c[f++]:0):(g=c.charCodeAt(f++),y=f<v?c.charCodeAt(f++):0,f<v?c.charCodeAt(f++):0),k=g>>2,m=(3&g)<<4|y>>4,Q=1<M?(15&y)<<2|h>>6:64,u=2<M?63&h:64,w.push(a.charAt(k)+a.charAt(m)+a.charAt(Q)+a.charAt(u));return w.join("")},o.decode=function(c){var g,y,h,k,m,Q,u=0,w=0,f="data:";if(c.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var v,M=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===a.charAt(64)&&M--,c.charAt(c.length-2)===a.charAt(64)&&M--,M%1!=0)throw new Error("Invalid base64 input, bad content length.");for(v=l.uint8array?new Uint8Array(0|M):new Array(0|M);u<c.length;)g=a.indexOf(c.charAt(u++))<<2|(k=a.indexOf(c.charAt(u++)))>>4,y=(15&k)<<4|(m=a.indexOf(c.charAt(u++)))>>2,h=(3&m)<<6|(Q=a.indexOf(c.charAt(u++))),v[w++]=g,m!==64&&(v[w++]=y),Q!==64&&(v[w++]=h);return v}},{"./support":30,"./utils":32}],2:[function(r,i,o){var s=r("./external"),l=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function g(y,h,k,m,Q){this.compressedSize=y,this.uncompressedSize=h,this.crc32=k,this.compression=m,this.compressedContent=Q}g.prototype={getContentWorker:function(){var y=new l(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return y.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},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)}},g.createWorkerFrom=function(y,h,k){return y.pipe(new a).pipe(new c("uncompressedSize")).pipe(h.compressWorker(k)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},i.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,i,o){var s=r("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},o.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,i,o){var s=r("./utils"),l=(function(){for(var a,c=[],g=0;g<256;g++){a=g;for(var y=0;y<8;y++)a=1&a?3988292384^a>>>1:a>>>1;c[g]=a}return c})();i.exports=function(a,c){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(g,y,h,k){var m=l,Q=k+h;g^=-1;for(var u=k;u<Q;u++)g=g>>>8^m[255&(g^y[u])];return-1^g})(0|c,a,a.length,0):(function(g,y,h,k){var m=l,Q=k+h;g^=-1;for(var u=k;u<Q;u++)g=g>>>8^m[255&(g^y.charCodeAt(u))];return-1^g})(0|c,a,a.length,0):0}},{"./utils":32}],5:[function(r,i,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(r,i,o){var s=null;s=typeof Promise<"u"?Promise:r("lie"),i.exports={Promise:s}},{lie:37}],7:[function(r,i,o){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=r("pako"),a=r("./utils"),c=r("./stream/GenericWorker"),g=s?"uint8array":"array";function y(h,k){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=k,this.meta={}}o.magic="\b\0",a.inherits(y,c),y.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(g,h.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(k){h.push({data:k,meta:h.meta})}},o.compressWorker=function(h){return new y("Deflate",h)},o.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,i,o){function s(m,Q){var u,w="";for(u=0;u<Q;u++)w+=String.fromCharCode(255&m),m>>>=8;return w}function l(m,Q,u,w,f,v){var M,A,N=m.file,B=m.compression,L=v!==g.utf8encode,P=a.transformTo("string",v(N.name)),D=a.transformTo("string",g.utf8encode(N.name)),E=N.comment,$=a.transformTo("string",v(E)),b=a.transformTo("string",g.utf8encode(E)),S=D.length!==N.name.length,p=b.length!==E.length,R="",X="",Z="",ae=N.dir,Y=N.date,ne={crc32:0,compressedSize:0,uncompressedSize:0};Q&&!u||(ne.crc32=m.crc32,ne.compressedSize=m.compressedSize,ne.uncompressedSize=m.uncompressedSize);var j=0;Q&&(j|=8),L||!S&&!p||(j|=2048);var z=0,re=0;ae&&(z|=16),f==="UNIX"?(re=798,z|=(function(O,ee){var le=O;return O||(le=ee?16893:33204),(65535&le)<<16})(N.unixPermissions,ae)):(re=20,z|=(function(O){return 63&(O||0)})(N.dosPermissions)),M=Y.getUTCHours(),M<<=6,M|=Y.getUTCMinutes(),M<<=5,M|=Y.getUTCSeconds()/2,A=Y.getUTCFullYear()-1980,A<<=4,A|=Y.getUTCMonth()+1,A<<=5,A|=Y.getUTCDate(),S&&(X=s(1,1)+s(y(P),4)+D,R+="up"+s(X.length,2)+X),p&&(Z=s(1,1)+s(y($),4)+b,R+="uc"+s(Z.length,2)+Z);var T="";return T+=`
66
- \0`,T+=s(j,2),T+=B.magic,T+=s(M,2),T+=s(A,2),T+=s(ne.crc32,4),T+=s(ne.compressedSize,4),T+=s(ne.uncompressedSize,4),T+=s(P.length,2),T+=s(R.length,2),{fileRecord:h.LOCAL_FILE_HEADER+T+P+R,dirRecord:h.CENTRAL_FILE_HEADER+s(re,2)+T+s($.length,2)+"\0\0\0\0"+s(z,4)+s(w,4)+P+R+$}}var a=r("../utils"),c=r("../stream/GenericWorker"),g=r("../utf8"),y=r("../crc32"),h=r("../signature");function k(m,Q,u,w){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Q,this.zipPlatform=u,this.encodeFileName=w,this.streamFiles=m,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(k,c),k.prototype.push=function(m){var Q=m.meta.percent||0,u=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,c.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:u?(Q+100*(u-w-1))/u:100}}))},k.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var Q=this.streamFiles&&!m.file.dir;if(Q){var u=l(m,Q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(m){this.accumulate=!1;var Q=this.streamFiles&&!m.file.dir,u=l(m,Q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),Q)this.push({data:(function(w){return h.DATA_DESCRIPTOR+s(w.crc32,4)+s(w.compressedSize,4)+s(w.uncompressedSize,4)})(m),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var m=this.bytesWritten,Q=0;Q<this.dirRecords.length;Q++)this.push({data:this.dirRecords[Q],meta:{percent:100}});var u=this.bytesWritten-m,w=(function(f,v,M,A,N){var B=a.transformTo("string",N(A));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(f,2)+s(f,2)+s(v,4)+s(M,4)+s(B.length,2)+B})(this.dirRecords.length,u,m,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(m){this._sources.push(m);var Q=this;return m.on("data",function(u){Q.processChunk(u)}),m.on("end",function(){Q.closedSource(Q.previous.streamInfo),Q._sources.length?Q.prepareNextSource():Q.end()}),m.on("error",function(u){Q.error(u)}),this},k.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))},k.prototype.error=function(m){var Q=this._sources;if(!c.prototype.error.call(this,m))return!1;for(var u=0;u<Q.length;u++)try{Q[u].error(m)}catch{}return!0},k.prototype.lock=function(){c.prototype.lock.call(this);for(var m=this._sources,Q=0;Q<m.length;Q++)m[Q].lock()},i.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,i,o){var s=r("../compressions"),l=r("./ZipFileWorker");o.generateWorker=function(a,c,g){var y=new l(c.streamFiles,g,c.platform,c.encodeFileName),h=0;try{a.forEach(function(k,m){h++;var Q=(function(v,M){var A=v||M,N=s[A];if(!N)throw new Error(A+" is not a valid compression method !");return N})(m.options.compression,c.compression),u=m.options.compressionOptions||c.compressionOptions||{},w=m.dir,f=m.date;m._compressWorker(Q,u).withStreamInfo("file",{name:k,dir:w,date:f,comment:m.comment||"",unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions}).pipe(y)}),y.entriesCount=h}catch(k){y.error(k)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,i,o){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"),i.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,i,o){var s=r("./utils"),l=r("./external"),a=r("./utf8"),c=r("./zipEntries"),g=r("./stream/Crc32Probe"),y=r("./nodejsUtils");function h(k){return new l.Promise(function(m,Q){var u=k.decompressed.getContentWorker().pipe(new g);u.on("error",function(w){Q(w)}).on("end",function(){u.streamInfo.crc32!==k.decompressed.crc32?Q(new Error("Corrupted zip : CRC32 mismatch")):m()}).resume()})}i.exports=function(k,m){var Q=this;return m=s.extend(m||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),y.isNode&&y.isStream(k)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",k,!0,m.optimizedBinaryString,m.base64).then(function(u){var w=new c(m);return w.load(u),w}).then(function(u){var w=[l.Promise.resolve(u)],f=u.files;if(m.checkCRC32)for(var v=0;v<f.length;v++)w.push(h(f[v]));return l.Promise.all(w)}).then(function(u){for(var w=u.shift(),f=w.files,v=0;v<f.length;v++){var M=f[v],A=M.fileNameStr,N=s.resolve(M.fileNameStr);Q.file(N,M.decompressed,{binary:!0,optimizedBinaryString:!0,date:M.date,dir:M.dir,comment:M.fileCommentStr.length?M.fileCommentStr:null,unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions,createFolders:m.createFolders}),M.dir||(Q.file(N).unsafeOriginalName=A)}return w.zipComment.length&&(Q.comment=w.zipComment),Q})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,i,o){var s=r("../utils"),l=r("../stream/GenericWorker");function a(c,g){l.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(g)}s.inherits(a,l),a.prototype._bindStream=function(c){var g=this;(this._stream=c).pause(),c.on("data",function(y){g.push({data:y,meta:{percent:0}})}).on("error",function(y){g.isPaused?this.generatedError=y:g.error(y)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.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)},i.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,i,o){var s=r("readable-stream").Readable;function l(a,c,g){s.call(this,c),this._helper=a;var y=this;a.on("data",function(h,k){y.push(h)||y._helper.pause(),g&&g(k)}).on("error",function(h){y.emit("error",h)}).on("end",function(){y.push(null)})}r("../utils").inherits(l,s),l.prototype._read=function(){this._helper.resume()},i.exports=l},{"../utils":32,"readable-stream":16}],14:[function(r,i,o){i.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,i,o){function s(N,B,L){var P,D=a.getTypeOf(B),E=a.extend(L||{},y);E.date=E.date||new Date,E.compression!==null&&(E.compression=E.compression.toUpperCase()),typeof E.unixPermissions=="string"&&(E.unixPermissions=parseInt(E.unixPermissions,8)),E.unixPermissions&&16384&E.unixPermissions&&(E.dir=!0),E.dosPermissions&&16&E.dosPermissions&&(E.dir=!0),E.dir&&(N=f(N)),E.createFolders&&(P=w(N))&&v.call(this,P,!0);var $=D==="string"&&E.binary===!1&&E.base64===!1;L&&L.binary!==void 0||(E.binary=!$),(B instanceof h&&B.uncompressedSize===0||E.dir||!B||B.length===0)&&(E.base64=!1,E.binary=!0,B="",E.compression="STORE",D="string");var b=null;b=B instanceof h||B instanceof c?B:Q.isNode&&Q.isStream(B)?new u(N,B):a.prepareContent(N,B,E.binary,E.optimizedBinaryString,E.base64);var S=new k(N,b,E);this.files[N]=S}var l=r("./utf8"),a=r("./utils"),c=r("./stream/GenericWorker"),g=r("./stream/StreamHelper"),y=r("./defaults"),h=r("./compressedObject"),k=r("./zipObject"),m=r("./generate"),Q=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),w=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var B=N.lastIndexOf("/");return 0<B?N.substring(0,B):""},f=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},v=function(N,B){return B=B!==void 0?B:y.createFolders,N=f(N),this.files[N]||s.call(this,N,null,{dir:!0,createFolders:B}),this.files[N]};function M(N){return Object.prototype.toString.call(N)==="[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(N){var B,L,P;for(B in this.files)P=this.files[B],(L=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&N(L,P)},filter:function(N){var B=[];return this.forEach(function(L,P){N(L,P)&&B.push(P)}),B},file:function(N,B,L){if(arguments.length!==1)return N=this.root+N,s.call(this,N,B,L),this;if(M(N)){var P=N;return this.filter(function(E,$){return!$.dir&&P.test(E)})}var D=this.files[this.root+N];return D&&!D.dir?D:null},folder:function(N){if(!N)return this;if(M(N))return this.filter(function(D,E){return E.dir&&N.test(D)});var B=this.root+N,L=v.call(this,B),P=this.clone();return P.root=L.name,P},remove:function(N){N=this.root+N;var B=this.files[N];if(B||(N.slice(-1)!=="/"&&(N+="/"),B=this.files[N]),B&&!B.dir)delete this.files[N];else for(var L=this.filter(function(D,E){return E.name.slice(0,N.length)===N}),P=0;P<L.length;P++)delete this.files[L[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(N){var B,L={};try{if((L=a.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),L.type==="binarystring"&&(L.type="string"),!L.type)throw new Error("No output type specified.");a.checkSupport(L.type),L.platform!=="darwin"&&L.platform!=="freebsd"&&L.platform!=="linux"&&L.platform!=="sunos"||(L.platform="UNIX"),L.platform==="win32"&&(L.platform="DOS");var P=L.comment||this.comment||"";B=m.generateWorker(this,L,P)}catch(D){(B=new c("error")).error(D)}return new g(B,L.type||"string",L.mimeType)},generateAsync:function(N,B){return this.generateInternalStream(N).accumulate(B)},generateNodeStream:function(N,B){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(B)}};i.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,i,o){i.exports=r("stream")},{stream:void 0}],17:[function(r,i,o){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),g=a.charCodeAt(1),y=a.charCodeAt(2),h=a.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===c&&this.data[k+1]===g&&this.data[k+2]===y&&this.data[k+3]===h)return k-this.zero;return-1},l.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),g=a.charCodeAt(1),y=a.charCodeAt(2),h=a.charCodeAt(3),k=this.readData(4);return c===k[0]&&g===k[1]&&y===k[2]&&h===k[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},i.exports=l},{"../utils":32,"./DataReader":18}],18:[function(r,i,o){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,g=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)g=(g<<8)+this.byteAt(c);return this.index+=a,g},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))}},i.exports=l},{"../utils":32}],19:[function(r,i,o){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},i.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,i,o){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},i.exports=l},{"../utils":32,"./DataReader":18}],21:[function(r,i,o){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},i.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(r,i,o){var s=r("../utils"),l=r("../support"),a=r("./ArrayReader"),c=r("./StringReader"),g=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");i.exports=function(h){var k=s.getTypeOf(h);return s.checkSupport(k),k!=="string"||l.uint8array?k==="nodebuffer"?new g(h):l.uint8array?new y(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,i,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,i,o){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})},i.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,i,o){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)},i.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,i,o){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 g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+c.data.length}l.prototype.processChunk.call(this,c)},i.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,i,o){var s=r("../utils"),l=r("./GenericWorker");function a(c){l.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=s.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}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,g=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,g);break;case"uint8array":c=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":c=this.data.slice(this.index,g)}return this.index=g,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,i,o){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}},i.exports=s},{}],29:[function(r,i,o){var s=r("../utils"),l=r("./ConvertWorker"),a=r("./GenericWorker"),c=r("../base64"),g=r("../support"),y=r("../external"),h=null;if(g.nodestream)try{h=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(Q,u){return new y.Promise(function(w,f){var v=[],M=Q._internalType,A=Q._outputType,N=Q._mimeType;Q.on("data",function(B,L){v.push(B),u&&u(L)}).on("error",function(B){v=[],f(B)}).on("end",function(){try{var B=(function(L,P,D){switch(L){case"blob":return s.newBlob(s.transformTo("arraybuffer",P),D);case"base64":return c.encode(P);default:return s.transformTo(L,P)}})(A,(function(L,P){var D,E=0,$=null,b=0;for(D=0;D<P.length;D++)b+=P[D].length;switch(L){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for($=new Uint8Array(b),D=0;D<P.length;D++)$.set(P[D],E),E+=P[D].length;return $;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+L+"'")}})(M,v),N);w(B)}catch(L){f(L)}v=[]}).resume()})}function m(Q,u,w){var f=u;switch(u){case"blob":case"arraybuffer":f="uint8array";break;case"base64":f="string"}try{this._internalType=f,this._outputType=u,this._mimeType=w,s.checkSupport(f),this._worker=Q.pipe(new l(f)),Q.lock()}catch(v){this._worker=new a("error"),this._worker.error(v)}}m.prototype={accumulate:function(Q){return k(this,Q)},on:function(Q,u){var w=this;return Q==="data"?this._worker.on(Q,function(f){u.call(w,f.data,f.meta)}):this._worker.on(Q,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(Q){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"},Q)}},i.exports=m},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,i,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var s=new ArrayBuffer(0);try{o.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),o.blob=l.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!r("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(r,i,o){for(var s=r("./utils"),l=r("./support"),a=r("./nodejsUtils"),c=r("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;g[254]=g[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function k(){c.call(this,"utf-8 encode")}o.utf8encode=function(m){return l.nodebuffer?a.newBufferFrom(m,"utf-8"):(function(Q){var u,w,f,v,M,A=Q.length,N=0;for(v=0;v<A;v++)(64512&(w=Q.charCodeAt(v)))==55296&&v+1<A&&(64512&(f=Q.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(f-56320),v++),N+=w<128?1:w<2048?2:w<65536?3:4;for(u=l.uint8array?new Uint8Array(N):new Array(N),v=M=0;M<N;v++)(64512&(w=Q.charCodeAt(v)))==55296&&v+1<A&&(64512&(f=Q.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(f-56320),v++),w<128?u[M++]=w:(w<2048?u[M++]=192|w>>>6:(w<65536?u[M++]=224|w>>>12:(u[M++]=240|w>>>18,u[M++]=128|w>>>12&63),u[M++]=128|w>>>6&63),u[M++]=128|63&w);return u})(m)},o.utf8decode=function(m){return l.nodebuffer?s.transformTo("nodebuffer",m).toString("utf-8"):(function(Q){var u,w,f,v,M=Q.length,A=new Array(2*M);for(u=w=0;u<M;)if((f=Q[u++])<128)A[w++]=f;else if(4<(v=g[f]))A[w++]=65533,u+=v-1;else{for(f&=v===2?31:v===3?15:7;1<v&&u<M;)f=f<<6|63&Q[u++],v--;1<v?A[w++]=65533:f<65536?A[w++]=f:(f-=65536,A[w++]=55296|f>>10&1023,A[w++]=56320|1023&f)}return A.length!==w&&(A.subarray?A=A.subarray(0,w):A.length=w),s.applyFromCharCode(A)})(m=s.transformTo(l.uint8array?"uint8array":"array",m))},s.inherits(h,c),h.prototype.processChunk=function(m){var Q=s.transformTo(l.uint8array?"uint8array":"array",m.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var u=Q;(Q=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),Q.set(u,this.leftOver.length)}else Q=this.leftOver.concat(Q);this.leftOver=null}var w=(function(v,M){var A;for((M=M||v.length)>v.length&&(M=v.length),A=M-1;0<=A&&(192&v[A])==128;)A--;return A<0||A===0?M:A+g[v[A]]>M?A:M})(Q),f=Q;w!==Q.length&&(l.uint8array?(f=Q.subarray(0,w),this.leftOver=Q.subarray(w,Q.length)):(f=Q.slice(0,w),this.leftOver=Q.slice(w,Q.length))),this.push({data:o.utf8decode(f),meta:m.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=h,s.inherits(k,c),k.prototype.processChunk=function(m){this.push({data:o.utf8encode(m.data),meta:m.meta})},o.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,i,o){var s=r("./support"),l=r("./base64"),a=r("./nodejsUtils"),c=r("./external");function g(u){return u}function y(u,w){for(var f=0;f<u.length;++f)w[f]=255&u.charCodeAt(f);return w}r("setimmediate"),o.newBlob=function(u,w){o.checkSupport("blob");try{return new Blob([u],{type:w})}catch{try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return f.append(u),f.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(u,w,f){var v=[],M=0,A=u.length;if(A<=f)return String.fromCharCode.apply(null,u);for(;M<A;)w==="array"||w==="nodebuffer"?v.push(String.fromCharCode.apply(null,u.slice(M,Math.min(M+f,A)))):v.push(String.fromCharCode.apply(null,u.subarray(M,Math.min(M+f,A)))),M+=f;return v.join("")},stringifyByChar:function(u){for(var w="",f=0;f<u.length;f++)w+=String.fromCharCode(u[f]);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 k(u){var w=65536,f=o.getTypeOf(u),v=!0;if(f==="uint8array"?v=h.applyCanBeUsed.uint8array:f==="nodebuffer"&&(v=h.applyCanBeUsed.nodebuffer),v)for(;1<w;)try{return h.stringifyByChunk(u,f,w)}catch{w=Math.floor(w/2)}return h.stringifyByChar(u)}function m(u,w){for(var f=0;f<u.length;f++)w[f]=u[f];return w}o.applyFromCharCode=k;var Q={};Q.string={string:g,array:function(u){return y(u,new Array(u.length))},arraybuffer:function(u){return Q.string.uint8array(u).buffer},uint8array:function(u){return y(u,new Uint8Array(u.length))},nodebuffer:function(u){return y(u,a.allocBuffer(u.length))}},Q.array={string:k,array:g,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(u)}},Q.arraybuffer={string:function(u){return k(new Uint8Array(u))},array:function(u){return m(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:g,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(new Uint8Array(u))}},Q.uint8array={string:k,array:function(u){return m(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:g,nodebuffer:function(u){return a.newBufferFrom(u)}},Q.nodebuffer={string:k,array:function(u){return m(u,new Array(u.length))},arraybuffer:function(u){return Q.nodebuffer.uint8array(u).buffer},uint8array:function(u){return m(u,new Uint8Array(u.length))},nodebuffer:g},o.transformTo=function(u,w){if(w=w||"",!u)return w;o.checkSupport(u);var f=o.getTypeOf(w);return Q[f][u](w)},o.resolve=function(u){for(var w=u.split("/"),f=[],v=0;v<w.length;v++){var M=w[v];M==="."||M===""&&v!==0&&v!==w.length-1||(M===".."?f.pop():f.push(M))}return f.join("/")},o.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},o.checkSupport=function(u){if(!s[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(u){var w,f,v="";for(f=0;f<(u||"").length;f++)v+="\\x"+((w=u.charCodeAt(f))<16?"0":"")+w.toString(16).toUpperCase();return v},o.delay=function(u,w,f){setImmediate(function(){u.apply(f||null,w||[])})},o.inherits=function(u,w){function f(){}f.prototype=w.prototype,u.prototype=new f},o.extend=function(){var u,w,f={};for(u=0;u<arguments.length;u++)for(w in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],w)&&f[w]===void 0&&(f[w]=arguments[u][w]);return f},o.prepareContent=function(u,w,f,v,M){return c.Promise.resolve(w).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(N,B){var L=new FileReader;L.onload=function(P){N(P.target.result)},L.onerror=function(P){B(P.target.error)},L.readAsArrayBuffer(A)}):A}).then(function(A){var N=o.getTypeOf(A);return N?(N==="arraybuffer"?A=o.transformTo("uint8array",A):N==="string"&&(M?A=l.decode(A):f&&v!==!0&&(A=(function(B){return y(B,s.uint8array?new Uint8Array(B.length):new Array(B.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,i,o){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./signature"),c=r("./zipEntry"),g=r("./support");function y(h){this.files=[],this.loadOptions=h}y.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(k)+", expected "+l.pretty(h)+")")}},isSignature:function(h,k){var m=this.reader.index;this.reader.setIndex(h);var Q=this.reader.readString(4)===k;return this.reader.setIndex(m),Q},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),k=g.uint8array?"uint8array":"array",m=l.transformTo(k,h);this.zipComment=this.loadOptions.decodeFileName(m)},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,k,m,Q=this.zip64EndOfCentralSize-44;0<Q;)h=this.reader.readInt(2),k=this.reader.readInt(4),m=this.reader.readData(k),this.zip64ExtensibleData[h]={id:h,length:k,value:m}},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,k;for(h=0;h<this.files.length;h++)k=this.files[h],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.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 k=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 m=this.centralDirOffset+this.centralDirSize;this.zip64&&(m+=20,m+=12+this.zip64EndOfCentralSize);var Q=k-m;if(0<Q)this.isSignature(k,a.CENTRAL_FILE_HEADER)||(this.reader.zero=Q);else if(Q<0)throw new Error("Corrupted zip: missing "+Math.abs(Q)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,i,o){var s=r("./reader/readerFor"),l=r("./utils"),a=r("./compressedObject"),c=r("./crc32"),g=r("./utf8"),y=r("./compressions"),h=r("./support");function k(m,Q){this.options=m,this.loadOptions=Q}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(m){var Q,u;if(m.skip(22),this.fileNameLength=m.readInt(2),u=m.readInt(2),this.fileName=m.readData(this.fileNameLength),m.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((Q=(function(w){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)&&y[f].magic===w)return y[f];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,Q,m.readData(this.compressedSize))},readCentralPart:function(m){this.versionMadeBy=m.readInt(2),m.skip(2),this.bitFlag=m.readInt(2),this.compressionMethod=m.readString(2),this.date=m.readDate(),this.crc32=m.readInt(4),this.compressedSize=m.readInt(4),this.uncompressedSize=m.readInt(4);var Q=m.readInt(2);if(this.extraFieldsLength=m.readInt(2),this.fileCommentLength=m.readInt(2),this.diskNumberStart=m.readInt(2),this.internalFileAttributes=m.readInt(2),this.externalFileAttributes=m.readInt(4),this.localHeaderOffset=m.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");m.skip(Q),this.readExtraFields(m),this.parseZIP64ExtraField(m),this.fileComment=m.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var m=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),m==0&&(this.dosPermissions=63&this.externalFileAttributes),m==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var m=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(m){var Q,u,w,f=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4<f;)Q=m.readInt(2),u=m.readInt(2),w=m.readData(u),this.extraFields[Q]={id:Q,length:u,value:w};m.setIndex(f)},handleUTF8:function(){var m=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var Q=this.findExtraFieldUnicodePath();if(Q!==null)this.fileNameStr=Q;else{var u=l.transformTo(m,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var f=l.transformTo(m,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var m=this.extraFields[28789];if(m){var Q=s(m.value);return Q.readInt(1)!==1||c(this.fileName)!==Q.readInt(4)?null:g.utf8decode(Q.readData(m.length-5))}return null},findExtraFieldUnicodeComment:function(){var m=this.extraFields[25461];if(m){var Q=s(m.value);return Q.readInt(1)!==1||c(this.fileComment)!==Q.readInt(4)?null:g.utf8decode(Q.readData(m.length-5))}return null}},i.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,i,o){function s(Q,u,w){this.name=Q,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"),g=r("./compressedObject"),y=r("./stream/GenericWorker");s.prototype={internalStream:function(Q){var u=null,w="string";try{if(!Q)throw new Error("No output type specified.");var f=(w=Q.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),u=this._decompressWorker();var v=!this._dataBinary;v&&!f&&(u=u.pipe(new c.Utf8EncodeWorker)),!v&&f&&(u=u.pipe(new c.Utf8DecodeWorker))}catch(M){(u=new y("error")).error(M)}return new l(u,w,"")},async:function(Q,u){return this.internalStream(Q).accumulate(u)},nodeStream:function(Q,u){return this.internalStream(Q||"nodebuffer").toNodejsStream(u)},_compressWorker:function(Q,u){if(this._data instanceof g&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new c.Utf8EncodeWorker)),g.createWorkerFrom(w,Q,u)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof y?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},m=0;m<h.length;m++)s.prototype[h[m]]=k;i.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,i,o){(function(s){var l,a,c=s.MutationObserver||s.WebKitMutationObserver;if(c){var g=0,y=new c(Q),h=s.document.createTextNode("");y.observe(h,{characterData:!0}),l=function(){h.data=g=++g%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(){Q(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},s.document.documentElement.appendChild(u)}:function(){setTimeout(Q,0)};else{var k=new s.MessageChannel;k.port1.onmessage=Q,l=function(){k.port2.postMessage(0)}}var m=[];function Q(){var u,w;a=!0;for(var f=m.length;f;){for(w=m,m=[],u=-1;++u<f;)w[u]();f=m.length}a=!1}i.exports=function(u){m.push(u)!==1||a||l()}}).call(this,typeof We<"u"?We:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,i,o){var s=r("immediate");function l(){}var a={},c=["REJECTED"],g=["FULFILLED"],y=["PENDING"];function h(f){if(typeof f!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,f!==l&&u(this,f)}function k(f,v,M){this.promise=f,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}function m(f,v,M){s(function(){var A;try{A=v(M)}catch(N){return a.reject(f,N)}A===f?a.reject(f,new TypeError("Cannot resolve promise with itself")):a.resolve(f,A)})}function Q(f){var v=f&&f.then;if(f&&(typeof f=="object"||typeof f=="function")&&typeof v=="function")return function(){v.apply(f,arguments)}}function u(f,v){var M=!1;function A(L){M||(M=!0,a.reject(f,L))}function N(L){M||(M=!0,a.resolve(f,L))}var B=w(function(){v(N,A)});B.status==="error"&&A(B.value)}function w(f,v){var M={};try{M.value=f(v),M.status="success"}catch(A){M.status="error",M.value=A}return M}(i.exports=h).prototype.finally=function(f){if(typeof f!="function")return this;var v=this.constructor;return this.then(function(M){return v.resolve(f()).then(function(){return M})},function(M){return v.resolve(f()).then(function(){throw M})})},h.prototype.catch=function(f){return this.then(null,f)},h.prototype.then=function(f,v){if(typeof f!="function"&&this.state===g||typeof v!="function"&&this.state===c)return this;var M=new this.constructor(l);return this.state!==y?m(M,this.state===g?f:v,this.outcome):this.queue.push(new k(M,f,v)),M},k.prototype.callFulfilled=function(f){a.resolve(this.promise,f)},k.prototype.otherCallFulfilled=function(f){m(this.promise,this.onFulfilled,f)},k.prototype.callRejected=function(f){a.reject(this.promise,f)},k.prototype.otherCallRejected=function(f){m(this.promise,this.onRejected,f)},a.resolve=function(f,v){var M=w(Q,v);if(M.status==="error")return a.reject(f,M.value);var A=M.value;if(A)u(f,A);else{f.state=g,f.outcome=v;for(var N=-1,B=f.queue.length;++N<B;)f.queue[N].callFulfilled(v)}return f},a.reject=function(f,v){f.state=c,f.outcome=v;for(var M=-1,A=f.queue.length;++M<A;)f.queue[M].callRejected(v);return f},h.resolve=function(f){return f instanceof this?f:a.resolve(new this(l),f)},h.reject=function(f){var v=new this(l);return a.reject(v,f)},h.all=function(f){var v=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=f.length,A=!1;if(!M)return this.resolve([]);for(var N=new Array(M),B=0,L=-1,P=new this(l);++L<M;)D(f[L],L);return P;function D(E,$){v.resolve(E).then(function(b){N[$]=b,++B!==M||A||(A=!0,a.resolve(P,N))},function(b){A||(A=!0,a.reject(P,b))})}},h.race=function(f){var v=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=f.length,A=!1;if(!M)return this.resolve([]);for(var N=-1,B=new this(l);++N<M;)L=f[N],v.resolve(L).then(function(P){A||(A=!0,a.resolve(B,P))},function(P){A||(A=!0,a.reject(B,P))});var L;return B}},{immediate:36}],38:[function(r,i,o){var s={};(0,r("./lib/utils/common").assign)(s,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),i.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,i,o){var s=r("./zlib/deflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/messages"),g=r("./zlib/zstream"),y=Object.prototype.toString,h=0,k=-1,m=0,Q=8;function u(f){if(!(this instanceof u))return new u(f);this.options=l.assign({level:k,method:Q,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},f||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var M=s.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(M!==h)throw new Error(c[M]);if(v.header&&s.deflateSetHeader(this.strm,v.header),v.dictionary){var A;if(A=typeof v.dictionary=="string"?a.string2buf(v.dictionary):y.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(M=s.deflateSetDictionary(this.strm,A))!==h)throw new Error(c[M]);this._dict_set=!0}}function w(f,v){var M=new u(v);if(M.push(f,!0),M.err)throw M.msg||c[M.err];return M.result}u.prototype.push=function(f,v){var M,A,N=this.strm,B=this.options.chunkSize;if(this.ended)return!1;A=v===~~v?v:v===!0?4:0,typeof f=="string"?N.input=a.string2buf(f):y.call(f)==="[object ArrayBuffer]"?N.input=new Uint8Array(f):N.input=f,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new l.Buf8(B),N.next_out=0,N.avail_out=B),(M=s.deflate(N,A))!==1&&M!==h)return this.onEnd(M),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(l.shrinkBuf(N.output,N.next_out))):this.onData(l.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&M!==1);return A===4?(M=s.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===h):A!==2||(this.onEnd(h),!(N.avail_out=0))},u.prototype.onData=function(f){this.chunks.push(f)},u.prototype.onEnd=function(f){f===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},o.Deflate=u,o.deflate=w,o.deflateRaw=function(f,v){return(v=v||{}).raw=!0,w(f,v)},o.gzip=function(f,v){return(v=v||{}).gzip=!0,w(f,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,i,o){var s=r("./zlib/inflate"),l=r("./utils/common"),a=r("./utils/strings"),c=r("./zlib/constants"),g=r("./zlib/messages"),y=r("./zlib/zstream"),h=r("./zlib/gzheader"),k=Object.prototype.toString;function m(u){if(!(this instanceof m))return new m(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 y,this.strm.avail_out=0;var f=s.inflateInit2(this.strm,w.windowBits);if(f!==c.Z_OK)throw new Error(g[f]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function Q(u,w){var f=new m(w);if(f.push(u,!0),f.err)throw f.msg||g[f.err];return f.result}m.prototype.push=function(u,w){var f,v,M,A,N,B,L=this.strm,P=this.options.chunkSize,D=this.options.dictionary,E=!1;if(this.ended)return!1;v=w===~~w?w:w===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof u=="string"?L.input=a.binstring2buf(u):k.call(u)==="[object ArrayBuffer]"?L.input=new Uint8Array(u):L.input=u,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new l.Buf8(P),L.next_out=0,L.avail_out=P),(f=s.inflate(L,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&D&&(B=typeof D=="string"?a.string2buf(D):k.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,f=s.inflateSetDictionary(this.strm,B)),f===c.Z_BUF_ERROR&&E===!0&&(f=c.Z_OK,E=!1),f!==c.Z_STREAM_END&&f!==c.Z_OK)return this.onEnd(f),!(this.ended=!0);L.next_out&&(L.avail_out!==0&&f!==c.Z_STREAM_END&&(L.avail_in!==0||v!==c.Z_FINISH&&v!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(M=a.utf8border(L.output,L.next_out),A=L.next_out-M,N=a.buf2string(L.output,M),L.next_out=A,L.avail_out=P-A,A&&l.arraySet(L.output,L.output,M,A,0),this.onData(N)):this.onData(l.shrinkBuf(L.output,L.next_out)))),L.avail_in===0&&L.avail_out===0&&(E=!0)}while((0<L.avail_in||L.avail_out===0)&&f!==c.Z_STREAM_END);return f===c.Z_STREAM_END&&(v=c.Z_FINISH),v===c.Z_FINISH?(f=s.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===c.Z_OK):v!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(L.avail_out=0))},m.prototype.onData=function(u){this.chunks.push(u)},m.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},o.Inflate=m,o.inflate=Q,o.inflateRaw=function(u,w){return(w=w||{}).raw=!0,Q(u,w)},o.ungzip=Q},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,i,o){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(c){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var h in y)y.hasOwnProperty(h)&&(c[h]=y[h])}}return c},o.shrinkBuf=function(c,g){return c.length===g?c:c.subarray?c.subarray(0,g):(c.length=g,c)};var l={arraySet:function(c,g,y,h,k){if(g.subarray&&c.subarray)c.set(g.subarray(y,y+h),k);else for(var m=0;m<h;m++)c[k+m]=g[y+m]},flattenChunks:function(c){var g,y,h,k,m,Q;for(g=h=0,y=c.length;g<y;g++)h+=c[g].length;for(Q=new Uint8Array(h),g=k=0,y=c.length;g<y;g++)m=c[g],Q.set(m,k),k+=m.length;return Q}},a={arraySet:function(c,g,y,h,k){for(var m=0;m<h;m++)c[k+m]=g[y+m]},flattenChunks:function(c){return[].concat.apply([],c)}};o.setTyped=function(c){c?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,l)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(s)},{}],42:[function(r,i,o){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),g=0;g<256;g++)c[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function y(h,k){if(k<65537&&(h.subarray&&a||!h.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(h,k));for(var m="",Q=0;Q<k;Q++)m+=String.fromCharCode(h[Q]);return m}c[254]=c[254]=1,o.string2buf=function(h){var k,m,Q,u,w,f=h.length,v=0;for(u=0;u<f;u++)(64512&(m=h.charCodeAt(u)))==55296&&u+1<f&&(64512&(Q=h.charCodeAt(u+1)))==56320&&(m=65536+(m-55296<<10)+(Q-56320),u++),v+=m<128?1:m<2048?2:m<65536?3:4;for(k=new s.Buf8(v),u=w=0;w<v;u++)(64512&(m=h.charCodeAt(u)))==55296&&u+1<f&&(64512&(Q=h.charCodeAt(u+1)))==56320&&(m=65536+(m-55296<<10)+(Q-56320),u++),m<128?k[w++]=m:(m<2048?k[w++]=192|m>>>6:(m<65536?k[w++]=224|m>>>12:(k[w++]=240|m>>>18,k[w++]=128|m>>>12&63),k[w++]=128|m>>>6&63),k[w++]=128|63&m);return k},o.buf2binstring=function(h){return y(h,h.length)},o.binstring2buf=function(h){for(var k=new s.Buf8(h.length),m=0,Q=k.length;m<Q;m++)k[m]=h.charCodeAt(m);return k},o.buf2string=function(h,k){var m,Q,u,w,f=k||h.length,v=new Array(2*f);for(m=Q=0;m<f;)if((u=h[m++])<128)v[Q++]=u;else if(4<(w=c[u]))v[Q++]=65533,m+=w-1;else{for(u&=w===2?31:w===3?15:7;1<w&&m<f;)u=u<<6|63&h[m++],w--;1<w?v[Q++]=65533:u<65536?v[Q++]=u:(u-=65536,v[Q++]=55296|u>>10&1023,v[Q++]=56320|1023&u)}return y(v,Q)},o.utf8border=function(h,k){var m;for((k=k||h.length)>h.length&&(k=h.length),m=k-1;0<=m&&(192&h[m])==128;)m--;return m<0||m===0?k:m+c[h[m]]>k?m:k}},{"./common":41}],43:[function(r,i,o){i.exports=function(s,l,a,c){for(var g=65535&s|0,y=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;y=y+(g=g+l[c++]|0)|0,--h;);g%=65521,y%=65521}return g|y<<16|0}},{}],44:[function(r,i,o){i.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,i,o){var s=(function(){for(var l,a=[],c=0;c<256;c++){l=c;for(var g=0;g<8;g++)l=1&l?3988292384^l>>>1:l>>>1;a[c]=l}return a})();i.exports=function(l,a,c,g){var y=s,h=g+c;l^=-1;for(var k=g;k<h;k++)l=l>>>8^y[255&(l^a[k])];return-1^l}},{}],46:[function(r,i,o){var s,l=r("../utils/common"),a=r("./trees"),c=r("./adler32"),g=r("./crc32"),y=r("./messages"),h=0,k=4,m=0,Q=-2,u=-1,w=4,f=2,v=8,M=9,A=286,N=30,B=19,L=2*A+1,P=15,D=3,E=258,$=E+D+1,b=42,S=113,p=1,R=2,X=3,Z=4;function ae(d,V){return d.msg=y[V],V}function Y(d){return(d<<1)-(4<d?9:0)}function ne(d){for(var V=d.length;0<=--V;)d[V]=0}function j(d){var V=d.state,F=V.pending;F>d.avail_out&&(F=d.avail_out),F!==0&&(l.arraySet(d.output,V.pending_buf,V.pending_out,F,d.next_out),d.next_out+=F,V.pending_out+=F,d.total_out+=F,d.avail_out-=F,V.pending-=F,V.pending===0&&(V.pending_out=0))}function z(d,V){a._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,V),d.block_start=d.strstart,j(d.strm)}function re(d,V){d.pending_buf[d.pending++]=V}function T(d,V){d.pending_buf[d.pending++]=V>>>8&255,d.pending_buf[d.pending++]=255&V}function O(d,V){var F,_,C=d.max_chain_length,I=d.strstart,W=d.prev_length,G=d.nice_match,x=d.strstart>d.w_size-$?d.strstart-(d.w_size-$):0,H=d.window,q=d.w_mask,J=d.prev,oe=d.strstart+E,de=H[I+W-1],se=H[I+W];d.prev_length>=d.good_match&&(C>>=2),G>d.lookahead&&(G=d.lookahead);do if(H[(F=V)+W]===se&&H[F+W-1]===de&&H[F]===H[I]&&H[++F]===H[I+1]){I+=2,F++;do;while(H[++I]===H[++F]&&H[++I]===H[++F]&&H[++I]===H[++F]&&H[++I]===H[++F]&&H[++I]===H[++F]&&H[++I]===H[++F]&&H[++I]===H[++F]&&H[++I]===H[++F]&&I<oe);if(_=E-(oe-I),I=oe-E,W<_){if(d.match_start=V,G<=(W=_))break;de=H[I+W-1],se=H[I+W]}}while((V=J[V&q])>x&&--C!=0);return W<=d.lookahead?W:d.lookahead}function ee(d){var V,F,_,C,I,W,G,x,H,q,J=d.w_size;do{if(C=d.window_size-d.lookahead-d.strstart,d.strstart>=J+(J-$)){for(l.arraySet(d.window,d.window,J,J,0),d.match_start-=J,d.strstart-=J,d.block_start-=J,V=F=d.hash_size;_=d.head[--V],d.head[V]=J<=_?_-J:0,--F;);for(V=F=J;_=d.prev[--V],d.prev[V]=J<=_?_-J:0,--F;);C+=J}if(d.strm.avail_in===0)break;if(W=d.strm,G=d.window,x=d.strstart+d.lookahead,H=C,q=void 0,q=W.avail_in,H<q&&(q=H),F=q===0?0:(W.avail_in-=q,l.arraySet(G,W.input,W.next_in,q,x),W.state.wrap===1?W.adler=c(W.adler,G,q,x):W.state.wrap===2&&(W.adler=g(W.adler,G,q,x)),W.next_in+=q,W.total_in+=q,q),d.lookahead+=F,d.lookahead+d.insert>=D)for(I=d.strstart-d.insert,d.ins_h=d.window[I],d.ins_h=(d.ins_h<<d.hash_shift^d.window[I+1])&d.hash_mask;d.insert&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[I+D-1])&d.hash_mask,d.prev[I&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=I,I++,d.insert--,!(d.lookahead+d.insert<D)););}while(d.lookahead<$&&d.strm.avail_in!==0)}function le(d,V){for(var F,_;;){if(d.lookahead<$){if(ee(d),d.lookahead<$&&V===h)return p;if(d.lookahead===0)break}if(F=0,d.lookahead>=D&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),F!==0&&d.strstart-F<=d.w_size-$&&(d.match_length=O(d,F)),d.match_length>=D)if(_=a._tr_tally(d,d.strstart-d.match_start,d.match_length-D),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=D){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart,--d.match_length!=0;);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else _=a._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(_&&(z(d,!1),d.strm.avail_out===0))return p}return d.insert=d.strstart<D-1?d.strstart:D-1,V===k?(z(d,!0),d.strm.avail_out===0?X:Z):d.last_lit&&(z(d,!1),d.strm.avail_out===0)?p:R}function ie(d,V){for(var F,_,C;;){if(d.lookahead<$){if(ee(d),d.lookahead<$&&V===h)return p;if(d.lookahead===0)break}if(F=0,d.lookahead>=D&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=D-1,F!==0&&d.prev_length<d.max_lazy_match&&d.strstart-F<=d.w_size-$&&(d.match_length=O(d,F),d.match_length<=5&&(d.strategy===1||d.match_length===D&&4096<d.strstart-d.match_start)&&(d.match_length=D-1)),d.prev_length>=D&&d.match_length<=d.prev_length){for(C=d.strstart+d.lookahead-D,_=a._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-D),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=C&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),--d.prev_length!=0;);if(d.match_available=0,d.match_length=D-1,d.strstart++,_&&(z(d,!1),d.strm.avail_out===0))return p}else if(d.match_available){if((_=a._tr_tally(d,0,d.window[d.strstart-1]))&&z(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return p}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(_=a._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<D-1?d.strstart:D-1,V===k?(z(d,!0),d.strm.avail_out===0?X:Z):d.last_lit&&(z(d,!1),d.strm.avail_out===0)?p:R}function U(d,V,F,_,C){this.good_length=d,this.max_lazy=V,this.nice_length=F,this.max_chain=_,this.func=C}function K(){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=v,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*L),this.dyn_dtree=new l.Buf16(2*(2*N+1)),this.bl_tree=new l.Buf16(2*(2*B+1)),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(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),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*A+1),ne(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 te(d){var V;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=f,(V=d.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?b:S,d.adler=V.wrap===2?0:1,V.last_flush=h,a._tr_init(V),m):ae(d,Q)}function ce(d){var V=te(d);return V===m&&(function(F){F.window_size=2*F.w_size,ne(F.head),F.max_lazy_match=s[F.level].max_lazy,F.good_match=s[F.level].good_length,F.nice_match=s[F.level].nice_length,F.max_chain_length=s[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=D-1,F.match_available=0,F.ins_h=0})(d.state),V}function pe(d,V,F,_,C,I){if(!d)return Q;var W=1;if(V===u&&(V=6),_<0?(W=0,_=-_):15<_&&(W=2,_-=16),C<1||M<C||F!==v||_<8||15<_||V<0||9<V||I<0||w<I)return ae(d,Q);_===8&&(_=9);var G=new K;return(d.state=G).strm=d,G.wrap=W,G.gzhead=null,G.w_bits=_,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=C+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+D-1)/D),G.window=new l.Buf8(2*G.w_size),G.head=new l.Buf16(G.hash_size),G.prev=new l.Buf16(G.w_size),G.lit_bufsize=1<<C+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new l.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=V,G.strategy=I,G.method=F,ce(d)}s=[new U(0,0,0,0,function(d,V){var F=65535;for(F>d.pending_buf_size-5&&(F=d.pending_buf_size-5);;){if(d.lookahead<=1){if(ee(d),d.lookahead===0&&V===h)return p;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var _=d.block_start+F;if((d.strstart===0||d.strstart>=_)&&(d.lookahead=d.strstart-_,d.strstart=_,z(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-$&&(z(d,!1),d.strm.avail_out===0))return p}return d.insert=0,V===k?(z(d,!0),d.strm.avail_out===0?X:Z):(d.strstart>d.block_start&&(z(d,!1),d.strm.avail_out),p)}),new U(4,4,8,4,le),new U(4,5,16,8,le),new U(4,6,32,32,le),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)],o.deflateInit=function(d,V){return pe(d,V,v,15,8,0)},o.deflateInit2=pe,o.deflateReset=ce,o.deflateResetKeep=te,o.deflateSetHeader=function(d,V){return d&&d.state?d.state.wrap!==2?Q:(d.state.gzhead=V,m):Q},o.deflate=function(d,V){var F,_,C,I;if(!d||!d.state||5<V||V<0)return d?ae(d,Q):Q;if(_=d.state,!d.output||!d.input&&d.avail_in!==0||_.status===666&&V!==k)return ae(d,d.avail_out===0?-5:Q);if(_.strm=d,F=_.last_flush,_.last_flush=V,_.status===b)if(_.wrap===2)d.adler=0,re(_,31),re(_,139),re(_,8),_.gzhead?(re(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),re(_,255&_.gzhead.time),re(_,_.gzhead.time>>8&255),re(_,_.gzhead.time>>16&255),re(_,_.gzhead.time>>24&255),re(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),re(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(re(_,255&_.gzhead.extra.length),re(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(d.adler=g(d.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(re(_,0),re(_,0),re(_,0),re(_,0),re(_,0),re(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),re(_,3),_.status=S);else{var W=v+(_.w_bits-8<<4)<<8;W|=(2<=_.strategy||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(W|=32),W+=31-W%31,_.status=S,T(_,W),_.strstart!==0&&(T(_,d.adler>>>16),T(_,65535&d.adler)),d.adler=1}if(_.status===69)if(_.gzhead.extra){for(C=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>C&&(d.adler=g(d.adler,_.pending_buf,_.pending-C,C)),j(d),C=_.pending,_.pending!==_.pending_buf_size));)re(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>C&&(d.adler=g(d.adler,_.pending_buf,_.pending-C,C)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){C=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>C&&(d.adler=g(d.adler,_.pending_buf,_.pending-C,C)),j(d),C=_.pending,_.pending===_.pending_buf_size)){I=1;break}I=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,re(_,I)}while(I!==0);_.gzhead.hcrc&&_.pending>C&&(d.adler=g(d.adler,_.pending_buf,_.pending-C,C)),I===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){C=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>C&&(d.adler=g(d.adler,_.pending_buf,_.pending-C,C)),j(d),C=_.pending,_.pending===_.pending_buf_size)){I=1;break}I=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,re(_,I)}while(I!==0);_.gzhead.hcrc&&_.pending>C&&(d.adler=g(d.adler,_.pending_buf,_.pending-C,C)),I===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&j(d),_.pending+2<=_.pending_buf_size&&(re(_,255&d.adler),re(_,d.adler>>8&255),d.adler=0,_.status=S)):_.status=S),_.pending!==0){if(j(d),d.avail_out===0)return _.last_flush=-1,m}else if(d.avail_in===0&&Y(V)<=Y(F)&&V!==k)return ae(d,-5);if(_.status===666&&d.avail_in!==0)return ae(d,-5);if(d.avail_in!==0||_.lookahead!==0||V!==h&&_.status!==666){var G=_.strategy===2?(function(x,H){for(var q;;){if(x.lookahead===0&&(ee(x),x.lookahead===0)){if(H===h)return p;break}if(x.match_length=0,q=a._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++,q&&(z(x,!1),x.strm.avail_out===0))return p}return x.insert=0,H===k?(z(x,!0),x.strm.avail_out===0?X:Z):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?p:R})(_,V):_.strategy===3?(function(x,H){for(var q,J,oe,de,se=x.window;;){if(x.lookahead<=E){if(ee(x),x.lookahead<=E&&H===h)return p;if(x.lookahead===0)break}if(x.match_length=0,x.lookahead>=D&&0<x.strstart&&(J=se[oe=x.strstart-1])===se[++oe]&&J===se[++oe]&&J===se[++oe]){de=x.strstart+E;do;while(J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&oe<de);x.match_length=E-(de-oe),x.match_length>x.lookahead&&(x.match_length=x.lookahead)}if(x.match_length>=D?(q=a._tr_tally(x,1,x.match_length-D),x.lookahead-=x.match_length,x.strstart+=x.match_length,x.match_length=0):(q=a._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++),q&&(z(x,!1),x.strm.avail_out===0))return p}return x.insert=0,H===k?(z(x,!0),x.strm.avail_out===0?X:Z):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?p:R})(_,V):s[_.level].func(_,V);if(G!==X&&G!==Z||(_.status=666),G===p||G===X)return d.avail_out===0&&(_.last_flush=-1),m;if(G===R&&(V===1?a._tr_align(_):V!==5&&(a._tr_stored_block(_,0,0,!1),V===3&&(ne(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),j(d),d.avail_out===0))return _.last_flush=-1,m}return V!==k?m:_.wrap<=0?1:(_.wrap===2?(re(_,255&d.adler),re(_,d.adler>>8&255),re(_,d.adler>>16&255),re(_,d.adler>>24&255),re(_,255&d.total_in),re(_,d.total_in>>8&255),re(_,d.total_in>>16&255),re(_,d.total_in>>24&255)):(T(_,d.adler>>>16),T(_,65535&d.adler)),j(d),0<_.wrap&&(_.wrap=-_.wrap),_.pending!==0?m:1)},o.deflateEnd=function(d){var V;return d&&d.state?(V=d.state.status)!==b&&V!==69&&V!==73&&V!==91&&V!==103&&V!==S&&V!==666?ae(d,Q):(d.state=null,V===S?ae(d,-3):m):Q},o.deflateSetDictionary=function(d,V){var F,_,C,I,W,G,x,H,q=V.length;if(!d||!d.state||(I=(F=d.state).wrap)===2||I===1&&F.status!==b||F.lookahead)return Q;for(I===1&&(d.adler=c(d.adler,V,q,0)),F.wrap=0,q>=F.w_size&&(I===0&&(ne(F.head),F.strstart=0,F.block_start=0,F.insert=0),H=new l.Buf8(F.w_size),l.arraySet(H,V,q-F.w_size,F.w_size,0),V=H,q=F.w_size),W=d.avail_in,G=d.next_in,x=d.input,d.avail_in=q,d.next_in=0,d.input=V,ee(F);F.lookahead>=D;){for(_=F.strstart,C=F.lookahead-(D-1);F.ins_h=(F.ins_h<<F.hash_shift^F.window[_+D-1])&F.hash_mask,F.prev[_&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=_,_++,--C;);F.strstart=_,F.lookahead=D-1,ee(F)}return F.strstart+=F.lookahead,F.block_start=F.strstart,F.insert=F.lookahead,F.lookahead=0,F.match_length=F.prev_length=D-1,F.match_available=0,d.next_in=G,d.input=x,d.avail_in=W,F.wrap=I,m},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,i,o){i.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,i,o){i.exports=function(s,l){var a,c,g,y,h,k,m,Q,u,w,f,v,M,A,N,B,L,P,D,E,$,b,S,p,R;a=s.state,c=s.next_in,p=s.input,g=c+(s.avail_in-5),y=s.next_out,R=s.output,h=y-(l-s.avail_out),k=y+(s.avail_out-257),m=a.dmax,Q=a.wsize,u=a.whave,w=a.wnext,f=a.window,v=a.hold,M=a.bits,A=a.lencode,N=a.distcode,B=(1<<a.lenbits)-1,L=(1<<a.distbits)-1;e:do{M<15&&(v+=p[c++]<<M,M+=8,v+=p[c++]<<M,M+=8),P=A[v&B];t:for(;;){if(v>>>=D=P>>>24,M-=D,(D=P>>>16&255)===0)R[y++]=65535&P;else{if(!(16&D)){if((64&D)==0){P=A[(65535&P)+(v&(1<<D)-1)];continue t}if(32&D){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}E=65535&P,(D&=15)&&(M<D&&(v+=p[c++]<<M,M+=8),E+=v&(1<<D)-1,v>>>=D,M-=D),M<15&&(v+=p[c++]<<M,M+=8,v+=p[c++]<<M,M+=8),P=N[v&L];n:for(;;){if(v>>>=D=P>>>24,M-=D,!(16&(D=P>>>16&255))){if((64&D)==0){P=N[(65535&P)+(v&(1<<D)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if($=65535&P,M<(D&=15)&&(v+=p[c++]<<M,(M+=8)<D&&(v+=p[c++]<<M,M+=8)),m<($+=v&(1<<D)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(v>>>=D,M-=D,(D=y-h)<$){if(u<(D=$-D)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(S=f,(b=0)===w){if(b+=Q-D,D<E){for(E-=D;R[y++]=f[b++],--D;);b=y-$,S=R}}else if(w<D){if(b+=Q+w-D,(D-=w)<E){for(E-=D;R[y++]=f[b++],--D;);if(b=0,w<E){for(E-=D=w;R[y++]=f[b++],--D;);b=y-$,S=R}}}else if(b+=w-D,D<E){for(E-=D;R[y++]=f[b++],--D;);b=y-$,S=R}for(;2<E;)R[y++]=S[b++],R[y++]=S[b++],R[y++]=S[b++],E-=3;E&&(R[y++]=S[b++],1<E&&(R[y++]=S[b++]))}else{for(b=y-$;R[y++]=R[b++],R[y++]=R[b++],R[y++]=R[b++],2<(E-=3););E&&(R[y++]=R[b++],1<E&&(R[y++]=R[b++]))}break}}break}}while(c<g&&y<k);c-=E=M>>3,v&=(1<<(M-=E<<3))-1,s.next_in=c,s.next_out=y,s.avail_in=c<g?g-c+5:5-(c-g),s.avail_out=y<k?k-y+257:257-(y-k),a.hold=v,a.bits=M}},{}],49:[function(r,i,o){var s=r("../utils/common"),l=r("./adler32"),a=r("./crc32"),c=r("./inffast"),g=r("./inftrees"),y=1,h=2,k=0,m=-2,Q=1,u=852,w=592;function f(b){return(b>>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function v(){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 M(b){var S;return b&&b.state?(S=b.state,b.total_in=b.total_out=S.total=0,b.msg="",S.wrap&&(b.adler=1&S.wrap),S.mode=Q,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(w),S.sane=1,S.back=-1,k):m}function A(b){var S;return b&&b.state?((S=b.state).wsize=0,S.whave=0,S.wnext=0,M(b)):m}function N(b,S){var p,R;return b&&b.state?(R=b.state,S<0?(p=0,S=-S):(p=1+(S>>4),S<48&&(S&=15)),S&&(S<8||15<S)?m:(R.window!==null&&R.wbits!==S&&(R.window=null),R.wrap=p,R.wbits=S,A(b))):m}function B(b,S){var p,R;return b?(R=new v,(b.state=R).window=null,(p=N(b,S))!==k&&(b.state=null),p):m}var L,P,D=!0;function E(b){if(D){var S;for(L=new s.Buf32(512),P=new s.Buf32(32),S=0;S<144;)b.lens[S++]=8;for(;S<256;)b.lens[S++]=9;for(;S<280;)b.lens[S++]=7;for(;S<288;)b.lens[S++]=8;for(g(y,b.lens,0,288,L,0,b.work,{bits:9}),S=0;S<32;)b.lens[S++]=5;g(h,b.lens,0,32,P,0,b.work,{bits:5}),D=!1}b.lencode=L,b.lenbits=9,b.distcode=P,b.distbits=5}function $(b,S,p,R){var X,Z=b.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new s.Buf8(Z.wsize)),R>=Z.wsize?(s.arraySet(Z.window,S,p-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(R<(X=Z.wsize-Z.wnext)&&(X=R),s.arraySet(Z.window,S,p-R,X,Z.wnext),(R-=X)?(s.arraySet(Z.window,S,p-R,R,0),Z.wnext=R,Z.whave=Z.wsize):(Z.wnext+=X,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=X))),0}o.inflateReset=A,o.inflateReset2=N,o.inflateResetKeep=M,o.inflateInit=function(b){return B(b,15)},o.inflateInit2=B,o.inflate=function(b,S){var p,R,X,Z,ae,Y,ne,j,z,re,T,O,ee,le,ie,U,K,te,ce,pe,d,V,F,_,C=0,I=new s.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!b||!b.state||!b.output||!b.input&&b.avail_in!==0)return m;(p=b.state).mode===12&&(p.mode=13),ae=b.next_out,X=b.output,ne=b.avail_out,Z=b.next_in,R=b.input,Y=b.avail_in,j=p.hold,z=p.bits,re=Y,T=ne,V=k;e:for(;;)switch(p.mode){case Q:if(p.wrap===0){p.mode=13;break}for(;z<16;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(2&p.wrap&&j===35615){I[p.check=0]=255&j,I[1]=j>>>8&255,p.check=a(p.check,I,2,0),z=j=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&j)<<8)+(j>>8))%31){b.msg="incorrect header check",p.mode=30;break}if((15&j)!=8){b.msg="unknown compression method",p.mode=30;break}if(z-=4,d=8+(15&(j>>>=4)),p.wbits===0)p.wbits=d;else if(d>p.wbits){b.msg="invalid window size",p.mode=30;break}p.dmax=1<<d,b.adler=p.check=1,p.mode=512&j?10:12,z=j=0;break;case 2:for(;z<16;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(p.flags=j,(255&p.flags)!=8){b.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){b.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=j>>8&1),512&p.flags&&(I[0]=255&j,I[1]=j>>>8&255,p.check=a(p.check,I,2,0)),z=j=0,p.mode=3;case 3:for(;z<32;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}p.head&&(p.head.time=j),512&p.flags&&(I[0]=255&j,I[1]=j>>>8&255,I[2]=j>>>16&255,I[3]=j>>>24&255,p.check=a(p.check,I,4,0)),z=j=0,p.mode=4;case 4:for(;z<16;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}p.head&&(p.head.xflags=255&j,p.head.os=j>>8),512&p.flags&&(I[0]=255&j,I[1]=j>>>8&255,p.check=a(p.check,I,2,0)),z=j=0,p.mode=5;case 5:if(1024&p.flags){for(;z<16;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}p.length=j,p.head&&(p.head.extra_len=j),512&p.flags&&(I[0]=255&j,I[1]=j>>>8&255,p.check=a(p.check,I,2,0)),z=j=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(Y<(O=p.length)&&(O=Y),O&&(p.head&&(d=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),s.arraySet(p.head.extra,R,Z,O,d)),512&p.flags&&(p.check=a(p.check,R,O,Z)),Y-=O,Z+=O,p.length-=O),p.length))break e;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(Y===0)break e;for(O=0;d=R[Z+O++],p.head&&d&&p.length<65536&&(p.head.name+=String.fromCharCode(d)),d&&O<Y;);if(512&p.flags&&(p.check=a(p.check,R,O,Z)),Y-=O,Z+=O,d)break e}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(Y===0)break e;for(O=0;d=R[Z+O++],p.head&&d&&p.length<65536&&(p.head.comment+=String.fromCharCode(d)),d&&O<Y;);if(512&p.flags&&(p.check=a(p.check,R,O,Z)),Y-=O,Z+=O,d)break e}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;z<16;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(j!==(65535&p.check)){b.msg="header crc mismatch",p.mode=30;break}z=j=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),b.adler=p.check=0,p.mode=12;break;case 10:for(;z<32;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}b.adler=p.check=f(j),z=j=0,p.mode=11;case 11:if(p.havedict===0)return b.next_out=ae,b.avail_out=ne,b.next_in=Z,b.avail_in=Y,p.hold=j,p.bits=z,2;b.adler=p.check=1,p.mode=12;case 12:if(S===5||S===6)break e;case 13:if(p.last){j>>>=7&z,z-=7&z,p.mode=27;break}for(;z<3;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}switch(p.last=1&j,z-=1,3&(j>>>=1)){case 0:p.mode=14;break;case 1:if(E(p),p.mode=20,S!==6)break;j>>>=2,z-=2;break e;case 2:p.mode=17;break;case 3:b.msg="invalid block type",p.mode=30}j>>>=2,z-=2;break;case 14:for(j>>>=7&z,z-=7&z;z<32;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if((65535&j)!=(j>>>16^65535)){b.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&j,z=j=0,p.mode=15,S===6)break e;case 15:p.mode=16;case 16:if(O=p.length){if(Y<O&&(O=Y),ne<O&&(O=ne),O===0)break e;s.arraySet(X,R,Z,O,ae),Y-=O,Z+=O,ne-=O,ae+=O,p.length-=O;break}p.mode=12;break;case 17:for(;z<14;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(p.nlen=257+(31&j),j>>>=5,z-=5,p.ndist=1+(31&j),j>>>=5,z-=5,p.ncode=4+(15&j),j>>>=4,z-=4,286<p.nlen||30<p.ndist){b.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;z<3;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}p.lens[W[p.have++]]=7&j,j>>>=3,z-=3}for(;p.have<19;)p.lens[W[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,F={bits:p.lenbits},V=g(0,p.lens,0,19,p.lencode,0,p.work,F),p.lenbits=F.bits,V){b.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;U=(C=p.lencode[j&(1<<p.lenbits)-1])>>>16&255,K=65535&C,!((ie=C>>>24)<=z);){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(K<16)j>>>=ie,z-=ie,p.lens[p.have++]=K;else{if(K===16){for(_=ie+2;z<_;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(j>>>=ie,z-=ie,p.have===0){b.msg="invalid bit length repeat",p.mode=30;break}d=p.lens[p.have-1],O=3+(3&j),j>>>=2,z-=2}else if(K===17){for(_=ie+3;z<_;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}z-=ie,d=0,O=3+(7&(j>>>=ie)),j>>>=3,z-=3}else{for(_=ie+7;z<_;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}z-=ie,d=0,O=11+(127&(j>>>=ie)),j>>>=7,z-=7}if(p.have+O>p.nlen+p.ndist){b.msg="invalid bit length repeat",p.mode=30;break}for(;O--;)p.lens[p.have++]=d}}if(p.mode===30)break;if(p.lens[256]===0){b.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,F={bits:p.lenbits},V=g(y,p.lens,0,p.nlen,p.lencode,0,p.work,F),p.lenbits=F.bits,V){b.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,F={bits:p.distbits},V=g(h,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,F),p.distbits=F.bits,V){b.msg="invalid distances set",p.mode=30;break}if(p.mode=20,S===6)break e;case 20:p.mode=21;case 21:if(6<=Y&&258<=ne){b.next_out=ae,b.avail_out=ne,b.next_in=Z,b.avail_in=Y,p.hold=j,p.bits=z,c(b,T),ae=b.next_out,X=b.output,ne=b.avail_out,Z=b.next_in,R=b.input,Y=b.avail_in,j=p.hold,z=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;U=(C=p.lencode[j&(1<<p.lenbits)-1])>>>16&255,K=65535&C,!((ie=C>>>24)<=z);){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(U&&(240&U)==0){for(te=ie,ce=U,pe=K;U=(C=p.lencode[pe+((j&(1<<te+ce)-1)>>te)])>>>16&255,K=65535&C,!(te+(ie=C>>>24)<=z);){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}j>>>=te,z-=te,p.back+=te}if(j>>>=ie,z-=ie,p.back+=ie,p.length=K,U===0){p.mode=26;break}if(32&U){p.back=-1,p.mode=12;break}if(64&U){b.msg="invalid literal/length code",p.mode=30;break}p.extra=15&U,p.mode=22;case 22:if(p.extra){for(_=p.extra;z<_;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}p.length+=j&(1<<p.extra)-1,j>>>=p.extra,z-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;U=(C=p.distcode[j&(1<<p.distbits)-1])>>>16&255,K=65535&C,!((ie=C>>>24)<=z);){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if((240&U)==0){for(te=ie,ce=U,pe=K;U=(C=p.distcode[pe+((j&(1<<te+ce)-1)>>te)])>>>16&255,K=65535&C,!(te+(ie=C>>>24)<=z);){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}j>>>=te,z-=te,p.back+=te}if(j>>>=ie,z-=ie,p.back+=ie,64&U){b.msg="invalid distance code",p.mode=30;break}p.offset=K,p.extra=15&U,p.mode=24;case 24:if(p.extra){for(_=p.extra;z<_;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}p.offset+=j&(1<<p.extra)-1,j>>>=p.extra,z-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){b.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(ne===0)break e;if(O=T-ne,p.offset>O){if((O=p.offset-O)>p.whave&&p.sane){b.msg="invalid distance too far back",p.mode=30;break}ee=O>p.wnext?(O-=p.wnext,p.wsize-O):p.wnext-O,O>p.length&&(O=p.length),le=p.window}else le=X,ee=ae-p.offset,O=p.length;for(ne<O&&(O=ne),ne-=O,p.length-=O;X[ae++]=le[ee++],--O;);p.length===0&&(p.mode=21);break;case 26:if(ne===0)break e;X[ae++]=p.length,ne--,p.mode=21;break;case 27:if(p.wrap){for(;z<32;){if(Y===0)break e;Y--,j|=R[Z++]<<z,z+=8}if(T-=ne,b.total_out+=T,p.total+=T,T&&(b.adler=p.check=p.flags?a(p.check,X,T,ae-T):l(p.check,X,T,ae-T)),T=ne,(p.flags?j:f(j))!==p.check){b.msg="incorrect data check",p.mode=30;break}z=j=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;z<32;){if(Y===0)break e;Y--,j+=R[Z++]<<z,z+=8}if(j!==(4294967295&p.total)){b.msg="incorrect length check",p.mode=30;break}z=j=0}p.mode=29;case 29:V=1;break e;case 30:V=-3;break e;case 31:return-4;case 32:default:return m}return b.next_out=ae,b.avail_out=ne,b.next_in=Z,b.avail_in=Y,p.hold=j,p.bits=z,(p.wsize||T!==b.avail_out&&p.mode<30&&(p.mode<27||S!==4))&&$(b,b.output,b.next_out,T-b.avail_out)?(p.mode=31,-4):(re-=b.avail_in,T-=b.avail_out,b.total_in+=re,b.total_out+=T,p.total+=T,p.wrap&&T&&(b.adler=p.check=p.flags?a(p.check,X,T,b.next_out-T):l(p.check,X,T,b.next_out-T)),b.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(re==0&&T===0||S===4)&&V===k&&(V=-5),V)},o.inflateEnd=function(b){if(!b||!b.state)return m;var S=b.state;return S.window&&(S.window=null),b.state=null,k},o.inflateGetHeader=function(b,S){var p;return b&&b.state?(2&(p=b.state).wrap)==0?m:((p.head=S).done=!1,k):m},o.inflateSetDictionary=function(b,S){var p,R=S.length;return b&&b.state?(p=b.state).wrap!==0&&p.mode!==11?m:p.mode===11&&l(1,S,R,0)!==p.check?-3:$(b,S,R,R)?(p.mode=31,-4):(p.havedict=1,k):m},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,i,o){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],g=[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];i.exports=function(y,h,k,m,Q,u,w,f){var v,M,A,N,B,L,P,D,E,$=f.bits,b=0,S=0,p=0,R=0,X=0,Z=0,ae=0,Y=0,ne=0,j=0,z=null,re=0,T=new s.Buf16(16),O=new s.Buf16(16),ee=null,le=0;for(b=0;b<=15;b++)T[b]=0;for(S=0;S<m;S++)T[h[k+S]]++;for(X=$,R=15;1<=R&&T[R]===0;R--);if(R<X&&(X=R),R===0)return Q[u++]=20971520,Q[u++]=20971520,f.bits=1,0;for(p=1;p<R&&T[p]===0;p++);for(X<p&&(X=p),b=Y=1;b<=15;b++)if(Y<<=1,(Y-=T[b])<0)return-1;if(0<Y&&(y===0||R!==1))return-1;for(O[1]=0,b=1;b<15;b++)O[b+1]=O[b]+T[b];for(S=0;S<m;S++)h[k+S]!==0&&(w[O[h[k+S]]++]=S);if(L=y===0?(z=ee=w,19):y===1?(z=l,re-=257,ee=a,le-=257,256):(z=c,ee=g,-1),b=p,B=u,ae=S=j=0,A=-1,N=(ne=1<<(Z=X))-1,y===1&&852<ne||y===2&&592<ne)return 1;for(;;){for(P=b-ae,E=w[S]<L?(D=0,w[S]):w[S]>L?(D=ee[le+w[S]],z[re+w[S]]):(D=96,0),v=1<<b-ae,p=M=1<<Z;Q[B+(j>>ae)+(M-=v)]=P<<24|D<<16|E|0,M!==0;);for(v=1<<b-1;j&v;)v>>=1;if(v!==0?(j&=v-1,j+=v):j=0,S++,--T[b]==0){if(b===R)break;b=h[k+w[S]]}if(X<b&&(j&N)!==A){for(ae===0&&(ae=X),B+=p,Y=1<<(Z=b-ae);Z+ae<R&&!((Y-=T[Z+ae])<=0);)Z++,Y<<=1;if(ne+=1<<Z,y===1&&852<ne||y===2&&592<ne)return 1;Q[A=j&N]=X<<24|Z<<16|B-u|0}}return j!==0&&(Q[B+j]=b-ae<<24|64<<16|0),f.bits=X,0}},{"../utils/common":41}],51:[function(r,i,o){i.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,i,o){var s=r("../utils/common"),l=0,a=1;function c(C){for(var I=C.length;0<=--I;)C[I]=0}var g=0,y=29,h=256,k=h+1+y,m=30,Q=19,u=2*k+1,w=15,f=16,v=7,M=256,A=16,N=17,B=18,L=[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],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(k+2));c($);var b=new Array(2*m);c(b);var S=new Array(512);c(S);var p=new Array(256);c(p);var R=new Array(y);c(R);var X,Z,ae,Y=new Array(m);function ne(C,I,W,G,x){this.static_tree=C,this.extra_bits=I,this.extra_base=W,this.elems=G,this.max_length=x,this.has_stree=C&&C.length}function j(C,I){this.dyn_tree=C,this.max_code=0,this.stat_desc=I}function z(C){return C<256?S[C]:S[256+(C>>>7)]}function re(C,I){C.pending_buf[C.pending++]=255&I,C.pending_buf[C.pending++]=I>>>8&255}function T(C,I,W){C.bi_valid>f-W?(C.bi_buf|=I<<C.bi_valid&65535,re(C,C.bi_buf),C.bi_buf=I>>f-C.bi_valid,C.bi_valid+=W-f):(C.bi_buf|=I<<C.bi_valid&65535,C.bi_valid+=W)}function O(C,I,W){T(C,W[2*I],W[2*I+1])}function ee(C,I){for(var W=0;W|=1&C,C>>>=1,W<<=1,0<--I;);return W>>>1}function le(C,I,W){var G,x,H=new Array(w+1),q=0;for(G=1;G<=w;G++)H[G]=q=q+W[G-1]<<1;for(x=0;x<=I;x++){var J=C[2*x+1];J!==0&&(C[2*x]=ee(H[J]++,J))}}function ie(C){var I;for(I=0;I<k;I++)C.dyn_ltree[2*I]=0;for(I=0;I<m;I++)C.dyn_dtree[2*I]=0;for(I=0;I<Q;I++)C.bl_tree[2*I]=0;C.dyn_ltree[2*M]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function U(C){8<C.bi_valid?re(C,C.bi_buf):0<C.bi_valid&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function K(C,I,W,G){var x=2*I,H=2*W;return C[x]<C[H]||C[x]===C[H]&&G[I]<=G[W]}function te(C,I,W){for(var G=C.heap[W],x=W<<1;x<=C.heap_len&&(x<C.heap_len&&K(I,C.heap[x+1],C.heap[x],C.depth)&&x++,!K(I,G,C.heap[x],C.depth));)C.heap[W]=C.heap[x],W=x,x<<=1;C.heap[W]=G}function ce(C,I,W){var G,x,H,q,J=0;if(C.last_lit!==0)for(;G=C.pending_buf[C.d_buf+2*J]<<8|C.pending_buf[C.d_buf+2*J+1],x=C.pending_buf[C.l_buf+J],J++,G===0?O(C,x,I):(O(C,(H=p[x])+h+1,I),(q=L[H])!==0&&T(C,x-=R[H],q),O(C,H=z(--G),W),(q=P[H])!==0&&T(C,G-=Y[H],q)),J<C.last_lit;);O(C,M,I)}function pe(C,I){var W,G,x,H=I.dyn_tree,q=I.stat_desc.static_tree,J=I.stat_desc.has_stree,oe=I.stat_desc.elems,de=-1;for(C.heap_len=0,C.heap_max=u,W=0;W<oe;W++)H[2*W]!==0?(C.heap[++C.heap_len]=de=W,C.depth[W]=0):H[2*W+1]=0;for(;C.heap_len<2;)H[2*(x=C.heap[++C.heap_len]=de<2?++de:0)]=1,C.depth[x]=0,C.opt_len--,J&&(C.static_len-=q[2*x+1]);for(I.max_code=de,W=C.heap_len>>1;1<=W;W--)te(C,H,W);for(x=oe;W=C.heap[1],C.heap[1]=C.heap[C.heap_len--],te(C,H,1),G=C.heap[1],C.heap[--C.heap_max]=W,C.heap[--C.heap_max]=G,H[2*x]=H[2*W]+H[2*G],C.depth[x]=(C.depth[W]>=C.depth[G]?C.depth[W]:C.depth[G])+1,H[2*W+1]=H[2*G+1]=x,C.heap[1]=x++,te(C,H,1),2<=C.heap_len;);C.heap[--C.heap_max]=C.heap[1],(function(se,ke){var je,Ae,Be,ge,Ve,at,Ne=ke.dyn_tree,Ot=ke.max_code,en=ke.stat_desc.static_tree,tn=ke.stat_desc.has_stree,nn=ke.stat_desc.extra_bits,Ft=ke.stat_desc.extra_base,Oe=ke.stat_desc.max_length,Ue=0;for(ge=0;ge<=w;ge++)se.bl_count[ge]=0;for(Ne[2*se.heap[se.heap_max]+1]=0,je=se.heap_max+1;je<u;je++)Oe<(ge=Ne[2*Ne[2*(Ae=se.heap[je])+1]+1]+1)&&(ge=Oe,Ue++),Ne[2*Ae+1]=ge,Ot<Ae||(se.bl_count[ge]++,Ve=0,Ft<=Ae&&(Ve=nn[Ae-Ft]),at=Ne[2*Ae],se.opt_len+=at*(ge+Ve),tn&&(se.static_len+=at*(en[2*Ae+1]+Ve)));if(Ue!==0){do{for(ge=Oe-1;se.bl_count[ge]===0;)ge--;se.bl_count[ge]--,se.bl_count[ge+1]+=2,se.bl_count[Oe]--,Ue-=2}while(0<Ue);for(ge=Oe;ge!==0;ge--)for(Ae=se.bl_count[ge];Ae!==0;)Ot<(Be=se.heap[--je])||(Ne[2*Be+1]!==ge&&(se.opt_len+=(ge-Ne[2*Be+1])*Ne[2*Be],Ne[2*Be+1]=ge),Ae--)}})(C,I),le(H,de,C.bl_count)}function d(C,I,W){var G,x,H=-1,q=I[1],J=0,oe=7,de=4;for(q===0&&(oe=138,de=3),I[2*(W+1)+1]=65535,G=0;G<=W;G++)x=q,q=I[2*(G+1)+1],++J<oe&&x===q||(J<de?C.bl_tree[2*x]+=J:x!==0?(x!==H&&C.bl_tree[2*x]++,C.bl_tree[2*A]++):J<=10?C.bl_tree[2*N]++:C.bl_tree[2*B]++,H=x,de=(J=0)===q?(oe=138,3):x===q?(oe=6,3):(oe=7,4))}function V(C,I,W){var G,x,H=-1,q=I[1],J=0,oe=7,de=4;for(q===0&&(oe=138,de=3),G=0;G<=W;G++)if(x=q,q=I[2*(G+1)+1],!(++J<oe&&x===q)){if(J<de)for(;O(C,x,C.bl_tree),--J!=0;);else x!==0?(x!==H&&(O(C,x,C.bl_tree),J--),O(C,A,C.bl_tree),T(C,J-3,2)):J<=10?(O(C,N,C.bl_tree),T(C,J-3,3)):(O(C,B,C.bl_tree),T(C,J-11,7));H=x,de=(J=0)===q?(oe=138,3):x===q?(oe=6,3):(oe=7,4)}}c(Y);var F=!1;function _(C,I,W,G){T(C,(g<<1)+(G?1:0),3),(function(x,H,q,J){U(x),re(x,q),re(x,~q),s.arraySet(x.pending_buf,x.window,H,q,x.pending),x.pending+=q})(C,I,W)}o._tr_init=function(C){F||((function(){var I,W,G,x,H,q=new Array(w+1);for(x=G=0;x<y-1;x++)for(R[x]=G,I=0;I<1<<L[x];I++)p[G++]=x;for(p[G-1]=x,x=H=0;x<16;x++)for(Y[x]=H,I=0;I<1<<P[x];I++)S[H++]=x;for(H>>=7;x<m;x++)for(Y[x]=H<<7,I=0;I<1<<P[x]-7;I++)S[256+H++]=x;for(W=0;W<=w;W++)q[W]=0;for(I=0;I<=143;)$[2*I+1]=8,I++,q[8]++;for(;I<=255;)$[2*I+1]=9,I++,q[9]++;for(;I<=279;)$[2*I+1]=7,I++,q[7]++;for(;I<=287;)$[2*I+1]=8,I++,q[8]++;for(le($,k+1,q),I=0;I<m;I++)b[2*I+1]=5,b[2*I]=ee(I,5);X=new ne($,L,h+1,k,w),Z=new ne(b,P,0,m,w),ae=new ne(new Array(0),D,0,Q,v)})(),F=!0),C.l_desc=new j(C.dyn_ltree,X),C.d_desc=new j(C.dyn_dtree,Z),C.bl_desc=new j(C.bl_tree,ae),C.bi_buf=0,C.bi_valid=0,ie(C)},o._tr_stored_block=_,o._tr_flush_block=function(C,I,W,G){var x,H,q=0;0<C.level?(C.strm.data_type===2&&(C.strm.data_type=(function(J){var oe,de=4093624447;for(oe=0;oe<=31;oe++,de>>>=1)if(1&de&&J.dyn_ltree[2*oe]!==0)return l;if(J.dyn_ltree[18]!==0||J.dyn_ltree[20]!==0||J.dyn_ltree[26]!==0)return a;for(oe=32;oe<h;oe++)if(J.dyn_ltree[2*oe]!==0)return a;return l})(C)),pe(C,C.l_desc),pe(C,C.d_desc),q=(function(J){var oe;for(d(J,J.dyn_ltree,J.l_desc.max_code),d(J,J.dyn_dtree,J.d_desc.max_code),pe(J,J.bl_desc),oe=Q-1;3<=oe&&J.bl_tree[2*E[oe]+1]===0;oe--);return J.opt_len+=3*(oe+1)+5+5+4,oe})(C),x=C.opt_len+3+7>>>3,(H=C.static_len+3+7>>>3)<=x&&(x=H)):x=H=W+5,W+4<=x&&I!==-1?_(C,I,W,G):C.strategy===4||H===x?(T(C,2+(G?1:0),3),ce(C,$,b)):(T(C,4+(G?1:0),3),(function(J,oe,de,se){var ke;for(T(J,oe-257,5),T(J,de-1,5),T(J,se-4,4),ke=0;ke<se;ke++)T(J,J.bl_tree[2*E[ke]+1],3);V(J,J.dyn_ltree,oe-1),V(J,J.dyn_dtree,de-1)})(C,C.l_desc.max_code+1,C.d_desc.max_code+1,q+1),ce(C,C.dyn_ltree,C.dyn_dtree)),ie(C),G&&U(C)},o._tr_tally=function(C,I,W){return C.pending_buf[C.d_buf+2*C.last_lit]=I>>>8&255,C.pending_buf[C.d_buf+2*C.last_lit+1]=255&I,C.pending_buf[C.l_buf+C.last_lit]=255&W,C.last_lit++,I===0?C.dyn_ltree[2*W]++:(C.matches++,I--,C.dyn_ltree[2*(p[W]+h+1)]++,C.dyn_dtree[2*z(I)]++),C.last_lit===C.lit_bufsize-1},o._tr_align=function(C){T(C,2,3),O(C,M,$),(function(I){I.bi_valid===16?(re(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):8<=I.bi_valid&&(I.pending_buf[I.pending++]=255&I.bi_buf,I.bi_buf>>=8,I.bi_valid-=8)})(C)}},{"../utils/common":41}],53:[function(r,i,o){i.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,i,o){(function(s){(function(l,a){if(!l.setImmediate){var c,g,y,h,k=1,m={},Q=!1,u=l.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(l);w=w&&w.setTimeout?w:l,c={}.toString.call(l.process)==="[object process]"?function(A){process.nextTick(function(){v(A)})}:(function(){if(l.postMessage&&!l.importScripts){var A=!0,N=l.onmessage;return l.onmessage=function(){A=!1},l.postMessage("","*"),l.onmessage=N,A}})()?(h="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",M,!1):l.attachEvent("onmessage",M),function(A){l.postMessage(h+A,"*")}):l.MessageChannel?((y=new MessageChannel).port1.onmessage=function(A){v(A.data)},function(A){y.port2.postMessage(A)}):u&&"onreadystatechange"in u.createElement("script")?(g=u.documentElement,function(A){var N=u.createElement("script");N.onreadystatechange=function(){v(A),N.onreadystatechange=null,g.removeChild(N),N=null},g.appendChild(N)}):function(A){setTimeout(v,0,A)},w.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var N=new Array(arguments.length-1),B=0;B<N.length;B++)N[B]=arguments[B+1];var L={callback:A,args:N};return m[k]=L,c(k),k++},w.clearImmediate=f}function f(A){delete m[A]}function v(A){if(Q)setTimeout(v,0,A);else{var N=m[A];if(N){Q=!0;try{(function(B){var L=B.callback,P=B.args;switch(P.length){case 0:L();break;case 1:L(P[0]);break;case 2:L(P[0],P[1]);break;case 3:L(P[0],P[1],P[2]);break;default:L.apply(a,P)}})(N)}finally{f(A),Q=!1}}}}function M(A){A.source===l&&typeof A.data=="string"&&A.data.indexOf(h)===0&&v(+A.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof We<"u"?We:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ut)),ut.exports}var So=Io();const To=bt(So);function Me(e,t){return Array.from(e.getElementsByTagName(t))}function qe(e){return e[0]==="#"?e:`#${e}`}function xo(e,t,r){return Array.from(e.getElementsByTagNameNS(r,t))}function Qe(e){return e==null||e.normalize(),(e==null?void 0:e.textContent)||""}function me(e,t,r){const i=e.getElementsByTagName(t);return i.length?i[0]:null}function Ce(e,t,r){const i={};if(!e)return i;const o=e.getElementsByTagName(t),s=o.length?o[0]:null;return s&&r?r(s,i):i}function Ee(e,t,r){const i=Qe(me(e,t));return i&&r?r(i)||{}:{}}function ye(e,t,r){const i=Number.parseFloat(Qe(me(e,t)));if(!Number.isNaN(i))return r&&r(i),i}function ot(e,t){const r={};for(const i of t)Ee(e,i,o=>{r[i]=o});return r}function M1(e){return(e==null?void 0:e.nodeType)===1}function C1(e,t){const r={},i=t==="stroke"||t==="fill"?t:`${t}-color`;return e[0]==="#"&&(e=e.substring(1)),e.length===6||e.length===3?r[i]=`#${e}`:e.length===8&&(r[`${t}-opacity`]=Number.parseInt(e.substring(0,2),16)/255,r[i]=`#${e.substring(6,8)}${e.substring(4,6)}${e.substring(2,4)}`),r}function et(e,t,r){const i={};return ye(e,t,o=>{i[r]=o}),i}function At(e,t){return Ce(e,"color",r=>C1(Qe(r),t))}function _t(e){return Ce(e,"Icon",(t,r)=>(Ee(t,"href",i=>{r.icon=i}),r))}function Lo(e){return Ce(e,"IconStyle",t=>Object.assign(At(t,"icon"),et(t,"scale","icon-scale"),et(t,"heading","icon-heading"),Ce(t,"hotSpot",r=>{const i=Number.parseFloat(r.getAttribute("x")||""),o=Number.parseFloat(r.getAttribute("y")||""),s=r.getAttribute("xunits")||"",l=r.getAttribute("yunits")||"";return!Number.isNaN(i)&&!Number.isNaN(o)?{"icon-offset":[i,o],"icon-offset-units":[s,l]}:{}}),_t(t)))}function Eo(e){return Ce(e,"LabelStyle",t=>Object.assign(At(t,"label"),et(t,"scale","label-scale")))}function zo(e){return Ce(e,"LineStyle",t=>Object.assign(At(t,"stroke"),et(t,"width","stroke-width")))}function jo(e){return Ce(e,"PolyStyle",(t,r)=>Object.assign(r,Ce(t,"color",i=>C1(Qe(i),"fill")),Ee(t,"fill",i=>{if(i==="0")return{"fill-opacity":0}}),Ee(t,"outline",i=>{if(i==="0")return{"stroke-opacity":0}})))}function it(e){return Object.assign({},jo(e),zo(e),Eo(e),Lo(e))}const Bo=/\s*/g,Oo=/^\s*|\s*$/g,Fo=/\s+/;function A1(e){return e.replace(Bo,"").split(",").map(Number.parseFloat).filter(t=>!Number.isNaN(t)).slice(0,3)}function gt(e){return e.replace(Oo,"").split(Fo).map(A1).filter(t=>t.length>=2)}function Po(e){let t=Me(e,"coord");t.length===0&&(t=xo(e,"coord","*"));const r=t.map(i=>Qe(i).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(i=>Qe(i))}}function _1(e){if(e.length===0)return e;const t=e[0],r=e[e.length-1];let i=!0;for(let o=0;o<Math.max(t.length,r.length);o++)if(t[o]!==r[o]){i=!1;break}return i?e:e.concat([e[0]])}function He(e){return Qe(me(e,"coordinates"))}function D1(e){let t=[],r=[];for(let i=0;i<e.childNodes.length;i++){const o=e.childNodes.item(i);if(M1(o))switch(o.tagName){case"MultiGeometry":case"MultiTrack":case"gx:MultiTrack":{const s=D1(o);t=t.concat(s.geometries),r=r.concat(s.coordTimes);break}case"Point":{const s=A1(He(o));s.length>=2&&t.push({type:"Point",coordinates:s});break}case"LinearRing":case"LineString":{const s=gt(He(o));s.length>=2&&t.push({type:"LineString",coordinates:s});break}case"Polygon":{const s=[];for(const l of Me(o,"LinearRing")){const a=_1(gt(He(l)));a.length>=4&&s.push(a)}s.length&&t.push({type:"Polygon",coordinates:s});break}case"Track":case"gx:Track":{const s=Po(o);if(!s)break;const{times:l,geometry:a}=s;t.push(a),l.length&&r.push(l);break}}}return{geometries:t,coordTimes:r}}const Le=e=>Number(e),mt={string:e=>e,int:Le,uint:Le,short:Le,ushort:Le,float:Le,double:Le,bool:e=>!!e};function Dt(e,t){return Ce(e,"ExtendedData",(r,i)=>{for(const o of Me(r,"Data"))i[o.getAttribute("name")||""]=Qe(me(o,"value"));for(const o of Me(r,"SimpleData")){const s=o.getAttribute("name")||"",l=t[s]||mt.string;i[s]=l(Qe(o))}return i})}function Nt(e){const t=me(e,"description");for(const r of Array.from((t==null?void 0:t.childNodes)||[]))if(r.nodeType===4)return{description:{"@type":"html",value:Qe(r)}};return{}}function It(e){return Ce(e,"TimeSpan",t=>({timespan:{begin:Qe(me(t,"begin")),end:Qe(me(t,"end"))}}))}function St(e){return Ce(e,"TimeStamp",t=>({timestamp:Qe(me(t,"when"))}))}function Tt(e,t){return Ee(e,"styleUrl",r=>(r=qe(r),t[r]?Object.assign({styleUrl:r},t[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 Ro(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 $o(e){return me(e,"gx:LatLonQuad")?{geometry:{type:"Polygon",coordinates:[_1(gt(He(e)))]}}:Wo(e)}const Vo=Math.PI/180;function Uo(e,t,r){const i=[(e[0]+e[2])/2,(e[1]+e[3])/2];return[t[0].map(o=>{const s=o[1]-i[1],l=o[0]-i[0],a=Math.sqrt(s**2+l**2),c=Math.atan2(s,l)+r*Vo;return[i[0]+Math.cos(c)*a,i[1]+Math.sin(c)*a]})]}function Wo(e){const t=me(e,"LatLonBox");if(t){const r=ye(t,"north"),i=ye(t,"west"),o=ye(t,"east"),s=ye(t,"south"),l=ye(t,"rotation");if(typeof r=="number"&&typeof s=="number"&&typeof i=="number"&&typeof o=="number"){const a=[i,s,o,r];let c=[[[i,r],[o,r],[o,s],[i,s],[i,r]]];return typeof l=="number"&&(c=Uo(a,c,l)),{bbox:a,geometry:{type:"Polygon",coordinates:c}}}}return null}function Zo(e,t,r,i){var c;const o=$o(e),s=(o==null?void 0:o.geometry)||null;if(!s&&i.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"groundoverlay"},ot(e,["name","address","visibility","open","phoneNumber","description"]),Nt(e),Tt(e,t),it(e),_t(e),Dt(e,r),It(e),St(e))};o!=null&&o.bbox&&(l.bbox=o.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 Yo(e){const t=me(e,"Region");return t?{coordinateBox:Ho(t),lod:Go(e)}:null}function Go(e){const t=me(e,"Lod");return t?[ye(t,"minLodPixels")??-1,ye(t,"maxLodPixels")??-1,ye(t,"minFadeExtent")??null,ye(t,"maxFadeExtent")??null]:null}function Ho(e){const t=me(e,"LatLonAltBox");if(t){const r=ye(t,"north"),i=ye(t,"west"),o=ye(t,"east"),s=ye(t,"south");if(Ro(me(t,"altitudeMode")||me(t,"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 i=="number"&&typeof o=="number")return{bbox:[i,s,o,r],geometry:{type:"Polygon",coordinates:[[[i,r],[o,r],[o,s],[i,s],[i,r]]]}}}return null}function Jo(e){const t=me(e,"Link");return t?ot(t,["href","refreshMode","refreshInterval","viewRefreshMode","viewRefreshTime","viewBoundScale","viewFormat","httpQuery"]):{}}function Xo(e,t,r,i){var c,g,y;const o=Yo(e),s=((c=o==null?void 0:o.coordinateBox)==null?void 0:c.geometry)||null;if(!s&&i.skipNullGeometry)return null;const l={type:"Feature",geometry:s,properties:Object.assign({"@geometry-type":"networklink"},ot(e,["name","address","visibility","open","phoneNumber","styleUrl","refreshVisibility","flyToView","description"]),Nt(e),Tt(e,t),it(e),_t(e),Dt(e,r),It(e),St(e),Jo(e),o!=null&&o.lod?{lod:o.lod}:{})};(g=o==null?void 0:o.coordinateBox)!=null&&g.bbox&&(l.bbox=o.coordinateBox.bbox),((y=l.properties)==null?void 0:y.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function Ko(e){return e.length===0?null:e.length===1?e[0]:{type:"GeometryCollection",geometries:e}}function qo(e,t,r,i){var g;const{coordTimes:o,geometries:s}=D1(e),l=Ko(s);if(!l&&i.skipNullGeometry)return null;const a={type:"Feature",geometry:l,properties:Object.assign(ot(e,["name","address","visibility","open","phoneNumber","description"]),Nt(e),Tt(e,t),it(e),Dt(e,r),It(e),St(e),o.length?{coordinateProperties:{times:o.length===1?o[0]:o}}:{})};((g=a.properties)==null?void 0:g.visibility)!==void 0&&(a.properties.visibility=a.properties.visibility!=="0");const c=e.getAttribute("id");return c!==null&&c!==""&&(a.id=c),a}function ei(e){let t=e.getAttribute("id");const r=e.parentNode;return!t&&M1(r)&&r.localName==="CascadingStyle"&&(t=r.getAttribute("kml:id")||r.getAttribute("id")),qe(t||"")}function ti(e){const t={};for(const r of Me(e,"Style"))t[ei(r)]=it(r);for(const r of Me(e,"StyleMap")){const i=qe(r.getAttribute("id")||"");Ee(r,"styleUrl",o=>{o=qe(o),t[o]&&(t[i]=t[o])})}return t}function ni(e){const t={};for(const r of Me(e,"SimpleField"))t[r.getAttribute("name")||""]=mt[r.getAttribute("type")||""]||mt.string;return t}function*ri(e,t={skipNullGeometry:!1}){const r=e,i=ti(r),o=ni(r);for(const s of Me(r,"Placemark")){const l=qo(s,i,o,t);l&&(yield l)}for(const s of Me(r,"GroundOverlay")){const l=Zo(s,i,o,t);l&&(yield l)}for(const s of Me(r,"NetworkLink")){const l=Xo(s,i,o,t);l&&(yield l)}}function oi(e,t={skipNullGeometry:!1}){return{type:"FeatureCollection",features:Array.from(ri(e,t))}}function wt(e){const t=[],r=e.replace(/\s+/g," ").trim();if(!r)return t;const i=r.split(/\s+/);for(const o of i){const s=o.split(",").map(l=>Number(l.trim()));s.length>=2&&Number.isFinite(s[0])&&Number.isFinite(s[1])&&t.push([s[0],s[1]])}return t}function ii(e){const t=e.split(",").map(r=>Number(r.trim()));return t.length>=2&&Number.isFinite(t[0])&&Number.isFinite(t[1])?[t[0],t[1]]:null}function Kt(e){return e.replace(/wpml:/g,"")}function qt(e){const t=[],r=e.getElementsByTagName("Placemark");for(let i=0;i<r.length;i++){const o=r[i],s=o.getElementsByTagName("LineString")[0],l=o.getElementsByTagName("Point")[0];if(s){const a=s.getElementsByTagName("coordinates")[0];a!=null&&a.textContent&&t.push(...wt(a.textContent))}else if(l){const a=l.getElementsByTagName("coordinates")[0];if(a!=null&&a.textContent){const c=ii(a.textContent.trim());c&&t.push(c)}}}return t}function ai(e){const t=[],r=e.getElementsByTagName("Folder");if(r.length===0){const i=qt(e.documentElement);return i.length&&t.push(i),t}for(let i=0;i<r.length;i++){const o=qt(r[i]);o.length&&t.push(o)}return t}function li(e){const t=e.getElementsByTagName("LinearRing");for(let i=0;i<t.length;i++){const o=t[i].getElementsByTagName("coordinates")[0];if(o!=null&&o.textContent){const s=wt(o.textContent);if(s.length>=3)return s}}const r=e.getElementsByTagName("Polygon");for(let i=0;i<r.length;i++){const s=r[i].getElementsByTagName("LinearRing")[0];if(s){const l=s.getElementsByTagName("coordinates")[0];if(l!=null&&l.textContent){const a=wt(l.textContent);if(a.length>=3)return a}}}}function e1(e,t){if(e)switch(e.type){case"LineString":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&t.push([r[0],r[1]]);break;case"MultiLineString":for(const r of e.coordinates)for(const i of r)i.length>=2&&Number.isFinite(i[0])&&Number.isFinite(i[1])&&t.push([i[0],i[1]]);break;case"Polygon":for(const r of e.coordinates)for(const i of r)i.length>=2&&Number.isFinite(i[0])&&Number.isFinite(i[1])&&t.push([i[0],i[1]]);break;case"MultiPolygon":for(const r of e.coordinates)for(const i of r)for(const o of i)o.length>=2&&Number.isFinite(o[0])&&Number.isFinite(o[1])&&t.push([o[0],o[1]]);break;case"Point":Array.isArray(e.coordinates)&&e.coordinates.length>=2&&Number.isFinite(e.coordinates[0])&&Number.isFinite(e.coordinates[1])&&t.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])&&t.push([r[0],r[1]]);break}}function si(e){const t=[];return e.features.forEach(r=>{if(r.geometry){const i=r.geometry;i.type==="GeometryCollection"&&Array.isArray(i.geometries)?i.geometries.forEach(o=>e1(o,t)):e1(i,t)}}),t}function t1(e){const r=new DOMParser().parseFromString(e,"text/xml"),i=oi(r);return si(i)}async function N1(e){var r;const t={points:[],polylines:[]};try{if(!e||typeof e!="string"||e.trim()==="")return console.warn("KMZ URL 为空或无效"),t;const i=await fetch(e,{mode:"cors",credentials:"omit"});if(!i.ok)throw new Error(`HTTP错误: ${i.status} ${i.statusText}`);const o=await i.arrayBuffer(),a=(await new To().loadAsync(o)).files,c=Object.keys(a).filter(m=>!a[m].dir),g=async m=>{const Q=a[m];return Q?Q.async("text"):null},y={points:[],polylines:[]},h=c.find(m=>m.replace(/\\/g,"/").endsWith("wpmz/waylines.wpml"))||c.find(m=>m.toLowerCase().endsWith("waylines.wpml"));if(h){const m=await g(h);if(m){const Q=Kt(m),w=new DOMParser().parseFromString(Q,"text/xml"),f=ai(w);f.length&&(y.polylines=f,y.points=f.flat())}}const k=c.find(m=>m.replace(/\\/g,"/").endsWith("wpmz/template.kml"))||c.find(m=>m.toLowerCase().endsWith("template.kml"));if(k){const m=await g(k);if(m){const Q=Kt(m),w=new DOMParser().parseFromString(Q,"text/xml"),f=li(w);f!=null&&f.length&&(y.polygonOutline=f);const v=t1(Q);v.length&&!y.points.length&&(y.points=v)}}if(!y.points.length&&!y.polylines.length){const m=c.find(Q=>Q.toLowerCase().endsWith(".kml"));if(m){const Q=await g(m);if(Q){const u=t1(Q);u.length&&(y.points=u,y.polylines=[u])}}}return!y.points.length&&((r=y.polygonOutline)!=null&&r.length)&&(y.points=[...y.polygonOutline]),y.points.length&&!y.polylines.length&&(y.polylines=[y.points]),y}catch(i){return console.error("KMZ解析失败:",i),t}}const ci=async e=>(await N1(e)).points;function Je(e){return e===!1?!1:e===0||String(e)==="0"||e?e:"-"}function I1(e){const{size:t,unit:r="B",maxUnit:i,numberFormatOptions:o}=e,{size:s,unit:l}=xt({size:t,unit:r},{maxUnit:i});return`${s.toLocaleString(void 0,o)} ${l}`}function xt(e,t){const r=["B","KB","MB","GB","TB"],{size:i,unit:o="B"}=e,s=r.indexOf(o);if(s===-1||s===r.length-1)return{size:i,unit:o};const l=(t==null?void 0:t.maxUnit)||"TB",a=r.indexOf(l);return s===a?{size:i,unit:o}:i<1024?{size:i,unit:o}:xt({size:i/1024,unit:r[s+1]},t)}function Lt(e,t="-"){return(r,i)=>r===0||r==="0"?e?e(r,i):r:r?e?e(r,i):r.toString():t}function S1(e,t){const r=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getHours(),l=s%12||12,a=e.getMinutes(),c=e.getSeconds(),g=e.getMilliseconds(),y=s<12?"AM":"PM",h={YYYY:String(r).padStart(4,"0"),YY:String(r%100).padStart(2,"0"),MM:String(i).padStart(2,"0"),M:String(i),DD:String(o).padStart(2,"0"),D:String(o),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(g).padStart(3,"0"),SS:String(g).padStart(3,"0").slice(0,2),S:String(g).padStart(3,"0").charAt(0),A:y,a:y.toLowerCase()};return t.replace(/YYYY|YY|MM|M|DD|D|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a/g,k=>h[k]??k)}function T1(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 t=new Date(e);return isNaN(t.getTime())?(t=new Date(e.replace(" ","T")),isNaN(t.getTime())?null:t):t}function x1(e){if(e==null)return null;if(e instanceof Date)return e;const t=Number(e);if(Number.isFinite(t)){const r=String(Math.floor(t)).length;if(r===10)return t*1e3;if(r===13)return t;if(t===0)return 0}return e}function ui(e,t="YYYY-MM-DD HH:mm:ss"){const r=x1(e);if(!r&&r!==0)return Je(e);const i=T1(r);return Je(i?S1(i,t):e)}function di(e="YYYY-MM-DD HH:mm:ss",t="-"){return(r,i)=>{if(r===0||r==="0")return String(r);const o=x1(r);if(!r||r==="Invalid Date")return t;try{const s=T1(o);if(!s)return t;const l=S1(s,e);return!l||l==="Invalid Date"?t:l}catch(s){return console.error("Date formatting failed:",s),t}}}function fi(e="-",t){return Lt(i=>{const o=typeof i=="string"?Number(i):i;return Number.isFinite(o)?I1({size:o,unit:(t==null?void 0:t.unit)||"B",numberFormatOptions:{maximumFractionDigits:t==null?void 0:t.digits,minimumFractionDigits:t==null?void 0:t.digits}}):i},e)}function hi(e="-",t){return Lt(i=>{const o=["B","KB","MB","GB","TB"];let s=typeof i=="string"?Number(i):i,l=(t==null?void 0:t.unit)||"B";const a=(t==null?void 0:t.digits)??2;if(s===0)return`${s.toFixed(a)} ${l}`;let c=o.indexOf(l);for(c===-1&&(c=0,l="B");c<o.length-1&&s%1024===0;)s=s/1024,c++,l=o[c];return`${s.toFixed(a)} ${l}`},e)}function pi(e,t,r,i){const o=["B","KB","MB","GB","TB"],s=(i==null?void 0:i.digits)??2,l=(i==null?void 0:i.showUnit)??!0,a=typeof e=="string"?Number(e):e;if(!Number.isFinite(a))return e;const c=o.indexOf(t),g=o.indexOf(r);if(c===-1||g===-1)return e;const y=c-g,k=(a*Math.pow(1024,y)).toFixed(s);return l?`${k} ${r}`:Number(k)}const gi=Object.freeze(Object.defineProperty({__proto__:null,convertDataUnit:pi,defaultAutoDataFormat:hi,defaultDataFormat:fi,defaultDateFormat:di,defaultFill:Je,defaultFormat:Lt,formatDate:ui,formatSize:I1,getUpperSize:xt},Symbol.toStringTag,{value:"Module"}));function mi(e){return Array.isArray(e)?[...new Set(e)]:e}function wi(e,t){if(!Array.isArray(e))return e;const r=new Map;return e.filter(i=>{const o=i[t];return r.has(o)?!1:(r.set(o,!0),!0)})}function yi(e,t){if(!Array.isArray(e))return e;const r=new Set;return e.filter(i=>{const o=t.map(s=>i[s]).join("|");return r.has(o)?!1:(r.add(o),!0)})}function vi(e,t){if(!Array.isArray(e))return e;const{idKey:r="id",parentKey:i="parentId",childrenKey:o="children",rootParentValue:s=null}=t||{},l=new Map,a=[];return e.forEach(c=>{l.set(c[r],{...c,[o]:[]})}),e.forEach(c=>{const g=l.get(c[r]);if(!g)return;const y=c[i];if(y===s||y===void 0)a.push(g);else{const h=l.get(y);h?(h[o]||(h[o]=[]),h[o].push(g)):a.push(g)}}),a}function Qi(e,t="children"){if(!Array.isArray(e))return e;const r=[],i=o=>{o.forEach(s=>{const l=s[t],a={...s};delete a[t],r.push(a),Array.isArray(l)&&l.length>0&&i(l)})};return i(e),r}function L1(e,t,r="children"){if(!Array.isArray(e))return null;for(const i of e){if(t(i))return i;if(Array.isArray(i[r])&&i[r].length>0){const o=L1(i[r],t,r);if(o)return o}}return null}function ki(e,t,r="children"){if(!Array.isArray(e))return;const i=(o,s,l)=>{o.forEach(a=>{t(a,s,l),Array.isArray(a[r])&&a[r].length>0&&i(a[r],a,l+1)})};i(e,null,0)}function bi(e,t){return Array.isArray(e)?e.reduce((r,i)=>{const o=String(i[t]);return r[o]||(r[o]=[]),r[o].push(i),r},{}):{}}function Mi(e,t){return Array.isArray(e)?e.reduce((r,i)=>{const o=t(i);return r[o]||(r[o]=[]),r[o].push(i),r},{}):{}}function Ci(e,t,r="asc"){return Array.isArray(e)?[...e].sort((i,o)=>{const s=i[t],l=o[t];return s<l?r==="asc"?-1:1:s>l?r==="asc"?1:-1:0}):e}function Ai(e,t){return Array.isArray(e)?[...e].sort((r,i)=>{for(const{key:o,order:s="asc"}of t){const l=r[o],a=i[o];if(l<a)return s==="asc"?-1:1;if(l>a)return s==="asc"?1:-1}return 0}):e}function E1(e,t){return Array.isArray(e)?e.reduce((r,i)=>{const o=t?i[t]:i;return r+(Number(o)||0)},0):0}function _i(e,t){return!Array.isArray(e)||e.length===0?0:E1(e,t)/e.length}function Di(e,t){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(i=>{const o=t?i[t]:i;return Number(o)||0});return Math.max(...r)}function Ni(e,t){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(i=>{const o=t?i[t]:i;return Number(o)||0});return Math.min(...r)}function Ii(e,t){if(!Array.isArray(e)||t<=0)return[e];const r=[];for(let i=0;i<e.length;i+=t)r.push(e.slice(i,i+t));return r}function Si(e,t){if(!Array.isArray(e)||!Array.isArray(t))return[];const r=new Set(t);return e.filter(i=>r.has(i))}function Ti(e,t){return Array.isArray(e)?Array.isArray(t)?[...new Set([...e,...t])]:e||[]:t||[]}function xi(e,t){if(!Array.isArray(e))return[];if(!Array.isArray(t))return e;const r=new Set(t);return e.filter(i=>!r.has(i))}function z1(e){if(!Array.isArray(e))return e;const t=[...e];for(let r=t.length-1;r>0;r--){const i=Math.floor(Math.random()*(r+1));[t[r],t[i]]=[t[i],t[r]]}return t}function Li(e,t=1){return!Array.isArray(e)||t<=0?[]:z1(e).slice(0,Math.min(t,e.length))}function j1(e,t=1/0){return!Array.isArray(e)||t<=0?e:e.reduce((r,i)=>(Array.isArray(i)?r.push(...j1(i,t-1)):r.push(i),r),[])}function Ei(e,t,r){if(!Array.isArray(e))return{data:[],page:t,pageSize:r,total:0,totalPages:0};const i=e.length,o=Math.ceil(i/r),s=(t-1)*r,l=s+r;return{data:e.slice(s,l),page:t,pageSize:r,total:i,totalPages:o}}function zi(e,t,r){if(!Array.isArray(e)||t<0||t>=e.length||r<0||r>=e.length)return e;const i=[...e],[o]=i.splice(t,1);return i.splice(r,0,o),i}function ji(e){return Array.isArray(e)?e.reduce((t,r)=>(t[r]=(t[r]||0)+1,t),{}):{}}const Bi=Object.freeze(Object.defineProperty({__proto__:null,arrayToTree:vi,average:_i,chunkArray:Ii,countBy:ji,difference:xi,findNodeInTree:L1,flatten:j1,forEachTree:ki,groupBy:bi,groupByFn:Mi,intersection:Si,max:Di,min:Ni,move:zi,paginate:Ei,sample:Li,shuffle:z1,sortBy:Ci,sortByMultiple:Ai,sum:E1,treeToArray:Qi,union:Ti,uniqueArray:mi,uniqueArrayByKey:wi,uniqueArrayByKeys:yi},Symbol.toStringTag,{value:"Module"}));async function Oi(e){if(!e)return!1;if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch(t){console.error("Clipboard API 失败:",t)}try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",t.style.top="-9999px",document.body.appendChild(t),t.select(),t.setSelectionRange(0,e.length);const r=document.execCommand("copy");return document.body.removeChild(t),r}catch(t){return console.error("复制失败:",t),!1}}async function Fi(){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.readText()}catch(e){return console.error("读取剪贴板失败:",e),""}return""}function Et(e,t){const r=document.createElement("a");typeof e=="string"?r.href=e:r.href=URL.createObjectURL(e),r.download=t,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof e!="string"&&setTimeout(()=>URL.revokeObjectURL(r.href),100)}function Pi(e,t){const r=JSON.stringify(e,null,2),i=new Blob([r],{type:"application/json"});Et(i,t)}function Ri(e,t){const r=new Blob([e],{type:"text/plain"});Et(r,t)}function zt(e){window.scrollTo(e)}function $i(e,t){const r=typeof e=="string"?document.querySelector(e):e;r&&r.scrollIntoView({behavior:"smooth",block:"start",...t})}function Vi(e=!0){zt({top:0,behavior:e?"smooth":"auto"})}function Ui(e=!0){zt({top:document.documentElement.scrollHeight,behavior:e?"smooth":"auto"})}function B1(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}}function Wi(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}function Zi(e,t=0){if(!e)return!1;const r=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return r.top>=0-t&&r.left>=0-t&&r.bottom<=i+t&&r.right<=o+t}function Yi(e){if(!e)return!1;const t=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,o=t.top<=r&&t.top+t.height>=0,s=t.left<=i&&t.left+t.width>=0;return o&&s}function Gi(e=document.documentElement){document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(t=>{console.error("进入全屏失败:",t)})}function Hi(e=document.documentElement){document.fullscreenElement||e.requestFullscreen().catch(t=>{console.error("进入全屏失败:",t)})}function Ji(){document.fullscreenElement&&document.exitFullscreen()}function Xi(){return!!document.fullscreenElement}function Ki(e,t){e&&e.classList.add(t)}function qi(e,t){e&&e.classList.remove(t)}function e8(e,t){e&&e.classList.toggle(t)}function t8(e,t){return e?e.classList.contains(t):!1}function n8(e){return e?Array.from(e.classList):[]}function r8(e){return e?e.getBoundingClientRect():null}function o8(e){return e?e.offsetWidth:0}function i8(e){return e?e.offsetHeight:0}function a8(e,t=document){return t.querySelector(e)}function l8(e,t=document){return Array.from(t.querySelectorAll(e))}function s8(e,t){return e?e.getAttribute(t):null}function c8(e,t,r){e&&e.setAttribute(t,r)}function u8(e,t){e&&e.removeAttribute(t)}function d8(e,t){return e?e.hasAttribute(t):!1}function f8(e,t){return e&&window.getComputedStyle(e)[t]||""}function h8(e,t){e&&Object.keys(t).forEach(r=>{e.style[r]=t[r]})}function p8(){return{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function O1(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}function g8(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)}function m8(e=0){const{y:t}=B1(),r=window.innerHeight||document.documentElement.clientHeight,i=O1();return t+r>=i-e}const w8=Object.freeze(Object.defineProperty({__proto__:null,addClass:Ki,copyToClipboard:Oi,downloadFile:Et,downloadJSON:Pi,downloadText:Ri,enterFullscreen:Hi,exitFullscreen:Ji,getAttribute:s8,getClasses:n8,getElementHeight:i8,getElementRect:r8,getElementWidth:o8,getOffsetTop:Wi,getPageHeight:O1,getPageWidth:g8,getScrollPosition:B1,getStyle:f8,getWindowSize:p8,hasAttribute:d8,hasClass:t8,isFullscreen:Xi,isInViewport:Zi,isPartiallyVisible:Yi,isScrolledToBottom:m8,querySelector:a8,querySelectorAll:l8,readFromClipboard:Fi,removeAttribute:u8,removeClass:qi,scrollTo:zt,scrollToBottom:Ui,scrollToElement:$i,scrollToTop:Vi,setAttribute:c8,setStyle:h8,toggleClass:e8,toggleFullscreen:Gi},Symbol.toStringTag,{value:"Module"}));function y8(e,t){return Math.floor(Math.random()*(t-e+1))+e}function v8(e,t,r=2){const i=Math.random()*(t-e)+e;return Number(i.toFixed(r))}function Q8(e,t,r=1){const i=[];if(r===0)return i;if(r>0)for(let o=e;o<=t;o+=r)i.push(o);else for(let o=e;o>=t;o+=r)i.push(o);return i}function k8(e,t,r){return Math.min(Math.max(e,t),r)}function b8(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,o=Math.pow(10,Math.max(r,i));return(e*o+t*o)/o}function M8(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,o=Math.pow(10,Math.max(r,i));return(e*o-t*o)/o}function C8(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,o=Math.pow(10,r+i);return e*Math.pow(10,r)*t*Math.pow(10,i)/o}function A8(e,t){if(t===0)return console.warn("Division by zero"),1/0;const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length;return e*Math.pow(10,i)/(t*Math.pow(10,r))*Math.pow(10,r-i)}function jt(e,t=0){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}function _8(e,t=0){return Math.ceil(e*Math.pow(10,t))/Math.pow(10,t)}function D8(e,t=0){return Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}function N8(e,t=0){return jt(e,t).toFixed(t)}function I8(e,t,r=2){return t===0?0:jt(e/t*100,r)}function S8(e){return e/100}function T8(e){return e*100}function x8(e,t=2){return String(e).padStart(t,"0")}function L8(e){const t=["零","一","二","三","四","五","六","七","八","九"],r=["","十","百","千","万"];if(e===0)return"零";if(e<0||e>99999)return String(e);const i=String(e);let o="",s=0;for(let l=0;l<i.length;l++){const a=parseInt(i[l]),c=r[i.length-1-l];a===0?s++:(s>0&&(o+="零"),o+=t[a]+c,s=0)}return e>=10&&e<20&&(o=o.replace("一十","十")),o}function E8(e){const t=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=["","拾","佰","仟","万","拾","佰","仟","亿"],i=["角","分"];if(e===0)return"零元整";const[o,s=""]=e.toFixed(2).split(".");let l="";for(let a=0;a<o.length;a++){const c=parseInt(o[a]),g=r[o.length-1-a];c!==0?l+=t[c]+g: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+=t[c]+i[a])}else l+="整";return l}function z8(e){return e%2===0}function j8(e){return e%2!==0}function B8(e){if(e<2)return!1;if(e===2)return!0;if(e%2===0)return!1;for(let t=3;t<=Math.sqrt(e);t+=2)if(e%t===0)return!1;return!0}function O8(e,t,r){return e>=t&&e<=r}function F8(e){return Math.abs(e)}function P8(e){return Math.sqrt(e)}function R8(e,t){return Math.pow(e,t)}function F1(e){return e<0?NaN:e===0||e===1?1:e*F1(e-1)}function Bt(e,t){return t===0?e:Bt(t,e%t)}function $8(e,t){return e*t/Bt(e,t)}const V8=Object.freeze(Object.defineProperty({__proto__:null,abs:F8,add:b8,ceil:_8,clamp:k8,decimalToPercent:T8,divide:A8,factorial:F1,floor:D8,gcd:Bt,inRange:O8,isEven:z8,isOdd:j8,isPrime:B8,lcm:$8,multiply:C8,padZero:x8,percentToDecimal:S8,percentage:I8,pow:R8,random:y8,randomFloat:v8,range:Q8,round:jt,sqrt:P8,subtract:M8,toChineseMoney:E8,toChineseNumber:L8,toFixed:N8},Symbol.toStringTag,{value:"Module"}));function tt(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=>tt(r));const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=tt(e[r]));return t}function U8(e){return e===null||typeof e!="object"?e:Array.isArray(e)?[...e]:{...e}}function P1(...e){if(e.length===0)return{};if(e.length===1)return e[0];const t={};return e.forEach(r=>{!r||typeof r!="object"||Object.keys(r).forEach(i=>{const o=r[i],s=t[i];o&&typeof o=="object"&&!Array.isArray(o)&&s&&typeof s=="object"&&!Array.isArray(s)?t[i]=P1(s,o):t[i]=tt(o)})}),t}function W8(...e){return Object.assign({},...e)}function Z8(e,t){if(!e||typeof e!="object")return{};const r={};return t.forEach(i=>{i in e&&(r[i]=e[i])}),r}function Y8(e,t){if(!e||typeof e!="object")return{};const r={...e};return t.forEach(i=>{delete r[i]}),r}function G8(e,t,r){if(!e||typeof e!="object")return r;const i=t.split(".");let o=e;for(const s of i)if(o&&typeof o=="object"&&s in o)o=o[s];else return r;return o!==void 0?o:r}function R1(e,t,r){if(!e||typeof e!="object")return;const i=t.split("."),o=i.pop();if(!o)return;let s=e;for(const l of i)(!(l in s)||typeof s[l]!="object")&&(s[l]={}),s=s[l];s[o]=r}function H8(e,t){if(!e||typeof e!="object")return!1;const r=t.split(".");let i=e;for(const o of r)if(i&&typeof i=="object"&&o in i)i=i[o];else return!1;return!0}function J8(e){return e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function X8(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function yt(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.toString()===t.toString();if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((o,s)=>yt(o,t[s]));const r=Object.keys(e),i=Object.keys(t);return r.length!==i.length?!1:r.every(o=>yt(e[o],t[o]))}function vt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>vt(r));const t={};return Object.keys(e).forEach(r=>{const i=r.replace(/_([a-z])/g,(s,l)=>l.toUpperCase()),o=e[r];t[i]=typeof o=="object"?vt(o):o}),t}function Qt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Qt(r));const t={};return Object.keys(e).forEach(r=>{const i=r.replace(/([A-Z])/g,"_$1").toLowerCase(),o=e[r];t[i]=typeof o=="object"?Qt(o):o}),t}function K8(e){return!e||typeof e!="object"?"":Object.keys(e).filter(t=>e[t]!==void 0&&e[t]!==null).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${encodeURIComponent(t)}=${encodeURIComponent(i)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(r)}`}).join("&")}function q8(e){if(!e)return{};const t=e.startsWith("?")?e.slice(1):e,r={};return t.split("&").forEach(i=>{const[o,s]=i.split("=").map(decodeURIComponent);o&&(o in r?Array.isArray(r[o])?r[o].push(s):r[o]=[r[o],s]:r[o]=s)}),r}function $1(e,t){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(i=>{t(e[i],i)&&(r[i]=e[i])}),r}function ea(e,t=!0){return $1(e,r=>!(r==null||t&&r===""))}function V1(e,t=""){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(i=>{const o=t?`${t}.${i}`:i,s=e[i];s&&typeof s=="object"&&!Array.isArray(s)?Object.assign(r,V1(s,o)):r[o]=s}),r}function ta(e){if(!e||typeof e!="object")return{};const t={};return Object.keys(e).forEach(r=>{R1(t,r,e[r])}),t}function na(e){if(!e||typeof e!="object")return{};const t={};return Object.keys(e).forEach(r=>{const i=e[r];t[String(i)]=r}),t}function ra(e){return!e||typeof e!="object"?[]:Object.values(e)}function oa(e){return!e||typeof e!="object"?[]:Object.keys(e)}function ia(e){return!e||typeof e!="object"?[]:Object.entries(e)}const aa=Object.freeze(Object.defineProperty({__proto__:null,deepClone:tt,deepMerge:P1,entries:ia,filterValues:$1,flattenObject:V1,fromQueryString:q8,get:G8,has:H8,invert:na,isEmpty:J8,isEqual:yt,isPlainObject:X8,keys:oa,keysToCamelCase:vt,keysToUnderlineCase:Qt,omit:Y8,pick:Z8,removeEmpty:ea,set:R1,shallowClone:U8,shallowMerge:W8,toQueryString:K8,unflattenObject:ta,values:ra},Symbol.toStringTag,{value:"Module"}));function la(e,t=300,r=!1){let i=null,o=!1;const s=function(...l){i&&clearTimeout(i),r&&!o?(e.apply(this,l),o=!0):i=setTimeout(()=>{e.apply(this,l),o=!1,i=null},t)};return s.cancel=()=>{i&&(clearTimeout(i),i=null),o=!1},s}function sa(e,t=300,r){const{leading:i=!0,trailing:o=!0}=r||{};let s=null,l=0,a=null;const c=function(...g){const y=Date.now();!l&&!i&&(l=y);const h=t-(y-l);a=g,h<=0||h>t?(s&&(clearTimeout(s),s=null),l=y,e.apply(this,g),a=null):!s&&o&&(s=setTimeout(()=>{l=i?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 ca(e){let t=!1,r;return function(...i){return t||(t=!0,r=e.apply(this,i)),r}}function U1(e){return new Promise(t=>setTimeout(t,e))}function W1(e){return U1(e)}async function ua(e,t){const{times:r=3,delay:i=1e3,onRetry:o}=t||{};let s;for(let l=0;l<r;l++)try{return await e()}catch(a){s=a,o&&o(a,l+1),l<r-1&&await W1(i)}throw s}function da(e,t){return Promise.race([e,new Promise((r,i)=>setTimeout(()=>i(new Error("Timeout")),t))])}function fa(e,t){const r=new Map,i=function(...o){const s=t?t(...o):JSON.stringify(o);if(r.has(s))return r.get(s);const l=e.apply(this,o);return r.set(s,l),l};return i.cache=r,i}function ha(e){e.cache&&e.cache.clear()}function pa(e,t=100){let r=[],i=null;return function(o){r.push(o),i&&clearTimeout(i),i=setTimeout(()=>{e(r),r=[],i=null},t)}}async function ga(e,t){const r=[],i=[];for(const o of e){const s=o().then(l=>{r.push(l),i.splice(i.indexOf(s),1)});i.push(s),i.length>=t&&await Promise.race(i)}return await Promise.all(i),r}async function ma(e){const t=[];for(const r of e){const i=await r();t.push(i)}return t}function wa(e,t){return function(...r){const i=performance.now(),o=e.apply(this,r),l=(performance.now()-i).toFixed(2);return console.log(`${t||e.name||"Function"}: ${l}ms`),o}}function ya(e,t){return async function(...r){const i=performance.now(),o=await e.apply(this,r),l=(performance.now()-i).toFixed(2);return console.log(`${t||e.name||"Function"}: ${l}ms`),o}}function va(e){const t=new Map;return async function(...r){const i=JSON.stringify(r);if(t.has(i))return t.get(i);const o=e.apply(this,r).finally(()=>{t.delete(i)});return t.set(i,o),o}}function Qa(e){let t=null;const r=function(...i){t===null&&(t=requestAnimationFrame(()=>{e.apply(this,i),t=null}))};return r.cancel=()=>{t!==null&&(cancelAnimationFrame(t),t=null)},r}const ka=Object.freeze(Object.defineProperty({__proto__:null,batch:pa,clearCache:ha,debounce:la,dedupe:va,delay:U1,measureTime:wa,measureTimeAsync:ya,memoize:fa,once:ca,promiseLimit:ga,promiseSerial:ma,rafThrottle:Qa,retry:ua,sleep:W1,throttle:sa,withTimeout:da},Symbol.toStringTag,{value:"Module"}));function Se(e,t){return r=>{const i=String(r||"").trim();return!i||e(i)?!0:typeof t=="function"?t():t}}function Z1(e){return e?/^1[3-9]\d{9}$/.test(e):!1}function Y1(e){return e?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e):!1}function G1(e){return e?/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(e):!1}function H1(e){return e?/^\d{16,19}$/.test(e):!1}function J1(e){return e?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/.test(e):!1}function X1(e){return e?/^(https?:\/\/)([a-zA-Z0-9.-]+)(:[0-9]+)?(\/.*)?$/.test(e):!1}function K1(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 ba(e){return e?/^[\u4e00-\u9fa5]+$/.test(e):!1}function Ma(e){return e?/[\u4e00-\u9fa5]/.test(e):!1}function Ca(e){return e?/^\d+$/.test(e):!1}function Aa(e){return e?/^-?\d+\.?\d*$/.test(e):!1}function _a(e){return e?/^[1-9]\d*$/.test(e):!1}function Da(e){return!e&&e!=="0"?!1:/^(0|[1-9]\d*)$/.test(e)}function Na(e){return e?/^[1-9]\d{4,10}$/.test(e):!1}function Ia(e){return e?/^[a-zA-Z][a-zA-Z0-9_-]{5,19}$/.test(e):!1}function Sa(e){return e?/^[1-9]\d{5}$/.test(e):!1}function Ta(e){return e?/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e):!1}function xa(e){return e?/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{6,}$/.test(e):!1}function La(e){return e?/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e):!1}function Ea(e){if(!e)return!1;const t=Number(e);return/^\d+$/.test(e)&&t>=1&&t<=65535}function za(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 ja(e){return e?/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e):!1}function Ba(e="请输入有效的手机号"){return Se(Z1,e)}function Oa(e="请输入有效的邮箱地址"){return Se(Y1,e)}function Fa(e="请输入有效的身份证号"){return Se(G1,e)}function Pa(e="请输入有效的银行卡号"){return Se(H1,e)}function Ra(e="请输入有效的车牌号"){return Se(J1,e)}function $a(e="请输入有效的 URL 地址"){return Se(X1,e)}function Va(e="请输入有效的 IP 地址"){return Se(K1,e)}const Ua=Object.freeze(Object.defineProperty({__proto__:null,bankCardRule:Pa,carNumberRule:Ra,createFormRule:Se,emailRule:Oa,hasChinese:Ma,idCardRule:Fa,ipRule:Va,isBankCard:H1,isCarNumber:J1,isChinese:ba,isEmail:Y1,isHexColor:ja,isIP:K1,isIPv6:za,isIdCard:G1,isMac:La,isMediumPassword:xa,isNonNegativeInteger:Da,isNumber:Ca,isNumeric:Aa,isPhone:Z1,isPort:Ea,isPositiveInteger:_a,isPostcode:Sa,isQQ:Na,isStrongPassword:Ta,isUrl:X1,isWechat:Ia,phoneRule:Ba,urlRule:$a},Symbol.toStringTag,{value:"Module"}));function Wa(e){return!e||e.length!==11?e:e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function Za(e){if(!e||e.length<8)return e;const t=e.length;return e.substring(0,3)+"*".repeat(t-7)+e.substring(t-4)}function Ya(e){return!e||e.length===0||e.length===1?e:e.length===2?e[0]+"*":e.substring(0,e.length-1)+"*"}function Ga(e){if(!e||e.length<8)return e;const t=e.length,r=e.substring(0,4),i=e.substring(t-4);return`${r} **** **** ${i}`}function Ha(e){if(!e||!e.includes("@"))return e;const[t,r]=e.split("@");return t.length<=1?e:t[0]+"***@"+r}function Ja(e,t=6){return!e||e.length<=t?e:e.substring(0,t)+"***"}function Xa(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function Ka(e){return e&&e.replace(/\b\w/g,t=>t.toUpperCase())}function qa(e){return e&&e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase())}function e5(e){return e&&e.replace(/([A-Z])/g,"_$1").toLowerCase()}function t5(e){return e&&e.replace(/([A-Z])/g,"-$1").toLowerCase()}function n5(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 r5(e,t){const{currency:r="¥",decimals:i=2,thousandsSeparator:o=",",decimalSeparator:s="."}=t||{},l=typeof e=="string"?parseFloat(e):e;if(isNaN(l))return e.toString();const a=l.toFixed(i),[c,g]=a.split(".");let h=c.replace(/\B(?=(\d{3})+(?!\d))/g,o);return i>0&&g&&(h+=s+g),r+h}function o5(e,t=2){if(e===0)return"0 B";if(!e)return"";const r=1024,i=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(t))+" "+i[o]}function i5(e){return e&&e.replace(/\s/g,"").replace(/(\d{4})(?=\d)/g,"$1 ")}function a5(e){return e&&e.replace(/\s/g,"").replace(/(\d{3})(\d{4})(\d{4})/,"$1 $2 $3")}function l5(e=8,t="alphanumeric"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i="0123456789";let s=r+i;t==="alpha"&&(s=r),t==="number"&&(s=i);let l="";for(let a=0;a<e;a++)l+=s.charAt(Math.floor(Math.random()*s.length));return l}function s5(e){const t=Date.now(),r=Math.random().toString(36).substring(2,8);return e?`${e}_${t}_${r}`:`${t}_${r}`}function c5(e,t,r="..."){return!e||e.length<=t?e:e.substring(0,t)+r}function u5(e){return e&&e.replace(/<[^>]*>/g,"")}function d5(e){if(!e)return e;const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,r=>t[r])}function f5(e){if(!e)return e;const t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};return e.replace(/&(amp|lt|gt|quot|#x27|#x2F);/g,r=>t[r])}function h5(e){return e==null||e.trim()===""}function p5(e){return e&&e.split("").reverse().join("")}function g5(e,t){return!e||t<=0?"":e.repeat(t)}function m5(e,t,r=" "){return e||(e=""),e.padStart(t,r)}function w5(e,t,r=" "){return e||(e=""),e.padEnd(t,r)}const y5=Object.freeze(Object.defineProperty({__proto__:null,addressDesensitize:Ja,bankCardDesensitize:Ga,capitalize:Xa,capitalizeWords:Ka,emailDesensitize:Ha,escapeHtml:d5,formatBankCard:i5,formatFileSize:o5,formatMoney:r5,formatNumber:n5,formatPhone:a5,generateUUID:s5,idCardDesensitize:Za,isEmpty:h5,nameDesensitize:Ya,padEnd:w5,padStart:m5,phoneDesensitize:Wa,randomString:l5,removeHtmlTags:u5,repeat:g5,reverse:p5,toCamelCase:qa,toKebabCase:t5,toUnderlineCase:e5,truncate:c5,unescapeHtml:f5},Symbol.toStringTag,{value:"Module"}));function De(e){const t=e||(typeof window<"u"?window.location.href:"");if(!t)return{};const r=t.includes("?")?t.split("?")[1].split("#")[0]:"";if(!r)return{};const i={};return r.split("&").forEach(o=>{if(!o)return;const[s,l=""]=o.split("=").map(decodeURIComponent);s&&(s in i?Array.isArray(i[s])?i[s].push(l):i[s]=[i[s],l]:i[s]=l)}),i}function ze(e){return!e||typeof e!="object"?"":Object.keys(e).filter(t=>e[t]!==void 0&&e[t]!==null).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${encodeURIComponent(t)}=${encodeURIComponent(i)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(r)}`}).join("&")}function v5(e,t){const i=De(t)[e];return i===void 0?null:Array.isArray(i)?i[0]||null:i}function Q5(e,t){const i=De(t)[e];return i===void 0?[]:Array.isArray(i)?i:[i]}function k5(e,t="push"){if(typeof window>"u"||!window.history)return;const i={...De(),...e};Object.keys(i).forEach(l=>{(i[l]===null||i[l]===void 0)&&delete i[l]});const o=ze(i),s=o?`${window.location.pathname}?${o}`:window.location.pathname;t==="push"?window.history.pushState(null,"",s):window.history.replaceState(null,"",s)}function b5(e,t="push"){if(typeof window>"u"||!window.history)return;const r=De();e.forEach(s=>{delete r[s]});const i=ze(r),o=i?`${window.location.pathname}?${i}`:window.location.pathname;t==="push"?window.history.pushState(null,"",o):window.history.replaceState(null,"",o)}function M5(e="push"){if(typeof window>"u"||!window.history)return;const t=window.location.pathname;e==="push"?window.history.pushState(null,"",t):window.history.replaceState(null,"",t)}function C5(...e){return e.length===0?"":e.map((t,r)=>r===0?t.replace(/\/+$/,""):r===e.length-1?t.replace(/^\/+/,""):t.replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")}function A5(e){if(!e)return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:"",search:"",hash:"",host:"",origin:"",href:"",params:{}};try{const t=new URL(e);return{protocol:t.protocol,username:t.username,password:t.password,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,hash:t.hash,host:t.host,origin:t.origin,href:t.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 _5(e){const{protocol:t="https",hostname:r="",port:i="",pathname:o="",params:s={},hash:l=""}=e;if(!r)return o;let a=`${t}://${r}`;i&&(a+=`:${i}`),o&&(a+=o.startsWith("/")?o:`/${o}`);const c=ze(s);return c&&(a+=`?${c}`),l&&(a+=l.startsWith("#")?l:`#${l}`),a}function D5(e){return e?/^(https?:)?\/\//.test(e):!1}function N5(e){return e?e.startsWith("/"):!1}function I5(e,t){try{const r=new URL(e),i=new URL(t);return r.origin===i.origin}catch{return!1}}function S5(e){return encodeURIComponent(e)}function T5(e){try{return decodeURIComponent(e)}catch{return e}}function x5(e){if(!e)return"";try{return encodeURI(decodeURI(e))}catch{return encodeURI(e)}}function L5(e){if(!e)return"";try{return decodeURI(e)}catch{return e}}function E5(e,t){if(!e)return"";if(!t||Object.keys(t).length===0)return e;const[r,i]=e.split("#"),[o,s]=r.split("?"),a={...s?De("?"+s):{},...t},c=ze(a);let g=o;return c&&(g+=`?${c}`),i&&(g+=`#${i}`),g}function z5(e,t){if(!e)return"";if(!t||t.length===0)return e;const[r,i]=e.split("#"),[o,s]=r.split("?");if(!s)return e;const l=De("?"+s);t.forEach(g=>{delete l[g]});const a=ze(l);let c=o;return a&&(c+=`?${a}`),i&&(c+=`#${i}`),c}function q1(e){try{return new URL(e).hostname}catch{return""}}function j5(e){const t=q1(e);if(!t)return"";const r=t.split(".");return r.length<=2?t:r.slice(-2).join(".")}function B5(){return typeof window>"u"?"":window.location.href}function O5(){return typeof window>"u"?"":window.location.pathname}function F5(){return typeof window>"u"?{}:De(window.location.search)}function P5(){return typeof window>"u"?"":window.location.hash.replace(/^#/,"")}const R5=Object.freeze(Object.defineProperty({__proto__:null,addQueryParams:E5,buildUrl:_5,clearQueryParams:M5,decodeParam:T5,encodeParam:S5,getCurrentHash:P5,getCurrentPath:O5,getCurrentQuery:F5,getCurrentUrl:B5,getDomain:q1,getQueryParam:v5,getQueryParams:Q5,getRootDomain:j5,isAbsolutePath:N5,isExternalLink:D5,isSameOrigin:I5,joinUrl:C5,parseQuery:De,parseUrl:A5,removeQueryParams:b5,removeQueryParamsFromUrl:z5,safeDecodeUrl:L5,safeEncodeUrl:x5,stringifyQuery:ze,updateQueryParams:k5},Symbol.toStringTag,{value:"Module"})),$5={...gi,array:Bi,dom:w8,number:V8,object:aa,perf:ka,regex:Ua,string:y5,url:R5};exports.twcptResolver=n1.twcptResolver;exports.twcptResolverWithOptions=n1.twcptResolverWithOptions;exports.DialogProvider=kt;exports.JTWAmap=Y0;exports.JTWBtn=$e;exports.JTWCheckbox=o1;exports.JTWCheckboxGroup=c0;exports.JTWConfirmDialog=l1;exports.JTWConfirmDialogIcon=dt;exports.JTWDatePicker=hr;exports.JTWDateTimePicker=yr;exports.JTWDialog=d1;exports.JTWDialogFooterMode=u1;exports.JTWDialogPosition=s1;exports.JTWDialogSize=c1;exports.JTWDropdownBtn=gn;exports.JTWForm=X2;exports.JTWFormItem=e0;exports.JTWFormLabel=G2;exports.JTWInput=r0;exports.JTWMessages=a1;exports.JTWPagination=i1;exports.JTWRadio=f0;exports.JTWRadioGroup=g0;exports.JTWSelect=a0;exports.JTWStatusImg=nt;exports.JTWTable=Pr;exports.JTWToggle=k0;exports.JTWTooltip=y0;exports.JTWTreeSelect=R2;exports.JTWTreeSelectBtn=qn;exports.JTWTreeSelectInput=sr;exports.PAGE_ACTION_PERMISSION_KEY=v1;exports.PAGE_PERMISSION_KEY=y1;exports.composeIconMapFn=Co;exports.dialogConfirm=g1;exports.getLocale=w1;exports.getProjectPermissionId=ko;exports.getTwcptColors=Qo;exports.getTwcptConfig=bo;exports.jwDialog=l2;exports.parseKMZFromUrl=ci;exports.parseKMZRouteFromUrl=N1;exports.setLocale=Ke;exports.t=m1;exports.twConfirmDialog=g1;exports.twMessages=p1;exports.twTool=$5;exports.twcptIconMapFn=Mo;exports.twcptInit=yo;exports.useBizRequest=Do;exports.useI18n=wo;exports.usePageActionPermissionSync=_o;exports.usePagePermissionSync=Ao;exports.useRAFPolling=No;
65
+ */var Xt;function To(){return Xt||(Xt=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(o,i,s){function l(g,y){if(!i[g]){if(!o[g]){var h=typeof Ye=="function"&&Ye;if(!y&&h)return h(g,!0);if(a)return a(g,!0);var Q=new Error("Cannot find module '"+g+"'");throw Q.code="MODULE_NOT_FOUND",Q}var m=i[g]={exports:{}};o[g][0].call(m.exports,function(k){var u=o[g][1][k];return l(u||k)},m,m.exports,r,o,i,s)}return i[g].exports}for(var a=typeof Ye=="function"&&Ye,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 g,y,h,Q,m,k,u,w=[],f=0,v=c.length,b=v,A=s.getTypeOf(c)!=="string";f<c.length;)b=v-f,h=A?(g=c[f++],y=f<v?c[f++]:0,f<v?c[f++]:0):(g=c.charCodeAt(f++),y=f<v?c.charCodeAt(f++):0,f<v?c.charCodeAt(f++):0),Q=g>>2,m=(3&g)<<4|y>>4,k=1<b?(15&y)<<2|h>>6:64,u=2<b?63&h:64,w.push(a.charAt(Q)+a.charAt(m)+a.charAt(k)+a.charAt(u));return w.join("")},i.decode=function(c){var g,y,h,Q,m,k,u=0,w=0,f="data:";if(c.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var v,b=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===a.charAt(64)&&b--,c.charAt(c.length-2)===a.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(v=l.uint8array?new Uint8Array(0|b):new Array(0|b);u<c.length;)g=a.indexOf(c.charAt(u++))<<2|(Q=a.indexOf(c.charAt(u++)))>>4,y=(15&Q)<<4|(m=a.indexOf(c.charAt(u++)))>>2,h=(3&m)<<6|(k=a.indexOf(c.charAt(u++))),v[w++]=g,m!==64&&(v[w++]=y),k!==64&&(v[w++]=h);return v}},{"./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 g(y,h,Q,m,k){this.compressedSize=y,this.uncompressedSize=h,this.crc32=Q,this.compression=m,this.compressedContent=k}g.prototype={getContentWorker:function(){var y=new l(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),h=this;return y.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},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)}},g.createWorkerFrom=function(y,h,Q){return y.pipe(new a).pipe(new c("uncompressedSize")).pipe(h.compressWorker(Q)).pipe(new c("compressedSize")).withStreamInfo("compression",h)},o.exports=g},{"./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=[],g=0;g<256;g++){a=g;for(var y=0;y<8;y++)a=1&a?3988292384^a>>>1:a>>>1;c[g]=a}return c})();o.exports=function(a,c){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(g,y,h,Q){var m=l,k=Q+h;g^=-1;for(var u=Q;u<k;u++)g=g>>>8^m[255&(g^y[u])];return-1^g})(0|c,a,a.length,0):(function(g,y,h,Q){var m=l,k=Q+h;g^=-1;for(var u=Q;u<k;u++)g=g>>>8^m[255&(g^y.charCodeAt(u))];return-1^g})(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"),g=s?"uint8array":"array";function y(h,Q){c.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=Q,this.meta={}}i.magic="\b\0",a.inherits(y,c),y.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(g,h.data),!1)},y.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(Q){h.push({data:Q,meta:h.meta})}},i.compressWorker=function(h){return new y("Deflate",h)},i.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,o,i){function s(m,k){var u,w="";for(u=0;u<k;u++)w+=String.fromCharCode(255&m),m>>>=8;return w}function l(m,k,u,w,f,v){var b,A,N=m.file,j=m.compression,L=v!==g.utf8encode,R=a.transformTo("string",v(N.name)),D=a.transformTo("string",g.utf8encode(N.name)),E=N.comment,$=a.transformTo("string",v(E)),C=a.transformTo("string",g.utf8encode(E)),I=D.length!==N.name.length,p=C.length!==E.length,P="",X="",Z="",ae=N.dir,Y=N.date,ne={crc32:0,compressedSize:0,uncompressedSize:0};k&&!u||(ne.crc32=m.crc32,ne.compressedSize=m.compressedSize,ne.uncompressedSize=m.uncompressedSize);var B=0;k&&(B|=8),L||!I&&!p||(B|=2048);var z=0,re=0;ae&&(z|=16),f==="UNIX"?(re=798,z|=(function(O,ee){var le=O;return O||(le=ee?16893:33204),(65535&le)<<16})(N.unixPermissions,ae)):(re=20,z|=(function(O){return 63&(O||0)})(N.dosPermissions)),b=Y.getUTCHours(),b<<=6,b|=Y.getUTCMinutes(),b<<=5,b|=Y.getUTCSeconds()/2,A=Y.getUTCFullYear()-1980,A<<=4,A|=Y.getUTCMonth()+1,A<<=5,A|=Y.getUTCDate(),I&&(X=s(1,1)+s(y(R),4)+D,P+="up"+s(X.length,2)+X),p&&(Z=s(1,1)+s(y($),4)+C,P+="uc"+s(Z.length,2)+Z);var T="";return T+=`
66
+ \0`,T+=s(B,2),T+=j.magic,T+=s(b,2),T+=s(A,2),T+=s(ne.crc32,4),T+=s(ne.compressedSize,4),T+=s(ne.uncompressedSize,4),T+=s(R.length,2),T+=s(P.length,2),{fileRecord:h.LOCAL_FILE_HEADER+T+R+P,dirRecord:h.CENTRAL_FILE_HEADER+s(re,2)+T+s($.length,2)+"\0\0\0\0"+s(z,4)+s(w,4)+R+P+$}}var a=r("../utils"),c=r("../stream/GenericWorker"),g=r("../utf8"),y=r("../crc32"),h=r("../signature");function Q(m,k,u,w){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=k,this.zipPlatform=u,this.encodeFileName=w,this.streamFiles=m,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(m){var k=m.meta.percent||0,u=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,c.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:u?(k+100*(u-w-1))/u:100}}))},Q.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var k=this.streamFiles&&!m.file.dir;if(k){var u=l(m,k,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Q.prototype.closedSource=function(m){this.accumulate=!1;var k=this.streamFiles&&!m.file.dir,u=l(m,k,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),k)this.push({data:(function(w){return h.DATA_DESCRIPTOR+s(w.crc32,4)+s(w.compressedSize,4)+s(w.uncompressedSize,4)})(m),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 m=this.bytesWritten,k=0;k<this.dirRecords.length;k++)this.push({data:this.dirRecords[k],meta:{percent:100}});var u=this.bytesWritten-m,w=(function(f,v,b,A,N){var j=a.transformTo("string",N(A));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(f,2)+s(f,2)+s(v,4)+s(b,4)+s(j.length,2)+j})(this.dirRecords.length,u,m,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(m){this._sources.push(m);var k=this;return m.on("data",function(u){k.processChunk(u)}),m.on("end",function(){k.closedSource(k.previous.streamInfo),k._sources.length?k.prepareNextSource():k.end()}),m.on("error",function(u){k.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(m){var k=this._sources;if(!c.prototype.error.call(this,m))return!1;for(var u=0;u<k.length;u++)try{k[u].error(m)}catch{}return!0},Q.prototype.lock=function(){c.prototype.lock.call(this);for(var m=this._sources,k=0;k<m.length;k++)m[k].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,g){var y=new l(c.streamFiles,g,c.platform,c.encodeFileName),h=0;try{a.forEach(function(Q,m){h++;var k=(function(v,b){var A=v||b,N=s[A];if(!N)throw new Error(A+" is not a valid compression method !");return N})(m.options.compression,c.compression),u=m.options.compressionOptions||c.compressionOptions||{},w=m.dir,f=m.date;m._compressWorker(k,u).withStreamInfo("file",{name:Q,dir:w,date:f,comment:m.comment||"",unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions}).pipe(y)}),y.entriesCount=h}catch(Q){y.error(Q)}return y}},{"../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"),g=r("./stream/Crc32Probe"),y=r("./nodejsUtils");function h(Q){return new l.Promise(function(m,k){var u=Q.decompressed.getContentWorker().pipe(new g);u.on("error",function(w){k(w)}).on("end",function(){u.streamInfo.crc32!==Q.decompressed.crc32?k(new Error("Corrupted zip : CRC32 mismatch")):m()}).resume()})}o.exports=function(Q,m){var k=this;return m=s.extend(m||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),y.isNode&&y.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,m.optimizedBinaryString,m.base64).then(function(u){var w=new c(m);return w.load(u),w}).then(function(u){var w=[l.Promise.resolve(u)],f=u.files;if(m.checkCRC32)for(var v=0;v<f.length;v++)w.push(h(f[v]));return l.Promise.all(w)}).then(function(u){for(var w=u.shift(),f=w.files,v=0;v<f.length;v++){var b=f[v],A=b.fileNameStr,N=s.resolve(b.fileNameStr);k.file(N,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:m.createFolders}),b.dir||(k.file(N).unsafeOriginalName=A)}return w.zipComment.length&&(k.comment=w.zipComment),k})}},{"./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,g){l.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(g)}s.inherits(a,l),a.prototype._bindStream=function(c){var g=this;(this._stream=c).pause(),c.on("data",function(y){g.push({data:y,meta:{percent:0}})}).on("error",function(y){g.isPaused?this.generatedError=y:g.error(y)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.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,g){s.call(this,c),this._helper=a;var y=this;a.on("data",function(h,Q){y.push(h)||y._helper.pause(),g&&g(Q)}).on("error",function(h){y.emit("error",h)}).on("end",function(){y.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(N,j,L){var R,D=a.getTypeOf(j),E=a.extend(L||{},y);E.date=E.date||new Date,E.compression!==null&&(E.compression=E.compression.toUpperCase()),typeof E.unixPermissions=="string"&&(E.unixPermissions=parseInt(E.unixPermissions,8)),E.unixPermissions&&16384&E.unixPermissions&&(E.dir=!0),E.dosPermissions&&16&E.dosPermissions&&(E.dir=!0),E.dir&&(N=f(N)),E.createFolders&&(R=w(N))&&v.call(this,R,!0);var $=D==="string"&&E.binary===!1&&E.base64===!1;L&&L.binary!==void 0||(E.binary=!$),(j instanceof h&&j.uncompressedSize===0||E.dir||!j||j.length===0)&&(E.base64=!1,E.binary=!0,j="",E.compression="STORE",D="string");var C=null;C=j instanceof h||j instanceof c?j:k.isNode&&k.isStream(j)?new u(N,j):a.prepareContent(N,j,E.binary,E.optimizedBinaryString,E.base64);var I=new Q(N,C,E);this.files[N]=I}var l=r("./utf8"),a=r("./utils"),c=r("./stream/GenericWorker"),g=r("./stream/StreamHelper"),y=r("./defaults"),h=r("./compressedObject"),Q=r("./zipObject"),m=r("./generate"),k=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),w=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var j=N.lastIndexOf("/");return 0<j?N.substring(0,j):""},f=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},v=function(N,j){return j=j!==void 0?j:y.createFolders,N=f(N),this.files[N]||s.call(this,N,null,{dir:!0,createFolders:j}),this.files[N]};function b(N){return Object.prototype.toString.call(N)==="[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(N){var j,L,R;for(j in this.files)R=this.files[j],(L=j.slice(this.root.length,j.length))&&j.slice(0,this.root.length)===this.root&&N(L,R)},filter:function(N){var j=[];return this.forEach(function(L,R){N(L,R)&&j.push(R)}),j},file:function(N,j,L){if(arguments.length!==1)return N=this.root+N,s.call(this,N,j,L),this;if(b(N)){var R=N;return this.filter(function(E,$){return!$.dir&&R.test(E)})}var D=this.files[this.root+N];return D&&!D.dir?D:null},folder:function(N){if(!N)return this;if(b(N))return this.filter(function(D,E){return E.dir&&N.test(D)});var j=this.root+N,L=v.call(this,j),R=this.clone();return R.root=L.name,R},remove:function(N){N=this.root+N;var j=this.files[N];if(j||(N.slice(-1)!=="/"&&(N+="/"),j=this.files[N]),j&&!j.dir)delete this.files[N];else for(var L=this.filter(function(D,E){return E.name.slice(0,N.length)===N}),R=0;R<L.length;R++)delete this.files[L[R].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var j,L={};try{if((L=a.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),L.type==="binarystring"&&(L.type="string"),!L.type)throw new Error("No output type specified.");a.checkSupport(L.type),L.platform!=="darwin"&&L.platform!=="freebsd"&&L.platform!=="linux"&&L.platform!=="sunos"||(L.platform="UNIX"),L.platform==="win32"&&(L.platform="DOS");var R=L.comment||this.comment||"";j=m.generateWorker(this,L,R)}catch(D){(j=new c("error")).error(D)}return new g(j,L.type||"string",L.mimeType)},generateAsync:function(N,j){return this.generateInternalStream(N).accumulate(j)},generateNodeStream:function(N,j){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(j)}};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),g=a.charCodeAt(1),y=a.charCodeAt(2),h=a.charCodeAt(3),Q=this.length-4;0<=Q;--Q)if(this.data[Q]===c&&this.data[Q+1]===g&&this.data[Q+2]===y&&this.data[Q+3]===h)return Q-this.zero;return-1},l.prototype.readAndCheckSignature=function(a){var c=a.charCodeAt(0),g=a.charCodeAt(1),y=a.charCodeAt(2),h=a.charCodeAt(3),Q=this.readData(4);return c===Q[0]&&g===Q[1]&&y===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,g=0;for(this.checkOffset(a),c=this.index+a-1;c>=this.index;c--)g=(g<<8)+this.byteAt(c);return this.index+=a,g},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"),g=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");o.exports=function(h){var Q=s.getTypeOf(h);return s.checkSupport(Q),Q!=="string"||l.uint8array?Q==="nodebuffer"?new g(h):l.uint8array?new y(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 g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+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 g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=s.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}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,g=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,g);break;case"uint8array":c=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":c=this.data.slice(this.index,g)}return this.index=g,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"),g=r("../support"),y=r("../external"),h=null;if(g.nodestream)try{h=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function Q(k,u){return new y.Promise(function(w,f){var v=[],b=k._internalType,A=k._outputType,N=k._mimeType;k.on("data",function(j,L){v.push(j),u&&u(L)}).on("error",function(j){v=[],f(j)}).on("end",function(){try{var j=(function(L,R,D){switch(L){case"blob":return s.newBlob(s.transformTo("arraybuffer",R),D);case"base64":return c.encode(R);default:return s.transformTo(L,R)}})(A,(function(L,R){var D,E=0,$=null,C=0;for(D=0;D<R.length;D++)C+=R[D].length;switch(L){case"string":return R.join("");case"array":return Array.prototype.concat.apply([],R);case"uint8array":for($=new Uint8Array(C),D=0;D<R.length;D++)$.set(R[D],E),E+=R[D].length;return $;case"nodebuffer":return Buffer.concat(R);default:throw new Error("concat : unsupported type '"+L+"'")}})(b,v),N);w(j)}catch(L){f(L)}v=[]}).resume()})}function m(k,u,w){var f=u;switch(u){case"blob":case"arraybuffer":f="uint8array";break;case"base64":f="string"}try{this._internalType=f,this._outputType=u,this._mimeType=w,s.checkSupport(f),this._worker=k.pipe(new l(f)),k.lock()}catch(v){this._worker=new a("error"),this._worker.error(v)}}m.prototype={accumulate:function(k){return Q(this,k)},on:function(k,u){var w=this;return k==="data"?this._worker.on(k,function(f){u.call(w,f.data,f.meta)}):this._worker.on(k,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(k){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"},k)}},o.exports=m},{"../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"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;g[254]=g[254]=1;function h(){c.call(this,"utf-8 decode"),this.leftOver=null}function Q(){c.call(this,"utf-8 encode")}i.utf8encode=function(m){return l.nodebuffer?a.newBufferFrom(m,"utf-8"):(function(k){var u,w,f,v,b,A=k.length,N=0;for(v=0;v<A;v++)(64512&(w=k.charCodeAt(v)))==55296&&v+1<A&&(64512&(f=k.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(f-56320),v++),N+=w<128?1:w<2048?2:w<65536?3:4;for(u=l.uint8array?new Uint8Array(N):new Array(N),v=b=0;b<N;v++)(64512&(w=k.charCodeAt(v)))==55296&&v+1<A&&(64512&(f=k.charCodeAt(v+1)))==56320&&(w=65536+(w-55296<<10)+(f-56320),v++),w<128?u[b++]=w:(w<2048?u[b++]=192|w>>>6:(w<65536?u[b++]=224|w>>>12:(u[b++]=240|w>>>18,u[b++]=128|w>>>12&63),u[b++]=128|w>>>6&63),u[b++]=128|63&w);return u})(m)},i.utf8decode=function(m){return l.nodebuffer?s.transformTo("nodebuffer",m).toString("utf-8"):(function(k){var u,w,f,v,b=k.length,A=new Array(2*b);for(u=w=0;u<b;)if((f=k[u++])<128)A[w++]=f;else if(4<(v=g[f]))A[w++]=65533,u+=v-1;else{for(f&=v===2?31:v===3?15:7;1<v&&u<b;)f=f<<6|63&k[u++],v--;1<v?A[w++]=65533:f<65536?A[w++]=f:(f-=65536,A[w++]=55296|f>>10&1023,A[w++]=56320|1023&f)}return A.length!==w&&(A.subarray?A=A.subarray(0,w):A.length=w),s.applyFromCharCode(A)})(m=s.transformTo(l.uint8array?"uint8array":"array",m))},s.inherits(h,c),h.prototype.processChunk=function(m){var k=s.transformTo(l.uint8array?"uint8array":"array",m.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var u=k;(k=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),k.set(u,this.leftOver.length)}else k=this.leftOver.concat(k);this.leftOver=null}var w=(function(v,b){var A;for((b=b||v.length)>v.length&&(b=v.length),A=b-1;0<=A&&(192&v[A])==128;)A--;return A<0||A===0?b:A+g[v[A]]>b?A:b})(k),f=k;w!==k.length&&(l.uint8array?(f=k.subarray(0,w),this.leftOver=k.subarray(w,k.length)):(f=k.slice(0,w),this.leftOver=k.slice(w,k.length))),this.push({data:i.utf8decode(f),meta:m.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(m){this.push({data:i.utf8encode(m.data),meta:m.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 g(u){return u}function y(u,w){for(var f=0;f<u.length;++f)w[f]=255&u.charCodeAt(f);return w}r("setimmediate"),i.newBlob=function(u,w){i.checkSupport("blob");try{return new Blob([u],{type:w})}catch{try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return f.append(u),f.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(u,w,f){var v=[],b=0,A=u.length;if(A<=f)return String.fromCharCode.apply(null,u);for(;b<A;)w==="array"||w==="nodebuffer"?v.push(String.fromCharCode.apply(null,u.slice(b,Math.min(b+f,A)))):v.push(String.fromCharCode.apply(null,u.subarray(b,Math.min(b+f,A)))),b+=f;return v.join("")},stringifyByChar:function(u){for(var w="",f=0;f<u.length;f++)w+=String.fromCharCode(u[f]);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,f=i.getTypeOf(u),v=!0;if(f==="uint8array"?v=h.applyCanBeUsed.uint8array:f==="nodebuffer"&&(v=h.applyCanBeUsed.nodebuffer),v)for(;1<w;)try{return h.stringifyByChunk(u,f,w)}catch{w=Math.floor(w/2)}return h.stringifyByChar(u)}function m(u,w){for(var f=0;f<u.length;f++)w[f]=u[f];return w}i.applyFromCharCode=Q;var k={};k.string={string:g,array:function(u){return y(u,new Array(u.length))},arraybuffer:function(u){return k.string.uint8array(u).buffer},uint8array:function(u){return y(u,new Uint8Array(u.length))},nodebuffer:function(u){return y(u,a.allocBuffer(u.length))}},k.array={string:Q,array:g,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(u)}},k.arraybuffer={string:function(u){return Q(new Uint8Array(u))},array:function(u){return m(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:g,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(new Uint8Array(u))}},k.uint8array={string:Q,array:function(u){return m(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:g,nodebuffer:function(u){return a.newBufferFrom(u)}},k.nodebuffer={string:Q,array:function(u){return m(u,new Array(u.length))},arraybuffer:function(u){return k.nodebuffer.uint8array(u).buffer},uint8array:function(u){return m(u,new Uint8Array(u.length))},nodebuffer:g},i.transformTo=function(u,w){if(w=w||"",!u)return w;i.checkSupport(u);var f=i.getTypeOf(w);return k[f][u](w)},i.resolve=function(u){for(var w=u.split("/"),f=[],v=0;v<w.length;v++){var b=w[v];b==="."||b===""&&v!==0&&v!==w.length-1||(b===".."?f.pop():f.push(b))}return f.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,f,v="";for(f=0;f<(u||"").length;f++)v+="\\x"+((w=u.charCodeAt(f))<16?"0":"")+w.toString(16).toUpperCase();return v},i.delay=function(u,w,f){setImmediate(function(){u.apply(f||null,w||[])})},i.inherits=function(u,w){function f(){}f.prototype=w.prototype,u.prototype=new f},i.extend=function(){var u,w,f={};for(u=0;u<arguments.length;u++)for(w in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],w)&&f[w]===void 0&&(f[w]=arguments[u][w]);return f},i.prepareContent=function(u,w,f,v,b){return c.Promise.resolve(w).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(N,j){var L=new FileReader;L.onload=function(R){N(R.target.result)},L.onerror=function(R){j(R.target.error)},L.readAsArrayBuffer(A)}):A}).then(function(A){var N=i.getTypeOf(A);return N?(N==="arraybuffer"?A=i.transformTo("uint8array",A):N==="string"&&(b?A=l.decode(A):f&&v!==!0&&(A=(function(j){return y(j,s.uint8array?new Uint8Array(j.length):new Array(j.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"),g=r("./support");function y(h){this.files=[],this.loadOptions=h}y.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 m=this.reader.index;this.reader.setIndex(h);var k=this.reader.readString(4)===Q;return this.reader.setIndex(m),k},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=g.uint8array?"uint8array":"array",m=l.transformTo(Q,h);this.zipComment=this.loadOptions.decodeFileName(m)},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,m,k=this.zip64EndOfCentralSize-44;0<k;)h=this.reader.readInt(2),Q=this.reader.readInt(4),m=this.reader.readData(Q),this.zip64ExtensibleData[h]={id:h,length:Q,value:m}},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 m=this.centralDirOffset+this.centralDirSize;this.zip64&&(m+=20,m+=12+this.zip64EndOfCentralSize);var k=Q-m;if(0<k)this.isSignature(Q,a.CENTRAL_FILE_HEADER)||(this.reader.zero=k);else if(k<0)throw new Error("Corrupted zip: missing "+Math.abs(k)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=y},{"./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"),g=r("./utf8"),y=r("./compressions"),h=r("./support");function Q(m,k){this.options=m,this.loadOptions=k}Q.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(m){var k,u;if(m.skip(22),this.fileNameLength=m.readInt(2),u=m.readInt(2),this.fileName=m.readData(this.fileNameLength),m.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((k=(function(w){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)&&y[f].magic===w)return y[f];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,k,m.readData(this.compressedSize))},readCentralPart:function(m){this.versionMadeBy=m.readInt(2),m.skip(2),this.bitFlag=m.readInt(2),this.compressionMethod=m.readString(2),this.date=m.readDate(),this.crc32=m.readInt(4),this.compressedSize=m.readInt(4),this.uncompressedSize=m.readInt(4);var k=m.readInt(2);if(this.extraFieldsLength=m.readInt(2),this.fileCommentLength=m.readInt(2),this.diskNumberStart=m.readInt(2),this.internalFileAttributes=m.readInt(2),this.externalFileAttributes=m.readInt(4),this.localHeaderOffset=m.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");m.skip(k),this.readExtraFields(m),this.parseZIP64ExtraField(m),this.fileComment=m.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var m=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),m==0&&(this.dosPermissions=63&this.externalFileAttributes),m==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var m=s(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=m.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=m.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=m.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=m.readInt(4))}},readExtraFields:function(m){var k,u,w,f=m.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});m.index+4<f;)k=m.readInt(2),u=m.readInt(2),w=m.readData(u),this.extraFields[k]={id:k,length:u,value:w};m.setIndex(f)},handleUTF8:function(){var m=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var k=this.findExtraFieldUnicodePath();if(k!==null)this.fileNameStr=k;else{var u=l.transformTo(m,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var f=l.transformTo(m,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var m=this.extraFields[28789];if(m){var k=s(m.value);return k.readInt(1)!==1||c(this.fileName)!==k.readInt(4)?null:g.utf8decode(k.readData(m.length-5))}return null},findExtraFieldUnicodeComment:function(){var m=this.extraFields[25461];if(m){var k=s(m.value);return k.readInt(1)!==1||c(this.fileComment)!==k.readInt(4)?null:g.utf8decode(k.readData(m.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(k,u,w){this.name=k,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"),g=r("./compressedObject"),y=r("./stream/GenericWorker");s.prototype={internalStream:function(k){var u=null,w="string";try{if(!k)throw new Error("No output type specified.");var f=(w=k.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),u=this._decompressWorker();var v=!this._dataBinary;v&&!f&&(u=u.pipe(new c.Utf8EncodeWorker)),!v&&f&&(u=u.pipe(new c.Utf8DecodeWorker))}catch(b){(u=new y("error")).error(b)}return new l(u,w,"")},async:function(k,u){return this.internalStream(k).accumulate(u)},nodeStream:function(k,u){return this.internalStream(k||"nodebuffer").toNodejsStream(u)},_compressWorker:function(k,u){if(this._data instanceof g&&this._data.compression.magic===k.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new c.Utf8EncodeWorker)),g.createWorkerFrom(w,k,u)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof y?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.")},m=0;m<h.length;m++)s.prototype[h[m]]=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 g=0,y=new c(k),h=s.document.createTextNode("");y.observe(h,{characterData:!0}),l=function(){h.data=g=++g%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(){k(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},s.document.documentElement.appendChild(u)}:function(){setTimeout(k,0)};else{var Q=new s.MessageChannel;Q.port1.onmessage=k,l=function(){Q.port2.postMessage(0)}}var m=[];function k(){var u,w;a=!0;for(var f=m.length;f;){for(w=m,m=[],u=-1;++u<f;)w[u]();f=m.length}a=!1}o.exports=function(u){m.push(u)!==1||a||l()}}).call(this,typeof Ze<"u"?Ze:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,o,i){var s=r("immediate");function l(){}var a={},c=["REJECTED"],g=["FULFILLED"],y=["PENDING"];function h(f){if(typeof f!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,f!==l&&u(this,f)}function Q(f,v,b){this.promise=f,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function m(f,v,b){s(function(){var A;try{A=v(b)}catch(N){return a.reject(f,N)}A===f?a.reject(f,new TypeError("Cannot resolve promise with itself")):a.resolve(f,A)})}function k(f){var v=f&&f.then;if(f&&(typeof f=="object"||typeof f=="function")&&typeof v=="function")return function(){v.apply(f,arguments)}}function u(f,v){var b=!1;function A(L){b||(b=!0,a.reject(f,L))}function N(L){b||(b=!0,a.resolve(f,L))}var j=w(function(){v(N,A)});j.status==="error"&&A(j.value)}function w(f,v){var b={};try{b.value=f(v),b.status="success"}catch(A){b.status="error",b.value=A}return b}(o.exports=h).prototype.finally=function(f){if(typeof f!="function")return this;var v=this.constructor;return this.then(function(b){return v.resolve(f()).then(function(){return b})},function(b){return v.resolve(f()).then(function(){throw b})})},h.prototype.catch=function(f){return this.then(null,f)},h.prototype.then=function(f,v){if(typeof f!="function"&&this.state===g||typeof v!="function"&&this.state===c)return this;var b=new this.constructor(l);return this.state!==y?m(b,this.state===g?f:v,this.outcome):this.queue.push(new Q(b,f,v)),b},Q.prototype.callFulfilled=function(f){a.resolve(this.promise,f)},Q.prototype.otherCallFulfilled=function(f){m(this.promise,this.onFulfilled,f)},Q.prototype.callRejected=function(f){a.reject(this.promise,f)},Q.prototype.otherCallRejected=function(f){m(this.promise,this.onRejected,f)},a.resolve=function(f,v){var b=w(k,v);if(b.status==="error")return a.reject(f,b.value);var A=b.value;if(A)u(f,A);else{f.state=g,f.outcome=v;for(var N=-1,j=f.queue.length;++N<j;)f.queue[N].callFulfilled(v)}return f},a.reject=function(f,v){f.state=c,f.outcome=v;for(var b=-1,A=f.queue.length;++b<A;)f.queue[b].callRejected(v);return f},h.resolve=function(f){return f instanceof this?f:a.resolve(new this(l),f)},h.reject=function(f){var v=new this(l);return a.reject(v,f)},h.all=function(f){var v=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=f.length,A=!1;if(!b)return this.resolve([]);for(var N=new Array(b),j=0,L=-1,R=new this(l);++L<b;)D(f[L],L);return R;function D(E,$){v.resolve(E).then(function(C){N[$]=C,++j!==b||A||(A=!0,a.resolve(R,N))},function(C){A||(A=!0,a.reject(R,C))})}},h.race=function(f){var v=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=f.length,A=!1;if(!b)return this.resolve([]);for(var N=-1,j=new this(l);++N<b;)L=f[N],v.resolve(L).then(function(R){A||(A=!0,a.resolve(j,R))},function(R){A||(A=!0,a.reject(j,R))});var L;return j}},{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"),g=r("./zlib/zstream"),y=Object.prototype.toString,h=0,Q=-1,m=0,k=8;function u(f){if(!(this instanceof u))return new u(f);this.options=l.assign({level:Q,method:k,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},f||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var b=s.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(b!==h)throw new Error(c[b]);if(v.header&&s.deflateSetHeader(this.strm,v.header),v.dictionary){var A;if(A=typeof v.dictionary=="string"?a.string2buf(v.dictionary):y.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(b=s.deflateSetDictionary(this.strm,A))!==h)throw new Error(c[b]);this._dict_set=!0}}function w(f,v){var b=new u(v);if(b.push(f,!0),b.err)throw b.msg||c[b.err];return b.result}u.prototype.push=function(f,v){var b,A,N=this.strm,j=this.options.chunkSize;if(this.ended)return!1;A=v===~~v?v:v===!0?4:0,typeof f=="string"?N.input=a.string2buf(f):y.call(f)==="[object ArrayBuffer]"?N.input=new Uint8Array(f):N.input=f,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new l.Buf8(j),N.next_out=0,N.avail_out=j),(b=s.deflate(N,A))!==1&&b!==h)return this.onEnd(b),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(l.shrinkBuf(N.output,N.next_out))):this.onData(l.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&b!==1);return A===4?(b=s.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===h):A!==2||(this.onEnd(h),!(N.avail_out=0))},u.prototype.onData=function(f){this.chunks.push(f)},u.prototype.onEnd=function(f){f===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},i.Deflate=u,i.deflate=w,i.deflateRaw=function(f,v){return(v=v||{}).raw=!0,w(f,v)},i.gzip=function(f,v){return(v=v||{}).gzip=!0,w(f,v)}},{"./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"),g=r("./zlib/messages"),y=r("./zlib/zstream"),h=r("./zlib/gzheader"),Q=Object.prototype.toString;function m(u){if(!(this instanceof m))return new m(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 y,this.strm.avail_out=0;var f=s.inflateInit2(this.strm,w.windowBits);if(f!==c.Z_OK)throw new Error(g[f]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function k(u,w){var f=new m(w);if(f.push(u,!0),f.err)throw f.msg||g[f.err];return f.result}m.prototype.push=function(u,w){var f,v,b,A,N,j,L=this.strm,R=this.options.chunkSize,D=this.options.dictionary,E=!1;if(this.ended)return!1;v=w===~~w?w:w===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof u=="string"?L.input=a.binstring2buf(u):Q.call(u)==="[object ArrayBuffer]"?L.input=new Uint8Array(u):L.input=u,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new l.Buf8(R),L.next_out=0,L.avail_out=R),(f=s.inflate(L,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&D&&(j=typeof D=="string"?a.string2buf(D):Q.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,f=s.inflateSetDictionary(this.strm,j)),f===c.Z_BUF_ERROR&&E===!0&&(f=c.Z_OK,E=!1),f!==c.Z_STREAM_END&&f!==c.Z_OK)return this.onEnd(f),!(this.ended=!0);L.next_out&&(L.avail_out!==0&&f!==c.Z_STREAM_END&&(L.avail_in!==0||v!==c.Z_FINISH&&v!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=a.utf8border(L.output,L.next_out),A=L.next_out-b,N=a.buf2string(L.output,b),L.next_out=A,L.avail_out=R-A,A&&l.arraySet(L.output,L.output,b,A,0),this.onData(N)):this.onData(l.shrinkBuf(L.output,L.next_out)))),L.avail_in===0&&L.avail_out===0&&(E=!0)}while((0<L.avail_in||L.avail_out===0)&&f!==c.Z_STREAM_END);return f===c.Z_STREAM_END&&(v=c.Z_FINISH),v===c.Z_FINISH?(f=s.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===c.Z_OK):v!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(L.avail_out=0))},m.prototype.onData=function(u){this.chunks.push(u)},m.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=m,i.inflate=k,i.inflateRaw=function(u,w){return(w=w||{}).raw=!0,k(u,w)},i.ungzip=k},{"./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 g=Array.prototype.slice.call(arguments,1);g.length;){var y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var h in y)y.hasOwnProperty(h)&&(c[h]=y[h])}}return c},i.shrinkBuf=function(c,g){return c.length===g?c:c.subarray?c.subarray(0,g):(c.length=g,c)};var l={arraySet:function(c,g,y,h,Q){if(g.subarray&&c.subarray)c.set(g.subarray(y,y+h),Q);else for(var m=0;m<h;m++)c[Q+m]=g[y+m]},flattenChunks:function(c){var g,y,h,Q,m,k;for(g=h=0,y=c.length;g<y;g++)h+=c[g].length;for(k=new Uint8Array(h),g=Q=0,y=c.length;g<y;g++)m=c[g],k.set(m,Q),Q+=m.length;return k}},a={arraySet:function(c,g,y,h,Q){for(var m=0;m<h;m++)c[Q+m]=g[y+m]},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),g=0;g<256;g++)c[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function y(h,Q){if(Q<65537&&(h.subarray&&a||!h.subarray&&l))return String.fromCharCode.apply(null,s.shrinkBuf(h,Q));for(var m="",k=0;k<Q;k++)m+=String.fromCharCode(h[k]);return m}c[254]=c[254]=1,i.string2buf=function(h){var Q,m,k,u,w,f=h.length,v=0;for(u=0;u<f;u++)(64512&(m=h.charCodeAt(u)))==55296&&u+1<f&&(64512&(k=h.charCodeAt(u+1)))==56320&&(m=65536+(m-55296<<10)+(k-56320),u++),v+=m<128?1:m<2048?2:m<65536?3:4;for(Q=new s.Buf8(v),u=w=0;w<v;u++)(64512&(m=h.charCodeAt(u)))==55296&&u+1<f&&(64512&(k=h.charCodeAt(u+1)))==56320&&(m=65536+(m-55296<<10)+(k-56320),u++),m<128?Q[w++]=m:(m<2048?Q[w++]=192|m>>>6:(m<65536?Q[w++]=224|m>>>12:(Q[w++]=240|m>>>18,Q[w++]=128|m>>>12&63),Q[w++]=128|m>>>6&63),Q[w++]=128|63&m);return Q},i.buf2binstring=function(h){return y(h,h.length)},i.binstring2buf=function(h){for(var Q=new s.Buf8(h.length),m=0,k=Q.length;m<k;m++)Q[m]=h.charCodeAt(m);return Q},i.buf2string=function(h,Q){var m,k,u,w,f=Q||h.length,v=new Array(2*f);for(m=k=0;m<f;)if((u=h[m++])<128)v[k++]=u;else if(4<(w=c[u]))v[k++]=65533,m+=w-1;else{for(u&=w===2?31:w===3?15:7;1<w&&m<f;)u=u<<6|63&h[m++],w--;1<w?v[k++]=65533:u<65536?v[k++]=u:(u-=65536,v[k++]=55296|u>>10&1023,v[k++]=56320|1023&u)}return y(v,k)},i.utf8border=function(h,Q){var m;for((Q=Q||h.length)>h.length&&(Q=h.length),m=Q-1;0<=m&&(192&h[m])==128;)m--;return m<0||m===0?Q:m+c[h[m]]>Q?m:Q}},{"./common":41}],43:[function(r,o,i){o.exports=function(s,l,a,c){for(var g=65535&s|0,y=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;y=y+(g=g+l[c++]|0)|0,--h;);g%=65521,y%=65521}return g|y<<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 g=0;g<8;g++)l=1&l?3988292384^l>>>1:l>>>1;a[c]=l}return a})();o.exports=function(l,a,c,g){var y=s,h=g+c;l^=-1;for(var Q=g;Q<h;Q++)l=l>>>8^y[255&(l^a[Q])];return-1^l}},{}],46:[function(r,o,i){var s,l=r("../utils/common"),a=r("./trees"),c=r("./adler32"),g=r("./crc32"),y=r("./messages"),h=0,Q=4,m=0,k=-2,u=-1,w=4,f=2,v=8,b=9,A=286,N=30,j=19,L=2*A+1,R=15,D=3,E=258,$=E+D+1,C=42,I=113,p=1,P=2,X=3,Z=4;function ae(d,V){return d.msg=y[V],V}function Y(d){return(d<<1)-(4<d?9:0)}function ne(d){for(var V=d.length;0<=--V;)d[V]=0}function B(d){var V=d.state,F=V.pending;F>d.avail_out&&(F=d.avail_out),F!==0&&(l.arraySet(d.output,V.pending_buf,V.pending_out,F,d.next_out),d.next_out+=F,V.pending_out+=F,d.total_out+=F,d.avail_out-=F,V.pending-=F,V.pending===0&&(V.pending_out=0))}function z(d,V){a._tr_flush_block(d,0<=d.block_start?d.block_start:-1,d.strstart-d.block_start,V),d.block_start=d.strstart,B(d.strm)}function re(d,V){d.pending_buf[d.pending++]=V}function T(d,V){d.pending_buf[d.pending++]=V>>>8&255,d.pending_buf[d.pending++]=255&V}function O(d,V){var F,_,M=d.max_chain_length,S=d.strstart,W=d.prev_length,G=d.nice_match,x=d.strstart>d.w_size-$?d.strstart-(d.w_size-$):0,H=d.window,q=d.w_mask,J=d.prev,oe=d.strstart+E,de=H[S+W-1],se=H[S+W];d.prev_length>=d.good_match&&(M>>=2),G>d.lookahead&&(G=d.lookahead);do if(H[(F=V)+W]===se&&H[F+W-1]===de&&H[F]===H[S]&&H[++F]===H[S+1]){S+=2,F++;do;while(H[++S]===H[++F]&&H[++S]===H[++F]&&H[++S]===H[++F]&&H[++S]===H[++F]&&H[++S]===H[++F]&&H[++S]===H[++F]&&H[++S]===H[++F]&&H[++S]===H[++F]&&S<oe);if(_=E-(oe-S),S=oe-E,W<_){if(d.match_start=V,G<=(W=_))break;de=H[S+W-1],se=H[S+W]}}while((V=J[V&q])>x&&--M!=0);return W<=d.lookahead?W:d.lookahead}function ee(d){var V,F,_,M,S,W,G,x,H,q,J=d.w_size;do{if(M=d.window_size-d.lookahead-d.strstart,d.strstart>=J+(J-$)){for(l.arraySet(d.window,d.window,J,J,0),d.match_start-=J,d.strstart-=J,d.block_start-=J,V=F=d.hash_size;_=d.head[--V],d.head[V]=J<=_?_-J:0,--F;);for(V=F=J;_=d.prev[--V],d.prev[V]=J<=_?_-J:0,--F;);M+=J}if(d.strm.avail_in===0)break;if(W=d.strm,G=d.window,x=d.strstart+d.lookahead,H=M,q=void 0,q=W.avail_in,H<q&&(q=H),F=q===0?0:(W.avail_in-=q,l.arraySet(G,W.input,W.next_in,q,x),W.state.wrap===1?W.adler=c(W.adler,G,q,x):W.state.wrap===2&&(W.adler=g(W.adler,G,q,x)),W.next_in+=q,W.total_in+=q,q),d.lookahead+=F,d.lookahead+d.insert>=D)for(S=d.strstart-d.insert,d.ins_h=d.window[S],d.ins_h=(d.ins_h<<d.hash_shift^d.window[S+1])&d.hash_mask;d.insert&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[S+D-1])&d.hash_mask,d.prev[S&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=S,S++,d.insert--,!(d.lookahead+d.insert<D)););}while(d.lookahead<$&&d.strm.avail_in!==0)}function le(d,V){for(var F,_;;){if(d.lookahead<$){if(ee(d),d.lookahead<$&&V===h)return p;if(d.lookahead===0)break}if(F=0,d.lookahead>=D&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),F!==0&&d.strstart-F<=d.w_size-$&&(d.match_length=O(d,F)),d.match_length>=D)if(_=a._tr_tally(d,d.strstart-d.match_start,d.match_length-D),d.lookahead-=d.match_length,d.match_length<=d.max_lazy_match&&d.lookahead>=D){for(d.match_length--;d.strstart++,d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart,--d.match_length!=0;);d.strstart++}else d.strstart+=d.match_length,d.match_length=0,d.ins_h=d.window[d.strstart],d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+1])&d.hash_mask;else _=a._tr_tally(d,0,d.window[d.strstart]),d.lookahead--,d.strstart++;if(_&&(z(d,!1),d.strm.avail_out===0))return p}return d.insert=d.strstart<D-1?d.strstart:D-1,V===Q?(z(d,!0),d.strm.avail_out===0?X:Z):d.last_lit&&(z(d,!1),d.strm.avail_out===0)?p:P}function ie(d,V){for(var F,_,M;;){if(d.lookahead<$){if(ee(d),d.lookahead<$&&V===h)return p;if(d.lookahead===0)break}if(F=0,d.lookahead>=D&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),d.prev_length=d.match_length,d.prev_match=d.match_start,d.match_length=D-1,F!==0&&d.prev_length<d.max_lazy_match&&d.strstart-F<=d.w_size-$&&(d.match_length=O(d,F),d.match_length<=5&&(d.strategy===1||d.match_length===D&&4096<d.strstart-d.match_start)&&(d.match_length=D-1)),d.prev_length>=D&&d.match_length<=d.prev_length){for(M=d.strstart+d.lookahead-D,_=a._tr_tally(d,d.strstart-1-d.prev_match,d.prev_length-D),d.lookahead-=d.prev_length-1,d.prev_length-=2;++d.strstart<=M&&(d.ins_h=(d.ins_h<<d.hash_shift^d.window[d.strstart+D-1])&d.hash_mask,F=d.prev[d.strstart&d.w_mask]=d.head[d.ins_h],d.head[d.ins_h]=d.strstart),--d.prev_length!=0;);if(d.match_available=0,d.match_length=D-1,d.strstart++,_&&(z(d,!1),d.strm.avail_out===0))return p}else if(d.match_available){if((_=a._tr_tally(d,0,d.window[d.strstart-1]))&&z(d,!1),d.strstart++,d.lookahead--,d.strm.avail_out===0)return p}else d.match_available=1,d.strstart++,d.lookahead--}return d.match_available&&(_=a._tr_tally(d,0,d.window[d.strstart-1]),d.match_available=0),d.insert=d.strstart<D-1?d.strstart:D-1,V===Q?(z(d,!0),d.strm.avail_out===0?X:Z):d.last_lit&&(z(d,!1),d.strm.avail_out===0)?p:P}function U(d,V,F,_,M){this.good_length=d,this.max_lazy=V,this.nice_length=F,this.max_chain=_,this.func=M}function K(){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=v,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*L),this.dyn_dtree=new l.Buf16(2*(2*N+1)),this.bl_tree=new l.Buf16(2*(2*j+1)),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(R+1),this.heap=new l.Buf16(2*A+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*A+1),ne(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 te(d){var V;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=f,(V=d.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?C:I,d.adler=V.wrap===2?0:1,V.last_flush=h,a._tr_init(V),m):ae(d,k)}function ce(d){var V=te(d);return V===m&&(function(F){F.window_size=2*F.w_size,ne(F.head),F.max_lazy_match=s[F.level].max_lazy,F.good_match=s[F.level].good_length,F.nice_match=s[F.level].nice_length,F.max_chain_length=s[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=D-1,F.match_available=0,F.ins_h=0})(d.state),V}function pe(d,V,F,_,M,S){if(!d)return k;var W=1;if(V===u&&(V=6),_<0?(W=0,_=-_):15<_&&(W=2,_-=16),M<1||b<M||F!==v||_<8||15<_||V<0||9<V||S<0||w<S)return ae(d,k);_===8&&(_=9);var G=new K;return(d.state=G).strm=d,G.wrap=W,G.gzhead=null,G.w_bits=_,G.w_size=1<<G.w_bits,G.w_mask=G.w_size-1,G.hash_bits=M+7,G.hash_size=1<<G.hash_bits,G.hash_mask=G.hash_size-1,G.hash_shift=~~((G.hash_bits+D-1)/D),G.window=new l.Buf8(2*G.w_size),G.head=new l.Buf16(G.hash_size),G.prev=new l.Buf16(G.w_size),G.lit_bufsize=1<<M+6,G.pending_buf_size=4*G.lit_bufsize,G.pending_buf=new l.Buf8(G.pending_buf_size),G.d_buf=1*G.lit_bufsize,G.l_buf=3*G.lit_bufsize,G.level=V,G.strategy=S,G.method=F,ce(d)}s=[new U(0,0,0,0,function(d,V){var F=65535;for(F>d.pending_buf_size-5&&(F=d.pending_buf_size-5);;){if(d.lookahead<=1){if(ee(d),d.lookahead===0&&V===h)return p;if(d.lookahead===0)break}d.strstart+=d.lookahead,d.lookahead=0;var _=d.block_start+F;if((d.strstart===0||d.strstart>=_)&&(d.lookahead=d.strstart-_,d.strstart=_,z(d,!1),d.strm.avail_out===0)||d.strstart-d.block_start>=d.w_size-$&&(z(d,!1),d.strm.avail_out===0))return p}return d.insert=0,V===Q?(z(d,!0),d.strm.avail_out===0?X:Z):(d.strstart>d.block_start&&(z(d,!1),d.strm.avail_out),p)}),new U(4,4,8,4,le),new U(4,5,16,8,le),new U(4,6,32,32,le),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(d,V){return pe(d,V,v,15,8,0)},i.deflateInit2=pe,i.deflateReset=ce,i.deflateResetKeep=te,i.deflateSetHeader=function(d,V){return d&&d.state?d.state.wrap!==2?k:(d.state.gzhead=V,m):k},i.deflate=function(d,V){var F,_,M,S;if(!d||!d.state||5<V||V<0)return d?ae(d,k):k;if(_=d.state,!d.output||!d.input&&d.avail_in!==0||_.status===666&&V!==Q)return ae(d,d.avail_out===0?-5:k);if(_.strm=d,F=_.last_flush,_.last_flush=V,_.status===C)if(_.wrap===2)d.adler=0,re(_,31),re(_,139),re(_,8),_.gzhead?(re(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),re(_,255&_.gzhead.time),re(_,_.gzhead.time>>8&255),re(_,_.gzhead.time>>16&255),re(_,_.gzhead.time>>24&255),re(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),re(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(re(_,255&_.gzhead.extra.length),re(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(d.adler=g(d.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(re(_,0),re(_,0),re(_,0),re(_,0),re(_,0),re(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),re(_,3),_.status=I);else{var W=v+(_.w_bits-8<<4)<<8;W|=(2<=_.strategy||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(W|=32),W+=31-W%31,_.status=I,T(_,W),_.strstart!==0&&(T(_,d.adler>>>16),T(_,65535&d.adler)),d.adler=1}if(_.status===69)if(_.gzhead.extra){for(M=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>M&&(d.adler=g(d.adler,_.pending_buf,_.pending-M,M)),B(d),M=_.pending,_.pending!==_.pending_buf_size));)re(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>M&&(d.adler=g(d.adler,_.pending_buf,_.pending-M,M)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){M=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>M&&(d.adler=g(d.adler,_.pending_buf,_.pending-M,M)),B(d),M=_.pending,_.pending===_.pending_buf_size)){S=1;break}S=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,re(_,S)}while(S!==0);_.gzhead.hcrc&&_.pending>M&&(d.adler=g(d.adler,_.pending_buf,_.pending-M,M)),S===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){M=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>M&&(d.adler=g(d.adler,_.pending_buf,_.pending-M,M)),B(d),M=_.pending,_.pending===_.pending_buf_size)){S=1;break}S=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,re(_,S)}while(S!==0);_.gzhead.hcrc&&_.pending>M&&(d.adler=g(d.adler,_.pending_buf,_.pending-M,M)),S===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&B(d),_.pending+2<=_.pending_buf_size&&(re(_,255&d.adler),re(_,d.adler>>8&255),d.adler=0,_.status=I)):_.status=I),_.pending!==0){if(B(d),d.avail_out===0)return _.last_flush=-1,m}else if(d.avail_in===0&&Y(V)<=Y(F)&&V!==Q)return ae(d,-5);if(_.status===666&&d.avail_in!==0)return ae(d,-5);if(d.avail_in!==0||_.lookahead!==0||V!==h&&_.status!==666){var G=_.strategy===2?(function(x,H){for(var q;;){if(x.lookahead===0&&(ee(x),x.lookahead===0)){if(H===h)return p;break}if(x.match_length=0,q=a._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++,q&&(z(x,!1),x.strm.avail_out===0))return p}return x.insert=0,H===Q?(z(x,!0),x.strm.avail_out===0?X:Z):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?p:P})(_,V):_.strategy===3?(function(x,H){for(var q,J,oe,de,se=x.window;;){if(x.lookahead<=E){if(ee(x),x.lookahead<=E&&H===h)return p;if(x.lookahead===0)break}if(x.match_length=0,x.lookahead>=D&&0<x.strstart&&(J=se[oe=x.strstart-1])===se[++oe]&&J===se[++oe]&&J===se[++oe]){de=x.strstart+E;do;while(J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&J===se[++oe]&&oe<de);x.match_length=E-(de-oe),x.match_length>x.lookahead&&(x.match_length=x.lookahead)}if(x.match_length>=D?(q=a._tr_tally(x,1,x.match_length-D),x.lookahead-=x.match_length,x.strstart+=x.match_length,x.match_length=0):(q=a._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++),q&&(z(x,!1),x.strm.avail_out===0))return p}return x.insert=0,H===Q?(z(x,!0),x.strm.avail_out===0?X:Z):x.last_lit&&(z(x,!1),x.strm.avail_out===0)?p:P})(_,V):s[_.level].func(_,V);if(G!==X&&G!==Z||(_.status=666),G===p||G===X)return d.avail_out===0&&(_.last_flush=-1),m;if(G===P&&(V===1?a._tr_align(_):V!==5&&(a._tr_stored_block(_,0,0,!1),V===3&&(ne(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),B(d),d.avail_out===0))return _.last_flush=-1,m}return V!==Q?m:_.wrap<=0?1:(_.wrap===2?(re(_,255&d.adler),re(_,d.adler>>8&255),re(_,d.adler>>16&255),re(_,d.adler>>24&255),re(_,255&d.total_in),re(_,d.total_in>>8&255),re(_,d.total_in>>16&255),re(_,d.total_in>>24&255)):(T(_,d.adler>>>16),T(_,65535&d.adler)),B(d),0<_.wrap&&(_.wrap=-_.wrap),_.pending!==0?m:1)},i.deflateEnd=function(d){var V;return d&&d.state?(V=d.state.status)!==C&&V!==69&&V!==73&&V!==91&&V!==103&&V!==I&&V!==666?ae(d,k):(d.state=null,V===I?ae(d,-3):m):k},i.deflateSetDictionary=function(d,V){var F,_,M,S,W,G,x,H,q=V.length;if(!d||!d.state||(S=(F=d.state).wrap)===2||S===1&&F.status!==C||F.lookahead)return k;for(S===1&&(d.adler=c(d.adler,V,q,0)),F.wrap=0,q>=F.w_size&&(S===0&&(ne(F.head),F.strstart=0,F.block_start=0,F.insert=0),H=new l.Buf8(F.w_size),l.arraySet(H,V,q-F.w_size,F.w_size,0),V=H,q=F.w_size),W=d.avail_in,G=d.next_in,x=d.input,d.avail_in=q,d.next_in=0,d.input=V,ee(F);F.lookahead>=D;){for(_=F.strstart,M=F.lookahead-(D-1);F.ins_h=(F.ins_h<<F.hash_shift^F.window[_+D-1])&F.hash_mask,F.prev[_&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=_,_++,--M;);F.strstart=_,F.lookahead=D-1,ee(F)}return F.strstart+=F.lookahead,F.block_start=F.strstart,F.insert=F.lookahead,F.lookahead=0,F.match_length=F.prev_length=D-1,F.match_available=0,d.next_in=G,d.input=x,d.avail_in=W,F.wrap=S,m},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,g,y,h,Q,m,k,u,w,f,v,b,A,N,j,L,R,D,E,$,C,I,p,P;a=s.state,c=s.next_in,p=s.input,g=c+(s.avail_in-5),y=s.next_out,P=s.output,h=y-(l-s.avail_out),Q=y+(s.avail_out-257),m=a.dmax,k=a.wsize,u=a.whave,w=a.wnext,f=a.window,v=a.hold,b=a.bits,A=a.lencode,N=a.distcode,j=(1<<a.lenbits)-1,L=(1<<a.distbits)-1;e:do{b<15&&(v+=p[c++]<<b,b+=8,v+=p[c++]<<b,b+=8),R=A[v&j];t:for(;;){if(v>>>=D=R>>>24,b-=D,(D=R>>>16&255)===0)P[y++]=65535&R;else{if(!(16&D)){if((64&D)==0){R=A[(65535&R)+(v&(1<<D)-1)];continue t}if(32&D){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}E=65535&R,(D&=15)&&(b<D&&(v+=p[c++]<<b,b+=8),E+=v&(1<<D)-1,v>>>=D,b-=D),b<15&&(v+=p[c++]<<b,b+=8,v+=p[c++]<<b,b+=8),R=N[v&L];n:for(;;){if(v>>>=D=R>>>24,b-=D,!(16&(D=R>>>16&255))){if((64&D)==0){R=N[(65535&R)+(v&(1<<D)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if($=65535&R,b<(D&=15)&&(v+=p[c++]<<b,(b+=8)<D&&(v+=p[c++]<<b,b+=8)),m<($+=v&(1<<D)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(v>>>=D,b-=D,(D=y-h)<$){if(u<(D=$-D)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(I=f,(C=0)===w){if(C+=k-D,D<E){for(E-=D;P[y++]=f[C++],--D;);C=y-$,I=P}}else if(w<D){if(C+=k+w-D,(D-=w)<E){for(E-=D;P[y++]=f[C++],--D;);if(C=0,w<E){for(E-=D=w;P[y++]=f[C++],--D;);C=y-$,I=P}}}else if(C+=w-D,D<E){for(E-=D;P[y++]=f[C++],--D;);C=y-$,I=P}for(;2<E;)P[y++]=I[C++],P[y++]=I[C++],P[y++]=I[C++],E-=3;E&&(P[y++]=I[C++],1<E&&(P[y++]=I[C++]))}else{for(C=y-$;P[y++]=P[C++],P[y++]=P[C++],P[y++]=P[C++],2<(E-=3););E&&(P[y++]=P[C++],1<E&&(P[y++]=P[C++]))}break}}break}}while(c<g&&y<Q);c-=E=b>>3,v&=(1<<(b-=E<<3))-1,s.next_in=c,s.next_out=y,s.avail_in=c<g?g-c+5:5-(c-g),s.avail_out=y<Q?Q-y+257:257-(y-Q),a.hold=v,a.bits=b}},{}],49:[function(r,o,i){var s=r("../utils/common"),l=r("./adler32"),a=r("./crc32"),c=r("./inffast"),g=r("./inftrees"),y=1,h=2,Q=0,m=-2,k=1,u=852,w=592;function f(C){return(C>>>24&255)+(C>>>8&65280)+((65280&C)<<8)+((255&C)<<24)}function v(){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 b(C){var I;return C&&C.state?(I=C.state,C.total_in=C.total_out=I.total=0,C.msg="",I.wrap&&(C.adler=1&I.wrap),I.mode=k,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new s.Buf32(u),I.distcode=I.distdyn=new s.Buf32(w),I.sane=1,I.back=-1,Q):m}function A(C){var I;return C&&C.state?((I=C.state).wsize=0,I.whave=0,I.wnext=0,b(C)):m}function N(C,I){var p,P;return C&&C.state?(P=C.state,I<0?(p=0,I=-I):(p=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?m:(P.window!==null&&P.wbits!==I&&(P.window=null),P.wrap=p,P.wbits=I,A(C))):m}function j(C,I){var p,P;return C?(P=new v,(C.state=P).window=null,(p=N(C,I))!==Q&&(C.state=null),p):m}var L,R,D=!0;function E(C){if(D){var I;for(L=new s.Buf32(512),R=new s.Buf32(32),I=0;I<144;)C.lens[I++]=8;for(;I<256;)C.lens[I++]=9;for(;I<280;)C.lens[I++]=7;for(;I<288;)C.lens[I++]=8;for(g(y,C.lens,0,288,L,0,C.work,{bits:9}),I=0;I<32;)C.lens[I++]=5;g(h,C.lens,0,32,R,0,C.work,{bits:5}),D=!1}C.lencode=L,C.lenbits=9,C.distcode=R,C.distbits=5}function $(C,I,p,P){var X,Z=C.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new s.Buf8(Z.wsize)),P>=Z.wsize?(s.arraySet(Z.window,I,p-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(P<(X=Z.wsize-Z.wnext)&&(X=P),s.arraySet(Z.window,I,p-P,X,Z.wnext),(P-=X)?(s.arraySet(Z.window,I,p-P,P,0),Z.wnext=P,Z.whave=Z.wsize):(Z.wnext+=X,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=X))),0}i.inflateReset=A,i.inflateReset2=N,i.inflateResetKeep=b,i.inflateInit=function(C){return j(C,15)},i.inflateInit2=j,i.inflate=function(C,I){var p,P,X,Z,ae,Y,ne,B,z,re,T,O,ee,le,ie,U,K,te,ce,pe,d,V,F,_,M=0,S=new s.Buf8(4),W=[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 m;(p=C.state).mode===12&&(p.mode=13),ae=C.next_out,X=C.output,ne=C.avail_out,Z=C.next_in,P=C.input,Y=C.avail_in,B=p.hold,z=p.bits,re=Y,T=ne,V=Q;e:for(;;)switch(p.mode){case k:if(p.wrap===0){p.mode=13;break}for(;z<16;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(2&p.wrap&&B===35615){S[p.check=0]=255&B,S[1]=B>>>8&255,p.check=a(p.check,S,2,0),z=B=0,p.mode=2;break}if(p.flags=0,p.head&&(p.head.done=!1),!(1&p.wrap)||(((255&B)<<8)+(B>>8))%31){C.msg="incorrect header check",p.mode=30;break}if((15&B)!=8){C.msg="unknown compression method",p.mode=30;break}if(z-=4,d=8+(15&(B>>>=4)),p.wbits===0)p.wbits=d;else if(d>p.wbits){C.msg="invalid window size",p.mode=30;break}p.dmax=1<<d,C.adler=p.check=1,p.mode=512&B?10:12,z=B=0;break;case 2:for(;z<16;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(p.flags=B,(255&p.flags)!=8){C.msg="unknown compression method",p.mode=30;break}if(57344&p.flags){C.msg="unknown header flags set",p.mode=30;break}p.head&&(p.head.text=B>>8&1),512&p.flags&&(S[0]=255&B,S[1]=B>>>8&255,p.check=a(p.check,S,2,0)),z=B=0,p.mode=3;case 3:for(;z<32;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}p.head&&(p.head.time=B),512&p.flags&&(S[0]=255&B,S[1]=B>>>8&255,S[2]=B>>>16&255,S[3]=B>>>24&255,p.check=a(p.check,S,4,0)),z=B=0,p.mode=4;case 4:for(;z<16;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}p.head&&(p.head.xflags=255&B,p.head.os=B>>8),512&p.flags&&(S[0]=255&B,S[1]=B>>>8&255,p.check=a(p.check,S,2,0)),z=B=0,p.mode=5;case 5:if(1024&p.flags){for(;z<16;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}p.length=B,p.head&&(p.head.extra_len=B),512&p.flags&&(S[0]=255&B,S[1]=B>>>8&255,p.check=a(p.check,S,2,0)),z=B=0}else p.head&&(p.head.extra=null);p.mode=6;case 6:if(1024&p.flags&&(Y<(O=p.length)&&(O=Y),O&&(p.head&&(d=p.head.extra_len-p.length,p.head.extra||(p.head.extra=new Array(p.head.extra_len)),s.arraySet(p.head.extra,P,Z,O,d)),512&p.flags&&(p.check=a(p.check,P,O,Z)),Y-=O,Z+=O,p.length-=O),p.length))break e;p.length=0,p.mode=7;case 7:if(2048&p.flags){if(Y===0)break e;for(O=0;d=P[Z+O++],p.head&&d&&p.length<65536&&(p.head.name+=String.fromCharCode(d)),d&&O<Y;);if(512&p.flags&&(p.check=a(p.check,P,O,Z)),Y-=O,Z+=O,d)break e}else p.head&&(p.head.name=null);p.length=0,p.mode=8;case 8:if(4096&p.flags){if(Y===0)break e;for(O=0;d=P[Z+O++],p.head&&d&&p.length<65536&&(p.head.comment+=String.fromCharCode(d)),d&&O<Y;);if(512&p.flags&&(p.check=a(p.check,P,O,Z)),Y-=O,Z+=O,d)break e}else p.head&&(p.head.comment=null);p.mode=9;case 9:if(512&p.flags){for(;z<16;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(B!==(65535&p.check)){C.msg="header crc mismatch",p.mode=30;break}z=B=0}p.head&&(p.head.hcrc=p.flags>>9&1,p.head.done=!0),C.adler=p.check=0,p.mode=12;break;case 10:for(;z<32;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}C.adler=p.check=f(B),z=B=0,p.mode=11;case 11:if(p.havedict===0)return C.next_out=ae,C.avail_out=ne,C.next_in=Z,C.avail_in=Y,p.hold=B,p.bits=z,2;C.adler=p.check=1,p.mode=12;case 12:if(I===5||I===6)break e;case 13:if(p.last){B>>>=7&z,z-=7&z,p.mode=27;break}for(;z<3;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}switch(p.last=1&B,z-=1,3&(B>>>=1)){case 0:p.mode=14;break;case 1:if(E(p),p.mode=20,I!==6)break;B>>>=2,z-=2;break e;case 2:p.mode=17;break;case 3:C.msg="invalid block type",p.mode=30}B>>>=2,z-=2;break;case 14:for(B>>>=7&z,z-=7&z;z<32;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if((65535&B)!=(B>>>16^65535)){C.msg="invalid stored block lengths",p.mode=30;break}if(p.length=65535&B,z=B=0,p.mode=15,I===6)break e;case 15:p.mode=16;case 16:if(O=p.length){if(Y<O&&(O=Y),ne<O&&(O=ne),O===0)break e;s.arraySet(X,P,Z,O,ae),Y-=O,Z+=O,ne-=O,ae+=O,p.length-=O;break}p.mode=12;break;case 17:for(;z<14;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(p.nlen=257+(31&B),B>>>=5,z-=5,p.ndist=1+(31&B),B>>>=5,z-=5,p.ncode=4+(15&B),B>>>=4,z-=4,286<p.nlen||30<p.ndist){C.msg="too many length or distance symbols",p.mode=30;break}p.have=0,p.mode=18;case 18:for(;p.have<p.ncode;){for(;z<3;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}p.lens[W[p.have++]]=7&B,B>>>=3,z-=3}for(;p.have<19;)p.lens[W[p.have++]]=0;if(p.lencode=p.lendyn,p.lenbits=7,F={bits:p.lenbits},V=g(0,p.lens,0,19,p.lencode,0,p.work,F),p.lenbits=F.bits,V){C.msg="invalid code lengths set",p.mode=30;break}p.have=0,p.mode=19;case 19:for(;p.have<p.nlen+p.ndist;){for(;U=(M=p.lencode[B&(1<<p.lenbits)-1])>>>16&255,K=65535&M,!((ie=M>>>24)<=z);){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(K<16)B>>>=ie,z-=ie,p.lens[p.have++]=K;else{if(K===16){for(_=ie+2;z<_;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(B>>>=ie,z-=ie,p.have===0){C.msg="invalid bit length repeat",p.mode=30;break}d=p.lens[p.have-1],O=3+(3&B),B>>>=2,z-=2}else if(K===17){for(_=ie+3;z<_;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}z-=ie,d=0,O=3+(7&(B>>>=ie)),B>>>=3,z-=3}else{for(_=ie+7;z<_;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}z-=ie,d=0,O=11+(127&(B>>>=ie)),B>>>=7,z-=7}if(p.have+O>p.nlen+p.ndist){C.msg="invalid bit length repeat",p.mode=30;break}for(;O--;)p.lens[p.have++]=d}}if(p.mode===30)break;if(p.lens[256]===0){C.msg="invalid code -- missing end-of-block",p.mode=30;break}if(p.lenbits=9,F={bits:p.lenbits},V=g(y,p.lens,0,p.nlen,p.lencode,0,p.work,F),p.lenbits=F.bits,V){C.msg="invalid literal/lengths set",p.mode=30;break}if(p.distbits=6,p.distcode=p.distdyn,F={bits:p.distbits},V=g(h,p.lens,p.nlen,p.ndist,p.distcode,0,p.work,F),p.distbits=F.bits,V){C.msg="invalid distances set",p.mode=30;break}if(p.mode=20,I===6)break e;case 20:p.mode=21;case 21:if(6<=Y&&258<=ne){C.next_out=ae,C.avail_out=ne,C.next_in=Z,C.avail_in=Y,p.hold=B,p.bits=z,c(C,T),ae=C.next_out,X=C.output,ne=C.avail_out,Z=C.next_in,P=C.input,Y=C.avail_in,B=p.hold,z=p.bits,p.mode===12&&(p.back=-1);break}for(p.back=0;U=(M=p.lencode[B&(1<<p.lenbits)-1])>>>16&255,K=65535&M,!((ie=M>>>24)<=z);){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(U&&(240&U)==0){for(te=ie,ce=U,pe=K;U=(M=p.lencode[pe+((B&(1<<te+ce)-1)>>te)])>>>16&255,K=65535&M,!(te+(ie=M>>>24)<=z);){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}B>>>=te,z-=te,p.back+=te}if(B>>>=ie,z-=ie,p.back+=ie,p.length=K,U===0){p.mode=26;break}if(32&U){p.back=-1,p.mode=12;break}if(64&U){C.msg="invalid literal/length code",p.mode=30;break}p.extra=15&U,p.mode=22;case 22:if(p.extra){for(_=p.extra;z<_;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}p.length+=B&(1<<p.extra)-1,B>>>=p.extra,z-=p.extra,p.back+=p.extra}p.was=p.length,p.mode=23;case 23:for(;U=(M=p.distcode[B&(1<<p.distbits)-1])>>>16&255,K=65535&M,!((ie=M>>>24)<=z);){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if((240&U)==0){for(te=ie,ce=U,pe=K;U=(M=p.distcode[pe+((B&(1<<te+ce)-1)>>te)])>>>16&255,K=65535&M,!(te+(ie=M>>>24)<=z);){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}B>>>=te,z-=te,p.back+=te}if(B>>>=ie,z-=ie,p.back+=ie,64&U){C.msg="invalid distance code",p.mode=30;break}p.offset=K,p.extra=15&U,p.mode=24;case 24:if(p.extra){for(_=p.extra;z<_;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}p.offset+=B&(1<<p.extra)-1,B>>>=p.extra,z-=p.extra,p.back+=p.extra}if(p.offset>p.dmax){C.msg="invalid distance too far back",p.mode=30;break}p.mode=25;case 25:if(ne===0)break e;if(O=T-ne,p.offset>O){if((O=p.offset-O)>p.whave&&p.sane){C.msg="invalid distance too far back",p.mode=30;break}ee=O>p.wnext?(O-=p.wnext,p.wsize-O):p.wnext-O,O>p.length&&(O=p.length),le=p.window}else le=X,ee=ae-p.offset,O=p.length;for(ne<O&&(O=ne),ne-=O,p.length-=O;X[ae++]=le[ee++],--O;);p.length===0&&(p.mode=21);break;case 26:if(ne===0)break e;X[ae++]=p.length,ne--,p.mode=21;break;case 27:if(p.wrap){for(;z<32;){if(Y===0)break e;Y--,B|=P[Z++]<<z,z+=8}if(T-=ne,C.total_out+=T,p.total+=T,T&&(C.adler=p.check=p.flags?a(p.check,X,T,ae-T):l(p.check,X,T,ae-T)),T=ne,(p.flags?B:f(B))!==p.check){C.msg="incorrect data check",p.mode=30;break}z=B=0}p.mode=28;case 28:if(p.wrap&&p.flags){for(;z<32;){if(Y===0)break e;Y--,B+=P[Z++]<<z,z+=8}if(B!==(4294967295&p.total)){C.msg="incorrect length check",p.mode=30;break}z=B=0}p.mode=29;case 29:V=1;break e;case 30:V=-3;break e;case 31:return-4;case 32:default:return m}return C.next_out=ae,C.avail_out=ne,C.next_in=Z,C.avail_in=Y,p.hold=B,p.bits=z,(p.wsize||T!==C.avail_out&&p.mode<30&&(p.mode<27||I!==4))&&$(C,C.output,C.next_out,T-C.avail_out)?(p.mode=31,-4):(re-=C.avail_in,T-=C.avail_out,C.total_in+=re,C.total_out+=T,p.total+=T,p.wrap&&T&&(C.adler=p.check=p.flags?a(p.check,X,T,C.next_out-T):l(p.check,X,T,C.next_out-T)),C.data_type=p.bits+(p.last?64:0)+(p.mode===12?128:0)+(p.mode===20||p.mode===15?256:0),(re==0&&T===0||I===4)&&V===Q&&(V=-5),V)},i.inflateEnd=function(C){if(!C||!C.state)return m;var I=C.state;return I.window&&(I.window=null),C.state=null,Q},i.inflateGetHeader=function(C,I){var p;return C&&C.state?(2&(p=C.state).wrap)==0?m:((p.head=I).done=!1,Q):m},i.inflateSetDictionary=function(C,I){var p,P=I.length;return C&&C.state?(p=C.state).wrap!==0&&p.mode!==11?m:p.mode===11&&l(1,I,P,0)!==p.check?-3:$(C,I,P,P)?(p.mode=31,-4):(p.havedict=1,Q):m},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],g=[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(y,h,Q,m,k,u,w,f){var v,b,A,N,j,L,R,D,E,$=f.bits,C=0,I=0,p=0,P=0,X=0,Z=0,ae=0,Y=0,ne=0,B=0,z=null,re=0,T=new s.Buf16(16),O=new s.Buf16(16),ee=null,le=0;for(C=0;C<=15;C++)T[C]=0;for(I=0;I<m;I++)T[h[Q+I]]++;for(X=$,P=15;1<=P&&T[P]===0;P--);if(P<X&&(X=P),P===0)return k[u++]=20971520,k[u++]=20971520,f.bits=1,0;for(p=1;p<P&&T[p]===0;p++);for(X<p&&(X=p),C=Y=1;C<=15;C++)if(Y<<=1,(Y-=T[C])<0)return-1;if(0<Y&&(y===0||P!==1))return-1;for(O[1]=0,C=1;C<15;C++)O[C+1]=O[C]+T[C];for(I=0;I<m;I++)h[Q+I]!==0&&(w[O[h[Q+I]]++]=I);if(L=y===0?(z=ee=w,19):y===1?(z=l,re-=257,ee=a,le-=257,256):(z=c,ee=g,-1),C=p,j=u,ae=I=B=0,A=-1,N=(ne=1<<(Z=X))-1,y===1&&852<ne||y===2&&592<ne)return 1;for(;;){for(R=C-ae,E=w[I]<L?(D=0,w[I]):w[I]>L?(D=ee[le+w[I]],z[re+w[I]]):(D=96,0),v=1<<C-ae,p=b=1<<Z;k[j+(B>>ae)+(b-=v)]=R<<24|D<<16|E|0,b!==0;);for(v=1<<C-1;B&v;)v>>=1;if(v!==0?(B&=v-1,B+=v):B=0,I++,--T[C]==0){if(C===P)break;C=h[Q+w[I]]}if(X<C&&(B&N)!==A){for(ae===0&&(ae=X),j+=p,Y=1<<(Z=C-ae);Z+ae<P&&!((Y-=T[Z+ae])<=0);)Z++,Y<<=1;if(ne+=1<<Z,y===1&&852<ne||y===2&&592<ne)return 1;k[A=B&N]=X<<24|Z<<16|j-u|0}}return B!==0&&(k[j+B]=C-ae<<24|64<<16|0),f.bits=X,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(M){for(var S=M.length;0<=--S;)M[S]=0}var g=0,y=29,h=256,Q=h+1+y,m=30,k=19,u=2*Q+1,w=15,f=16,v=7,b=256,A=16,N=17,j=18,L=[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],R=[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],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(Q+2));c($);var C=new Array(2*m);c(C);var I=new Array(512);c(I);var p=new Array(256);c(p);var P=new Array(y);c(P);var X,Z,ae,Y=new Array(m);function ne(M,S,W,G,x){this.static_tree=M,this.extra_bits=S,this.extra_base=W,this.elems=G,this.max_length=x,this.has_stree=M&&M.length}function B(M,S){this.dyn_tree=M,this.max_code=0,this.stat_desc=S}function z(M){return M<256?I[M]:I[256+(M>>>7)]}function re(M,S){M.pending_buf[M.pending++]=255&S,M.pending_buf[M.pending++]=S>>>8&255}function T(M,S,W){M.bi_valid>f-W?(M.bi_buf|=S<<M.bi_valid&65535,re(M,M.bi_buf),M.bi_buf=S>>f-M.bi_valid,M.bi_valid+=W-f):(M.bi_buf|=S<<M.bi_valid&65535,M.bi_valid+=W)}function O(M,S,W){T(M,W[2*S],W[2*S+1])}function ee(M,S){for(var W=0;W|=1&M,M>>>=1,W<<=1,0<--S;);return W>>>1}function le(M,S,W){var G,x,H=new Array(w+1),q=0;for(G=1;G<=w;G++)H[G]=q=q+W[G-1]<<1;for(x=0;x<=S;x++){var J=M[2*x+1];J!==0&&(M[2*x]=ee(H[J]++,J))}}function ie(M){var S;for(S=0;S<Q;S++)M.dyn_ltree[2*S]=0;for(S=0;S<m;S++)M.dyn_dtree[2*S]=0;for(S=0;S<k;S++)M.bl_tree[2*S]=0;M.dyn_ltree[2*b]=1,M.opt_len=M.static_len=0,M.last_lit=M.matches=0}function U(M){8<M.bi_valid?re(M,M.bi_buf):0<M.bi_valid&&(M.pending_buf[M.pending++]=M.bi_buf),M.bi_buf=0,M.bi_valid=0}function K(M,S,W,G){var x=2*S,H=2*W;return M[x]<M[H]||M[x]===M[H]&&G[S]<=G[W]}function te(M,S,W){for(var G=M.heap[W],x=W<<1;x<=M.heap_len&&(x<M.heap_len&&K(S,M.heap[x+1],M.heap[x],M.depth)&&x++,!K(S,G,M.heap[x],M.depth));)M.heap[W]=M.heap[x],W=x,x<<=1;M.heap[W]=G}function ce(M,S,W){var G,x,H,q,J=0;if(M.last_lit!==0)for(;G=M.pending_buf[M.d_buf+2*J]<<8|M.pending_buf[M.d_buf+2*J+1],x=M.pending_buf[M.l_buf+J],J++,G===0?O(M,x,S):(O(M,(H=p[x])+h+1,S),(q=L[H])!==0&&T(M,x-=P[H],q),O(M,H=z(--G),W),(q=R[H])!==0&&T(M,G-=Y[H],q)),J<M.last_lit;);O(M,b,S)}function pe(M,S){var W,G,x,H=S.dyn_tree,q=S.stat_desc.static_tree,J=S.stat_desc.has_stree,oe=S.stat_desc.elems,de=-1;for(M.heap_len=0,M.heap_max=u,W=0;W<oe;W++)H[2*W]!==0?(M.heap[++M.heap_len]=de=W,M.depth[W]=0):H[2*W+1]=0;for(;M.heap_len<2;)H[2*(x=M.heap[++M.heap_len]=de<2?++de:0)]=1,M.depth[x]=0,M.opt_len--,J&&(M.static_len-=q[2*x+1]);for(S.max_code=de,W=M.heap_len>>1;1<=W;W--)te(M,H,W);for(x=oe;W=M.heap[1],M.heap[1]=M.heap[M.heap_len--],te(M,H,1),G=M.heap[1],M.heap[--M.heap_max]=W,M.heap[--M.heap_max]=G,H[2*x]=H[2*W]+H[2*G],M.depth[x]=(M.depth[W]>=M.depth[G]?M.depth[W]:M.depth[G])+1,H[2*W+1]=H[2*G+1]=x,M.heap[1]=x++,te(M,H,1),2<=M.heap_len;);M.heap[--M.heap_max]=M.heap[1],(function(se,ke){var je,Ae,Be,ge,Ue,lt,Ne=ke.dyn_tree,Ot=ke.max_code,en=ke.stat_desc.static_tree,tn=ke.stat_desc.has_stree,nn=ke.stat_desc.extra_bits,Ft=ke.stat_desc.extra_base,Oe=ke.stat_desc.max_length,We=0;for(ge=0;ge<=w;ge++)se.bl_count[ge]=0;for(Ne[2*se.heap[se.heap_max]+1]=0,je=se.heap_max+1;je<u;je++)Oe<(ge=Ne[2*Ne[2*(Ae=se.heap[je])+1]+1]+1)&&(ge=Oe,We++),Ne[2*Ae+1]=ge,Ot<Ae||(se.bl_count[ge]++,Ue=0,Ft<=Ae&&(Ue=nn[Ae-Ft]),lt=Ne[2*Ae],se.opt_len+=lt*(ge+Ue),tn&&(se.static_len+=lt*(en[2*Ae+1]+Ue)));if(We!==0){do{for(ge=Oe-1;se.bl_count[ge]===0;)ge--;se.bl_count[ge]--,se.bl_count[ge+1]+=2,se.bl_count[Oe]--,We-=2}while(0<We);for(ge=Oe;ge!==0;ge--)for(Ae=se.bl_count[ge];Ae!==0;)Ot<(Be=se.heap[--je])||(Ne[2*Be+1]!==ge&&(se.opt_len+=(ge-Ne[2*Be+1])*Ne[2*Be],Ne[2*Be+1]=ge),Ae--)}})(M,S),le(H,de,M.bl_count)}function d(M,S,W){var G,x,H=-1,q=S[1],J=0,oe=7,de=4;for(q===0&&(oe=138,de=3),S[2*(W+1)+1]=65535,G=0;G<=W;G++)x=q,q=S[2*(G+1)+1],++J<oe&&x===q||(J<de?M.bl_tree[2*x]+=J:x!==0?(x!==H&&M.bl_tree[2*x]++,M.bl_tree[2*A]++):J<=10?M.bl_tree[2*N]++:M.bl_tree[2*j]++,H=x,de=(J=0)===q?(oe=138,3):x===q?(oe=6,3):(oe=7,4))}function V(M,S,W){var G,x,H=-1,q=S[1],J=0,oe=7,de=4;for(q===0&&(oe=138,de=3),G=0;G<=W;G++)if(x=q,q=S[2*(G+1)+1],!(++J<oe&&x===q)){if(J<de)for(;O(M,x,M.bl_tree),--J!=0;);else x!==0?(x!==H&&(O(M,x,M.bl_tree),J--),O(M,A,M.bl_tree),T(M,J-3,2)):J<=10?(O(M,N,M.bl_tree),T(M,J-3,3)):(O(M,j,M.bl_tree),T(M,J-11,7));H=x,de=(J=0)===q?(oe=138,3):x===q?(oe=6,3):(oe=7,4)}}c(Y);var F=!1;function _(M,S,W,G){T(M,(g<<1)+(G?1:0),3),(function(x,H,q,J){U(x),re(x,q),re(x,~q),s.arraySet(x.pending_buf,x.window,H,q,x.pending),x.pending+=q})(M,S,W)}i._tr_init=function(M){F||((function(){var S,W,G,x,H,q=new Array(w+1);for(x=G=0;x<y-1;x++)for(P[x]=G,S=0;S<1<<L[x];S++)p[G++]=x;for(p[G-1]=x,x=H=0;x<16;x++)for(Y[x]=H,S=0;S<1<<R[x];S++)I[H++]=x;for(H>>=7;x<m;x++)for(Y[x]=H<<7,S=0;S<1<<R[x]-7;S++)I[256+H++]=x;for(W=0;W<=w;W++)q[W]=0;for(S=0;S<=143;)$[2*S+1]=8,S++,q[8]++;for(;S<=255;)$[2*S+1]=9,S++,q[9]++;for(;S<=279;)$[2*S+1]=7,S++,q[7]++;for(;S<=287;)$[2*S+1]=8,S++,q[8]++;for(le($,Q+1,q),S=0;S<m;S++)C[2*S+1]=5,C[2*S]=ee(S,5);X=new ne($,L,h+1,Q,w),Z=new ne(C,R,0,m,w),ae=new ne(new Array(0),D,0,k,v)})(),F=!0),M.l_desc=new B(M.dyn_ltree,X),M.d_desc=new B(M.dyn_dtree,Z),M.bl_desc=new B(M.bl_tree,ae),M.bi_buf=0,M.bi_valid=0,ie(M)},i._tr_stored_block=_,i._tr_flush_block=function(M,S,W,G){var x,H,q=0;0<M.level?(M.strm.data_type===2&&(M.strm.data_type=(function(J){var oe,de=4093624447;for(oe=0;oe<=31;oe++,de>>>=1)if(1&de&&J.dyn_ltree[2*oe]!==0)return l;if(J.dyn_ltree[18]!==0||J.dyn_ltree[20]!==0||J.dyn_ltree[26]!==0)return a;for(oe=32;oe<h;oe++)if(J.dyn_ltree[2*oe]!==0)return a;return l})(M)),pe(M,M.l_desc),pe(M,M.d_desc),q=(function(J){var oe;for(d(J,J.dyn_ltree,J.l_desc.max_code),d(J,J.dyn_dtree,J.d_desc.max_code),pe(J,J.bl_desc),oe=k-1;3<=oe&&J.bl_tree[2*E[oe]+1]===0;oe--);return J.opt_len+=3*(oe+1)+5+5+4,oe})(M),x=M.opt_len+3+7>>>3,(H=M.static_len+3+7>>>3)<=x&&(x=H)):x=H=W+5,W+4<=x&&S!==-1?_(M,S,W,G):M.strategy===4||H===x?(T(M,2+(G?1:0),3),ce(M,$,C)):(T(M,4+(G?1:0),3),(function(J,oe,de,se){var ke;for(T(J,oe-257,5),T(J,de-1,5),T(J,se-4,4),ke=0;ke<se;ke++)T(J,J.bl_tree[2*E[ke]+1],3);V(J,J.dyn_ltree,oe-1),V(J,J.dyn_dtree,de-1)})(M,M.l_desc.max_code+1,M.d_desc.max_code+1,q+1),ce(M,M.dyn_ltree,M.dyn_dtree)),ie(M),G&&U(M)},i._tr_tally=function(M,S,W){return M.pending_buf[M.d_buf+2*M.last_lit]=S>>>8&255,M.pending_buf[M.d_buf+2*M.last_lit+1]=255&S,M.pending_buf[M.l_buf+M.last_lit]=255&W,M.last_lit++,S===0?M.dyn_ltree[2*W]++:(M.matches++,S--,M.dyn_ltree[2*(p[W]+h+1)]++,M.dyn_dtree[2*z(S)]++),M.last_lit===M.lit_bufsize-1},i._tr_align=function(M){T(M,2,3),O(M,b,$),(function(S){S.bi_valid===16?(re(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):8<=S.bi_valid&&(S.pending_buf[S.pending++]=255&S.bi_buf,S.bi_buf>>=8,S.bi_valid-=8)})(M)}},{"../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,g,y,h,Q=1,m={},k=!1,u=l.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(l);w=w&&w.setTimeout?w:l,c={}.toString.call(l.process)==="[object process]"?function(A){process.nextTick(function(){v(A)})}:(function(){if(l.postMessage&&!l.importScripts){var A=!0,N=l.onmessage;return l.onmessage=function(){A=!1},l.postMessage("","*"),l.onmessage=N,A}})()?(h="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",b,!1):l.attachEvent("onmessage",b),function(A){l.postMessage(h+A,"*")}):l.MessageChannel?((y=new MessageChannel).port1.onmessage=function(A){v(A.data)},function(A){y.port2.postMessage(A)}):u&&"onreadystatechange"in u.createElement("script")?(g=u.documentElement,function(A){var N=u.createElement("script");N.onreadystatechange=function(){v(A),N.onreadystatechange=null,g.removeChild(N),N=null},g.appendChild(N)}):function(A){setTimeout(v,0,A)},w.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var N=new Array(arguments.length-1),j=0;j<N.length;j++)N[j]=arguments[j+1];var L={callback:A,args:N};return m[Q]=L,c(Q),Q++},w.clearImmediate=f}function f(A){delete m[A]}function v(A){if(k)setTimeout(v,0,A);else{var N=m[A];if(N){k=!0;try{(function(j){var L=j.callback,R=j.args;switch(R.length){case 0:L();break;case 1:L(R[0]);break;case 2:L(R[0],R[1]);break;case 3:L(R[0],R[1],R[2]);break;default:L.apply(a,R)}})(N)}finally{f(A),k=!1}}}}function b(A){A.source===l&&typeof A.data=="string"&&A.data.indexOf(h)===0&&v(+A.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Ze<"u"?Ze:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(dt)),dt.exports}var xo=To();const Lo=bt(xo);function Me(e,t){return Array.from(e.getElementsByTagName(t))}function et(e){return e[0]==="#"?e:`#${e}`}function Eo(e,t,r){return Array.from(e.getElementsByTagNameNS(r,t))}function Qe(e){return e==null||e.normalize(),(e==null?void 0:e.textContent)||""}function me(e,t,r){const o=e.getElementsByTagName(t);return o.length?o[0]:null}function Ce(e,t,r){const o={};if(!e)return o;const i=e.getElementsByTagName(t),s=i.length?i[0]:null;return s&&r?r(s,o):o}function Ee(e,t,r){const o=Qe(me(e,t));return o&&r?r(o)||{}:{}}function ye(e,t,r){const o=Number.parseFloat(Qe(me(e,t)));if(!Number.isNaN(o))return r&&r(o),o}function it(e,t){const r={};for(const o of t)Ee(e,o,i=>{r[o]=i});return r}function M1(e){return(e==null?void 0:e.nodeType)===1}function C1(e,t){const r={},o=t==="stroke"||t==="fill"?t:`${t}-color`;return e[0]==="#"&&(e=e.substring(1)),e.length===6||e.length===3?r[o]=`#${e}`:e.length===8&&(r[`${t}-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 tt(e,t,r){const o={};return ye(e,t,i=>{o[r]=i}),o}function At(e,t){return Ce(e,"color",r=>C1(Qe(r),t))}function _t(e){return Ce(e,"Icon",(t,r)=>(Ee(t,"href",o=>{r.icon=o}),r))}function zo(e){return Ce(e,"IconStyle",t=>Object.assign(At(t,"icon"),tt(t,"scale","icon-scale"),tt(t,"heading","icon-heading"),Ce(t,"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]}:{}}),_t(t)))}function jo(e){return Ce(e,"LabelStyle",t=>Object.assign(At(t,"label"),tt(t,"scale","label-scale")))}function Bo(e){return Ce(e,"LineStyle",t=>Object.assign(At(t,"stroke"),tt(t,"width","stroke-width")))}function Oo(e){return Ce(e,"PolyStyle",(t,r)=>Object.assign(r,Ce(t,"color",o=>C1(Qe(o),"fill")),Ee(t,"fill",o=>{if(o==="0")return{"fill-opacity":0}}),Ee(t,"outline",o=>{if(o==="0")return{"stroke-opacity":0}})))}function at(e){return Object.assign({},Oo(e),Bo(e),jo(e),zo(e))}const Fo=/\s*/g,Po=/^\s*|\s*$/g,Ro=/\s+/;function A1(e){return e.replace(Fo,"").split(",").map(Number.parseFloat).filter(t=>!Number.isNaN(t)).slice(0,3)}function mt(e){return e.replace(Po,"").split(Ro).map(A1).filter(t=>t.length>=2)}function $o(e){let t=Me(e,"coord");t.length===0&&(t=Eo(e,"coord","*"));const r=t.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 _1(e){if(e.length===0)return e;const t=e[0],r=e[e.length-1];let o=!0;for(let i=0;i<Math.max(t.length,r.length);i++)if(t[i]!==r[i]){o=!1;break}return o?e:e.concat([e[0]])}function Je(e){return Qe(me(e,"coordinates"))}function D1(e){let t=[],r=[];for(let o=0;o<e.childNodes.length;o++){const i=e.childNodes.item(o);if(M1(i))switch(i.tagName){case"MultiGeometry":case"MultiTrack":case"gx:MultiTrack":{const s=D1(i);t=t.concat(s.geometries),r=r.concat(s.coordTimes);break}case"Point":{const s=A1(Je(i));s.length>=2&&t.push({type:"Point",coordinates:s});break}case"LinearRing":case"LineString":{const s=mt(Je(i));s.length>=2&&t.push({type:"LineString",coordinates:s});break}case"Polygon":{const s=[];for(const l of Me(i,"LinearRing")){const a=_1(mt(Je(l)));a.length>=4&&s.push(a)}s.length&&t.push({type:"Polygon",coordinates:s});break}case"Track":case"gx:Track":{const s=$o(i);if(!s)break;const{times:l,geometry:a}=s;t.push(a),l.length&&r.push(l);break}}}return{geometries:t,coordTimes:r}}const Le=e=>Number(e),wt={string:e=>e,int:Le,uint:Le,short:Le,ushort:Le,float:Le,double:Le,bool:e=>!!e};function Dt(e,t){return Ce(e,"ExtendedData",(r,o)=>{for(const i of Me(r,"Data"))o[i.getAttribute("name")||""]=Qe(me(i,"value"));for(const i of Me(r,"SimpleData")){const s=i.getAttribute("name")||"",l=t[s]||wt.string;o[s]=l(Qe(i))}return o})}function Nt(e){const t=me(e,"description");for(const r of Array.from((t==null?void 0:t.childNodes)||[]))if(r.nodeType===4)return{description:{"@type":"html",value:Qe(r)}};return{}}function It(e){return Ce(e,"TimeSpan",t=>({timespan:{begin:Qe(me(t,"begin")),end:Qe(me(t,"end"))}}))}function St(e){return Ce(e,"TimeStamp",t=>({timestamp:Qe(me(t,"when"))}))}function Tt(e,t){return Ee(e,"styleUrl",r=>(r=et(r),t[r]?Object.assign({styleUrl:r},t[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 Vo(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 Uo(e){return me(e,"gx:LatLonQuad")?{geometry:{type:"Polygon",coordinates:[_1(mt(Je(e)))]}}:Yo(e)}const Wo=Math.PI/180;function Zo(e,t,r){const o=[(e[0]+e[2])/2,(e[1]+e[3])/2];return[t[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*Wo;return[o[0]+Math.cos(c)*a,o[1]+Math.sin(c)*a]})]}function Yo(e){const t=me(e,"LatLonBox");if(t){const r=ye(t,"north"),o=ye(t,"west"),i=ye(t,"east"),s=ye(t,"south"),l=ye(t,"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=Zo(a,c,l)),{bbox:a,geometry:{type:"Polygon",coordinates:c}}}}return null}function Go(e,t,r,o){var c;const i=Uo(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"},it(e,["name","address","visibility","open","phoneNumber","description"]),Nt(e),Tt(e,t),at(e),_t(e),Dt(e,r),It(e),St(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 Ho(e){const t=me(e,"Region");return t?{coordinateBox:Xo(t),lod:Jo(e)}:null}function Jo(e){const t=me(e,"Lod");return t?[ye(t,"minLodPixels")??-1,ye(t,"maxLodPixels")??-1,ye(t,"minFadeExtent")??null,ye(t,"maxFadeExtent")??null]:null}function Xo(e){const t=me(e,"LatLonAltBox");if(t){const r=ye(t,"north"),o=ye(t,"west"),i=ye(t,"east"),s=ye(t,"south");if(Vo(me(t,"altitudeMode")||me(t,"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 Ko(e){const t=me(e,"Link");return t?it(t,["href","refreshMode","refreshInterval","viewRefreshMode","viewRefreshTime","viewBoundScale","viewFormat","httpQuery"]):{}}function qo(e,t,r,o){var c,g,y;const i=Ho(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"},it(e,["name","address","visibility","open","phoneNumber","styleUrl","refreshVisibility","flyToView","description"]),Nt(e),Tt(e,t),at(e),_t(e),Dt(e,r),It(e),St(e),Ko(e),i!=null&&i.lod?{lod:i.lod}:{})};(g=i==null?void 0:i.coordinateBox)!=null&&g.bbox&&(l.bbox=i.coordinateBox.bbox),((y=l.properties)==null?void 0:y.visibility)!==void 0&&(l.properties.visibility=l.properties.visibility!=="0");const a=e.getAttribute("id");return a!==null&&a!==""&&(l.id=a),l}function ei(e){return e.length===0?null:e.length===1?e[0]:{type:"GeometryCollection",geometries:e}}function ti(e,t,r,o){var g;const{coordTimes:i,geometries:s}=D1(e),l=ei(s);if(!l&&o.skipNullGeometry)return null;const a={type:"Feature",geometry:l,properties:Object.assign(it(e,["name","address","visibility","open","phoneNumber","description"]),Nt(e),Tt(e,t),at(e),Dt(e,r),It(e),St(e),i.length?{coordinateProperties:{times:i.length===1?i[0]:i}}:{})};((g=a.properties)==null?void 0:g.visibility)!==void 0&&(a.properties.visibility=a.properties.visibility!=="0");const c=e.getAttribute("id");return c!==null&&c!==""&&(a.id=c),a}function ni(e){let t=e.getAttribute("id");const r=e.parentNode;return!t&&M1(r)&&r.localName==="CascadingStyle"&&(t=r.getAttribute("kml:id")||r.getAttribute("id")),et(t||"")}function ri(e){const t={};for(const r of Me(e,"Style"))t[ni(r)]=at(r);for(const r of Me(e,"StyleMap")){const o=et(r.getAttribute("id")||"");Ee(r,"styleUrl",i=>{i=et(i),t[i]&&(t[o]=t[i])})}return t}function oi(e){const t={};for(const r of Me(e,"SimpleField"))t[r.getAttribute("name")||""]=wt[r.getAttribute("type")||""]||wt.string;return t}function*ii(e,t={skipNullGeometry:!1}){const r=e,o=ri(r),i=oi(r);for(const s of Me(r,"Placemark")){const l=ti(s,o,i,t);l&&(yield l)}for(const s of Me(r,"GroundOverlay")){const l=Go(s,o,i,t);l&&(yield l)}for(const s of Me(r,"NetworkLink")){const l=qo(s,o,i,t);l&&(yield l)}}function ai(e,t={skipNullGeometry:!1}){return{type:"FeatureCollection",features:Array.from(ii(e,t))}}function yt(e){const t=[],r=e.replace(/\s+/g," ").trim();if(!r)return t;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])&&t.push([s[0],s[1]])}return t}function li(e){const t=e.split(",").map(r=>Number(r.trim()));return t.length>=2&&Number.isFinite(t[0])&&Number.isFinite(t[1])?[t[0],t[1]]:null}function Kt(e){return e.replace(/wpml:/g,"")}function qt(e){const t=[],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&&t.push(...yt(a.textContent))}else if(l){const a=l.getElementsByTagName("coordinates")[0];if(a!=null&&a.textContent){const c=li(a.textContent.trim());c&&t.push(c)}}}return t}function si(e){const t=[],r=e.getElementsByTagName("Folder");if(r.length===0){const o=qt(e.documentElement);return o.length&&t.push(o),t}for(let o=0;o<r.length;o++){const i=qt(r[o]);i.length&&t.push(i)}return t}function ci(e){const t=e.getElementsByTagName("LinearRing");for(let o=0;o<t.length;o++){const i=t[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 e1(e,t){if(e)switch(e.type){case"LineString":for(const r of e.coordinates)r.length>=2&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&t.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])&&t.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])&&t.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])&&t.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])&&t.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])&&t.push([r[0],r[1]]);break}}function ui(e){const t=[];return e.features.forEach(r=>{if(r.geometry){const o=r.geometry;o.type==="GeometryCollection"&&Array.isArray(o.geometries)?o.geometries.forEach(i=>e1(i,t)):e1(o,t)}}),t}function t1(e){const r=new DOMParser().parseFromString(e,"text/xml"),o=ai(r);return ui(o)}async function N1(e){var r;const t={points:[],polylines:[]};try{if(!e||typeof e!="string"||e.trim()==="")return console.warn("KMZ URL 为空或无效"),t;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 Lo().loadAsync(i)).files,c=Object.keys(a).filter(m=>!a[m].dir),g=async m=>{const k=a[m];return k?k.async("text"):null},y={points:[],polylines:[]},h=c.find(m=>m.replace(/\\/g,"/").endsWith("wpmz/waylines.wpml"))||c.find(m=>m.toLowerCase().endsWith("waylines.wpml"));if(h){const m=await g(h);if(m){const k=Kt(m),w=new DOMParser().parseFromString(k,"text/xml"),f=si(w);f.length&&(y.polylines=f,y.points=f.flat())}}const Q=c.find(m=>m.replace(/\\/g,"/").endsWith("wpmz/template.kml"))||c.find(m=>m.toLowerCase().endsWith("template.kml"));if(Q){const m=await g(Q);if(m){const k=Kt(m),w=new DOMParser().parseFromString(k,"text/xml"),f=ci(w);f!=null&&f.length&&(y.polygonOutline=f);const v=t1(k);v.length&&!y.points.length&&(y.points=v)}}if(!y.points.length&&!y.polylines.length){const m=c.find(k=>k.toLowerCase().endsWith(".kml"));if(m){const k=await g(m);if(k){const u=t1(k);u.length&&(y.points=u,y.polylines=[u])}}}return!y.points.length&&((r=y.polygonOutline)!=null&&r.length)&&(y.points=[...y.polygonOutline]),y.points.length&&!y.polylines.length&&(y.polylines=[y.points]),y}catch(o){return console.error("KMZ解析失败:",o),t}}const di=async e=>(await N1(e)).points;function Xe(e){return e===!1?!1:e===0||String(e)==="0"||e?e:"-"}function I1(e){const{size:t,unit:r="B",maxUnit:o,numberFormatOptions:i}=e,{size:s,unit:l}=xt({size:t,unit:r},{maxUnit:o});return`${s.toLocaleString(void 0,i)} ${l}`}function xt(e,t){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=(t==null?void 0:t.maxUnit)||"TB",a=r.indexOf(l);return s===a?{size:o,unit:i}:o<1024?{size:o,unit:i}:xt({size:o/1024,unit:r[s+1]},t)}function Lt(e,t="-"){return(r,o)=>r===0||r==="0"?e?e(r,o):r:r?e?e(r,o):r.toString():t}function S1(e,t){const r=e.getFullYear(),o=e.getMonth()+1,i=e.getDate(),s=e.getHours(),l=s%12||12,a=e.getMinutes(),c=e.getSeconds(),g=e.getMilliseconds(),y=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(g).padStart(3,"0"),SS:String(g).padStart(3,"0").slice(0,2),S:String(g).padStart(3,"0").charAt(0),A:y,a:y.toLowerCase()};return t.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 T1(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 t=new Date(e);return isNaN(t.getTime())?(t=new Date(e.replace(" ","T")),isNaN(t.getTime())?null:t):t}function x1(e){if(e==null)return null;if(e instanceof Date)return e;const t=Number(e);if(Number.isFinite(t)){const r=String(Math.floor(t)).length;if(r===10)return t*1e3;if(r===13)return t;if(t===0)return 0}return e}function fi(e,t="YYYY-MM-DD HH:mm:ss"){const r=x1(e);if(!r&&r!==0)return Xe(e);const o=T1(r);return Xe(o?S1(o,t):e)}function hi(e="YYYY-MM-DD HH:mm:ss",t="-"){return(r,o)=>{if(r===0||r==="0")return String(r);const i=x1(r);if(!r||r==="Invalid Date")return t;try{const s=T1(i);if(!s)return t;const l=S1(s,e);return!l||l==="Invalid Date"?t:l}catch(s){return console.error("Date formatting failed:",s),t}}}function pi(e="-",t){return Lt(o=>{const i=typeof o=="string"?Number(o):o;return Number.isFinite(i)?I1({size:i,unit:(t==null?void 0:t.unit)||"B",numberFormatOptions:{maximumFractionDigits:t==null?void 0:t.digits,minimumFractionDigits:t==null?void 0:t.digits}}):o},e)}function gi(e="-",t){return Lt(o=>{const i=["B","KB","MB","GB","TB"];let s=typeof o=="string"?Number(o):o,l=(t==null?void 0:t.unit)||"B";const a=(t==null?void 0:t.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 mi(e,t,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(t),g=i.indexOf(r);if(c===-1||g===-1)return e;const y=c-g,Q=(a*Math.pow(1024,y)).toFixed(s);return l?`${Q} ${r}`:Number(Q)}const wi=Object.freeze(Object.defineProperty({__proto__:null,convertDataUnit:mi,defaultAutoDataFormat:gi,defaultDataFormat:pi,defaultDateFormat:hi,defaultFill:Xe,defaultFormat:Lt,formatDate:fi,formatSize:I1,getUpperSize:xt},Symbol.toStringTag,{value:"Module"}));function yi(e){return Array.isArray(e)?[...new Set(e)]:e}function vi(e,t){if(!Array.isArray(e))return e;const r=new Map;return e.filter(o=>{const i=o[t];return r.has(i)?!1:(r.set(i,!0),!0)})}function Qi(e,t){if(!Array.isArray(e))return e;const r=new Set;return e.filter(o=>{const i=t.map(s=>o[s]).join("|");return r.has(i)?!1:(r.add(i),!0)})}function ki(e,t){if(!Array.isArray(e))return e;const{idKey:r="id",parentKey:o="parentId",childrenKey:i="children",rootParentValue:s=null}=t||{},l=new Map,a=[];return e.forEach(c=>{l.set(c[r],{...c,[i]:[]})}),e.forEach(c=>{const g=l.get(c[r]);if(!g)return;const y=c[o];if(y===s||y===void 0)a.push(g);else{const h=l.get(y);h?(h[i]||(h[i]=[]),h[i].push(g)):a.push(g)}}),a}function bi(e,t="children"){if(!Array.isArray(e))return e;const r=[],o=i=>{i.forEach(s=>{const l=s[t],a={...s};delete a[t],r.push(a),Array.isArray(l)&&l.length>0&&o(l)})};return o(e),r}function L1(e,t,r="children"){if(!Array.isArray(e))return null;for(const o of e){if(t(o))return o;if(Array.isArray(o[r])&&o[r].length>0){const i=L1(o[r],t,r);if(i)return i}}return null}function Mi(e,t,r="children"){if(!Array.isArray(e))return;const o=(i,s,l)=>{i.forEach(a=>{t(a,s,l),Array.isArray(a[r])&&a[r].length>0&&o(a[r],a,l+1)})};o(e,null,0)}function Ci(e,t){return Array.isArray(e)?e.reduce((r,o)=>{const i=String(o[t]);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function Ai(e,t){return Array.isArray(e)?e.reduce((r,o)=>{const i=t(o);return r[i]||(r[i]=[]),r[i].push(o),r},{}):{}}function _i(e,t,r="asc"){return Array.isArray(e)?[...e].sort((o,i)=>{const s=o[t],l=i[t];return s<l?r==="asc"?-1:1:s>l?r==="asc"?1:-1:0}):e}function Di(e,t){return Array.isArray(e)?[...e].sort((r,o)=>{for(const{key:i,order:s="asc"}of t){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 E1(e,t){return Array.isArray(e)?e.reduce((r,o)=>{const i=t?o[t]:o;return r+(Number(i)||0)},0):0}function Ni(e,t){return!Array.isArray(e)||e.length===0?0:E1(e,t)/e.length}function Ii(e,t){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=t?o[t]:o;return Number(i)||0});return Math.max(...r)}function Si(e,t){if(!Array.isArray(e)||e.length===0)return 0;const r=e.map(o=>{const i=t?o[t]:o;return Number(i)||0});return Math.min(...r)}function Ti(e,t){if(!Array.isArray(e)||t<=0)return[e];const r=[];for(let o=0;o<e.length;o+=t)r.push(e.slice(o,o+t));return r}function xi(e,t){if(!Array.isArray(e)||!Array.isArray(t))return[];const r=new Set(t);return e.filter(o=>r.has(o))}function Li(e,t){return Array.isArray(e)?Array.isArray(t)?[...new Set([...e,...t])]:e||[]:t||[]}function Ei(e,t){if(!Array.isArray(e))return[];if(!Array.isArray(t))return e;const r=new Set(t);return e.filter(o=>!r.has(o))}function z1(e){if(!Array.isArray(e))return e;const t=[...e];for(let r=t.length-1;r>0;r--){const o=Math.floor(Math.random()*(r+1));[t[r],t[o]]=[t[o],t[r]]}return t}function zi(e,t=1){return!Array.isArray(e)||t<=0?[]:z1(e).slice(0,Math.min(t,e.length))}function j1(e,t=1/0){return!Array.isArray(e)||t<=0?e:e.reduce((r,o)=>(Array.isArray(o)?r.push(...j1(o,t-1)):r.push(o),r),[])}function ji(e,t,r){if(!Array.isArray(e))return{data:[],page:t,pageSize:r,total:0,totalPages:0};const o=e.length,i=Math.ceil(o/r),s=(t-1)*r,l=s+r;return{data:e.slice(s,l),page:t,pageSize:r,total:o,totalPages:i}}function Bi(e,t,r){if(!Array.isArray(e)||t<0||t>=e.length||r<0||r>=e.length)return e;const o=[...e],[i]=o.splice(t,1);return o.splice(r,0,i),o}function Oi(e){return Array.isArray(e)?e.reduce((t,r)=>(t[r]=(t[r]||0)+1,t),{}):{}}const Fi=Object.freeze(Object.defineProperty({__proto__:null,arrayToTree:ki,average:Ni,chunkArray:Ti,countBy:Oi,difference:Ei,findNodeInTree:L1,flatten:j1,forEachTree:Mi,groupBy:Ci,groupByFn:Ai,intersection:xi,max:Ii,min:Si,move:Bi,paginate:ji,sample:zi,shuffle:z1,sortBy:_i,sortByMultiple:Di,sum:E1,treeToArray:bi,union:Li,uniqueArray:yi,uniqueArrayByKey:vi,uniqueArrayByKeys:Qi},Symbol.toStringTag,{value:"Module"}));async function Pi(e){if(!e)return!1;if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(e),!0}catch(t){console.error("Clipboard API 失败:",t)}try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",t.style.top="-9999px",document.body.appendChild(t),t.select(),t.setSelectionRange(0,e.length);const r=document.execCommand("copy");return document.body.removeChild(t),r}catch(t){return console.error("复制失败:",t),!1}}async function Ri(){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.readText()}catch(e){return console.error("读取剪贴板失败:",e),""}return""}function Et(e,t){const r=document.createElement("a");typeof e=="string"?r.href=e:r.href=URL.createObjectURL(e),r.download=t,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof e!="string"&&setTimeout(()=>URL.revokeObjectURL(r.href),100)}function $i(e,t){const r=JSON.stringify(e,null,2),o=new Blob([r],{type:"application/json"});Et(o,t)}function Vi(e,t){const r=new Blob([e],{type:"text/plain"});Et(r,t)}function zt(e){window.scrollTo(e)}function Ui(e,t){const r=typeof e=="string"?document.querySelector(e):e;r&&r.scrollIntoView({behavior:"smooth",block:"start",...t})}function Wi(e=!0){zt({top:0,behavior:e?"smooth":"auto"})}function Zi(e=!0){zt({top:document.documentElement.scrollHeight,behavior:e?"smooth":"auto"})}function B1(){return{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}}function Yi(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}function Gi(e,t=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-t&&r.left>=0-t&&r.bottom<=o+t&&r.right<=i+t}function Hi(e){if(!e)return!1;const t=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth,i=t.top<=r&&t.top+t.height>=0,s=t.left<=o&&t.left+t.width>=0;return i&&s}function Ji(e=document.documentElement){document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(t=>{console.error("进入全屏失败:",t)})}function Xi(e=document.documentElement){document.fullscreenElement||e.requestFullscreen().catch(t=>{console.error("进入全屏失败:",t)})}function Ki(){document.fullscreenElement&&document.exitFullscreen()}function qi(){return!!document.fullscreenElement}function e8(e,t){e&&e.classList.add(t)}function t8(e,t){e&&e.classList.remove(t)}function n8(e,t){e&&e.classList.toggle(t)}function r8(e,t){return e?e.classList.contains(t):!1}function o8(e){return e?Array.from(e.classList):[]}function i8(e){return e?e.getBoundingClientRect():null}function a8(e){return e?e.offsetWidth:0}function l8(e){return e?e.offsetHeight:0}function s8(e,t=document){return t.querySelector(e)}function c8(e,t=document){return Array.from(t.querySelectorAll(e))}function u8(e,t){return e?e.getAttribute(t):null}function d8(e,t,r){e&&e.setAttribute(t,r)}function f8(e,t){e&&e.removeAttribute(t)}function h8(e,t){return e?e.hasAttribute(t):!1}function p8(e,t){return e&&window.getComputedStyle(e)[t]||""}function g8(e,t){e&&Object.keys(t).forEach(r=>{e.style[r]=t[r]})}function m8(){return{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function O1(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}function w8(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)}function y8(e=0){const{y:t}=B1(),r=window.innerHeight||document.documentElement.clientHeight,o=O1();return t+r>=o-e}const v8=Object.freeze(Object.defineProperty({__proto__:null,addClass:e8,copyToClipboard:Pi,downloadFile:Et,downloadJSON:$i,downloadText:Vi,enterFullscreen:Xi,exitFullscreen:Ki,getAttribute:u8,getClasses:o8,getElementHeight:l8,getElementRect:i8,getElementWidth:a8,getOffsetTop:Yi,getPageHeight:O1,getPageWidth:w8,getScrollPosition:B1,getStyle:p8,getWindowSize:m8,hasAttribute:h8,hasClass:r8,isFullscreen:qi,isInViewport:Gi,isPartiallyVisible:Hi,isScrolledToBottom:y8,querySelector:s8,querySelectorAll:c8,readFromClipboard:Ri,removeAttribute:f8,removeClass:t8,scrollTo:zt,scrollToBottom:Zi,scrollToElement:Ui,scrollToTop:Wi,setAttribute:d8,setStyle:g8,toggleClass:n8,toggleFullscreen:Ji},Symbol.toStringTag,{value:"Module"}));function Q8(e,t){return Math.floor(Math.random()*(t-e+1))+e}function k8(e,t,r=2){const o=Math.random()*(t-e)+e;return Number(o.toFixed(r))}function b8(e,t,r=1){const o=[];if(r===0)return o;if(r>0)for(let i=e;i<=t;i+=r)o.push(i);else for(let i=e;i>=t;i+=r)o.push(i);return o}function M8(e,t,r){return Math.min(Math.max(e,t),r)}function C8(e,t){const r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i+t*i)/i}function A8(e,t){const r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(r,o));return(e*i-t*i)/i}function _8(e,t){const r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,i=Math.pow(10,r+o);return e*Math.pow(10,r)*t*Math.pow(10,o)/i}function D8(e,t){if(t===0)return console.warn("Division by zero"),1/0;const r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length;return e*Math.pow(10,o)/(t*Math.pow(10,r))*Math.pow(10,r-o)}function jt(e,t=0){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}function N8(e,t=0){return Math.ceil(e*Math.pow(10,t))/Math.pow(10,t)}function I8(e,t=0){return Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}function S8(e,t=0){return jt(e,t).toFixed(t)}function T8(e,t,r=2){return t===0?0:jt(e/t*100,r)}function x8(e){return e/100}function L8(e){return e*100}function E8(e,t=2){return String(e).padStart(t,"0")}function z8(e){const t=["零","一","二","三","四","五","六","七","八","九"],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+=t[a]+c,s=0)}return e>=10&&e<20&&(i=i.replace("一十","十")),i}function j8(e){const t=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],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]),g=r[i.length-1-a];c!==0?l+=t[c]+g: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+=t[c]+o[a])}else l+="整";return l}function B8(e){return e%2===0}function O8(e){return e%2!==0}function F8(e){if(e<2)return!1;if(e===2)return!0;if(e%2===0)return!1;for(let t=3;t<=Math.sqrt(e);t+=2)if(e%t===0)return!1;return!0}function P8(e,t,r){return e>=t&&e<=r}function R8(e){return Math.abs(e)}function $8(e){return Math.sqrt(e)}function V8(e,t){return Math.pow(e,t)}function F1(e){return e<0?NaN:e===0||e===1?1:e*F1(e-1)}function Bt(e,t){return t===0?e:Bt(t,e%t)}function U8(e,t){return e*t/Bt(e,t)}const W8=Object.freeze(Object.defineProperty({__proto__:null,abs:R8,add:C8,ceil:N8,clamp:M8,decimalToPercent:L8,divide:D8,factorial:F1,floor:I8,gcd:Bt,inRange:P8,isEven:B8,isOdd:O8,isPrime:F8,lcm:U8,multiply:_8,padZero:E8,percentToDecimal:x8,percentage:T8,pow:V8,random:Q8,randomFloat:k8,range:b8,round:jt,sqrt:$8,subtract:A8,toChineseMoney:j8,toChineseNumber:z8,toFixed:S8},Symbol.toStringTag,{value:"Module"}));function nt(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=>nt(r));const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=nt(e[r]));return t}function Z8(e){return e===null||typeof e!="object"?e:Array.isArray(e)?[...e]:{...e}}function P1(...e){if(e.length===0)return{};if(e.length===1)return e[0];const t={};return e.forEach(r=>{!r||typeof r!="object"||Object.keys(r).forEach(o=>{const i=r[o],s=t[o];i&&typeof i=="object"&&!Array.isArray(i)&&s&&typeof s=="object"&&!Array.isArray(s)?t[o]=P1(s,i):t[o]=nt(i)})}),t}function Y8(...e){return Object.assign({},...e)}function G8(e,t){if(!e||typeof e!="object")return{};const r={};return t.forEach(o=>{o in e&&(r[o]=e[o])}),r}function H8(e,t){if(!e||typeof e!="object")return{};const r={...e};return t.forEach(o=>{delete r[o]}),r}function J8(e,t,r){if(!e||typeof e!="object")return r;const o=t.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 R1(e,t,r){if(!e||typeof e!="object")return;const o=t.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 X8(e,t){if(!e||typeof e!="object")return!1;const r=t.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 K8(e){return e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function q8(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function vt(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.toString()===t.toString();if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((i,s)=>vt(i,t[s]));const r=Object.keys(e),o=Object.keys(t);return r.length!==o.length?!1:r.every(i=>vt(e[i],t[i]))}function Qt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Qt(r));const t={};return Object.keys(e).forEach(r=>{const o=r.replace(/_([a-z])/g,(s,l)=>l.toUpperCase()),i=e[r];t[o]=typeof i=="object"?Qt(i):i}),t}function kt(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>kt(r));const t={};return Object.keys(e).forEach(r=>{const o=r.replace(/([A-Z])/g,"_$1").toLowerCase(),i=e[r];t[o]=typeof i=="object"?kt(i):i}),t}function ea(e){return!e||typeof e!="object"?"":Object.keys(e).filter(t=>e[t]!==void 0&&e[t]!==null).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(t)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(r)}`}).join("&")}function ta(e){if(!e)return{};const t=e.startsWith("?")?e.slice(1):e,r={};return t.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 $1(e,t){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{t(e[o],o)&&(r[o]=e[o])}),r}function na(e,t=!0){return $1(e,r=>!(r==null||t&&r===""))}function V1(e,t=""){if(!e||typeof e!="object")return{};const r={};return Object.keys(e).forEach(o=>{const i=t?`${t}.${o}`:o,s=e[o];s&&typeof s=="object"&&!Array.isArray(s)?Object.assign(r,V1(s,i)):r[i]=s}),r}function ra(e){if(!e||typeof e!="object")return{};const t={};return Object.keys(e).forEach(r=>{R1(t,r,e[r])}),t}function oa(e){if(!e||typeof e!="object")return{};const t={};return Object.keys(e).forEach(r=>{const o=e[r];t[String(o)]=r}),t}function ia(e){return!e||typeof e!="object"?[]:Object.values(e)}function aa(e){return!e||typeof e!="object"?[]:Object.keys(e)}function la(e){return!e||typeof e!="object"?[]:Object.entries(e)}const sa=Object.freeze(Object.defineProperty({__proto__:null,deepClone:nt,deepMerge:P1,entries:la,filterValues:$1,flattenObject:V1,fromQueryString:ta,get:J8,has:X8,invert:oa,isEmpty:K8,isEqual:vt,isPlainObject:q8,keys:aa,keysToCamelCase:Qt,keysToUnderlineCase:kt,omit:H8,pick:G8,removeEmpty:na,set:R1,shallowClone:Z8,shallowMerge:Y8,toQueryString:ea,unflattenObject:ra,values:ia},Symbol.toStringTag,{value:"Module"}));function ca(e,t=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},t)};return s.cancel=()=>{o&&(clearTimeout(o),o=null),i=!1},s}function ua(e,t=300,r){const{leading:o=!0,trailing:i=!0}=r||{};let s=null,l=0,a=null;const c=function(...g){const y=Date.now();!l&&!o&&(l=y);const h=t-(y-l);a=g,h<=0||h>t?(s&&(clearTimeout(s),s=null),l=y,e.apply(this,g),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 da(e){let t=!1,r;return function(...o){return t||(t=!0,r=e.apply(this,o)),r}}function U1(e){return new Promise(t=>setTimeout(t,e))}function W1(e){return U1(e)}async function fa(e,t){const{times:r=3,delay:o=1e3,onRetry:i}=t||{};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 W1(o)}throw s}function ha(e,t){return Promise.race([e,new Promise((r,o)=>setTimeout(()=>o(new Error("Timeout")),t))])}function pa(e,t){const r=new Map,o=function(...i){const s=t?t(...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 ga(e){e.cache&&e.cache.clear()}function ma(e,t=100){let r=[],o=null;return function(i){r.push(i),o&&clearTimeout(o),o=setTimeout(()=>{e(r),r=[],o=null},t)}}async function wa(e,t){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>=t&&await Promise.race(o)}return await Promise.all(o),r}async function ya(e){const t=[];for(const r of e){const o=await r();t.push(o)}return t}function va(e,t){return function(...r){const o=performance.now(),i=e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${t||e.name||"Function"}: ${l}ms`),i}}function Qa(e,t){return async function(...r){const o=performance.now(),i=await e.apply(this,r),l=(performance.now()-o).toFixed(2);return console.log(`${t||e.name||"Function"}: ${l}ms`),i}}function ka(e){const t=new Map;return async function(...r){const o=JSON.stringify(r);if(t.has(o))return t.get(o);const i=e.apply(this,r).finally(()=>{t.delete(o)});return t.set(o,i),i}}function ba(e){let t=null;const r=function(...o){t===null&&(t=requestAnimationFrame(()=>{e.apply(this,o),t=null}))};return r.cancel=()=>{t!==null&&(cancelAnimationFrame(t),t=null)},r}const Ma=Object.freeze(Object.defineProperty({__proto__:null,batch:ma,clearCache:ga,debounce:ca,dedupe:ka,delay:U1,measureTime:va,measureTimeAsync:Qa,memoize:pa,once:da,promiseLimit:wa,promiseSerial:ya,rafThrottle:ba,retry:fa,sleep:W1,throttle:ua,withTimeout:ha},Symbol.toStringTag,{value:"Module"}));function Se(e,t){return r=>{const o=String(r||"").trim();return!o||e(o)?!0:typeof t=="function"?t():t}}function Z1(e){return e?/^1[3-9]\d{9}$/.test(e):!1}function Y1(e){return e?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e):!1}function G1(e){return e?/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(e):!1}function H1(e){return e?/^\d{16,19}$/.test(e):!1}function J1(e){return e?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/.test(e):!1}function X1(e){return e?/^(https?:\/\/)([a-zA-Z0-9.-]+)(:[0-9]+)?(\/.*)?$/.test(e):!1}function K1(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 Ca(e){return e?/^[\u4e00-\u9fa5]+$/.test(e):!1}function Aa(e){return e?/[\u4e00-\u9fa5]/.test(e):!1}function _a(e){return e?/^\d+$/.test(e):!1}function Da(e){return e?/^-?\d+\.?\d*$/.test(e):!1}function Na(e){return e?/^[1-9]\d*$/.test(e):!1}function Ia(e){return!e&&e!=="0"?!1:/^(0|[1-9]\d*)$/.test(e)}function Sa(e){return e?/^[1-9]\d{4,10}$/.test(e):!1}function Ta(e){return e?/^[a-zA-Z][a-zA-Z0-9_-]{5,19}$/.test(e):!1}function xa(e){return e?/^[1-9]\d{5}$/.test(e):!1}function La(e){return e?/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e):!1}function Ea(e){return e?/^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d@$!%*?&]{6,}$/.test(e):!1}function za(e){return e?/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e):!1}function ja(e){if(!e)return!1;const t=Number(e);return/^\d+$/.test(e)&&t>=1&&t<=65535}function Ba(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 Oa(e){return e?/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e):!1}function Fa(e="请输入有效的手机号"){return Se(Z1,e)}function Pa(e="请输入有效的邮箱地址"){return Se(Y1,e)}function Ra(e="请输入有效的身份证号"){return Se(G1,e)}function $a(e="请输入有效的银行卡号"){return Se(H1,e)}function Va(e="请输入有效的车牌号"){return Se(J1,e)}function Ua(e="请输入有效的 URL 地址"){return Se(X1,e)}function Wa(e="请输入有效的 IP 地址"){return Se(K1,e)}const Za=Object.freeze(Object.defineProperty({__proto__:null,bankCardRule:$a,carNumberRule:Va,createFormRule:Se,emailRule:Pa,hasChinese:Aa,idCardRule:Ra,ipRule:Wa,isBankCard:H1,isCarNumber:J1,isChinese:Ca,isEmail:Y1,isHexColor:Oa,isIP:K1,isIPv6:Ba,isIdCard:G1,isMac:za,isMediumPassword:Ea,isNonNegativeInteger:Ia,isNumber:_a,isNumeric:Da,isPhone:Z1,isPort:ja,isPositiveInteger:Na,isPostcode:xa,isQQ:Sa,isStrongPassword:La,isUrl:X1,isWechat:Ta,phoneRule:Fa,urlRule:Ua},Symbol.toStringTag,{value:"Module"}));function Ya(e){return!e||e.length!==11?e:e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function Ga(e){if(!e||e.length<8)return e;const t=e.length;return e.substring(0,3)+"*".repeat(t-7)+e.substring(t-4)}function Ha(e){return!e||e.length===0||e.length===1?e:e.length===2?e[0]+"*":e.substring(0,e.length-1)+"*"}function Ja(e){if(!e||e.length<8)return e;const t=e.length,r=e.substring(0,4),o=e.substring(t-4);return`${r} **** **** ${o}`}function Xa(e){if(!e||!e.includes("@"))return e;const[t,r]=e.split("@");return t.length<=1?e:t[0]+"***@"+r}function Ka(e,t=6){return!e||e.length<=t?e:e.substring(0,t)+"***"}function qa(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}function el(e){return e&&e.replace(/\b\w/g,t=>t.toUpperCase())}function tl(e){return e&&e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase())}function nl(e){return e&&e.replace(/([A-Z])/g,"_$1").toLowerCase()}function rl(e){return e&&e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ol(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 il(e,t){const{currency:r="¥",decimals:o=2,thousandsSeparator:i=",",decimalSeparator:s="."}=t||{},l=typeof e=="string"?parseFloat(e):e;if(isNaN(l))return e.toString();const a=l.toFixed(o),[c,g]=a.split(".");let h=c.replace(/\B(?=(\d{3})+(?!\d))/g,i);return o>0&&g&&(h+=s+g),r+h}function al(e,t=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(t))+" "+o[i]}function ll(e){return e&&e.replace(/\s/g,"").replace(/(\d{4})(?=\d)/g,"$1 ")}function sl(e){return e&&e.replace(/\s/g,"").replace(/(\d{3})(\d{4})(\d{4})/,"$1 $2 $3")}function cl(e=8,t="alphanumeric"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o="0123456789";let s=r+o;t==="alpha"&&(s=r),t==="number"&&(s=o);let l="";for(let a=0;a<e;a++)l+=s.charAt(Math.floor(Math.random()*s.length));return l}function ul(e){const t=Date.now(),r=Math.random().toString(36).substring(2,8);return e?`${e}_${t}_${r}`:`${t}_${r}`}function dl(e,t,r="..."){return!e||e.length<=t?e:e.substring(0,t)+r}function fl(e){return e&&e.replace(/<[^>]*>/g,"")}function hl(e){if(!e)return e;const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};return e.replace(/[&<>"'/]/g,r=>t[r])}function pl(e){if(!e)return e;const t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/"};return e.replace(/&(amp|lt|gt|quot|#x27|#x2F);/g,r=>t[r])}function gl(e){return e==null||e.trim()===""}function ml(e){return e&&e.split("").reverse().join("")}function wl(e,t){return!e||t<=0?"":e.repeat(t)}function yl(e,t,r=" "){return e||(e=""),e.padStart(t,r)}function vl(e,t,r=" "){return e||(e=""),e.padEnd(t,r)}const Ql=Object.freeze(Object.defineProperty({__proto__:null,addressDesensitize:Ka,bankCardDesensitize:Ja,capitalize:qa,capitalizeWords:el,emailDesensitize:Xa,escapeHtml:hl,formatBankCard:ll,formatFileSize:al,formatMoney:il,formatNumber:ol,formatPhone:sl,generateUUID:ul,idCardDesensitize:Ga,isEmpty:gl,nameDesensitize:Ha,padEnd:vl,padStart:yl,phoneDesensitize:Ya,randomString:cl,removeHtmlTags:fl,repeat:wl,reverse:ml,toCamelCase:tl,toKebabCase:rl,toUnderlineCase:nl,truncate:dl,unescapeHtml:pl},Symbol.toStringTag,{value:"Module"}));function De(e){const t=e||(typeof window<"u"?window.location.href:"");if(!t)return{};const r=t.includes("?")?t.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 ze(e){return!e||typeof e!="object"?"":Object.keys(e).filter(t=>e[t]!==void 0&&e[t]!==null).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${encodeURIComponent(t)}=${encodeURIComponent(o)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(r)}`}).join("&")}function kl(e,t){const o=De(t)[e];return o===void 0?null:Array.isArray(o)?o[0]||null:o}function bl(e,t){const o=De(t)[e];return o===void 0?[]:Array.isArray(o)?o:[o]}function Ml(e,t="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=ze(o),s=i?`${window.location.pathname}?${i}`:window.location.pathname;t==="push"?window.history.pushState(null,"",s):window.history.replaceState(null,"",s)}function Cl(e,t="push"){if(typeof window>"u"||!window.history)return;const r=De();e.forEach(s=>{delete r[s]});const o=ze(r),i=o?`${window.location.pathname}?${o}`:window.location.pathname;t==="push"?window.history.pushState(null,"",i):window.history.replaceState(null,"",i)}function Al(e="push"){if(typeof window>"u"||!window.history)return;const t=window.location.pathname;e==="push"?window.history.pushState(null,"",t):window.history.replaceState(null,"",t)}function _l(...e){return e.length===0?"":e.map((t,r)=>r===0?t.replace(/\/+$/,""):r===e.length-1?t.replace(/^\/+/,""):t.replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")}function Dl(e){if(!e)return{protocol:"",username:"",password:"",hostname:"",port:"",pathname:"",search:"",hash:"",host:"",origin:"",href:"",params:{}};try{const t=new URL(e);return{protocol:t.protocol,username:t.username,password:t.password,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,hash:t.hash,host:t.host,origin:t.origin,href:t.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 Nl(e){const{protocol:t="https",hostname:r="",port:o="",pathname:i="",params:s={},hash:l=""}=e;if(!r)return i;let a=`${t}://${r}`;o&&(a+=`:${o}`),i&&(a+=i.startsWith("/")?i:`/${i}`);const c=ze(s);return c&&(a+=`?${c}`),l&&(a+=l.startsWith("#")?l:`#${l}`),a}function Il(e){return e?/^(https?:)?\/\//.test(e):!1}function Sl(e){return e?e.startsWith("/"):!1}function Tl(e,t){try{const r=new URL(e),o=new URL(t);return r.origin===o.origin}catch{return!1}}function xl(e){return encodeURIComponent(e)}function Ll(e){try{return decodeURIComponent(e)}catch{return e}}function El(e){if(!e)return"";try{return encodeURI(decodeURI(e))}catch{return encodeURI(e)}}function zl(e){if(!e)return"";try{return decodeURI(e)}catch{return e}}function jl(e,t){if(!e)return"";if(!t||Object.keys(t).length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?"),a={...s?De("?"+s):{},...t},c=ze(a);let g=i;return c&&(g+=`?${c}`),o&&(g+=`#${o}`),g}function Bl(e,t){if(!e)return"";if(!t||t.length===0)return e;const[r,o]=e.split("#"),[i,s]=r.split("?");if(!s)return e;const l=De("?"+s);t.forEach(g=>{delete l[g]});const a=ze(l);let c=i;return a&&(c+=`?${a}`),o&&(c+=`#${o}`),c}function q1(e){try{return new URL(e).hostname}catch{return""}}function Ol(e){const t=q1(e);if(!t)return"";const r=t.split(".");return r.length<=2?t:r.slice(-2).join(".")}function Fl(){return typeof window>"u"?"":window.location.href}function Pl(){return typeof window>"u"?"":window.location.pathname}function Rl(){return typeof window>"u"?{}:De(window.location.search)}function $l(){return typeof window>"u"?"":window.location.hash.replace(/^#/,"")}const Vl=Object.freeze(Object.defineProperty({__proto__:null,addQueryParams:jl,buildUrl:Nl,clearQueryParams:Al,decodeParam:Ll,encodeParam:xl,getCurrentHash:$l,getCurrentPath:Pl,getCurrentQuery:Rl,getCurrentUrl:Fl,getDomain:q1,getQueryParam:kl,getQueryParams:bl,getRootDomain:Ol,isAbsolutePath:Sl,isExternalLink:Il,isSameOrigin:Tl,joinUrl:_l,parseQuery:De,parseUrl:Dl,removeQueryParams:Cl,removeQueryParamsFromUrl:Bl,safeDecodeUrl:zl,safeEncodeUrl:El,stringifyQuery:ze,updateQueryParams:Ml},Symbol.toStringTag,{value:"Module"})),Ul={...wi,array:Fi,dom:v8,number:W8,object:sa,perf:Ma,regex:Za,string:Ql,url:Vl};exports.twcptResolver=n1.twcptResolver;exports.twcptResolverWithOptions=n1.twcptResolverWithOptions;exports.DialogProvider=Re;exports.JTWAmap=H0;exports.JTWBtn=Ve;exports.JTWCheckbox=o1;exports.JTWCheckboxGroup=d0;exports.JTWConfirmDialog=l1;exports.JTWConfirmDialogIcon=ft;exports.JTWDatePicker=hr;exports.JTWDateTimePicker=yr;exports.JTWDialog=d1;exports.JTWDialogFooterMode=u1;exports.JTWDialogPosition=s1;exports.JTWDialogSize=c1;exports.JTWDropdownBtn=gn;exports.JTWForm=q2;exports.JTWFormItem=n0;exports.JTWFormLabel=J2;exports.JTWInput=i0;exports.JTWMessages=a1;exports.JTWPagination=i1;exports.JTWRadio=p0;exports.JTWRadioGroup=w0;exports.JTWSelect=s0;exports.JTWStatusImg=rt;exports.JTWTable=Pr;exports.JTWToggle=M0;exports.JTWTooltip=Q0;exports.JTWTreeSelect=V2;exports.JTWTreeSelectBtn=qn;exports.JTWTreeSelectInput=sr;exports.PAGE_ACTION_PERMISSION_KEY=v1;exports.PAGE_PERMISSION_KEY=y1;exports.composeIconMapFn=_o;exports.dialogConfirm=g1;exports.getLocale=w1;exports.getProjectPermissionId=Mo;exports.getTwcptColors=bo;exports.getTwcptConfig=Co;exports.parseKMZFromUrl=di;exports.parseKMZRouteFromUrl=N1;exports.setLocale=qe;exports.t=m1;exports.twConfirmDialog=g1;exports.twDialog=c2;exports.twMessages=p1;exports.twTool=Ul;exports.twcptIconMapFn=Ao;exports.twcptInit=Qo;exports.useBizRequest=Io;exports.useI18n=vo;exports.usePageActionPermissionSync=No;exports.usePagePermissionSync=Do;exports.useRAFPolling=So;