优惠券 PC管理端 项目

851.35ba6064.js 18KB

1
  1. "use strict";(self["webpackChunkcoupon"]=self["webpackChunkcoupon"]||[]).push([[851],{3218:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(1423),l=n(6573);function a(){const e=()=>new Promise((async(e,t)=>{try{const n=await o.Z.post(l.W.login_verifyToken,{});0==n?.code?e(n?.data?.msg||"验证成功"):t("请重新登录")}catch(n){t(n)}}));return{getIsLogin:e}}},5791:function(e,t,n){n.d(t,{mi:function(){return _}});var o=n(3396),l=n(4870),a=n(7139),s=n(1015),r=n(8953),i=n(9414),c=n(6174),u=n(6734);function d(e,t=20){return e.mix("#141414",t).toString()}function p(e){const t=(0,c.B4)(),n=(0,u.s)("button");return(0,o.Fl)((()=>{let o={};const l=e.color;if(l){const a=new i.C(l),s=e.dark?a.tint(20).toString():d(a,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?d(a,90):a.tint(90).toString(),"text-color":l,"border-color":e.dark?d(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?d(a,90):a.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?d(a,50):a.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?d(a,80):a.tint(80).toString());else{const r=e.dark?d(a,30):a.tint(30).toString(),i=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":l,"text-color":i,"border-color":l,"hover-bg-color":r,"hover-text-color":i,"hover-border-color":r,"active-bg-color":s,"active-border-color":s}),t.value){const t=e.dark?d(a,50):a.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=t,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=t}}}return o}))}var f=n(5989),g=n(7643);const v=Symbol("buttonGroupContextKey");var m=n(67),b=n(95);const y=["aria-disabled","disabled","autofocus","type"],h={name:"ElButton"},C=(0,o.aZ)({...h,props:r.lS,emits:r.et,setup(e,{expose:t,emit:n}){const r=e,i=(0,o.Rr)();(0,g.A)({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},(0,o.Fl)((()=>"text"===r.type)));const d=(0,o.f3)(v,void 0),f=(0,m.W)("button"),h=(0,u.s)("button"),{form:C}=(0,b.A)(),k=(0,c.tH)((0,o.Fl)((()=>null==d?void 0:d.size))),w=(0,c.B4)(),x=(0,l.iH)(),S=(0,o.Fl)((()=>r.type||(null==d?void 0:d.type)||"")),B=(0,o.Fl)((()=>{var e,t,n;return null!=(n=null!=(t=r.autoInsertSpace)?t:null==(e=f.value)?void 0:e.autoInsertSpace)&&n})),E=(0,o.Fl)((()=>{var e;const t=null==(e=i.default)?void 0:e.call(i);if(B.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===o.xv){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),_=p(r),I=e=>{"reset"===r.nativeType&&(null==C||C.resetFields()),n("click",e)};return t({ref:x,size:k,type:S,disabled:w,shouldAddSpace:E}),(e,t)=>((0,o.wg)(),(0,o.iD)("button",{ref_key:"_ref",ref:x,class:(0,a.C_)([(0,l.SU)(h).b(),(0,l.SU)(h).m((0,l.SU)(S)),(0,l.SU)(h).m((0,l.SU)(k)),(0,l.SU)(h).is("disabled",(0,l.SU)(w)),(0,l.SU)(h).is("loading",e.loading),(0,l.SU)(h).is("plain",e.plain),(0,l.SU)(h).is("round",e.round),(0,l.SU)(h).is("circle",e.circle),(0,l.SU)(h).is("text",e.text),(0,l.SU)(h).is("link",e.link),(0,l.SU)(h).is("has-bg",e.bg)]),"aria-disabled":(0,l.SU)(w)||e.loading,disabled:(0,l.SU)(w)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:(0,a.j5)((0,l.SU)(_)),onClick:I},[e.loading?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[e.$slots.loading?(0,o.WI)(e.$slots,"loading",{key:0}):((0,o.wg)(),(0,o.j4)((0,l.SU)(s.gn),{key:1,class:(0,a.C_)((0,l.SU)(h).is("loading"))},{default:(0,o.w5)((()=>[((0,o.wg)(),(0,o.j4)((0,o.LL)(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?((0,o.wg)(),(0,o.j4)((0,l.SU)(s.gn),{key:1},{default:(0,o.w5)((()=>[e.icon?((0,o.wg)(),(0,o.j4)((0,o.LL)(e.icon),{key:0})):(0,o.WI)(e.$slots,"icon",{key:1})])),_:3})):(0,o.kq)("v-if",!0),e.$slots.default?((0,o.wg)(),(0,o.iD)("span",{key:2,class:(0,a.C_)({[(0,l.SU)(h).em("text","expand")]:(0,l.SU)(E)})},[(0,o.WI)(e.$slots,"default")],2)):(0,o.kq)("v-if",!0)],14,y))}});var k=(0,f.Z)(C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const w={size:r.lS.size,type:r.lS.type},x={name:"ElButtonGroup"},S=(0,o.aZ)({...x,props:w,setup(e){const t=e;(0,o.JJ)(v,(0,l.qj)({size:(0,l.Vh)(t,"size"),type:(0,l.Vh)(t,"type")}));const n=(0,u.s)("button");return(e,t)=>((0,o.wg)(),(0,o.iD)("div",{class:(0,a.C_)(`${(0,l.SU)(n).b("group")}`)},[(0,o.WI)(e.$slots,"default")],2))}});var B=(0,f.Z)(S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]),E=n(9015);const _=(0,E.nz)(k,{ButtonGroup:B});(0,E.dp)(B)},8953:function(e,t,n){n.d(t,{UH:function(){return r},et:function(){return u},lS:function(){return c}});var o=n(2748),l=n(5994),a=n(6174),s=n(2039);const r=["default","primary","success","warning","info","danger","text",""],i=["button","submit","reset"],c=(0,l.o8)({size:a.Pp,disabled:Boolean,type:{type:String,values:r,default:""},icon:{type:s.AA},nativeType:{type:String,values:i,default:"button"},loading:Boolean,loadingIcon:{type:s.AA,default:()=>o.gbz},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),u={click:e=>e instanceof MouseEvent}},6809:function(e,t,n){n(1758)},2655:function(e,t,n){n.d(t,{T:function(){return Y}});var o=n(3396),l=n(9242),a=n(6413),s=n(4870),r=n(7139),i=n(5791),c=n(9866),u=n(5407),d=n(1015),p=n(5989),f=(n(7658),n(9619)),g=n(1056);const v="_trap-focus-children",m=[],b=e=>{if(0===m.length)return;const t=m[m.length-1][v];if(t.length>0&&e.code===f.n.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,o=e.target===t[0],l=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},y={beforeMount(e){e[v]=(0,g.b9)(e),m.push(e),m.length<=1&&document.addEventListener("keydown",b)},updated(e){(0,o.Y3)((()=>{e[v]=(0,g.b9)(e)}))},unmounted(){m.shift(),0===m.length&&document.removeEventListener("keydown",b)}};var h=n(5554),C=n(2039),k=n(4961),w=n(3257),x=n(6734),S=n(7750),B=n(8925),E=n(6174),_=n(4389),I=n(3319),M=n(3388);const U=(e,t)=>{let n;(0,o.YP)((()=>e.value),(e=>{var o,l;e?(n=document.activeElement,(0,s.dq)(t)&&(null==(l=(o=t.value).focus)||l.call(o))):n.focus()}))},T=(0,o.aZ)({name:"ElMessageBox",directives:{TrapFocus:y},components:{ElButton:i.mi,ElFocusTrap:h.Z,ElInput:c.EZ,ElOverlay:u.F6,ElIcon:d.gn,...C.f5},inheritAttrs:!1,props:{buttonSize:{type:String,validator:k.P},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=(0,w.bU)(),l=(0,x.s)("message-box"),a=(0,s.iH)(!1),{nextZIndex:r}=(0,S.C)(),i=(0,s.qj)({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:r()}),c=(0,o.Fl)((()=>{const e=i.type;return{[l.bm("icon",e)]:e&&C.Rp[e]}})),u=(0,B.M)(),d=(0,B.M)(),p=(0,E.tH)((0,o.Fl)((()=>e.buttonSize)),{prop:!0,form:!0,formItem:!0}),f=(0,o.Fl)((()=>i.icon||C.Rp[i.type]||"")),g=(0,o.Fl)((()=>!!i.message)),v=(0,s.iH)(),m=(0,s.iH)(),b=(0,s.iH)(),y=(0,s.iH)(),h=(0,s.iH)(),k=(0,o.Fl)((()=>i.confirmButtonClass));(0,o.YP)((()=>i.inputValue),(async t=>{await(0,o.Y3)(),"prompt"===e.boxType&&null!==t&&R()}),{immediate:!0}),(0,o.YP)((()=>a.value),(t=>{var n,l;t&&("prompt"!==e.boxType&&(i.autofocus?b.value=null!=(l=null==(n=h.value)?void 0:n.$el)?l:v.value:b.value=v.value),i.zIndex=r()),"prompt"===e.boxType&&(t?(0,o.Y3)().then((()=>{var e;y.value&&y.value.$el&&(i.autofocus?b.value=null!=(e=j())?e:v.value:b.value=v.value)})):(i.editorErrorMessage="",i.validateError=!1))}));const T=(0,o.Fl)((()=>e.draggable));function A(){a.value&&(a.value=!1,(0,o.Y3)((()=>{i.action&&t("action",i.action)})))}(0,_.O)(v,m,T),(0,o.bv)((async()=>{await(0,o.Y3)(),e.closeOnHashChange&&window.addEventListener("hashchange",A)})),(0,o.Jd)((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",A)}));const L=()=>{e.closeOnClickModal&&$(i.distinguishCancelAndClose?"close":"cancel")},z=(0,I.S)(L),V=e=>{if("textarea"!==i.inputType)return e.preventDefault(),$("confirm")},$=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||R())&&(i.action=t,i.beforeClose?null==(n=i.beforeClose)||n.call(i,t,i,A):A())},R=()=>{if("prompt"===e.boxType){const e=i.inputPattern;if(e&&!e.test(i.inputValue||""))return i.editorErrorMessage=i.inputErrorMessage||n("el.messagebox.error"),i.validateError=!0,!1;const t=i.inputValidator;if("function"===typeof t){const e=t(i.inputValue);if(!1===e)return i.editorErrorMessage=i.inputErrorMessage||n("el.messagebox.error"),i.validateError=!0,!1;if("string"===typeof e)return i.editorErrorMessage=e,i.validateError=!0,!1}}return i.editorErrorMessage="",i.validateError=!1,!0},j=()=>{const e=y.value.$refs;return e.input||e.textarea},P=()=>{$("close")},H=()=>{e.closeOnPressEscape&&P()};return e.lockScroll&&(0,M.W)(a),U(a),{...(0,s.BK)(i),ns:l,overlayEvent:z,visible:a,hasMessage:g,typeClass:c,contentId:u,inputId:d,btnSize:p,iconComponent:f,confirmButtonClasses:k,rootRef:v,focusStartRef:b,headerRef:m,inputRef:y,confirmRef:h,doClose:A,handleClose:P,onCloseRequested:H,handleWrapperClick:L,handleInputEnter:V,handleAction:$,t:n}}}),A=["aria-label","aria-describedby"],L=["aria-label"],z=["id"];function V(e,t,n,a,s,i){const c=(0,o.up)("el-icon"),u=(0,o.up)("close"),d=(0,o.up)("el-input"),p=(0,o.up)("el-button"),f=(0,o.up)("el-focus-trap"),g=(0,o.up)("el-overlay");return(0,o.wg)(),(0,o.j4)(l.uT,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:(0,o.w5)((()=>[(0,o.wy)((0,o.Wm)(g,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:(0,o.w5)((()=>[(0,o._)("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:(0,r.C_)(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[(0,o.Wm)(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:(0,o.w5)((()=>[(0,o._)("div",{ref:"rootRef",class:(0,r.C_)([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:(0,r.j5)(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=(0,l.iM)((()=>{}),["stop"]))},[null!==e.title&&void 0!==e.title?((0,o.wg)(),(0,o.iD)("div",{key:0,ref:"headerRef",class:(0,r.C_)(e.ns.e("header"))},[(0,o._)("div",{class:(0,r.C_)(e.ns.e("title"))},[e.iconComponent&&e.center?((0,o.wg)(),(0,o.j4)(c,{key:0,class:(0,r.C_)([e.ns.e("status"),e.typeClass])},{default:(0,o.w5)((()=>[((0,o.wg)(),(0,o.j4)((0,o.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,o.kq)("v-if",!0),(0,o._)("span",null,(0,r.zw)(e.title),1)],2),e.showClose?((0,o.wg)(),(0,o.iD)("button",{key:0,type:"button",class:(0,r.C_)(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=(0,l.D2)((0,l.iM)((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"]))},[(0,o.Wm)(c,{class:(0,r.C_)(e.ns.e("close"))},{default:(0,o.w5)((()=>[(0,o.Wm)(u)])),_:1},8,["class"])],42,L)):(0,o.kq)("v-if",!0)],2)):(0,o.kq)("v-if",!0),(0,o._)("div",{id:e.contentId,class:(0,r.C_)(e.ns.e("content"))},[(0,o._)("div",{class:(0,r.C_)(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?((0,o.wg)(),(0,o.j4)(c,{key:0,class:(0,r.C_)([e.ns.e("status"),e.typeClass])},{default:(0,o.w5)((()=>[((0,o.wg)(),(0,o.j4)((0,o.LL)(e.iconComponent)))])),_:1},8,["class"])):(0,o.kq)("v-if",!0),e.hasMessage?((0,o.wg)(),(0,o.iD)("div",{key:1,class:(0,r.C_)(e.ns.e("message"))},[(0,o.WI)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,o.wg)(),(0,o.j4)((0,o.LL)(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):((0,o.wg)(),(0,o.j4)((0,o.LL)(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:(0,o.w5)((()=>[(0,o.Uk)((0,r.zw)(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):(0,o.kq)("v-if",!0)],2),(0,o.wy)((0,o._)("div",{class:(0,r.C_)(e.ns.e("input"))},[(0,o.Wm)(d,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:(0,r.C_)({invalid:e.validateError}),onKeydown:(0,l.D2)(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),(0,o._)("div",{class:(0,r.C_)(e.ns.e("errormsg")),style:(0,r.j5)({visibility:e.editorErrorMessage?"visible":"hidden"})},(0,r.zw)(e.editorErrorMessage),7)],2),[[l.F8,e.showInput]])],10,z),(0,o._)("div",{class:(0,r.C_)(e.ns.e("btns"))},[e.showCancelButton?((0,o.wg)(),(0,o.j4)(p,{key:0,loading:e.cancelButtonLoading,class:(0,r.C_)([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=(0,l.D2)((0,l.iM)((t=>e.handleAction("cancel")),["prevent"]),["enter"]))},{default:(0,o.w5)((()=>[(0,o.Uk)((0,r.zw)(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","class","round","size"])):(0,o.kq)("v-if",!0),(0,o.wy)((0,o.Wm)(p,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:(0,r.C_)([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=(0,l.D2)((0,l.iM)((t=>e.handleAction("confirm")),["prevent"]),["enter"]))},{default:(0,o.w5)((()=>[(0,o.Uk)((0,r.zw)(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","class","round","disabled","size"]),[[l.F8,e.showConfirmButton]])],2)],6)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,A)])),_:3},8,["z-index","overlay-class","mask"]),[[l.F8,e.visible]])])),_:3})}var $=(0,p.Z)(T,[["render",V],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]),R=n(7354);const j=new Map,P=(e,t,n=null)=>{const a=(0,o.Wm)($,e,(0,r.mf)(e.message)||(0,o.lA)(e.message)?{default:(0,r.mf)(e.message)?e.message:()=>e.message}:null);return a.appContext=n,(0,l.sY)(a,t),document.body.appendChild(t.firstElementChild),a.component},H=()=>document.createElement("div"),F=(e,t)=>{const n=H();e.onVanish=()=>{(0,l.sY)(null,n),j.delete(a)},e.onAction=t=>{const n=j.get(a);let l;l=e.showInput?{value:a.inputValue,action:t}:t,e.callback?e.callback(l,o.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(l)};const o=P(e,n,t),a=o.proxy;for(const l in e)(0,r.RI)(e,l)&&!(0,r.RI)(a.$props,l)&&(a[l]=e[l]);return a.visible=!0,a};function D(e,t=null){if(!a.C5)return Promise.reject();let n;return(0,r.HD)(e)||(0,o.lA)(e)?e={message:e}:n=e.callback,new Promise(((o,l)=>{const a=F(e,null!=t?t:D._context);j.set(a,{options:e,callback:n,resolve:o,reject:l})}))}const q=["alert","confirm","prompt"],W={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function N(e){return(t,n,o,l)=>{let a="";return(0,r.Kn)(n)?(o=n,a=""):a=(0,R.o8)(n)?"":n,D(Object.assign({title:a,message:t,type:"",...W[e]},o,{boxType:e}),l)}}q.forEach((e=>{D[e]=N(e)})),D.close=()=>{j.forEach(((e,t)=>{t.doClose()})),j.clear()},D._context=null;const O=D;O.install=e=>{O._context=e._context,e.config.globalProperties.$msgbox=O,e.config.globalProperties.$messageBox=O,e.config.globalProperties.$alert=O.alert,e.config.globalProperties.$confirm=O.confirm,e.config.globalProperties.$prompt=O.prompt};const Y=O},3970:function(e,t,n){n(1758),n(6809),n(172),n(7195)},1056:function(e,t,n){n.d(t,{b9:function(){return a},qe:function(){return r}});const o='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',l=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},a=e=>Array.from(e.querySelectorAll(o)).filter((e=>s(e)&&l(e))),s=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r=function(e,t,...n){let o;o=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const l=document.createEvent(o);return l.initEvent(t,...n),e.dispatchEvent(l),e}}}]);