import{c as e,d as t,h as n,m as r}from"./humanInteraction-8U58N0CI.js";var i=`J_SubAppContainer`;function a(){return document.getElementById(i)}function o(e=document){let t=e instanceof Document?a():e;return t?t.querySelector(`[class*="tableWrapper--"]`):null}function s(e,t=document){let n=u(t);if(!n)return!1;let r=d(n)?.value?.trim(),i=f(n)?.value?.trim();return r===e&&i===e}function c(e=document){return l(e)?.classList.contains(`ant-radio-button-wrapper-checked`)===!0}function l(e=document){let t=e instanceof Document?a():e;if(!t)return null;let n=t.querySelector(`[class*="quickSelect--"]`);if(!n)return null;let r=n.querySelector(`input[value="recent1d"]`);if(r){let e=r.closest(`label.ant-radio-button-wrapper`);if(e instanceof HTMLElement)return e}let i=n.querySelectorAll(`label.ant-radio-button-wrapper`);for(let e of i)if(e instanceof HTMLElement&&e.textContent?.includes(`近1天`))return e;return null}function u(e=document){let t=e instanceof Document?a():e;return t?t.querySelector(`[class*="timeFilterBox--"] .ant-picker.ant-picker-range[class*="datePicker--"]`):null}function d(e){let t=e.querySelector(`input[date-range="start"]`)??e.querySelector(`input[placeholder="开始日期"]`);return t instanceof HTMLInputElement?t:null}function f(e){let t=e.querySelector(`input[date-range="end"]`)??e.querySelector(`input[placeholder="结束日期"]`);return t instanceof HTMLInputElement?t:null}function p(e){return e.querySelector(`.ant-picker-suffix`)??e.querySelector(`input[date-range="start"]`)??e}function m(){let e=document.querySelectorAll(`.ant-picker-dropdown`);for(let t of e)if(t instanceof HTMLElement&&!t.classList.contains(`ant-picker-dropdown-hidden`)&&t.offsetParent!==null)return t;return null}function h(e){if(e.classList.contains(`ant-select-dropdown-hidden`))return!1;let t=window.getComputedStyle(e);return t.display!==`none`&&t.visibility!==`hidden`}function g(e){if(e){let t=e.querySelectorAll(`.ant-select-dropdown`);for(let e of t)if(e instanceof HTMLElement&&h(e))return e}let t=document.querySelectorAll(`.ant-select-dropdown`);for(let e of t)if(e instanceof HTMLElement&&h(e))return e;return null}function _(e=document){let t=o(e);return t?t.querySelector(`ul.ant-table-pagination.ant-pagination`):null}async function v(){let n=a();if(n){let r=o(n);r&&await t(r,{block:`end`}),n.scrollTop=n.scrollHeight,await e(350,550)}let r=_();return r?(await t(r,{block:`center`}),r):(n&&(n.scrollTop=n.scrollHeight,await e(300,500)),r=_(),r&&await t(r,{block:`center`}),r)}function y(e){let t=e.querySelector(`li.ant-pagination-prev button.ant-pagination-item-link`);return t instanceof HTMLButtonElement?t:null}function b(e){let t=e.querySelector(`li.ant-pagination-next button.ant-pagination-item-link`);return t instanceof HTMLButtonElement?t:null}function x(e){let t=e.querySelector(`li.ant-pagination-prev`);return t?.classList.contains(`ant-pagination-disabled`)===!0||t?.getAttribute(`aria-disabled`)===`true`}function S(e){let t=e.querySelector(`li.ant-pagination-next`);return t?.classList.contains(`ant-pagination-disabled`)===!0||t?.getAttribute(`aria-disabled`)===`true`}function C(e){return e.querySelector(`li.ant-pagination-item-1`)?.classList.contains(`ant-pagination-item-active`)===!0}function w(e){let t=e.querySelector(`li.ant-pagination-item-1 a`);return t instanceof HTMLAnchorElement?t:null}function T(e){return e.querySelector(`.ant-pagination-options-size-changer .ant-select-selector`)}function E(e){let t=e.querySelector(`.ant-pagination-options-size-changer .ant-select-arrow`);return t instanceof HTMLElement?t:null}function D(e){return e.querySelector(`li.ant-pagination-item-active`)?.getAttribute(`title`)??null}async function O(e,t=12e3){return await r(()=>{if(e?.())return null;let t=a()?.querySelector(`tbody.ant-table-tbody`);return t?.querySelector(`tr.ant-table-row`)?t:null},t)?n(()=>_()!==null,4e3,e):!1}function k(e){return e.querySelector(`.ant-select-selection-item`)?.textContent?.trim()??``}function A(e,t){let n=e.querySelector(`.ant-picker-cell[title="${t}"]`);if(n instanceof HTMLElement)return n;let r=e.querySelectorAll(`.ant-picker-cell`);for(let e of r)if(e instanceof HTMLElement&&e.getAttribute(`title`)===t)return e;return null}function j(e){let t=e.querySelector(`.ant-picker-header-prev-btn`);return t instanceof HTMLElement?t:null}function M(e){let t=e.querySelector(`.ant-picker-header-next-btn`);return t instanceof HTMLElement?t:null}function N(e){let t=g(e??void 0);if(!t)return null;let n=t.querySelector(`.ant-select-item-option[title="100 条/页"]`);if(n instanceof HTMLElement)return n;let r=t.querySelectorAll(`.ant-select-item-option`);for(let e of r)if(e instanceof HTMLElement&&e.textContent?.includes(`100`))return e;return null}export{v as C,c as S,g as _,k as a,S as b,w as c,b as d,y as f,m as g,l as h,a as i,E as l,j as m,A as n,p as o,M as p,D as r,u as s,N as t,T as u,s as v,O as w,x,C as y};