import e from"../../node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs";import t from"../canUseDom.mjs";import{removeCSS as n,updateCSS as r}from"../../vc-util/Dom/dynamicCSS.mjs";import i from"./theme/Theme.mjs";var a=new WeakMap;function o(e){let t=a.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof i?t+=r.id:r&&typeof r==`object`?t+=o(r):t+=r}),a.set(e,t)),t}function s(t,n){return e(`${n}_${o(t)}`)}var c=`random-${Date.now()}-${Math.random()}`.replace(/\./g,``),l=`_bAmBoO_`;function u(e,i,a){if(t()){r(e,c);let t=document.createElement(`div`);t.style.position=`fixed`,t.style.left=`0`,t.style.top=`0`,i?.(t),document.body.appendChild(t);let o=a?a(t):getComputedStyle(t).content?.includes(l);return t.parentNode?.removeChild(t),n(c),o}return!1}var d;function f(){return d===void 0&&(d=u(`@layer ${c} { .${c} { content: "${l}"!important; } }`,e=>{e.className=c})),d}var p;function m(){return p===void 0&&(p=u(`:where(.${c}) { content: "${l}"!important; }`,e=>{e.className=c})),p}var h;function g(){return h===void 0&&(h=u(`.${c} { inset-block: 93px !important; }`,e=>{e.className=c},e=>getComputedStyle(e).bottom===`93px`)),h}export{o as flattenToken,f as supportLayer,g as supportLogicProps,m as supportWhere,s as token2key};