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