diff --git a/apps/web/client/public/onlook-preload-script.js b/apps/web/client/public/onlook-preload-script.js deleted file mode 100644 index 79e15d8033..0000000000 --- a/apps/web/client/public/onlook-preload-script.js +++ /dev/null @@ -1,17 +0,0 @@ -var Rh=Object.create;var{getPrototypeOf:yh,defineProperty:Er,getOwnPropertyNames:Mh}=Object;var Uh=Object.prototype.hasOwnProperty;var rf=(l,t,i)=>{i=l!=null?Rh(yh(l)):{};let r=t||!l||!l.__esModule?Er(i,"default",{value:l,enumerable:!0}):i;for(let n of Mh(l))if(!Uh.call(r,n))Er(r,n,{get:()=>l[n],enumerable:!0});return r};var hl=(l,t)=>()=>(t||l((t={exports:{}}).exports,t),t.exports);var q=(l,t)=>{for(var i in t)Er(l,i,{get:t[i],enumerable:!0,configurable:!0,set:(r)=>t[i]=()=>r})};var Lr=hl((Vx,nf)=>{function Ah(l){var t=typeof l;return l!=null&&(t=="object"||t=="function")}nf.exports=Ah});var gf=hl((Fx,of)=>{var kh=typeof global=="object"&&global&&global.Object===Object&&global;of.exports=kh});var Hr=hl((Ex,ff)=>{var Sh=gf(),Nh=typeof self=="object"&&self&&self.Object===Object&&self,Ch=Sh||Nh||Function("return this")();ff.exports=Ch});var bf=hl((Lx,ef)=>{var Ph=Hr(),Ih=function(){return Ph.Date.now()};ef.exports=Ih});var cf=hl((Hx,hf)=>{var Zh=/\s/;function Th(l){var t=l.length;while(t--&&Zh.test(l.charAt(t)));return t}hf.exports=Th});var wf=hl((Kx,mf)=>{var dh=cf(),lc=/^\s+/;function tc(l){return l?l.slice(0,dh(l)+1).replace(lc,""):l}mf.exports=tc});var Kr=hl((Rx,pf)=>{var ic=Hr(),rc=ic.Symbol;pf.exports=rc});var af=hl((yx,xf)=>{var uf=Kr(),zf=Object.prototype,nc=zf.hasOwnProperty,oc=zf.toString,hi=uf?uf.toStringTag:void 0;function gc(l){var t=nc.call(l,hi),i=l[hi];try{l[hi]=void 0;var r=!0}catch(o){}var n=oc.call(l);if(r)if(t)l[hi]=i;else delete l[hi];return n}xf.exports=gc});var $f=hl((Mx,vf)=>{var fc=Object.prototype,ec=fc.toString;function bc(l){return ec.call(l)}vf.exports=bc});var Jf=hl((Ux,sf)=>{var _f=Kr(),hc=af(),cc=$f(),mc="[object Null]",wc="[object Undefined]",qf=_f?_f.toStringTag:void 0;function pc(l){if(l==null)return l===void 0?wc:mc;return qf&&qf in Object(l)?hc(l):cc(l)}sf.exports=pc});var Xf=hl((Ax,Df)=>{function uc(l){return l!=null&&typeof l=="object"}Df.exports=uc});var Of=hl((kx,Wf)=>{var zc=Jf(),xc=Xf(),ac="[object Symbol]";function vc(l){return typeof l=="symbol"||xc(l)&&zc(l)==ac}Wf.exports=vc});var Gf=hl((Sx,Qf)=>{var $c=wf(),jf=Lr(),_c=Of(),Yf=NaN,qc=/^[-+]0x[0-9a-f]+$/i,sc=/^0b[01]+$/i,Jc=/^0o[0-7]+$/i,Dc=parseInt;function Xc(l){if(typeof l=="number")return l;if(_c(l))return Yf;if(jf(l)){var t=typeof l.valueOf=="function"?l.valueOf():l;l=jf(t)?t+"":t}if(typeof l!="string")return l===0?l:+l;l=$c(l);var i=sc.test(l);return i||Jc.test(l)?Dc(l.slice(2),i?2:8):qc.test(l)?Yf:+l}Qf.exports=Xc});var yr=hl((Nx,Vf)=>{var Wc=Lr(),Rr=bf(),Bf=Gf(),Oc="Expected a function",jc=Math.max,Yc=Math.min;function Qc(l,t,i){var r,n,o,g,e,b,f=0,h=!1,c=!1,m=!0;if(typeof l!="function")throw new TypeError(Oc);if(t=Bf(t)||0,Wc(i))h=!!i.leading,c="maxWait"in i,o=c?jc(Bf(i.maxWait)||0,t):o,m="trailing"in i?!!i.trailing:m;function u(V){var M=r,T=n;return r=n=void 0,f=V,g=l.apply(T,M),g}function X(V){return f=V,e=setTimeout(J,t),h?u(V):g}function Z(V){var M=V-b,T=V-f,Fr=t-M;return c?Yc(Fr,o-T):Fr}function L(V){var M=V-b,T=V-f;return b===void 0||M>=t||M<0||c&&T>=o}function J(){var V=Rr();if(L(V))return H(V);e=setTimeout(J,Z(V))}function H(V){if(e=void 0,m&&r)return u(V);return r=n=void 0,g}function fl(){if(e!==void 0)clearTimeout(e);f=0,r=b=n=e=void 0}function K(){return e===void 0?g:H(Rr())}function B(){var V=Rr(),M=L(V);if(r=arguments,n=this,b=V,M){if(e===void 0)return X(b);if(c)return clearTimeout(e),e=setTimeout(J,t),u(b)}if(e===void 0)e=setTimeout(J,t);return g}return B.cancel=fl,B.flush=K,B}Vf.exports=Qc});var Fe=hl((Om)=>{var Ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Om.encode=function(l){if(0<=l&&l{var Ee=Fe(),rn=5,Le=1<>1;return t?-i:i}Bm.encode=function l(t){var i="",r,n=Qm(t);do{if(r=n&He,n>>>=rn,n>0)r|=Ke;i+=Ee.encode(r)}while(n>0);return i};Bm.decode=function l(t,i,r){var n=t.length,o=0,g=0,e,b;do{if(i>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(b=Ee.decode(t.charCodeAt(i++)),b===-1)throw new Error("Invalid base64 digit: "+t.charAt(i-1));e=!!(b&Ke),b&=He,o=o+(b<{function Em(l,t,i){if(t in l)return l[t];else if(arguments.length===3)return i;else throw new Error('"'+t+'" is a required argument.')}Im.getArg=Em;var ye=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Lm=/^data:.+\,.+$/;function ai(l){var t=l.match(ye);if(!t)return null;return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}Im.urlParse=ai;function Ht(l){var t="";if(l.scheme)t+=l.scheme+":";if(t+="//",l.auth)t+=l.auth+"@";if(l.host)t+=l.host;if(l.port)t+=":"+l.port;if(l.path)t+=l.path;return t}Im.urlGenerate=Ht;var Hm=32;function Km(l){var t=[];return function(i){for(var r=0;rHm)t.pop();return o}}var nn=Km(function l(t){var i=t,r=ai(t);if(r){if(!r.path)return t;i=r.path}var n=Im.isAbsolute(i),o=[],g=0,e=0;while(!0)if(g=e,e=i.indexOf("/",g),e===-1){o.push(i.slice(g));break}else{o.push(i.slice(g,e));while(e=0;e--)if(b=o[e],b===".")o.splice(e,1);else if(b==="..")f++;else if(f>0)if(b==="")o.splice(e+1,f),f=0;else o.splice(e,2),f--;if(i=o.join("/"),i==="")i=n?"/":".";if(r)return r.path=i,Ht(r);return i});Im.normalize=nn;function Me(l,t){if(l==="")l=".";if(t==="")t=".";var i=ai(t),r=ai(l);if(r)l=r.path||"/";if(i&&!i.scheme){if(r)i.scheme=r.scheme;return Ht(i)}if(i||t.match(Lm))return t;if(r&&!r.host&&!r.path)return r.host=t,Ht(r);var n=t.charAt(0)==="/"?t:nn(l.replace(/\/+$/,"")+"/"+t);if(r)return r.path=n,Ht(r);return n}Im.join=Me;Im.isAbsolute=function(l){return l.charAt(0)==="/"||ye.test(l)};function Rm(l,t){if(l==="")l=".";l=l.replace(/\/$/,"");var i=0;while(t.indexOf(l+"/")!==0){var r=l.lastIndexOf("/");if(r<0)return t;if(l=l.slice(0,r),l.match(/^([^\/]+:\/)?\/*$/))return t;++i}return Array(i+1).join("../")+t.substr(l.length+1)}Im.relative=Rm;var Ue=function(){var l=Object.create(null);return!("__proto__"in l)}();function Ae(l){return l}function ym(l){if(ke(l))return"$"+l;return l}Im.toSetString=Ue?Ae:ym;function Mm(l){if(ke(l))return l.slice(1);return l}Im.fromSetString=Ue?Ae:Mm;function ke(l){if(!l)return!1;var t=l.length;if(t<9)return!1;if(l.charCodeAt(t-1)!==95||l.charCodeAt(t-2)!==95||l.charCodeAt(t-3)!==111||l.charCodeAt(t-4)!==116||l.charCodeAt(t-5)!==111||l.charCodeAt(t-6)!==114||l.charCodeAt(t-7)!==112||l.charCodeAt(t-8)!==95||l.charCodeAt(t-9)!==95)return!1;for(var i=t-10;i>=0;i--)if(l.charCodeAt(i)!==36)return!1;return!0}function Um(l,t,i){var r=Tl(l.source,t.source);if(r!==0)return r;if(r=l.originalLine-t.originalLine,r!==0)return r;if(r=l.originalColumn-t.originalColumn,r!==0||i)return r;if(r=l.generatedColumn-t.generatedColumn,r!==0)return r;if(r=l.generatedLine-t.generatedLine,r!==0)return r;return Tl(l.name,t.name)}Im.compareByOriginalPositions=Um;function Am(l,t,i){var r=l.originalLine-t.originalLine;if(r!==0)return r;if(r=l.originalColumn-t.originalColumn,r!==0||i)return r;if(r=l.generatedColumn-t.generatedColumn,r!==0)return r;if(r=l.generatedLine-t.generatedLine,r!==0)return r;return Tl(l.name,t.name)}Im.compareByOriginalPositionsNoSource=Am;function km(l,t,i){var r=l.generatedLine-t.generatedLine;if(r!==0)return r;if(r=l.generatedColumn-t.generatedColumn,r!==0||i)return r;if(r=Tl(l.source,t.source),r!==0)return r;if(r=l.originalLine-t.originalLine,r!==0)return r;if(r=l.originalColumn-t.originalColumn,r!==0)return r;return Tl(l.name,t.name)}Im.compareByGeneratedPositionsDeflated=km;function Sm(l,t,i){var r=l.generatedColumn-t.generatedColumn;if(r!==0||i)return r;if(r=Tl(l.source,t.source),r!==0)return r;if(r=l.originalLine-t.originalLine,r!==0)return r;if(r=l.originalColumn-t.originalColumn,r!==0)return r;return Tl(l.name,t.name)}Im.compareByGeneratedPositionsDeflatedNoLine=Sm;function Tl(l,t){if(l===t)return 0;if(l===null)return 1;if(t===null)return-1;if(l>t)return 1;return-1}function Nm(l,t){var i=l.generatedLine-t.generatedLine;if(i!==0)return i;if(i=l.generatedColumn-t.generatedColumn,i!==0)return i;if(i=Tl(l.source,t.source),i!==0)return i;if(i=l.originalLine-t.originalLine,i!==0)return i;if(i=l.originalColumn-t.originalColumn,i!==0)return i;return Tl(l.name,t.name)}Im.compareByGeneratedPositionsInflated=Nm;function Cm(l){return JSON.parse(l.replace(/^\)]}'[^\n]*\n/,""))}Im.parseSourceMapInput=Cm;function Pm(l,t,i){if(t=t||"",l){if(l[l.length-1]!=="/"&&t[0]!=="/")l+="/";t=l+t}if(i){var r=ai(i);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var n=r.path.lastIndexOf("/");if(n>=0)r.path=r.path.substring(0,n+1)}t=Me(Ht(r),t)}return nn(t)}Im.computeSourceURL=Pm});var Se=hl((ww)=>{var on=fr(),gn=Object.prototype.hasOwnProperty,$t=typeof Map!=="undefined";function dl(){this._array=[],this._set=$t?new Map:Object.create(null)}dl.fromArray=function l(t,i){var r=new dl;for(var n=0,o=t.length;n=0)return i}else{var r=on.toSetString(t);if(gn.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};dl.prototype.at=function l(t){if(t>=0&&t{var Ne=fr();function uw(l,t){var i=l.generatedLine,r=t.generatedLine,n=l.generatedColumn,o=t.generatedColumn;return r>i||r==i&&o>=n||Ne.compareByGeneratedPositionsInflated(l,t)<=0}function er(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}er.prototype.unsortedForEach=function l(t,i){this._array.forEach(t,i)};er.prototype.add=function l(t){if(uw(this._last,t))this._last=t,this._array.push(t);else this._sorted=!1,this._array.push(t)};er.prototype.toArray=function l(){if(!this._sorted)this._array.sort(Ne.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};zw.MappingList=er});var Ot="PENPAL_CHILD";var Hh=rf(yr(),1);var Gc=class extends Error{code;constructor(l,t){super(t);this.name="PenpalError",this.code=l}},vl=Gc,Bc=(l)=>({name:l.name,message:l.message,stack:l.stack,penpalCode:l instanceof vl?l.code:void 0}),Vc=({name:l,message:t,stack:i,penpalCode:r})=>{let n=r?new vl(r,t):new Error(t);return n.name=l,n.stack=i,n},Fc=Symbol("Reply"),Ec=class{value;transferables;#l=Fc;constructor(l,t){this.value=l,this.transferables=t?.transferables}},Lc=Ec,Jl="penpal",Ai=(l)=>{return typeof l==="object"&&l!==null},Kf=(l)=>{return typeof l==="function"},Hc=(l)=>{return Ai(l)&&l.namespace===Jl},jt=(l)=>{return l.type==="SYN"},ki=(l)=>{return l.type==="ACK1"},ci=(l)=>{return l.type==="ACK2"},Rf=(l)=>{return l.type==="CALL"},yf=(l)=>{return l.type==="REPLY"},Kc=(l)=>{return l.type==="DESTROY"},Mf=(l,t=[])=>{let i=[];for(let r of Object.keys(l)){let n=l[r];if(Kf(n))i.push([...t,r]);else if(Ai(n))i.push(...Mf(n,[...t,r]))}return i},Rc=(l,t)=>{let i=l.reduce((r,n)=>{return Ai(r)?r[n]:void 0},t);return Kf(i)?i:void 0},ot=(l)=>{return l.join(".")},Ff=(l,t,i)=>({namespace:Jl,channel:l,type:"REPLY",callId:t,isError:!0,...i instanceof Error?{value:Bc(i),isSerializedErrorInstance:!0}:{value:i}}),yc=(l,t,i,r)=>{let n=!1,o=async(g)=>{if(n)return;if(!Rf(g))return;r?.(`Received ${ot(g.methodPath)}() call`,g);let{methodPath:e,args:b,id:f}=g,h,c;try{let m=Rc(e,t);if(!m)throw new vl("METHOD_NOT_FOUND",`Method \`${ot(e)}\` is not found.`);let u=await m(...b);if(u instanceof Lc)c=u.transferables,u=await u.value;h={namespace:Jl,channel:i,type:"REPLY",callId:f,value:u}}catch(m){h=Ff(i,f,m)}if(n)return;try{r?.(`Sending ${ot(e)}() reply`,h),l.sendMessage(h,c)}catch(m){if(m.name==="DataCloneError")h=Ff(i,f,m),r?.(`Sending ${ot(e)}() reply`,h),l.sendMessage(h);throw m}};return l.addMessageHandler(o),()=>{n=!0,l.removeMessageHandler(o)}},Mc=yc,Uf=crypto.randomUUID?.bind(crypto)??(()=>new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")),Uc=Symbol("CallOptions"),Ac=class{transferables;timeout;#l=Uc;constructor(l){this.transferables=l?.transferables,this.timeout=l?.timeout}},kc=Ac,Sc=new Set(["apply","call","bind"]),Af=(l,t,i=[])=>{return new Proxy(i.length?()=>{}:Object.create(null),{get(r,n){if(n==="then")return;if(i.length&&Sc.has(n))return Reflect.get(r,n);return Af(l,t,[...i,n])},apply(r,n,o){return l(i,o)}})},Ef=(l)=>{return new vl("CONNECTION_DESTROYED",`Method call ${ot(l)}() failed due to destroyed connection`)},Nc=(l,t,i)=>{let r=!1,n=new Map,o=(b)=>{if(!yf(b))return;let{callId:f,value:h,isError:c,isSerializedErrorInstance:m}=b,u=n.get(f);if(!u)return;if(n.delete(f),i?.(`Received ${ot(u.methodPath)}() call`,b),c)u.reject(m?Vc(h):h);else u.resolve(h)};return l.addMessageHandler(o),{remoteProxy:Af((b,f)=>{if(r)throw Ef(b);let h=Uf(),c=f[f.length-1],m=c instanceof kc,{timeout:u,transferables:X}=m?c:{},Z=m?f.slice(0,-1):f;return new Promise((L,J)=>{let H=u!==void 0?window.setTimeout(()=>{n.delete(h),J(new vl("METHOD_CALL_TIMEOUT",`Method call ${ot(b)}() timed out after ${u}ms`))},u):void 0;n.set(h,{methodPath:b,resolve:L,reject:J,timeoutId:H});try{let fl={namespace:Jl,channel:t,type:"CALL",id:h,methodPath:b,args:Z};i?.(`Sending ${ot(b)}() call`,fl),l.sendMessage(fl,X)}catch(fl){J(new vl("TRANSMISSION_FAILED",fl.message))}})},i),destroy:()=>{r=!0,l.removeMessageHandler(o);for(let{methodPath:b,reject:f,timeoutId:h}of n.values())clearTimeout(h),f(Ef(b));n.clear()}}},Cc=Nc,Pc=()=>{let l,t;return{promise:new Promise((r,n)=>{l=r,t=n}),resolve:l,reject:t}},Ic=Pc,Zc=class extends Error{constructor(l){super(`You've hit a bug in Penpal. Please file an issue with the following information: ${l}`)}},Yt=Zc,Mr="deprecated-penpal",Tc=(l)=>{return Ai(l)&&"penpal"in l},dc=(l)=>l.split("."),Lf=(l)=>l.join("."),kf=(l)=>{return new Yt(`Unexpected message to translate: ${JSON.stringify(l)}`)},lm=(l)=>{if(l.penpal==="syn")return{namespace:Jl,channel:void 0,type:"SYN",participantId:Mr};if(l.penpal==="ack")return{namespace:Jl,channel:void 0,type:"ACK2"};if(l.penpal==="call")return{namespace:Jl,channel:void 0,type:"CALL",id:l.id,methodPath:dc(l.methodName),args:l.args};if(l.penpal==="reply")if(l.resolution==="fulfilled")return{namespace:Jl,channel:void 0,type:"REPLY",callId:l.id,value:l.returnValue};else return{namespace:Jl,channel:void 0,type:"REPLY",callId:l.id,isError:!0,...l.returnValueIsError?{value:l.returnValue,isSerializedErrorInstance:!0}:{value:l.returnValue}};throw kf(l)},tm=(l)=>{if(ki(l))return{penpal:"synAck",methodNames:l.methodPaths.map(Lf)};if(Rf(l))return{penpal:"call",id:l.id,methodName:Lf(l.methodPath),args:l.args};if(yf(l))if(l.isError)return{penpal:"reply",id:l.callId,resolution:"rejected",...l.isSerializedErrorInstance?{returnValue:l.value,returnValueIsError:!0}:{returnValue:l.value}};else return{penpal:"reply",id:l.callId,resolution:"fulfilled",returnValue:l.value};throw kf(l)},im=({messenger:l,methods:t,timeout:i,channel:r,log:n})=>{let o=Uf(),g,e=[],b=!1,f=Mf(t),{promise:h,resolve:c,reject:m}=Ic(),u=i!==void 0?setTimeout(()=>{m(new vl("CONNECTION_TIMEOUT",`Connection timed out after ${i}ms`))},i):void 0,X=()=>{for(let B of e)B()},Z=()=>{if(b)return;e.push(Mc(l,t,r,n));let{remoteProxy:B,destroy:V}=Cc(l,r,n);e.push(V),clearTimeout(u),b=!0,c({remoteProxy:B,destroy:X})},L=()=>{let B={namespace:Jl,type:"SYN",channel:r,participantId:o};n?.("Sending handshake SYN",B);try{l.sendMessage(B)}catch(V){m(new vl("TRANSMISSION_FAILED",V.message))}},J=(B)=>{if(n?.("Received handshake SYN",B),B.participantId===g&&g!==Mr)return;if(g=B.participantId,L(),!(o>g||g===Mr))return;let M={namespace:Jl,channel:r,type:"ACK1",methodPaths:f};n?.("Sending handshake ACK1",M);try{l.sendMessage(M)}catch(T){m(new vl("TRANSMISSION_FAILED",T.message));return}},H=(B)=>{n?.("Received handshake ACK1",B);let V={namespace:Jl,channel:r,type:"ACK2"};n?.("Sending handshake ACK2",V);try{l.sendMessage(V)}catch(M){m(new vl("TRANSMISSION_FAILED",M.message));return}Z()},fl=(B)=>{n?.("Received handshake ACK2",B),Z()},K=(B)=>{if(jt(B))J(B);if(ki(B))H(B);if(ci(B))fl(B)};return l.addMessageHandler(K),e.push(()=>l.removeMessageHandler(K)),L(),h},rm=im,nm=(l)=>{let t=!1,i;return(...r)=>{if(!t)t=!0,i=l(...r);return i}},om=nm,Hf=new WeakSet,gm=({messenger:l,methods:t={},timeout:i,channel:r,log:n})=>{if(!l)throw new vl("INVALID_ARGUMENT","messenger must be defined");if(Hf.has(l))throw new vl("INVALID_ARGUMENT","A messenger can only be used for a single connection");Hf.add(l);let o=[l.destroy],g=om((f)=>{if(f){let h={namespace:Jl,channel:r,type:"DESTROY"};try{l.sendMessage(h)}catch(c){}}for(let h of o)h();n?.("Connection destroyed")}),e=(f)=>{return Hc(f)&&f.channel===r};return{promise:(async()=>{try{l.initialize({log:n,validateReceivedMessage:e}),l.addMessageHandler((c)=>{if(Kc(c))g(!1)});let{remoteProxy:f,destroy:h}=await rm({messenger:l,methods:t,timeout:i,channel:r,log:n});return o.push(h),f}catch(f){throw g(!0),f}})(),destroy:()=>{g(!0)}}},Sf=gm,fm=class{#l;#n;#i;#t;#g;#r=new Set;#o;#f=!1;constructor({remoteWindow:l,allowedOrigins:t}){if(!l)throw new vl("INVALID_ARGUMENT","remoteWindow must be defined");this.#l=l,this.#n=t?.length?t:[window.origin]}initialize=({log:l,validateReceivedMessage:t})=>{this.#i=l,this.#t=t,window.addEventListener("message",this.#c)};sendMessage=(l,t)=>{if(jt(l)){let i=this.#e(l);this.#l.postMessage(l,{targetOrigin:i,transfer:t});return}if(ki(l)||this.#f){let i=this.#f?tm(l):l,r=this.#e(l);this.#l.postMessage(i,{targetOrigin:r,transfer:t});return}if(ci(l)){let{port1:i,port2:r}=new MessageChannel;this.#o=i,i.addEventListener("message",this.#b),i.start();let n=[r,...t||[]],o=this.#e(l);this.#l.postMessage(l,{targetOrigin:o,transfer:n});return}if(this.#o){this.#o.postMessage(l,{transfer:t});return}throw new Yt("Port is undefined")};addMessageHandler=(l)=>{this.#r.add(l)};removeMessageHandler=(l)=>{this.#r.delete(l)};destroy=()=>{window.removeEventListener("message",this.#c),this.#h(),this.#r.clear()};#m=(l)=>{return this.#n.some((t)=>t instanceof RegExp?t.test(l):t===l||t==="*")};#e=(l)=>{if(jt(l))return"*";if(!this.#g)throw new Yt("Concrete remote origin not set");return this.#g==="null"&&this.#n.includes("*")?"*":this.#g};#h=()=>{this.#o?.removeEventListener("message",this.#b),this.#o?.close(),this.#o=void 0};#c=({source:l,origin:t,ports:i,data:r})=>{if(l!==this.#l)return;if(Tc(r))this.#i?.("Please upgrade the child window to the latest version of Penpal."),this.#f=!0,r=lm(r);if(!this.#t?.(r))return;if(!this.#m(t)){this.#i?.(`Received a message from origin \`${t}\` which did not match allowed origins \`[${this.#n.join(", ")}]\``);return}if(jt(r))this.#h(),this.#g=t;if(ci(r)&&!this.#f){if(this.#o=i[0],!this.#o)throw new Yt("No port received on ACK2");this.#o.addEventListener("message",this.#b),this.#o.start()}for(let n of this.#r)n(r)};#b=({data:l})=>{if(!this.#t?.(l))return;for(let t of this.#r)t(l)}},Nf=fm,Cx=class{#l;#n;#i=new Set;#t;constructor({worker:l}){if(!l)throw new vl("INVALID_ARGUMENT","worker must be defined");this.#l=l}initialize=({validateReceivedMessage:l})=>{this.#n=l,this.#l.addEventListener("message",this.#r)};sendMessage=(l,t)=>{if(jt(l)||ki(l)){this.#l.postMessage(l,{transfer:t});return}if(ci(l)){let{port1:i,port2:r}=new MessageChannel;this.#t=i,i.addEventListener("message",this.#r),i.start(),this.#l.postMessage(l,{transfer:[r,...t||[]]});return}if(this.#t){this.#t.postMessage(l,{transfer:t});return}throw new Yt("Port is undefined")};addMessageHandler=(l)=>{this.#i.add(l)};removeMessageHandler=(l)=>{this.#i.delete(l)};destroy=()=>{this.#l.removeEventListener("message",this.#r),this.#g(),this.#i.clear()};#g=()=>{this.#t?.removeEventListener("message",this.#r),this.#t?.close(),this.#t=void 0};#r=({ports:l,data:t})=>{if(!this.#n?.(t))return;if(jt(t))this.#g();if(ci(t)){if(this.#t=l[0],!this.#t)throw new Yt("No port received on ACK2");this.#t.addEventListener("message",this.#r),this.#t.start()}for(let i of this.#i)i(t)}};var Px=class{#l;#n;#i=new Set;constructor({port:l}){if(!l)throw new vl("INVALID_ARGUMENT","port must be defined");this.#l=l}initialize=({validateReceivedMessage:l})=>{this.#n=l,this.#l.addEventListener("message",this.#t),this.#l.start()};sendMessage=(l,t)=>{this.#l?.postMessage(l,{transfer:t})};addMessageHandler=(l)=>{this.#i.add(l)};removeMessageHandler=(l)=>{this.#i.delete(l)};destroy=()=>{this.#l.removeEventListener("message",this.#t),this.#l.close(),this.#i.clear()};#t=({data:l})=>{if(!this.#n?.(l))return;for(let t of this.#i)t(l)}};var Cf=["SCRIPT","STYLE","LINK","META","NOSCRIPT"],Pf=new Set(["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","h1","h2","h3","h4","h5","h6","i","iframe","img","input","ins","kbd","label","li","map","mark","meter","noscript","object","output","p","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr"]);var Ur=".next-prod";var m5={SCALE:0.7,PAN_POSITION:{x:175,y:100},URL:"http://localhost:3000/",FRAME_POSITION:{x:0,y:0},FRAME_DIMENSION:{width:1536,height:960},ASPECT_RATIO_LOCKED:!1,DEVICE:"Custom:Custom",THEME:"system",ORIENTATION:"Portrait",MIN_DIMENSIONS:{width:"280px",height:"360px"},COMMANDS:{run:"bun run dev",build:"bun run build",install:"bun install"},IMAGE_FOLDER:"public",IMAGE_DIMENSION:{width:"100px",height:"100px"},FONT_FOLDER:"fonts",FONT_CONFIG:"app/fonts.ts",TAILWIND_CONFIG:"tailwind.config.ts",CHAT_SETTINGS:{showSuggestions:!0,autoApplyCode:!0,expandCodeBlocks:!1,showMiniChat:!0,maxImages:5},EDITOR_SETTINGS:{shouldWarnDelete:!1,enableBunReplace:!0,buildFlags:"--no-lint"}};var Ar=["node_modules","dist","build",".git",".next"],u5=[...Ar,"static","out",Ur],z5=[...Ar,Ur],x5=[...Ar,"coverage"],em=[".jsx",".tsx"],bm=[".js",".ts",".mjs",".cjs"],a5=[...em,...bm];var _5={["en"]:"English",["ja"]:"日本語",["zh"]:"中文",["ko"]:"한국어"};var df=rf(yr(),1);function R(l){return document.querySelector(`[${"data-odid"}="${l}"]`)}function kr(l,t=!1){let i=`[${"data-odid"}="${l}"]`;if(!t)return i;return hm(i)}function hm(l){return CSS.escape(l)}function zt(l){return l&&l instanceof Node&&l.nodeType===Node.ELEMENT_NODE&&!Cf.includes(l.tagName)&&!l.hasAttribute("data-onlook-ignore")&&l.style.display!=="none"}var cm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var If=(l=21)=>{let t="",i=l|0;while(i--)t+=cm[Math.random()*64|0];return t};function Dl(l){let t=l.getAttribute("data-odid");if(!t)t=`odid-${If()}`,l.setAttribute("data-odid",t);return t}function Hl(l){return l.getAttribute("data-oid")}function Kl(l){return l.getAttribute("data-oiid")}function Zf(l,t){if(!$l)return;$l.onDomProcessed({layerMap:Object.fromEntries(l),rootNode:t}).catch((i)=>{console.error("Failed to send DOM processed event:",i)})}function Sr(l){window._onlookFrameId=l}function Qt(){let l=window._onlookFrameId;if(!l)return console.warn("Frame id not found"),$l?.getFrameId().then((t)=>{Sr(t)}),"";return l}function mm(l=document.body){if(!Qt())return console.warn("frameView id not found, skipping dom processing"),null;let i=zl(l);if(!i)return console.warn("Error building layer tree, root element is null"),null;let r=l.getAttribute("data-odid");if(!r)return console.warn("Root dom id not found"),null;let n=i.get(r);if(!n)return console.warn("Root node not found"),null;return Zf(i,n),{rootDomId:r,layerMap:Array.from(i.entries())}}var Si=df.default(mm,500),wm=[(l)=>{let t=l.parentElement;return t&&t.tagName.toLowerCase()==="svg"},(l)=>{return l.tagName.toLowerCase()==="next-route-announcer"},(l)=>{return l.tagName.toLowerCase()==="nextjs-portal"}];function zl(l){if(!zt(l))return null;let t=new Map,i=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:(o)=>{let g=o;if(wm.some((e)=>e(g)))return NodeFilter.FILTER_REJECT;return zt(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),r=Tf(l);r.children=[],t.set(r.domId,r);let n=i.nextNode();while(n){let o=Tf(n);o.children=[];let g=n.parentElement;if(g){let e=g.getAttribute("data-odid");if(e){o.parent=e;let b=t.get(e);if(b&&b.children)b.children.push(o.domId)}}t.set(o.domId,o),n=i.nextNode()}return t}function Tf(l){let t=Dl(l),i=Hl(l),r=Kl(l),n=Array.from(l.childNodes).map((b)=>b.nodeType===Node.TEXT_NODE?b.textContent:"").join(" ").trim().slice(0,500),o=window.getComputedStyle(l),g=l.getAttribute("data-ocname");return{domId:t,oid:i||null,instanceId:r||null,textContent:n||"",tagName:l.tagName.toLowerCase(),isVisible:o.visibility!=="hidden",component:g||null,frameId:Qt(),children:null,parent:null,dynamicType:null,coreElementType:null}}function Nr(l){throw new Error(`Expected \`never\`, found: ${JSON.stringify(l)}`)}var le=(l)=>JSON.parse(JSON.stringify(l));function te(l){let t=re(l),i=pm(l),r=um(l);return{defined:{width:"auto",height:"auto",...i,...r},computed:t}}function ie(l){let t=R(l);if(!t)return{};return re(t)}function re(l){return le(window.getComputedStyle(l))}function pm(l){let t={},i=ne(l.style.cssText);return Object.entries(i).forEach(([r,n])=>{t[r]=n}),t}function um(l){let t={},i=document.styleSheets;for(let r=0;rt[f]=h)}}catch(e){console.warn("Error",e)}}return t}function ne(l){let t={};return l.split(";").forEach((i)=>{if(i=i.trim(),!i)return;let[r,...n]=i.split(":");t[r?.trim()??""]=n.join(":").trim()}),t}var oe=(l,t)=>{let i=document.elementFromPoint(l,t);if(!i)return;let r=(o)=>{if(o?.shadowRoot){let g=o.shadowRoot.elementFromPoint(l,t);if(g==o)return o;else if(g?.shadowRoot)return r(g);else return g||o}else return o};return r(i)||i},nl=(l,t)=>{let i=l.parentElement,r=i?{domId:i.getAttribute("data-odid"),frameId:Qt(),oid:i.getAttribute("data-oid"),instanceId:i.getAttribute("data-oiid"),rect:i.getBoundingClientRect()}:null,n=l.getBoundingClientRect(),o=t?te(l):null;return{domId:l.getAttribute("data-odid"),oid:l.getAttribute("data-oid"),frameId:Qt(),instanceId:l.getAttribute("data-oiid"),rect:n,tagName:l.tagName,parent:r,styles:o}};function Ni(l){try{let t=l.getAttribute("data-onlook-drag-saved-style");if(t){let i=JSON.parse(t);for(let r in i)l.style[r]=i[r]}}catch(t){console.warn("Error restoring style",t)}}function ge(l){let t=l.parentElement;if(!t)return;return{type:"index",targetDomId:t.getAttribute("data-odid"),targetOid:Kl(t)||Hl(t)||null,index:Array.from(l.parentElement?.children||[]).indexOf(l),originalIndex:Array.from(l.parentElement?.children||[]).indexOf(l)}}var fe=(l)=>{let t=Array.from(l.childNodes).filter((i)=>i.nodeType===Node.TEXT_NODE).map((i)=>i.textContent);if(t.length===0)return;return t.join("")};var Ci=(l,t)=>{let i=R(l)||document.body;return nl(i,t)},ee=(l,t,i)=>{let r=zm(l,t)||document.body;return nl(r,i)},zm=(l,t)=>{let i=document.elementFromPoint(l,t);if(!i)return;let r=(o)=>{if(o?.shadowRoot){let g=o.shadowRoot.elementFromPoint(l,t);if(g==o)return o;else if(g?.shadowRoot)return r(g);else return g||o}else return o};return r(i)||i},be=(l,t,i)=>{let r=R(l);if(!r){console.warn("Failed to updateElementInstanceId: Element not found");return}r.setAttribute("data-oiid",t),r.setAttribute("data-ocname",i)},he=(l)=>{let t=R(l);if(!t?.parentElement)return null;return nl(t.parentElement,!1)},ce=(l)=>{let t=R(l);if(!t)return 0;return t.children.length},me=(l)=>{let t=R(l);if(!t)return null;return nl(t.offsetParent,!1)};function we(l,t,i){let r=R(l.domId);if(!r)return console.warn("Failed to find parent element",l.domId),null;let n=xm(t),o=new Set(i.map((f)=>f.domId)),g=Array.from(r.children).map((f,h)=>({element:f,index:h,domId:Dl(f)})).filter(({domId:f})=>o.has(f));if(g.length===0)return console.warn("No valid children found to group"),null;let e=Math.min(...g.map((f)=>f.index));return r.insertBefore(n,r.children[e]??null),g.forEach(({element:f})=>{let h=f.cloneNode(!0);h.setAttribute("data-onlook-inserted","true"),n.appendChild(h),f.style.display="none",ue(f)}),{domEl:nl(n,!0),newMap:zl(n)}}function pe(l,t){let i=R(l.domId);if(!i)return console.warn(`Parent element not found: ${l.domId}`),null;let r;if(t.domId)r=R(t.domId);else return console.warn("Container domId is required for ungrouping"),null;if(!r)return console.warn("Container element not found for ungrouping"),null;return Array.from(r.children).forEach((g)=>{i.appendChild(g)}),r.remove(),{domEl:nl(i,!0),newMap:zl(i)}}function xm(l){let t=document.createElement(l.tagName);return Object.entries(l.attributes).forEach(([i,r])=>{t.setAttribute(i,r)}),t.setAttribute("data-onlook-inserted","true"),t.setAttribute("data-odid",l.domId),t.setAttribute("data-oid",l.oid),t}function ue(l){l.removeAttribute("data-odid"),l.removeAttribute("data-oid"),l.removeAttribute("data-onlook-inserted");let t=Array.from(l.children);if(t.length===0)return;t.forEach((i)=>{ue(i)})}function Pi(l){let t=R(l);if(!t)return console.warn("Element not found for domId:",l),null;return ze(t)}function ze(l){let t=Array.from(l.attributes).reduce((r,n)=>{return r[n.name]=n.value,r},{}),i=Kl(l)||Hl(l)||null;if(!i)return console.warn("Element has no oid"),null;return{oid:i,domId:Dl(l),tagName:l.tagName.toLowerCase(),children:Array.from(l.children).map((r)=>ze(r)).filter(Boolean),attributes:t,textContent:fe(l)||null,styles:{}}}function xe(l){let t=R(l);if(!t)throw new Error("Element not found for domId: "+l);let i=t.parentElement;if(!i)throw new Error("Inserted element has no parent");let r=Kl(i)||Hl(i);if(!r)return console.warn("Parent element has no oid"),null;let n=Dl(i),o=Array.from(i.children).indexOf(t);if(o===-1)return{type:"append",targetDomId:n,targetOid:r};return{type:"index",targetDomId:n,targetOid:r,index:o,originalIndex:o}}function ae(l){let t=document.querySelector(`[${"data-odid"}="${l}"]`);if(!t)return console.warn("No element found",{domId:l}),{dynamicType:null,coreType:null};let i=t.getAttribute("data-onlook-dynamic-type")||null,r=t.getAttribute("data-onlook-core-element-type")||null;return{dynamicType:i,coreType:r}}function ve(l,t,i){let r=document.querySelector(`[${"data-odid"}="${l}"]`);if(r){if(t)r.setAttribute("data-onlook-dynamic-type",t);if(i)r.setAttribute("data-onlook-core-element-type",i)}}function $e(){let t=document.body.querySelector(`[${"data-oid"}]`);if(t)return nl(t,!0);return null}var Yl=0,w=1,v=2,S=3,E=4,el=5,Gt=6,il=7,wl=8,s=9,$=10,U=11,O=12,Y=13,Pl=14,cl=15,P=16,d=17,ll=18,bl=19,pl=20,j=21,a=22,N=23,ml=24,A=25;function ol(l){return l>=48&&l<=57}function ql(l){return ol(l)||l>=65&&l<=70||l>=97&&l<=102}function Ti(l){return l>=65&&l<=90}function am(l){return l>=97&&l<=122}function vm(l){return Ti(l)||am(l)}function $m(l){return l>=128}function Zi(l){return vm(l)||$m(l)||l===95}function mi(l){return Zi(l)||ol(l)||l===45}function _m(l){return l>=0&&l<=8||l===11||l>=14&&l<=31||l===127}function wi(l){return l===10||l===13||l===12}function Rl(l){return wi(l)||l===32||l===9}function _l(l,t){if(l!==92)return!1;if(wi(t)||t===0)return!1;return!0}function Bt(l,t,i){if(l===45)return Zi(t)||t===45||_l(t,i);if(Zi(l))return!0;if(l===92)return _l(l,t);return!1}function di(l,t,i){if(l===43||l===45){if(ol(t))return 2;return t===46&&ol(i)?3:0}if(l===46)return ol(t)?2:0;if(ol(l))return 1;return 0}function lr(l){if(l===65279)return 1;if(l===65534)return 1;return 0}var Cr=new Array(128),qm=128,pi=130,Pr=131,tr=132,Ir=133;for(let l=0;ll.length)return!1;for(let n=t;n=0;t--)if(!Rl(l.charCodeAt(t)))break;return t+1}function ui(l,t){for(;t=55296&&t<=57343||t>1114111)t=65533;return String.fromCodePoint(t)}var Ft=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"];function Et(l=null,t){if(l===null||l.length0?lr(t.charCodeAt(0)):0,n=Et(l.lines,i),o=Et(l.columns,i),g=l.startLine,e=l.startColumn;for(let b=r;b{}){l=String(l||"");let i=l.length,r=Et(this.offsetAndType,l.length+1),n=Et(this.balance,l.length+1),o=0,g=-1,e=0,b=l.length;this.offsetAndType=null,this.balance=null,n.fill(0),t(l,(f,h,c)=>{let m=o++;if(r[m]=f<>Ul]}else if(De(f))b=m,e=at[f]}),r[o]=Yl<o)n[f]=o}this.source=l,this.firstCharOffset=g===-1?0:g,this.tokenCount=o,this.offsetAndType=r,this.balance=n,this.reset(),this.next()}lookupType(l){if(l+=this.tokenIndex,l>Ul;return Yl}lookupTypeNonSC(l){for(let t=this.tokenIndex;t>Ul;if(i!==Y&&i!==A){if(l--===0)return i}}return Yl}lookupOffset(l){if(l+=this.tokenIndex,l>Ul;if(i!==Y&&i!==A){if(l--===0)return t-this.tokenIndex}}return Yl}lookupValue(l,t){if(l+=this.tokenIndex,l0)return l>Ul,this.tokenEnd=t&Ml;else this.tokenIndex=this.tokenCount,this.next()}next(){let l=this.tokenIndex+1;if(l>Ul,this.tokenEnd=l&Ml;else this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Yl,this.tokenStart=this.tokenEnd=this.source.length}skipSC(){while(this.tokenType===Y||this.tokenType===A)this.next()}skipUntilBalanced(l,t){let i=l,r=0,n=0;l:for(;i0?this.offsetAndType[i-1]&Ml:this.firstCharOffset,t(this.source.charCodeAt(n))){case 1:break l;case 2:i++;break l;default:if(De(this.offsetAndType[i]>>Ul))i=r}}this.skip(i-this.tokenIndex)}forEachToken(l){for(let t=0,i=this.firstCharOffset;t>Ul;i=o,l(g,r,o,t)}}dump(){let l=new Array(this.tokenCount);return this.forEachToken((t,i,r,n)=>{l[n]={idx:n,type:Ft[t],chunk:this.source.substring(i,r),balance:this.balance[n]}}),l}}function gt(l,t){function i(c){return c=l.length){if(fString(X+J+1).padStart(m)+" |"+L).join(` -`)}let e=` -`.repeat(Math.max(r-1,0)),b=" ".repeat(Math.max(n-1,0)),f=(e+b+l).split(/\r\n?|\n|\f/),h=Math.max(1,t-o)-1,c=Math.min(t+o,f.length+1),m=Math.max(4,String(c).length)+1,u=0;if(i+=(We.length-1)*(f[t-1].substr(0,i-1).match(/\t/g)||[]).length,i>Tr)u=i-Xe+3,i=Xe-2;for(let X=h;X<=c;X++)if(X>=0&&X0&&f[X].length>u?"…":"")+f[X].substr(u,Tr-2)+(f[X].length>u+Tr-1?"…":"");return[g(h,t),new Array(i+m+2).join("-")+"^",g(t,c)].filter(Boolean).join(` -`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function dr(l,t,i,r,n,o=1,g=1){return Object.assign(vt("SyntaxError",l),{source:t,offset:i,line:r,column:n,sourceFragment(b){return Oe({source:t,line:r,column:n,baseLine:o,baseColumn:g},isNaN(b)?0:b)},get formattedMessage(){return`Parse error: ${l} -`+Oe({source:t,line:r,column:n,baseLine:o,baseColumn:g},2)}})}function je(l){let t=this.createList(),i=!1,r={recognizer:l};while(!this.eof){switch(this.tokenType){case A:this.next();continue;case Y:i=!0,this.next();continue}let n=l.getNode.call(this,r);if(n===void 0)break;if(i){if(l.onWhiteSpace)l.onWhiteSpace.call(this,n,t,r);i=!1}t.push(n)}if(i&&l.onWhiteSpace)l.onWhiteSpace.call(this,null,t,r);return t}var Ye=()=>{},Jm=33,Dm=35,ln=59,Qe=123,Ge=0;function Xm(l){return function(){return this[l]()}}function tn(l){let t=Object.create(null);for(let i of Object.keys(l)){let r=l[i],n=r.parse||r;if(n)t[i]=n}return t}function Wm(l){let t={context:Object.create(null),features:Object.assign(Object.create(null),l.features),scope:Object.assign(Object.create(null),l.scope),atrule:tn(l.atrule),pseudo:tn(l.pseudo),node:tn(l.node)};for(let[i,r]of Object.entries(l.parseContext))switch(typeof r){case"function":t.context[i]=r;break;case"string":t.context[i]=Xm(r);break}return{config:t,...t,...t.node}}function Be(l){let t="",i="",r=!1,n=Ye,o=!1,g=new or,e=Object.assign(new gr,Wm(l||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:je,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(f){return f===Qe?1:0},consumeUntilLeftCurlyBracketOrSemicolon(f){return f===Qe||f===ln?1:0},consumeUntilExclamationMarkOrSemicolon(f){return f===Jm||f===ln?1:0},consumeUntilSemicolonIncluded(f){return f===ln?2:0},createList(){return new tl},createSingleNodeList(f){return new tl().appendData(f)},getFirstListNode(f){return f&&f.first},getLastListNode(f){return f&&f.last},parseWithFallback(f,h){let c=this.tokenIndex;try{return f.call(this)}catch(m){if(o)throw m;this.skip(c-this.tokenIndex);let u=h.call(this);return o=!0,n(m,u),o=!1,u}},lookupNonWSType(f){let h;do if(h=this.lookupType(f++),h!==Y&&h!==A)return h;while(h!==Ge);return Ge},charCodeAt(f){return f>=0&&fu.toUpperCase()),c=`${/[[\](){}]/.test(h)?`"${h}"`:h} is expected`,m=this.tokenStart;switch(f){case w:if(this.tokenType===v||this.tokenType===il)m=this.tokenEnd-1,c="Identifier is expected but function found";else c="Identifier is expected";break;case E:if(this.isDelim(Dm))this.next(),m++,c="Name is expected";break;case U:if(this.tokenType===$)m=this.tokenEnd,c="Percent sign is expected";break}this.error(c,m)}this.next()},eatIdent(f){if(this.tokenType!==w||this.lookupValue(0,f)===!1)this.error(`Identifier "${f}" is expected`);this.next()},eatDelim(f){if(!this.isDelim(f))this.error(`Delim "${String.fromCharCode(f)}" is expected`);this.next()},getLocation(f,h){if(r)return g.getLocationRange(f,h,i);return null},getLocationFromList(f){if(r){let h=this.getFirstListNode(f),c=this.getLastListNode(f);return g.getLocationRange(h!==null?h.loc.start.offset-g.startOffset:this.tokenStart,c!==null?c.loc.end.offset-g.startOffset:this.tokenStart,i)}return null},error(f,h){let c=typeof h!=="undefined"&&h",r=Boolean(h.positions),n=typeof h.onParseError==="function"?h.onParseError:Ye,o=!1,e.parseAtrulePrelude="parseAtrulePrelude"in h?Boolean(h.parseAtrulePrelude):!0,e.parseRulePrelude="parseRulePrelude"in h?Boolean(h.parseRulePrelude):!0,e.parseValue="parseValue"in h?Boolean(h.parseValue):!0,e.parseCustomProperty="parseCustomProperty"in h?Boolean(h.parseCustomProperty):!1;let{context:c="default",onComment:m}=h;if(c in e.context===!1)throw new Error("Unknown context `"+c+"`");if(typeof m==="function")e.forEachToken((X,Z,L)=>{if(X===A){let J=e.getLocation(Z,L),H=Zl(t,L-2,L,"*/")?t.slice(Z+2,L-2):t.slice(Z+2,L);m(H,J)}});let u=e.context[c].call(e,h);if(!e.eof)e.error();return u},{SyntaxError:dr,config:e.config})}var vi=Re(),gl=fr(),br=Se().ArraySet,aw=Ce().MappingList;function Ol(l){if(!l)l={};this._file=gl.getArg(l,"file",null),this._sourceRoot=gl.getArg(l,"sourceRoot",null),this._skipValidation=gl.getArg(l,"skipValidation",!1),this._ignoreInvalidMapping=gl.getArg(l,"ignoreInvalidMapping",!1),this._sources=new br,this._names=new br,this._mappings=new aw,this._sourcesContents=null}Ol.prototype._version=3;Ol.fromSourceMap=function l(t,i){var r=t.sourceRoot,n=new Ol(Object.assign(i||{},{file:t.file,sourceRoot:r}));return t.eachMapping(function(o){var g={generated:{line:o.generatedLine,column:o.generatedColumn}};if(o.source!=null){if(g.source=o.source,r!=null)g.source=gl.relative(r,g.source);if(g.original={line:o.originalLine,column:o.originalColumn},o.name!=null)g.name=o.name}n.addMapping(g)}),t.sources.forEach(function(o){var g=o;if(r!==null)g=gl.relative(r,o);if(!n._sources.has(g))n._sources.add(g);var e=t.sourceContentFor(o);if(e!=null)n.setSourceContent(o,e)}),n};Ol.prototype.addMapping=function l(t){var i=gl.getArg(t,"generated"),r=gl.getArg(t,"original",null),n=gl.getArg(t,"source",null),o=gl.getArg(t,"name",null);if(!this._skipValidation){if(this._validateMapping(i,r,n,o)===!1)return}if(n!=null){if(n=String(n),!this._sources.has(n))this._sources.add(n)}if(o!=null){if(o=String(o),!this._names.has(o))this._names.add(o)}this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:o})};Ol.prototype.setSourceContent=function l(t,i){var r=t;if(this._sourceRoot!=null)r=gl.relative(this._sourceRoot,r);if(i!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[gl.toSetString(r)]=i}else if(this._sourcesContents){if(delete this._sourcesContents[gl.toSetString(r)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};Ol.prototype.applySourceMap=function l(t,i,r){var n=i;if(i==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=t.file}var o=this._sourceRoot;if(o!=null)n=gl.relative(o,n);var g=new br,e=new br;this._mappings.unsortedForEach(function(b){if(b.source===n&&b.originalLine!=null){var f=t.originalPositionFor({line:b.originalLine,column:b.originalColumn});if(f.source!=null){if(b.source=f.source,r!=null)b.source=gl.join(r,b.source);if(o!=null)b.source=gl.relative(o,b.source);if(b.originalLine=f.line,b.originalColumn=f.column,f.name!=null)b.name=f.name}}var h=b.source;if(h!=null&&!g.has(h))g.add(h);var c=b.name;if(c!=null&&!e.has(c))e.add(c)},this),this._sources=g,this._names=e,t.sources.forEach(function(b){var f=t.sourceContentFor(b);if(f!=null){if(r!=null)b=gl.join(r,b);if(o!=null)b=gl.relative(o,b);this.setSourceContent(b,f)}},this)};Ol.prototype._validateMapping=function l(t,i,r,n){if(i&&typeof i.line!=="number"&&typeof i.column!=="number"){var o="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping){if(typeof console!=="undefined"&&console.warn)console.warn(o);return!1}else throw new Error(o)}if(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!i&&!r&&!n)return;else if(t&&"line"in t&&"column"in t&&i&&"line"in i&&"column"in i&&t.line>0&&t.column>=0&&i.line>0&&i.column>=0&&r)return;else{var o="Invalid mapping: "+JSON.stringify({generated:t,source:r,original:i,name:n});if(this._ignoreInvalidMapping){if(typeof console!=="undefined"&&console.warn)console.warn(o);return!1}else throw new Error(o)}};Ol.prototype._serializeMappings=function l(){var t=0,i=1,r=0,n=0,o=0,g=0,e="",b,f,h,c,m=this._mappings.toArray();for(var u=0,X=m.length;u0){if(!gl.compareByGeneratedPositionsInflated(f,m[u-1]))continue;b+=","}if(b+=vi.encode(f.generatedColumn-t),t=f.generatedColumn,f.source!=null){if(c=this._sources.indexOf(f.source),b+=vi.encode(c-g),g=c,b+=vi.encode(f.originalLine-1-n),n=f.originalLine-1,b+=vi.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null)h=this._names.indexOf(f.name),b+=vi.encode(h-o),o=h}e+=b}return e};Ol.prototype._generateSourcesContent=function l(t,i){return t.map(function(r){if(!this._sourcesContents)return null;if(i!=null)r=gl.relative(i,r);var n=gl.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};Ol.prototype.toJSON=function l(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)t.file=this._file;if(this._sourceRoot!=null)t.sourceRoot=this._sourceRoot;if(this._sourcesContents)t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot);return t};Ol.prototype.toString=function l(){return JSON.stringify(this.toJSON())};var fn=Ol;var Pe=new Set(["Atrule","Selector","Declaration"]);function Ie(l){let t=new fn,i={line:1,column:0},r={line:0,column:0},n={line:1,column:0},o={generated:n},g=1,e=0,b=!1,f=l.node;l.node=function(m){if(m.loc&&m.loc.start&&Pe.has(m.type)){let u=m.loc.start.line,X=m.loc.start.column-1;if(r.line!==u||r.column!==X){if(r.line=u,r.column=X,i.line=g,i.column=e,b){if(b=!1,i.line!==n.line||i.column!==n.column)t.addMapping(o)}b=!0,t.addMapping({source:m.loc.source,original:r,generated:i})}}if(f.call(this,m),b&&Pe.has(m.type))n.line=g,n.column=e};let h=l.emit;l.emit=function(m,u,X){for(let Z=0;Zqw,safe:()=>bn});var vw=43,$w=45,en=(l,t)=>{if(l===s)l=t;if(typeof l==="string"){let i=l.charCodeAt(0);return i>127?32768:i<<8}return l},Ze=[[w,w],[w,v],[w,il],[w,wl],[w,"-"],[w,$],[w,U],[w,O],[w,cl],[w,j],[S,w],[S,v],[S,il],[S,wl],[S,"-"],[S,$],[S,U],[S,O],[S,cl],[E,w],[E,v],[E,il],[E,wl],[E,"-"],[E,$],[E,U],[E,O],[E,cl],[O,w],[O,v],[O,il],[O,wl],[O,"-"],[O,$],[O,U],[O,O],[O,cl],["#",w],["#",v],["#",il],["#",wl],["#","-"],["#",$],["#",U],["#",O],["#",cl],["-",w],["-",v],["-",il],["-",wl],["-","-"],["-",$],["-",U],["-",O],["-",cl],[$,w],[$,v],[$,il],[$,wl],[$,$],[$,U],[$,O],[$,"%"],[$,cl],["@",w],["@",v],["@",il],["@",wl],["@","-"],["@",cl],[".",$],[".",U],[".",O],["+",$],["+",U],["+",O],["/","*"]],_w=Ze.concat([[w,E],[O,E],[E,E],[S,j],[S,el],[S,P],[U,U],[U,O],[U,v],[U,"-"],[a,w],[a,v],[a,U],[a,O],[a,E],[a,"-"]]);function Te(l){let t=new Set(l.map(([i,r])=>en(i)<<16|en(r)));return function(i,r,n){let o=en(r,n),g=n.charCodeAt(0);if(g===$w&&r!==w&&r!==v&&r!==cl||g===vw?t.has(i<<16|g<<8):t.has(i<<16|o))this.emit(" ",Y,!0);return o}}var qw=Te(Ze),bn=Te(_w);var sw=92;function Jw(l,t){if(typeof t==="function"){let i=null;l.children.forEach((r)=>{if(i!==null)t.call(this,i);this.node(r),i=r});return}l.children.forEach(this.node,this)}function Dw(l){gt(l,(t,i,r)=>{this.token(t,l.slice(i,r))})}function de(l){let t=new Map;for(let[i,r]of Object.entries(l.node))if(typeof(r.generate||r)==="function")t.set(i,r.generate||r);return function(i,r){let n="",o=0,g={node(b){if(t.has(b.type))t.get(b.type).call(e,b);else throw new Error("Unknown node type: "+b.type)},tokenBefore:bn,token(b,f){if(o=this.tokenBefore(o,b,f),this.emit(f,b,!1),b===s&&f.charCodeAt(0)===sw)this.emit(` -`,Y,!0)},emit(b){n+=b},result(){return n}};if(r){if(typeof r.decorator==="function")g=r.decorator(g);if(r.sourceMap)g=Ie(g);if(r.mode in hr)g.tokenBefore=hr[r.mode]}let e={node:(b)=>g.node(b),children:Jw,token:(b,f)=>g.token(b,f),tokenize:Dw};return g.node(i),g.result()}}function lb(l){return{fromPlainObject(t){return l(t,{enter(i){if(i.children&&i.children instanceof tl===!1)i.children=new tl().fromArray(i.children)}}),t},toPlainObject(t){return l(t,{leave(i){if(i.children&&i.children instanceof tl)i.children=i.children.toArray()}}),t}}}var{hasOwnProperty:hn}=Object.prototype,$i=function(){};function tb(l){return typeof l==="function"?l:$i}function ib(l,t){return function(i,r,n){if(i.type===t)l.call(this,i,r,n)}}function Xw(l,t){let i=t.structure,r=[];for(let n in i){if(hn.call(i,n)===!1)continue;let o=i[n],g={name:n,type:!1,nullable:!1};if(!Array.isArray(o))o=[o];for(let e of o)if(e===null)g.nullable=!0;else if(typeof e==="string")g.type="node";else if(Array.isArray(e))g.type="list";if(g.type)r.push(g)}if(r.length)return{context:t.walkContext,fields:r};return null}function Ww(l){let t={};for(let i in l.node)if(hn.call(l.node,i)){let r=l.node[i];if(!r.structure)throw new Error("Missed `structure` field in `"+i+"` node type definition");t[i]=Xw(i,r)}return t}function rb(l,t){let i=l.fields.slice(),r=l.context,n=typeof r==="string";if(t)i.reverse();return function(o,g,e,b){let f;if(n)f=g[r],g[r]=o;for(let h of i){let c=o[h.name];if(!h.nullable||c){if(h.type==="list"){if(t?c.reduceRight(b,!1):c.reduce(b,!1))return!0}else if(e(c))return!0}}if(n)g[r]=f}}function nb({StyleSheet:l,Atrule:t,Rule:i,Block:r,DeclarationList:n}){return{Atrule:{StyleSheet:l,Atrule:t,Rule:i,Block:r},Rule:{StyleSheet:l,Atrule:t,Rule:i,Block:r},Declaration:{StyleSheet:l,Atrule:t,Rule:i,Block:r,DeclarationList:n}}}function ob(l){let t=Ww(l),i={},r={},n=Symbol("break-walk"),o=Symbol("skip-node");for(let f in t)if(hn.call(t,f)&&t[f]!==null)i[f]=rb(t[f],!1),r[f]=rb(t[f],!0);let g=nb(i),e=nb(r),b=function(f,h){function c(J,H,fl){let K=m.call(L,J,H,fl);if(K===n)return!0;if(K===o)return!1;if(X.hasOwnProperty(J.type)){if(X[J.type](J,L,c,Z))return!0}if(u.call(L,J,H,fl)===n)return!0;return!1}let m=$i,u=$i,X=i,Z=(J,H,fl,K)=>J||c(H,fl,K),L={break:n,skip:o,root:f,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof h==="function")m=h;else if(h){if(m=tb(h.enter),u=tb(h.leave),h.reverse)X=r;if(h.visit){if(g.hasOwnProperty(h.visit))X=h.reverse?e[h.visit]:g[h.visit];else if(!t.hasOwnProperty(h.visit))throw new Error("Bad value `"+h.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");m=ib(m,h.visit),u=ib(u,h.visit)}}if(m===$i&&u===$i)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(f)};return b.break=n,b.skip=o,b.find=function(f,h){let c=null;return b(f,function(m,u,X){if(h.call(this,m,u,X))return c=m,n}),c},b.findLast=function(f,h){let c=null;return b(f,{reverse:!0,enter(m,u,X){if(h.call(this,m,u,X))return c=m,n}}),c},b.findAll=function(f,h){let c=[];return b(f,function(m,u,X){if(h.call(this,m,u,X))c.push(m)}),c},b}function Ow(l){return l}function jw(l){let{min:t,max:i,comma:r}=l;if(t===0&&i===0)return r?"#?":"*";if(t===0&&i===1)return"?";if(t===1&&i===0)return r?"#":"+";if(t===1&&i===1)return"";return(r?"#":"")+(t===i?"{"+t+"}":"{"+t+","+(i!==0?i:"")+"}")}function Yw(l){switch(l.type){case"Range":return" ["+(l.min===null?"-∞":l.min)+","+(l.max===null?"∞":l.max)+"]";default:throw new Error("Unknown node type `"+l.type+"`")}}function Qw(l,t,i,r){let n=l.combinator===" "||r?l.combinator:" "+l.combinator+" ",o=l.terms.map((g)=>cr(g,t,i,r)).join(n);if(l.explicit||i)return(r||o[0]===","?"[":"[ ")+o+(r?"]":" ]");return o}function cr(l,t,i,r){let n;switch(l.type){case"Group":n=Qw(l,t,i,r)+(l.disallowEmpty?"!":"");break;case"Multiplier":return cr(l.term,t,i,r)+t(jw(l),l);case"Boolean":n="";break;case"Type":n="<"+l.name+(l.opts?t(Yw(l.opts),l.opts):"")+">";break;case"Property":n="<'"+l.name+"'>";break;case"Keyword":n=l.name;break;case"AtKeyword":n="@"+l.name;break;case"Function":n=l.name+"(";break;case"String":case"Token":n=l.value;break;case"Comma":n=",";break;default:throw new Error("Unknown node type `"+l.type+"`")}return t(n,l)}function Kt(l,t){let i=Ow,r=!1,n=!1;if(typeof t==="function")i=t;else if(t){if(r=Boolean(t.forceBraces),n=Boolean(t.compact),typeof t.decorate==="function")i=t.decorate}return cr(l,i,r,n)}var gb={offset:0,line:1,column:1};function Gw(l,t){let{tokens:i,longestMatch:r}=l,n=r1)h=mr(o||t,"end")||_i(gb,f),c=_i(h);else h=mr(o,"start")||_i(mr(t,"start")||gb,f.slice(0,g)),c=mr(o,"end")||_i(h,f.substr(g,e));return{css:f,mismatchOffset:g,mismatchLength:e,start:h,end:c}}function mr(l,t){let i=l&&l.loc&&l.loc[t];if(i)return"line"in i?_i(i):i;return null}function _i({offset:l,line:t,column:i},r){let n={offset:l,line:t,column:i};if(r){let o=r.split(/\n|\r\n?|\f/);n.offset+=r.length,n.line+=o.length-1,n.column=o.length===1?n.column+r.length:o.pop().length+1}return n}var Rt=function(l,t){let i=vt("SyntaxReferenceError",l+(t?" `"+t+"`":""));return i.reference=t,i},fb=function(l,t,i,r){let n=vt("SyntaxMatchError",l),{css:o,mismatchOffset:g,mismatchLength:e,start:b,end:f}=Gw(r,i);return n.rawMessage=l,n.syntax=t?Kt(t):"",n.css=o,n.mismatchOffset=g,n.mismatchLength=e,n.message=l+` - syntax: `+n.syntax+` - value: `+(o||"")+` - --------`+new Array(n.mismatchOffset+1).join("-")+"^",Object.assign(n,b),n.loc={source:i&&i.loc&&i.loc.source||"",start:b,end:f},n};var wr=new Map,yt=new Map;var pr=Bw,cn=Vw;function ur(l,t){return t=t||0,l.length-t>=2&&l.charCodeAt(t)===45&&l.charCodeAt(t+1)===45}function eb(l,t){if(t=t||0,l.length-t>=3){if(l.charCodeAt(t)===45&&l.charCodeAt(t+1)!==45){let i=l.indexOf("-",t+2);if(i!==-1)return l.substring(t,i+1)}}return""}function Bw(l){if(wr.has(l))return wr.get(l);let t=l.toLowerCase(),i=wr.get(t);if(i===void 0){let r=ur(t,0),n=!r?eb(t,0):"";i=Object.freeze({basename:t.substr(n.length),name:t,prefix:n,vendor:n,custom:r})}return wr.set(l,i),i}function Vw(l){if(yt.has(l))return yt.get(l);let t=l,i=l[0];if(i==="/")i=l[1]==="/"?"//":"/";else if(i!=="_"&&i!=="*"&&i!=="$"&&i!=="#"&&i!=="+"&&i!=="&")i="";let r=ur(t,i.length);if(!r){if(t=t.toLowerCase(),yt.has(t)){let e=yt.get(t);return yt.set(l,e),e}}let n=!r?eb(t,i.length):"",o=t.substr(0,i.length+n.length),g=Object.freeze({basename:t.substr(o.length),name:t.substr(i.length),hack:i,vendor:n,prefix:o,custom:r});return yt.set(l,g),g}var Mt=["initial","inherit","unset","revert","revert-layer"];var si=43,Al=45,mn=110,Ut=!0,Ew=!1;function pn(l,t){return l!==null&&l.type===s&&l.value.charCodeAt(0)===t}function qi(l,t,i){while(l!==null&&(l.type===Y||l.type===A))l=i(++t);return t}function ft(l,t,i,r){if(!l)return 0;let n=l.value.charCodeAt(t);if(n===si||n===Al){if(i)return 0;t++}for(;t6)return 0}return r}function zr(l,t,i){if(!l)return 0;while(zn(i(t),hb)){if(++l>6)return 0;t++}return t}function xn(l,t){let i=0;if(l===null||l.type!==w||!Il(l.value,0,Hw))return 0;if(l=t(++i),l===null)return 0;if(zn(l,Lw)){if(l=t(++i),l===null)return 0;if(l.type===w)return zr(Ji(l,0,!0),++i,t);if(zn(l,hb))return zr(1,++i,t);return 0}if(l.type===$){let r=Ji(l,1,!0);if(r===0)return 0;if(l=t(++i),l===null)return i;if(l.type===O||l.type===$){if(!Kw(l,bb)||!Ji(l,1,!1))return 0;return i+1}return zr(r,i,t)}if(l.type===O)return zr(Ji(l,1,!0),++i,t);return 0}var Rw=["calc(","-moz-calc(","-webkit-calc("],an=new Map([[v,a],[j,a],[bl,pl],[N,ml]]);function Ql(l,t){return tl.max&&typeof l.max!=="string")return!0}return!1}function yw(l,t){let i=0,r=[],n=0;l:do{switch(l.type){case ml:case a:case pl:if(l.type!==i)break l;if(i=r.pop(),r.length===0){n++;break l}break;case v:case j:case bl:case N:r.push(i),i=an.get(l.type);break}n++}while(l=t(n));return n}function jl(l){return function(t,i,r){if(t===null)return 0;if(t.type===v&&mb(t.value,Rw))return yw(t,i);return l(t,i,r)}}function C(l){return function(t){if(t===null||t.type!==l)return 0;return 1}}function Mw(l){if(l===null||l.type!==w)return 0;let t=l.value.toLowerCase();if(mb(t,Mt))return 0;if(cb(t,"default"))return 0;return 1}function pb(l){if(l===null||l.type!==w)return 0;if(Ql(l.value,0)!==45||Ql(l.value,1)!==45)return 0;return 1}function Uw(l){if(!pb(l))return 0;if(l.value==="--")return 0;return 1}function Aw(l){if(l===null||l.type!==E)return 0;let t=l.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let i=1;iip,semitones:()=>fp,resolution:()=>np,length:()=>lp,frequency:()=>rp,flex:()=>op,decibel:()=>gp,angle:()=>tp});var lp=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],tp=["deg","grad","rad","turn"],ip=["s","ms"],rp=["hz","khz"],np=["dpi","dpcm","dppx","x"],op=["fr"],gp=["db"],fp=["st"];function vn(l,t,i){return Object.assign(vt("SyntaxError",l),{input:t,offset:i,rawMessage:l,message:l+` - `+t+` ---`+new Array((i||t.length)+1).join("-")+"^"})}var ep=9,bp=10,hp=12,cp=13,mp=32,xb=new Uint8Array(128).map((l,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class $n{constructor(l){this.str=l,this.pos=0}charCodeAt(l){return l=128||xb[t]===0)break}if(this.pos===l)this.error("Expect a keyword");return this.substringToPos(l)}scanNumber(){let l=this.pos;for(;l57)break}if(this.pos===l)this.error("Expect a number");return this.substringToPos(l)}scanString(){let l=this.str.indexOf("'",this.pos+1);if(l===-1)this.pos=this.str.length,this.error("Expect an apostrophe");return this.substringToPos(l+1)}}var wp=9,pp=10,up=12,zp=13,xp=32,Db=33,Jn=35,ab=38,vr=39,Xb=40,ap=41,Wb=42,Dn=43,Xn=44,vb=45,Wn=60,qn=62,sn=63,vp=64,Di=91,Xi=93,$r=123,$b=124,_b=125,qb=8734,sb={" ":1,"&&":2,"||":3,"|":4};function Jb(l){let t=null,i=null;if(l.eat($r),l.skipWs(),t=l.scanNumber(l),l.skipWs(),l.charCode()===Xn){if(l.pos++,l.skipWs(),l.charCode()!==_b)i=l.scanNumber(l),l.skipWs()}else i=t;return l.eat(_b),{min:Number(t),max:i?Number(i):0}}function $p(l){let t=null,i=!1;switch(l.charCode()){case Wb:l.pos++,t={min:0,max:0};break;case Dn:l.pos++,t={min:1,max:0};break;case sn:l.pos++,t={min:0,max:1};break;case Jn:if(l.pos++,i=!0,l.charCode()===$r)t=Jb(l);else if(l.charCode()===sn)l.pos++,t={min:0,max:0};else t={min:1,max:0};break;case $r:t=Jb(l);break;default:return null}return{type:"Multiplier",comma:i,min:t.min,max:t.max,term:null}}function et(l,t){let i=$p(l);if(i!==null){if(i.term=t,l.charCode()===Jn&&l.charCodeAt(l.pos-1)===Dn)return et(l,i);return i}return t}function _n(l){let t=l.peek();if(t==="")return null;return et(l,{type:"Token",value:t})}function _p(l){let t;return l.eat(Wn),l.eat(vr),t=l.scanWord(),l.eat(vr),l.eat(qn),et(l,{type:"Property",name:t})}function qp(l){let t=null,i=null,r=1;if(l.eat(Di),l.charCode()===vb)l.peek(),r=-1;if(r==-1&&l.charCode()===qb)l.peek();else if(t=r*Number(l.scanNumber(l)),l.isNameCharCode())t+=l.scanWord();if(l.skipWs(),l.eat(Xn),l.skipWs(),l.charCode()===qb)l.peek();else{if(r=1,l.charCode()===vb)l.peek(),r=-1;if(i=r*Number(l.scanNumber(l)),l.isNameCharCode())i+=l.scanWord()}return l.eat(Xi),{type:"Range",min:t,max:i}}function sp(l){let t,i=null;if(l.eat(Wn),t=l.scanWord(),t==="boolean-expr"){l.eat(Di);let r=On(l,Xi);return l.eat(Xi),l.eat(qn),et(l,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}if(l.charCode()===Xb&&l.nextCharCode()===ap)l.pos+=2,t+="()";if(l.charCodeAt(l.findWsEnd(l.pos))===Di)l.skipWs(),i=qp(l);return l.eat(qn),et(l,{type:"Type",name:t,opts:i})}function Jp(l){let t=l.scanWord();if(l.charCode()===Xb)return l.pos++,{type:"Function",name:t};return et(l,{type:"Keyword",name:t})}function Dp(l,t){function i(n,o){return{type:"Group",terms:n,combinator:o,disallowEmpty:!1,explicit:!1}}let r;t=Object.keys(t).sort((n,o)=>sb[n]-sb[o]);while(t.length>0){r=t.shift();let n=0,o=0;for(;n1)l.splice(o,n-o,i(l.slice(o,n),r)),n=o+1;o=-1}}if(o!==-1&&t.length)l.splice(o,n-o,i(l.slice(o,n),r))}return r}function On(l,t){let i=Object.create(null),r=[],n,o=null,g=l.pos;while(l.charCode()!==t&&(n=Wp(l,t)))if(n.type!=="Spaces"){if(n.type==="Combinator"){if(o===null||o.type==="Combinator")l.pos=g,l.error("Unexpected combinator");i[n.value]=!0}else if(o!==null&&o.type!=="Combinator")i[" "]=!0,r.push({type:"Combinator",value:" "});r.push(n),o=n,g=l.pos}if(o!==null&&o.type==="Combinator")l.pos-=g,l.error("Unexpected combinator");return{type:"Group",terms:r,combinator:Dp(r,i)||" ",disallowEmpty:!1,explicit:!1}}function Xp(l,t){let i;if(l.eat(Di),i=On(l,t),l.eat(Xi),i.explicit=!0,l.charCode()===Db)l.pos++,i.disallowEmpty=!0;return i}function Wp(l,t){let i=l.charCode();switch(i){case Xi:break;case Di:return et(l,Xp(l,t));case Wn:return l.nextCharCode()===vr?_p(l):sp(l);case $b:return{type:"Combinator",value:l.substringToPos(l.pos+(l.nextCharCode()===$b?2:1))};case ab:return l.pos++,l.eat(ab),{type:"Combinator",value:"&&"};case Xn:return l.pos++,{type:"Comma"};case vr:return et(l,{type:"String",value:l.scanString()});case xp:case wp:case pp:case zp:case up:return{type:"Spaces",value:l.scanSpaces()};case vp:if(i=l.nextCharCode(),l.isNameCharCode(i))return l.pos++,{type:"AtKeyword",name:l.scanWord()};return _n(l);case Wb:case Dn:case sn:case Jn:case Db:break;case $r:if(i=l.nextCharCode(),i<48||i>57)return _n(l);break;default:if(l.isNameCharCode(i))return Jp(l);return _n(l)}}function Wi(l){let t=new $n(l),i=On(t);if(t.pos!==l.length)t.error("Unexpected input");if(i.terms.length===1&&i.terms[0].type==="Group")return i.terms[0];return i}var Oi=function(){};function Ob(l){return typeof l==="function"?l:Oi}function jn(l,t,i){function r(g){switch(n.call(i,g),g.type){case"Group":g.terms.forEach(r);break;case"Multiplier":case"Boolean":r(g.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+g.type)}o.call(i,g)}let n=Oi,o=Oi;if(typeof t==="function")n=t;else if(t)n=Ob(t.enter),o=Ob(t.leave);if(n===Oi&&o===Oi)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(l,i)}var jp={decorator(l){let t=[],i=null;return{...l,node(r){let n=i;i=r,l.node.call(this,r),i=n},emit(r,n,o){t.push({type:n,value:r,node:o?null:i})},result(){return t}}}};function Yp(l){let t=[];return gt(l,(i,r,n)=>t.push({type:i,value:l.slice(r,n),node:null})),t}function Yn(l,t){if(typeof l==="string")return Yp(l);return t.generate(l,jp)}var y={type:"Match"},k={type:"Mismatch"},_r={type:"DisallowEmpty"},Qp=40,Gp=41;function xl(l,t,i){if(t===y&&i===k)return l;if(l===y&&t===y&&i===y)return l;if(l.type==="If"&&l.else===k&&t===y)t=l.then,l=l.match;return{type:"If",match:l,then:t,else:i}}function Yb(l){return l.length>2&&l.charCodeAt(l.length-2)===Qp&&l.charCodeAt(l.length-1)===Gp}function jb(l){return l.type==="Keyword"||l.type==="AtKeyword"||l.type==="Function"||l.type==="Type"&&Yb(l.name)}function bt(l,t=" ",i=!1){return{type:"Group",terms:l,combinator:t,disallowEmpty:!1,explicit:i}}function ji(l,t,i=new Set){if(!i.has(l))switch(i.add(l),l.type){case"If":l.match=ji(l.match,t,i),l.then=ji(l.then,t,i),l.else=ji(l.else,t,i);break;case"Type":return t[l.name]||l}return l}function Qn(l,t,i){switch(l){case" ":{let r=y;for(let n=t.length-1;n>=0;n--){let o=t[n];r=xl(o,r,k)}return r}case"|":{let r=k,n=null;for(let o=t.length-1;o>=0;o--){let g=t[o];if(jb(g)){if(n===null&&o>0&&jb(t[o-1]))n=Object.create(null),r=xl({type:"Enum",map:n},y,r);if(n!==null){let e=(Yb(g.name)?g.name.slice(0,-1):g.name).toLowerCase();if(e in n===!1){n[e]=g;continue}}}n=null,r=xl(g,y,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=k;for(let n=t.length-1;n>=0;n--){let o=t[n],g;if(t.length>1)g=Qn(l,t.filter(function(e){return e!==o}),!1);else g=y;r=xl(o,g,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=i?y:k;for(let n=t.length-1;n>=0;n--){let o=t[n],g;if(t.length>1)g=Qn(l,t.filter(function(e){return e!==o}),!0);else g=y;r=xl(o,g,r)}return r}}}function Bp(l){let t=y,i=At(l.term);if(l.max===0){if(i=xl(i,_r,k),t=xl(i,null,k),t.then=xl(y,y,t),l.comma)t.then.else=xl({type:"Comma",syntax:l},t,k)}else for(let r=l.min||1;r<=l.max;r++){if(l.comma&&t!==y)t=xl({type:"Comma",syntax:l},t,k);t=xl(i,xl(y,y,t),k)}if(l.min===0)t=xl(y,y,t);else for(let r=0;r=65&&n<=90)n=n|32;if(n!==r)return!1}return!0}function Rp(l){if(l.type!==s)return!1;return l.value!=="?"}function Vb(l){if(l===null)return!0;return l.type===ll||l.type===v||l.type===j||l.type===bl||l.type===N||Rp(l)}function Fb(l){if(l===null)return!0;return l.type===a||l.type===pl||l.type===ml||l.type===s&&l.value==="/"}function yp(l,t,i){function r(){do H++,J=Hfl)fl=H}function f(){c={syntax:t.syntax,opts:t.syntax.opts||c!==null&&c.opts||null,prev:c},K={type:Bn,syntax:t.syntax,token:K.token,prev:K}}function h(){if(K.type===Bn)K=K.prev;else K={type:Eb,syntax:c.syntax,token:K.token,prev:K};c=c.prev}let c=null,m=null,u=null,X=null,Z=0,L=null,J=null,H=-1,fl=0,K={type:Vp,syntax:null,token:null,prev:null};r();while(L===null&&++Zu.tokenIndex)u=X,X=!1}else if(u===null){L=Ep;break}t=u.nextState,m=u.thenStack,c=u.syntaxStack,K=u.matchStack,H=u.tokenIndex,J=HH){while(H":"<'"+t.name+"'>"));if(X!==!1&&J!==null&&t.type==="Type"){if(t.name==="custom-ident"&&J.type===w||t.name==="length"&&J.value==="0"){if(X===null)X=o(t,u);t=k;break}}f(),t=T.matchRef||T.match;break}case"Keyword":{let M=t.name;if(J!==null){let T=J.value;if(T.indexOf("\\")!==-1)T=T.replace(/\\[09].*$/,"");if(Gn(T,M)){b(),t=y;break}}t=k;break}case"AtKeyword":case"Function":if(J!==null&&Gn(J.value,t.name)){b(),t=y;break}t=k;break;case"Token":if(J!==null&&J.value===t.value){b(),t=y;break}t=k;break;case"Comma":if(J!==null&&J.type===ll)if(Vb(K.token))t=k;else b(),t=Fb(J)?k:y;else t=Vb(K.token)||Fb(J)?y:k;break;case"String":let B="",V=H;for(;VMp,isProperty:()=>Up,isKeyword:()=>Ap,getTrace:()=>Lb});function Lb(l){function t(n){if(n===null)return!1;return n.type==="Type"||n.type==="Property"||n.type==="Keyword"}function i(n){if(Array.isArray(n.match)){for(let o=0;oi.type==="Type"&&i.name===t)}function Up(l,t){return Fn(this,l,(i)=>i.type==="Property"&&i.name===t)}function Ap(l){return Fn(this,l,(t)=>t.type==="Keyword")}function Fn(l,t,i){let r=Lb.call(l,t);if(r===null)return!1;return r.some(i)}function Hb(l){if("node"in l)return l.node;return Hb(l.match[0])}function Kb(l){if("node"in l)return l.node;return Kb(l.match[l.match.length-1])}function Ln(l,t,i,r,n){function o(e){if(e.syntax!==null&&e.syntax.type===r&&e.syntax.name===n){let b=Hb(e),f=Kb(e);l.syntax.walk(t,function(h,c,m){if(h===b){let u=new tl;do{if(u.appendData(c.data),c.data===f)break;c=c.next}while(c!==null);g.push({parent:m,nodes:u})}})}if(Array.isArray(e.match))e.match.forEach(o)}let g=[];if(i.matched!==null)o(i.matched);return g}var{hasOwnProperty:Qi}=Object.prototype;function Hn(l){return typeof l==="number"&&isFinite(l)&&Math.floor(l)===l&&l>=0}function Rb(l){return Boolean(l)&&Hn(l.offset)&&Hn(l.line)&&Hn(l.column)}function kp(l,t){return function i(r,n){if(!r||r.constructor!==Object)return n(r,"Type of node should be an Object");for(let o in r){let g=!0;if(Qi.call(r,o)===!1)continue;if(o==="type"){if(r.type!==l)n(r,"Wrong node type `"+r.type+"`, expected `"+l+"`")}else if(o==="loc"){if(r.loc===null)continue;else if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!=="string")o+=".source";else if(!Rb(r.loc.start))o+=".start";else if(!Rb(r.loc.end))o+=".end";else continue;g=!1}else if(t.hasOwnProperty(o)){g=!1;for(let e=0;!g&&e");else throw new Error("Wrong value `"+n+"` in `"+t+"` structure definition")}return i.join(" | ")}function Sp(l,t){let i=t.structure,r={type:String,loc:!0},n={type:'"'+l+'"'};for(let o in i){if(Qi.call(i,o)===!1)continue;let g=r[o]=Array.isArray(i[o])?i[o].slice():[i[o]];n[o]=yb(g,l+"."+o)}return{docs:n,check:kp(l,r)}}function Mb(l){let t={};if(l.node){for(let i in l.node)if(Qi.call(l.node,i)){let r=l.node[i];if(r.structure)t[i]=Sp(i,r);else throw new Error("Missed `structure` field in `"+i+"` node type definition")}}return t}function Kn(l,t,i){let r={};for(let n in l)if(l[n].syntax)r[n]=i?l[n].syntax:Kt(l[n].syntax,{compact:t});return r}function Np(l,t,i){let r={};for(let[n,o]of Object.entries(l))r[n]={prelude:o.prelude&&(i?o.prelude.syntax:Kt(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&Kn(o.descriptors,t,i)};return r}function Cp(l){for(let t=0;t{return i[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,l),i},Object.create(null)):null}}addProperty_(l,t){if(!t)return;this.properties[l]=this.createDescriptor(t,"Property",l)}addType_(l,t){if(!t)return;this.types[l]=this.createDescriptor(t,"Type",l)}checkAtruleName(l){if(!this.getAtrule(l))return new Rt("Unknown at-rule","@"+l)}checkAtrulePrelude(l,t){let i=this.checkAtruleName(l);if(i)return i;let r=this.getAtrule(l);if(!r.prelude&&t)return new SyntaxError("At-rule `@"+l+"` should not contain a prelude");if(r.prelude&&!t){if(!kt(this,r.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+l+"` should contain a prelude")}}checkAtruleDescriptorName(l,t){let i=this.checkAtruleName(l);if(i)return i;let r=this.getAtrule(l),n=pr(t);if(!r.descriptors)return new SyntaxError("At-rule `@"+l+"` has no known descriptors");if(!r.descriptors[n.name]&&!r.descriptors[n.basename])return new Rt("Unknown at-rule descriptor",t)}checkPropertyName(l){if(!this.getProperty(l))return new Rt("Unknown property",l)}matchAtrulePrelude(l,t){let i=this.checkAtrulePrelude(l,t);if(i)return Gl(null,i);let r=this.getAtrule(l);if(!r.prelude)return Gl(null,null);return kt(this,r.prelude,t||"",!1)}matchAtruleDescriptor(l,t,i){let r=this.checkAtruleDescriptorName(l,t);if(r)return Gl(null,r);let n=this.getAtrule(l),o=pr(t);return kt(this,n.descriptors[o.name]||n.descriptors[o.basename],i,!1)}matchDeclaration(l){if(l.type!=="Declaration")return Gl(null,new Error("Not a Declaration node"));return this.matchProperty(l.property,l.value)}matchProperty(l,t){if(cn(l).custom)return Gl(null,new Error("Lexer matching doesn't applicable for custom properties"));let i=this.checkPropertyName(l);if(i)return Gl(null,i);return kt(this,this.getProperty(l),t,!0)}matchType(l,t){let i=this.getType(l);if(!i)return Gl(null,new Rt("Unknown type",l));return kt(this,i,t,!1)}match(l,t){if(typeof l!=="string"&&(!l||!l.type))return Gl(null,new Rt("Bad syntax"));if(typeof l==="string"||!l.match)l=this.createDescriptor(l,"Type","anonymous");return kt(this,l,t,!1)}findValueFragments(l,t,i,r){return Ln(this,t,this.matchProperty(l,t),i,r)}findDeclarationValueFragments(l,t,i){return Ln(this,l.value,this.matchDeclaration(l),t,i)}findAllFragments(l,t,i){let r=[];return this.syntax.walk(l,{visit:"Declaration",enter:(n)=>{r.push.apply(r,this.findDeclarationValueFragments(n,t,i))}}),r}getAtrule(l,t=!0){let i=pr(l);return(i.vendor&&t?this.atrules[i.name]||this.atrules[i.basename]:this.atrules[i.name])||null}getAtrulePrelude(l,t=!0){let i=this.getAtrule(l,t);return i&&i.prelude||null}getAtruleDescriptor(l,t){return this.atrules.hasOwnProperty(l)&&this.atrules.declarators?this.atrules[l].declarators[t]||null:null}getProperty(l,t=!0){let i=cn(l);return(i.vendor&&t?this.properties[i.name]||this.properties[i.basename]:this.properties[i.name])||null}getType(l){return hasOwnProperty.call(this.types,l)?this.types[l]:null}validate(){function l(e,b){return b?`<${e}>`:`<'${e}'>`}function t(e,b,f,h){if(f.has(b))return f.get(b);if(f.set(b,!1),h.syntax!==null)jn(h.syntax,function(c){if(c.type!=="Type"&&c.type!=="Property")return;let m=c.type==="Type"?e.types:e.properties,u=c.type==="Type"?r:n;if(!hasOwnProperty.call(m,c.name))i.push(`${l(b,f===r)} used missed syntax definition ${l(c.name,c.type==="Type")}`),f.set(b,!0);else if(t(e,c.name,u,m[c.name]))i.push(`${l(b,f===r)} used broken syntax definition ${l(c.name,c.type==="Type")}`),f.set(b,!0)},this)}let i=[],r=new Map,n=new Map;for(let e in this.types)t(this,e,r,this.types[e]);for(let e in this.properties)t(this,e,n,this.properties[e]);let o=[...r.keys()].filter((e)=>r.get(e)),g=[...n.keys()].filter((e)=>n.get(e));if(o.length||g.length)return{errors:i,types:o,properties:g};return null}dump(l,t){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Kn(this.types,!t,l),properties:Kn(this.properties,!t,l),atrules:Np(this.atrules,!t,l)}}toString(){return JSON.stringify(this.dump())}}function Rn(l,t){if(typeof t==="string"&&/^\s*\|/.test(t))return typeof l==="string"?l+t:t.replace(/^\s*\|\s*/,"");return t||null}function Ub(l,t){let i=Object.create(null);for(let[r,n]of Object.entries(l))if(n){i[r]={};for(let o of Object.keys(n))if(t.includes(o))i[r][o]=n[o]}return i}function Bi(l,t){let i={...l};for(let[r,n]of Object.entries(t))switch(r){case"generic":i[r]=Boolean(n);break;case"cssWideKeywords":i[r]=l[r]?[...l[r],...n]:n||[];break;case"units":i[r]={...l[r]};for(let[o,g]of Object.entries(n))i[r][o]=Array.isArray(g)?g:[];break;case"atrules":i[r]={...l[r]};for(let[o,g]of Object.entries(n)){let e=i[r][o]||{},b=i[r][o]={prelude:e.prelude||null,descriptors:{...e.descriptors}};if(!g)continue;b.prelude=g.prelude?Rn(b.prelude,g.prelude):b.prelude||null;for(let[f,h]of Object.entries(g.descriptors||{}))b.descriptors[f]=h?Rn(b.descriptors[f],h):null;if(!Object.keys(b.descriptors).length)b.descriptors=null}break;case"types":case"properties":i[r]={...l[r]};for(let[o,g]of Object.entries(n))i[r][o]=Rn(i[r][o],g);break;case"scope":case"features":i[r]={...l[r]};for(let[o,g]of Object.entries(n))i[r][o]={...i[r][o],...g};break;case"parseContext":i[r]={...l[r],...n};break;case"atrule":case"pseudo":i[r]={...l[r],...Ub(n,["parse"])};break;case"node":i[r]={...l[r],...Ub(n,["name","structure","parse","generate","walkContext"])};break}return i}function Ab(l){let t=Be(l),i=ob(l),r=de(l),{fromPlainObject:n,toPlainObject:o}=lb(i),g={lexer:null,createLexer:(e)=>new Gi(e,g,g.lexer.structure),tokenize:gt,parse:t,generate:r,walk:i,find:i.find,findLast:i.findLast,findAll:i.findAll,fromPlainObject:n,toPlainObject:o,fork(e){let b=Bi({},l);return Ab(typeof e==="function"?e(b):Bi(b,e))}};return g.lexer=new Gi({generic:l.generic,cssWideKeywords:l.cssWideKeywords,units:l.units,types:l.types,atrules:l.atrules,properties:l.properties,node:l.node},g),g}var yn=(l)=>Ab(Bi({},l));var kb={generic:!0,cssWideKeywords:["initial","inherit","unset","revert","revert-layer"],units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|x|y","baseline-position":"[first|last]? baseline","basic-shape":"||||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|currentColor||||<-non-standard-color>","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ","color-interpolation-method":"in [| ?|]",combinator:"'>'|'+'|'~'|['|' '|']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? *]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ ? )]|[( ? )]","generic-family":"|||<-non-standard-generic-family>","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hue-interpolation-method":"[shorter|longer|increasing|decreasing] hue","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|| ","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","light-dark()":"light-dark( , )","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [[|to ]||]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )","polar-color-space":"hsl|hwb|lch|oklch",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' |","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","ray()":"ray( &&?&&contain?&&[at ]? )","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","rectangular-color-space":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020|lab|oklab|xyz|xyz-d50|xyz-d65","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )","scroll()":"scroll( [||]? )",scroller:"root|nearest|self","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"<'animation-duration'>||||<'animation-delay'>||||||||||[none|]||","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|||","single-transition":"[none|]||