astro-ghostcms/.pnpm-store/v3/files/1f/2f3ca61171116ac70b1926cb9bf...

7 lines
203 KiB
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
var kl=Object.create;var Pr=Object.defineProperty;var Tl=Object.getOwnPropertyDescriptor;var Al=Object.getOwnPropertyNames;var Ol=Object.getPrototypeOf,Pl=Object.prototype.hasOwnProperty;var vn=(e,t)=>()=>(e&&(t=e(e=0)),t);var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yn=(e,t)=>{for(var n in t)Pr(e,n,{get:t[n],enumerable:!0})},Go=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Al(t))!Pl.call(e,i)&&i!==n&&Pr(e,i,{get:()=>t[i],enumerable:!(r=Tl(t,i))||r.enumerable});return e};var Bl=(e,t,n)=>(n=e!=null?kl(Ol(e)):{},Go(t||!e||!e.__esModule?Pr(n,"default",{value:e,enumerable:!0}):n,e)),Br=e=>Go(Pr({},"__esModule",{value:!0}),e);var jo={};yn(jo,{getYogaModule:()=>Il});async function Il(){let{default:e}=await import("yoga-wasm-web/asm");return e()}var Ho=vn(()=>{});var Xn=T(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Object.defineProperty(Yn,"default",{enumerable:!0,get:()=>zf});function zf(e){if(e=`${e}`,e==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,t=>t==="-"?"":"-");if(e.includes("var(")||e.includes("calc("))return`calc(${e} * -1)`}});var zu=T(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Object.defineProperty(Qn,"default",{enumerable:!0,get:()=>Uf});var Uf=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]});var Uu=T(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Object.defineProperty(Kn,"default",{enumerable:!0,get:()=>Gf});function Gf(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}});var Jn=T((sb,Gu)=>{Gu.export
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function Tc(e,t){if(e){if(typeof e=="string")return as(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return as(e,t)}}function as(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ac(e,t,n){return t&&ls(e.prototype,t),n&&ls(e,n),e}function Oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,si(e,t)}function si(e,t){return si=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},si(e,t)}var Pc=function(e){Oc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var o;for(var u in this.indexes)o=this.indexes[u],o>=i&&(this.indexes[u]=o-1);return this},n.removeAll=function(){for(var i=kc(this.nodes),o;!(o=i()).done;){var u=o.value;u.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,o){o.parent=this;var u=this.index(i);this.nodes.splice(u+1,0,o),o.parent=this;var s;for(var a in this.indexes)s=this.indexes[a],u<=s&&(this.indexes[a]=s+1);return this},n.insertBefore=function(i,o){o.parent=this;var u=this.index(i);this.nodes.splice(u,0,o),o.parent=this;var s;for(var a in this.indexes)s=this.indexes[a],s<=u&&(this.indexes[a]=s+1);return this},n._findChildAtPosition=function(i,o){var u=void 0;return this.each(function(s){if(s.atPosition){var a=s.atPosition(i,o);if(a)return u=a,!1}else if(s.isAtPosition(i,o))return u=s,!1}),u},n.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var u,s;this.indexes[o]<this.length&&(u=this.indexes[o],s=i(this.at(u),u),s!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],s===!1)return!1}},n.walk=function(i){return this.each(function(o,u){var s=i(o,u);if(s!==!1&&o.length&&(s=o.walk(i)),s===!1)return!1})},n.walkAttributes=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.ATTRIBUTE)return i.call(o,u)})},n.walkClasses=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.CLASS)return i.call(o,u)})},n.walkCombinators=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.COMBINATOR)return i.call(o,u)})},n.walkComments=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.COMMENT)return i.call(o,u)})},n.walkIds=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.ID)return i.call(o,u)})},n.walkNesting=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.NESTING)return i.call(o,u)})},n.walkPseudos=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.PSEUDO)return i.call(o,u)})},n.walkTags=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.TAG)return i.call(o,u)})},n.walkUniversals=function(i){var o=this;return this.walk(function(u){if(u.type===Ue.UNIVERSAL)return i.call(o,u)})},n.split=function(i){var o=this,u=[];return this.reduce(function(s,a,l){var f=i.call(o,a);return u.push(a),f?(s.push(u),u=[]):l===o.len
`),m=v.length-1,m>0?(b=u+m,y=D-v[m].length):(b=u,y=o),x=E.comment,u=b,d=b,c=D-y):l===E.slash?(D=s,x=l,d=u,c=s-o,a=D+1):(D=Wp(n,s),x=E.word,d=u,c=D-o),a=D+1;break}t.push([x,u,s-o,d,c,s,a]),y&&(o=y,y=null),s=a}return t}});var Vs=T((fr,Hs)=>{"use strict";fr.__esModule=!0;fr.default=void 0;var Up=Se(li()),$i=Se(ci()),Gp=Se(hi()),$s=Se(Di()),jp=Se(bi()),Hp=Se(xi()),qi=Se(wi()),Vp=Se(Si()),qs=ln(Oi()),Yp=Se(Bi()),zi=Se(Ri()),Xp=Se(Mi()),Qp=Se(Rs()),w=ln(Ws()),C=ln(Ni()),Kp=ln(pe()),re=jt(),st,Ui;function js(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return js=function(){return e},e}function ln(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=js();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Se(e){return e&&e.__esModule?e:{default:e}}function zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jp(e,t,n){return t&&zs(e.prototype,t),n&&zs(e,n),e}var Hi=(st={},st[C.space]=!0,st[C.cr]=!0,st[C.feed]=!0,st[C.newline]=!0,st[C.tab]=!0,st),Zp=Object.assign({},Hi,(Ui={},Ui[C.comment]=!0,Ui));function Us(e){return{line:e[w.FIELDS.START_LINE],column:e[w.FIELDS.START_COL]}}function Gs(e){return{line:e[w.FIELDS.END_LINE],column:e[w.FIELDS.END_COL]}}function at(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function wt(e){return at(e[w.FIELDS.START_LINE],e[w.FIELDS.START_COL],e[w.FIELDS.END_LINE],e[w.FIELDS.END_COL])}function Gi(e,t){if(e)return at(e[w.FIELDS.START_LINE],e[w.FIELDS.START_COL],t[w.FIELDS.END_LINE],t[w.FIELDS.END_COL])}function Et(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,re.ensureObject)(e,"raws"),e[t]=(0,re.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function ji(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function e0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var t0=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,w.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Gi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Up.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new $i.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[w.FIELDS.TYPE]!==C.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[w.FIELDS.TYPE]!==C.closeSquare)return this.expected("closing square bracket",this.currToken[w.FIELDS.START_POS]);var o=r.length,u={source:at(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[w.FIELDS.START_POS]};if(o===1&&!~[C.word].indexOf(r[0][w.FIELDS.TYPE]))return this.expected("attribute",r[0][w.FIELDS.START_POS]);for(var s=0,a="",l="",f=null,c=!1;s<o;){var d=r[s],h=this.content(d),p=r[s+1];switch(d[w.FIELDS.TYPE]){case C.space:if(c=!0,this.options.lossy)break;if(f){(0,re.ensureObject)(u,"spaces",f);var m=u.spaces[f].after||"";u.spaces[f].after=m+h;var v=(0,re.getProp)(u,"raws","spaces",f,"after")||null;v&&(u.raws.spaces[f].after=v+h)}else a=a+h,l=l+h;break;case C.asterisk:if(p[w.FIELDS.TYPE]===C.equals)u.operator=h,f="operator";else if((!u.namespace||f==="namespace"&&!c)&&p){a&&((0,re.ensureObject)(u,"spaces","attribute"),u.spaces.attribute.before=a,a=""),l&&((0,re.ensureObject)(u,"raws","spac
`+mu(u):`
in CSS rule \`${u}: ${s}\`.${mu(u)}`))}}}if(n.backgroundImage){let{backgrounds:i}=lf(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=hu(n));let r=Df(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=On(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&(o=n[i]=W(o,r,r,t,!0)/r);else{if(typeof o=="string"){let u=W(o,r,r,t);typeof u<"u"&&(n[i]=u),o=n[i]}if(typeof o=="string"||typeof o=="object"){let u=bu(o);u&&(n[i]=u),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let u=o;for(let s of u){let a=Object.keys(s)[0],l=s[a],f=typeof l=="string"?W(l,r,r,t)??l:l;s[a]=f}}if(i==="textShadowRadius"){let u=o;n.textShadowRadius=u.map(s=>W(s,r,0,t,!1))}if(i==="textShadowOffset"){let u=o;n.textShadowOffset=u.map(({height:s,width:a})=>({height:W(s,r,0,t,!1),width:W(a,r,0,t,!1)}))}}return n}function Df(e,t){if(typeof e=="number")return e;try{let n=new Qe(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function gu(e){if(e.startsWith("hsl")){let t=cf(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function gf(e,t){return e&&e.toLowerCase()!=="currentcolor"?gu(e):gu(t)}function bf(e,t){return e.replace(/currentcolor/gi,t)}function vf(e,t){return Rr(e)&&(e=bf(e,t)),e}async function Pn(e,t,n,r,i){let o=await qe(),u={...n,...qr(pu[t],n),...qr(r,n)};if(t==="img"){let[s,a,l]=await yt(i.src);if(a===void 0&&l===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");a=parseInt(i.width),l=parseInt(i.height)}let f=l/a,c=(u.borderLeftWidth||0)+(u.borderRightWidth||0)+(u.paddingLeft||0)+(u.paddingRight||0),d=(u.borderTopWidth||0)+(u.borderBottomWidth||0)+(u.paddingTop||0)+(u.paddingBottom||0),h=u.width||i.width,p=u.height||i.height,m=typeof h=="number"&&typeof p=="number";m&&(h-=c,p-=d),h===void 0&&p===void 0?(h="100%",e.setAspectRatio(1/f)):h===void 0?typeof p=="number"?h=p/f:e.setAspectRatio(1/f):p===void 0&&(typeof h=="number"?p=h*f:e.setAspectRatio(1/f)),u.width=m?h+c:h,u.height=m?p+d:p,u.__src=s}if(t==="svg"){let s=i.viewBox||i.viewbox,a=vt(s),l=a?a[3]/a[2]:null,{width:f,height:c}=i;typeof f>"u"&&c?l==null?f=0:typeof c=="string"&&c.endsWith("%")?f=parseInt(c)/l+"%":(c=W(c,n.fontSize,1,n),f=c/l):typeof c>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*l+"%":(f=W(f,n.fontSize,1,n),c=f*l):(typeof f<"u"&&(f=W(f,n.fontSize,1,n)||f),typeof c<"u"&&(c=W(c,n.fontSize,1,n)||c),f||=a==null?void 0:a[2],c||=a==null?void 0:a[3]),!u.width&&f&&(u.width=f),!u.height&&c&&(u.height=c)}return e.setDisplay(ve(u.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(ve(u.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(ve(u.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(ve(u.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(ve(u.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(ve(u.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection"))
`)return!0;let y=v(b);return y?(y._trackBrokenChars=[],y.stringToGlyphs(b),y._trackBrokenChars.length?(y._trackBrokenChars=void 0,!1):!0):!1},baseline:(b,y=typeof b>"u"?s[0]:h(b))=>{let F=p(y,!0),x=m(y,!0),k=D.height(b,y),{yMax:B,yMin:I}=y.tables.head,G=F-x,ue=(B/(B-I)-1)*G;return k*((1.2/n+1)/2)+ue},height:(b,y=typeof b>"u"?s[0]:h(b))=>(p(y)-m(y))*(n/1.2),measure:(b,y)=>this.measure(h,b,y),getSVG:(b,y)=>this.getSVG(h,b,y)};return D}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...u)=>{let s=i.call(t,o,...u);for(let a=0;a<s.length;a++)if(s[a].unicode===void 0){let l=r.shift(),f=n(l);if(f!==t){let c=f.charToGlyph(l),d=t.unitsPerEm/f.unitsPerEm,h=new Hn.Path;h.unitsPerEm=t.unitsPerEm,h.commands=c.path.commands.map(m=>{let v={...m};for(let D in v)typeof v[D]=="number"&&(v[D]*=d);return v});let p=new Hn.Glyph({...c,advanceWidth:c.advanceWidth*d,xMin:c.xMin*d,xMax:c.xMax*d,yMin:c.yMin*d,yMax:c.yMax*d,path:h});s[a]=p}}return s},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),u=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{u()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:u=0}){let s=t(n),a=this.patchFontFallbackResolver(s,t);try{return r===0?"":s.getPath(n.replace(/\n/g,""),o,i,r,{letterSpacing:u/r}).toPathData(1)}finally{a()}}};function qf(e){let t=e.split("_"),n=t[t.length-1];return n===qu?void 0:n}function Vn({width:e,height:t,content:n}){return S("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var yl=Bl(Ka());var _m=["ios","android","windows","macos","web"];function Za(e){return _m.includes(e)}var km=["portrait","landscape"];function el(e){return km.includes(e)}var Ja;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Ja||(Ja={}));var z;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(z||(z={}));function yo(e){return typeof e=="string"}function xo(e){return typeof e=="object"}var Fo;function g(e){return{kind:"complete",style:e}}function de(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",u=""]=e.split("/",2),s=de(o),a=de(u);return!s||!a?null:[s[0]/a[0],a[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,z.none];switch(i==null?void 0:i[1]){case"rem":return[r,z.rem];case"px":return[r,z.px];case"em":return[r,z.em];case"%":return[r,z.percent];case"vw":return[r,z.vw];case"vh":return[r,z.vh];default:return null}}function Ge(e,t,n={}){let r=Me(t,n);return r===null?null:g({[e]:r})}function pn(e,t,n){let r=Me(t);return r!==null&&(n[e]=r),n}function rl(e,t){let n=Me(t);return n===null?null:{[e]:n}}function Me(e,t={}){if(e===void 0)return null;let n=de(String(e),t);return n?rt(...n,t):null}function rt(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case z.rem:return e*16*(r?-1:1);case z.px:return e*(r?-1:1);case z.percent:return`${r?"-":""}${e}%`;case z.none:return e*(r?-1:1);case z.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Fe("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case z.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Fe("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function wo(e){let t=de(e);if(!t)return null;let[n,r]=t;switch(r){case z.rem:return n*16;case z.px:return n;default:return null}}var Tm={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Eo(e){return Tm[e??""]||"All"}function So(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Eo(i),"")),t]}function ct(e,t={}){if(e.includes("/")){let n=tl(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),tl(e,t)}function Te(e,t,n={}){let r=ct(t,n);return r===null?null:g({[e]:r})}function tl(e,t={}){if(e==="px")return 1;let n=de(e,t);if(!n)return null;let[r,i]=n;return t.fracti
//# sourceMappingURL=index.js.map