Comparing version 1.1.6 to 1.1.7
@@ -869,3 +869,3 @@ 'use strict'; | ||
var handleValueHasContent$1 = function handleValueHasContent(value) { | ||
var handleValueHasContent = function handleValueHasContent(value) { | ||
// check content: (This is a content); -> content: 'This is a content'; | ||
@@ -877,3 +877,3 @@ return /content:\s+\(.*\)/g.test(value) ? value.replace(/\(|\)/g, "'") : value; | ||
var result = '{ ' + prop + ': ' + value + ' }'; | ||
return handleValueHasContent$1(result); | ||
return handleValueHasContent(result); | ||
}; | ||
@@ -880,0 +880,0 @@ |
@@ -1,2 +0,2 @@ | ||
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("rtl-css-js")),i=t(require("vscode-css-languageservice")),o=/(.*:)|((\||@|!).*)/g,r=/_/g,s=/-?\d+/g,n=[0,0],a={anim:"animation",animdel:"animation-delay",animdir:"animation-direction",animdur:"animation-duration",animfm:"animation-fill-mode",animic:"animation-iteration-count",animn:"animation-name",animps:"animation-play-state",animtf:"animation-timing-function",ap:"appearance",bd:"border",bdl:"border-left",bdt:"border-top",bdb:"border-bottom",bdr:"border-right",bdc:"border-color",bdtc:"border-top-color",bdbc:"border-bottom-color",bdrc:"border-right-color",bdlc:"border-left-color",bdls:"border-left-style",bdlw:"border-left-width",bdrsbend:"border-bottom-right-radius",bdrsbl:"border-bottom-left-radius",bdrstend:"border-top-right-radius",bdrstl:"border-top-left-radius",bdrw:"border-right-width",bdsp:"border-spacing",bds:"border-style",bdts:"border-top-style",bdbs:"border-bottom-style",bdw:"border-width",bdtw:"border-top-width",bdbw:"border-bottom-width",bdrs:"border-radius",bg:"background",bgi:"background-image",bgc:"background-color",bgcp:"background-clip",bgo:"background-origin",bgz:"background-size",bga:"background-attachment",bgp:"background-position",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat",bdcl:"border-collapse",bxz:"box-sizing",bxsh:"box-shadow",cl:"clear",c:"color",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",ctn:"contain",cnt:"content",cur:"cursor",d:"display",fil:"filter",flx:"flex",flxg:"flex-grow",flxs:"flex-shrink",flxb:"flex-basis",as:"align-self",fld:"flex-direction",flf:"flex-flow",fxf:"flex-flow",ai:"align-items",ac:"align-content",or:"order",jc:"justify-content",flw:"flex-wrap",fxw:"flex-wrap",fl:"float",ff:"font-family",fw:"font-weight",fz:"font-size",fs:"font-style",fv:"font-variant",h:"height",hy:"hyphens",ins:"inset",l:"left",lts:"letter-spacing",list:"list-style-type",lisp:"list-style-position",lisi:"list-style-image",lh:"line-height",m:"margin",mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",mah:"max-height",maw:"max-width",mih:"min-height",miw:"min-width",o:"outline",obf:"object-fit",t:"top",b:"bottom",op:"opacity",ov:"overflow",ovx:"overflow-x",ovy:"overflow-y",ovs:"-webkit-overflow-scrolling",p:"padding",pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left",pe:"pointer-events",pos:"position",rsz:"resize",tbl:"table-layout",ta:"text-align",tal:"text-align-last",td:"text-decoration",ti:"text-indent",tov:"text-overflow",tren:"text-rendering",tr:"text-replace",tt:"text-transform",tsh:"text-shadow",trf:"transform",trfo:"transform-origin",trfs:"transform-style",prs:"perspective",prso:"perspective-origin",bfv:"backface-visibility",trs:"transition",trsde:"transition-delay",trsdu:"transition-duration",trsp:"transition-property",trstf:"transition-timing-function",us:"user-select",va:"vertical-align",v:"visibility",whs:"white-space",whsc:"white-space-collapse",w:"width",wob:"word-break",wow:"word-wrap",z:"z-index",fill:"fill",r:"right",stk:"stroke",stkw:"stroke-width",stklc:"stroke-linecap",stklj:"stroke-linejoin",gtc:"grid-template-columns",gta:"grid-template-areas",gt:"grid-template",gac:"grid-auto-columns",gar:"grid-auto-rows",gaf:"grid-auto-flow",gd:"grid",grs:"grid-row-start",gcs:"grid-column-start",gre:"grid-row-end",gce:"grid-column-end",gr:"grid-row",gc:"grid-column",ga:"grid-area",rg:"row-gap",cg:"column-gap",gp:"gap",maf:"masonry-auto-flow",at:"align-tracks",jt:"justify-tracks",ar:"aspect-ratio",ads:"additive-symbols",ji:"justify-items",js:"justify-self",a:"azimuth",bbm:"background-blend-mode",bl:"bleed",bs:"block-size",bbe:"border-block-end",bbs:"border-block-style",bbec:"border-block-end-color",bbsc:"border-block-start-color",bbes:"border-block-end-style",bbss:"border-block-start-style",bbew:"border-block-end-width",bbsw:"border-block-start-width",bi:"border-inline",bio:"border-image-outset",bir:"border-image-repeat",bis:"border-inline-style",biw:"border-inline-width",bie:"border-inline-end",biec:"border-inline-end-color",bisc:"border-inline-start-color",bies:"border-inline-end-style",biss:"border-inline-start-style",biew:"border-inline-end-width",bisw:"border-inline-start-width",brs:"border-right-style",bodb:"box-decoration-break",ba:"box-align",bb:"border-block",cs:"counter-set",cc:"caret-color",clp:"clip",cp:"clip-path",cr:"counter-reset",cif:"color-interpolation-filters",ci:"counter-increment",dir:"direction",ec:"empty-cells",eb:"enable-background",f:"font",fo:"flood-opacity",fr:"fill-rule",fc:"flood-color",ffs:"font-feature-settings",fk:"font-kerning",flo:"font-language-override",fsa:"font-size-adjust",fsth:"font-smooth",fva:"font-variant-alternates",fvc:"font-variant-caps",fvea:"font-variant-east-asian",fvl:"font-variant-ligatures",fvn:"font-variant-numeric",fvp:"font-variant-position",goh:"glyph-orientation-horizontal",gov:"glyph-orientation-vertical",gcg:"grid-column-gap",gg:"grid-gap",grg:"grid-row-gap",gtr:"grid-template-rows",io:"image-orientation",ir:"image-resolution",im:"ime-mode",is:"input-security",i:"inherits",k:"kerning",lc:"line-clamp",lb:"line-break",ls:"list-style",mbe:"margin-block-end",mbs:"mask-border-source",mie:"margin-inline-end",mis:"min-inline-size",mas:"marks",me:"marker-end",mm:"mask-mode",ms:"math-style",mi:"margin-inline",mo:"-moz-orient",mp:"-ms-perspective",mor:"motion-rotation",mat:"margin-trim",mbm:"mask-border-mode",ma:"-ms-accelerator",mad:"-moz-animation-duration",maic:"-moz-animation-iteration-count",man:"-moz-animation-name",maps:"-moz-animation-play-state",matf:"-moz-animation-timing-function",mbv:"-moz-backface-visibility",mbc:"-moz-background-clip",mbip:"-moz-background-inline-policy",mbo:"mask-border-outset",mbbc:"-moz-border-bottom-colors",mbi:"-moz-border-image",mblc:"-moz-border-left-colors",mbrc:"-moz-border-right-colors",mbtc:"-moz-border-top-colors",mba:"-moz-box-align",mbd:"-moz-box-direction",mbf:"-moz-box-flexgroup",mbog:"-moz-box-ordinal-group",mbp:"-ms-block-progression",mcc:"-moz-column-count",mcg:"-moz-column-gap",mcr:"-moz-column-rule",mcrc:"-moz-column-rule-color",mcrs:"-moz-column-rule-style",mcrw:"-moz-column-rule-width",mc:"mask-composite",mcw:"-moz-column-width",mffs:"-moz-font-feature-settings",mh:"-ms-hyphens",mpo:"-ms-perspective-origin",mtal:"-ms-text-align-last",mtdc:"-moz-text-decoration-color",mtdl:"-moz-text-decoration-line",mtds:"-moz-text-decoration-style",mtsa:"-ms-text-size-adjust",mto:"-ms-transform-origin",mtd:"-moz-transition-duration",mtp:"-moz-transition-property",mttf:"-moz-transition-timing-function",muf:"-moz-user-focus",mus:"-ms-user-select",mab:"mask-border",mczc:"-ms-content-zoom-chaining",mcz:"-ms-content-zooming",mczl:"-ms-content-zoom-limit",mczlm:"-ms-content-zoom-limit-min",mczs:"-ms-content-zoom-snap",mczsp:"-ms-content-zoom-snap-points",mczst:"-ms-content-zoom-snap-type",mf:"-ms-flex",mfa:"-ms-flex-align",mfd:"-ms-flex-direction",mff:"-ms-flow-from",mfia:"-ms-flex-item-align",mflp:"-ms-flex-line-pack",mfo:"-ms-flex-order",mfp:"-ms-flex-pack",mfw:"-ms-flex-wrap",mfi:"-ms-flow-into",mgc:"-ms-grid-columns",mgca:"-ms-grid-column-align",mgcs:"-ms-grid-column-span",mgl:"-ms-grid-layer",mgr:"-ms-grid-rows",mgra:"-ms-grid-row-align",mgrs:"-ms-grid-row-span",mhca:"-ms-high-contrast-adjust",mhlc:"-ms-hyphenate-limit-chars",mhll:"-ms-hyphenate-limit-lines",mhlz:"-ms-hyphenate-limit-zone",mim:"-ms-interpolation-mode",mlg:"-ms-layout-grid",mlgc:"-ms-layout-grid-char",mlgl:"-ms-layout-grid-line",mlgm:"-ms-layout-grid-mode",mlgt:"-ms-layout-grid-type",mlb:"-ms-line-break",mos:"-ms-overflow-style",mpox:"-ms-perspective-origin-x",mpoy:"-ms-perspective-origin-y",mpa:"-ms-progress-appearance",ms3c:"-ms-scrollbar-3dlight-color",msac:"-ms-scrollbar-arrow-color",msbc:"-ms-scrollbar-base-color",msdc:"-ms-scrollbar-darkshadow-color",msfc:"-ms-scrollbar-face-color",mshc:"-ms-scrollbar-highlight-color",mssc:"-ms-scrollbar-shadow-color",mstc:"-ms-scrollbar-track-color",msc:"-ms-scroll-chaining",msl:"-ms-scroll-limit",mslxm:"-ms-scroll-limit-x-min",mslym:"-ms-scroll-limit-y-min",msr:"-ms-scroll-rails",msspx:"-ms-scroll-snap-points-x",msspy:"-ms-scroll-snap-points-y",msst:"-ms-scroll-snap-type",mssx:"-ms-scroll-snap-x",mssy:"-ms-scroll-snap-y",mst:"-ms-scroll-translation",mta:"-ms-touch-action",mtch:"-ms-text-combine-horizontal",mtj:"-ms-text-justify",mtks:"-ms-text-kashida-space",mtup:"-ms-text-underline-position",mts:"-ms-touch-select",mtox:"-ms-transform-origin-x",mtoy:"-ms-transform-origin-y",mtoz:"-ms-transform-origin-z",mwb:"-ms-word-break",mww:"-ms-word-wrap",mwf:"-ms-wrap-flow",mwm:"-ms-writing-mode",mwt:"-ms-wrap-through",mz:"min-zoom",mza:"-ms-zoom-animation",nd:"nav-down",ni:"nav-index",nl:"nav-left",nr:"nav-right",nu:"nav-up",n:"negative",oa:"overflow-anchor",oad:"-o-animation-duration",oafm:"-o-animation-fill-mode",oaic:"-o-animation-iteration-count",oan:"-o-animation-name",oaps:"-o-animation-play-state",oatf:"-o-animation-timing-function",ofp:"offset-position",obi:"overscroll-behavior-inline",oof:"-o-object-fit",oop:"-o-object-position",ori:"orientation",otb:"-o-table-baseline",ots:"-o-tab-size",oto:"-o-transform-origin",ot:"-o-transition",otd:"-o-transition-duration",otp:"-o-transition-property",ottf:"-o-transition-timing-function",obe:"offset-block-end",obs:"offset-block-start",oie:"offset-inline-end",ois:"offset-inline-start",oc:"outline-color",oo:"outline-offset",os:"outline-style",ow:"overflow-wrap",prx:"prefix",pbe:"padding-block-end",pbs:"padding-block-start",pie:"padding-inline-end",pis:"padding-inline-start",pba:"page-break-after",pbb:"page-break-before",pbi:"page-break-inside",po:"paint-order",q:"quotes",rot:"rotate",ra:"ruby-align",ro:"ruby-overhang",rp:"ruby-position",rs:"ruby-span",s3c:"scrollbar-3dlight-color",sac:"scrollbar-arrow-color",sbc:"scrollbar-base-color",sdc:"scrollbar-darkshadow-color",sfc:"scrollbar-face-color",shc:"scrollbar-highlight-color",ssc:"scroll-snap-coordinate",stc:"scrollbar-track-color",sb:"scroll-behavior",ssd:"scroll-snap-destination",sspx:"scroll-snap-points-x",sspy:"scroll-snap-points-y",sst:"scroll-snap-type",sit:"shape-image-threshold",sm:"scroll-margin",so:"stroke-opacity",sr:"shape-rendering",s:"syntax",sc:"scrollbar-color",sd:"stroke-dashoffset",ts:"tab-size",toa:"touch-action",tdc:"text-decoration-color",tdl:"text-decoration-line",tds:"text-decoration-skip",tj:"text-justify",to:"text-orientation",tup:"text-underline-position",ub:"unicode-bidi",ur:"unicode-range",wa:"-webkit-appearance",wad:"-webkit-animation-duration",wafm:"-webkit-animation-fill-mode",waic:"-webkit-animation-iteration-count",wan:"-webkit-animation-name",waps:"-webkit-animation-play-state",watf:"-webkit-animation-timing-function",wbf:"-webkit-box-flex",wbv:"-webkit-backface-visibility",wbc:"-webkit-background-composite",wbo:"-webkit-box-orient",wbi:"-webkit-break-inside",wba:"-webkit-break-after",wbd:"-webkit-box-direction",wbfg:"-webkit-box-flex-group",wbog:"-webkit-box-ordinal-group",wbp:"-webkit-box-pack",wbr:"-webkit-box-reflect",wbs:"-webkit-box-sizing",wbb:"-webkit-border-before",wcba:"-webkit-column-break-after",wcbb:"-webkit-column-break-before",wcbi:"-webkit-column-break-inside",wcc:"-webkit-column-count",wcg:"-webkit-column-gap",wcr:"-webkit-column-rule",wcrc:"-webkit-column-rule-color",wcrs:"-webkit-column-rule-style",wcrw:"-webkit-column-rule-width",wc:"will-change",wcs:"-webkit-column-span",wcw:"-webkit-column-width",wf:"-webkit-filter",wff:"-webkit-flow-from",wfi:"-webkit-flow-into",wffs:"-webkit-font-feature-settings",wh:"-webkit-hyphens",wlb:"-webkit-line-break",wmbc:"-webkit-margin-bottom-collapse",wmc:"-webkit-mask-composite",wms:"-webkit-mask-size",wmtc:"-webkit-margin-top-collapse",wmi:"-webkit-mask-image",wmo:"-webkit-mask-origin",wmr:"-webkit-mask-repeat",wnm:"-webkit-nbsp-mode",wps:"-webkit-padding-start",wp:"-webkit-perspective",wpo:"-webkit-perspective-origin",wrf:"-webkit-region-fragment",wthc:"-webkit-tap-highlight-color",wtfc:"-webkit-text-fill-color",wtsa:"-webkit-text-size-adjust",wts:"-webkit-transform-style",wtsc:"-webkit-text-stroke-color",wtsw:"-webkit-text-stroke-width",wtc:"-webkit-touch-callout",wt:"-webkit-transition",wto:"-webkit-transform-origin",wtox:"-webkit-transform-origin-x",wtoy:"-webkit-transform-origin-y",wtoz:"-webkit-transform-origin-z",wtd:"-webkit-transition-duration",wtp:"-webkit-transition-property",wttf:"-webkit-transition-timing-function",wud:"-webkit-user-drag",wum:"-webkit-user-modify",wus:"-webkit-user-select",wi:"widows",ws:"word-spacing",wm:"-webkit-mask",zm:"zoom",mia:"-ms-ime-align",mcp:"-moz-context-properties",mfe:"-moz-float-edge",mfbii:"-moz-force-broken-image-icon",mir:"-moz-image-region",mors:"-moz-outline-radius",morb:"-moz-outline-radius-bottomright",mort:"-moz-outline-radius-topright",mss:"-moz-stack-sizing",mtb:"-moz-text-blink",mui:"-moz-user-input",mum:"-moz-user-modify",mwd:"-moz-window-dragging",mws:"-moz-window-shadow",wbbc:"-webkit-border-before-color",wbbs:"-webkit-border-before-style",wbbw:"-webkit-border-before-width",wlc:"-webkit-line-clamp",wma:"-webkit-mask-attachment",wmp:"-webkit-mask-position",wmpx:"-webkit-mask-position-x",wmpy:"-webkit-mask-position-y",wmrx:"-webkit-mask-repeat-x",wmry:"-webkit-mask-repeat-y",acc:"accent-color",animt:"animation-timeline",bf:"box-flex",bbc:"border-block-color",bbw:"border-block-width",beer:"border-end-end-radius",besr:"border-end-start-radius",bic:"border-inline-color",bser:"border-start-end-radius",bssr:"border-start-start-radius",bod:"box-direction",bfg:"box-flex-group",bol:"box-lines",bog:"box-ordinal-group",bo:"box-orient",bp:"box-pack",pca:"print-color-adjust",cv:"content-visibility",fos:"font-optical-sizing",fvs:"font-variation-settings",fca:"forced-color-adjust",hp:"hanging-punctuation",hc:"hyphenate-character",il:"initial-letter",ila:"initial-letter-align",ib:"inset-block",ibe:"inset-block-end",ibs:"inset-block-start",ii:"inset-inline",iie:"inset-inline-end",iis:"inset-inline-start",lhs:"line-height-step",mbr:"mask-border-repeat",mbw:"mask-border-width",mal:"max-lines",od:"offset-distance",ofr:"offset-rotate",ob:"overscroll-behavior",ocb:"overflow-clip-box",ocm:"overflow-clip-margin",oi:"overflow-inline",obb:"overscroll-behavior-block",obx:"overscroll-behavior-x",oby:"overscroll-behavior-y",pab:"padding-block",pi:"place-items",pc:"place-content",ps:"place-self",rm:"ruby-merge",sg:"scrollbar-gutter",sw:"scrollbar-width",smb:"scroll-margin-bottom",smbs:"scroll-margin-block-start",smbe:"scroll-margin-block-end",smi:"scroll-margin-inline",smis:"scroll-margin-inline-start",smie:"scroll-margin-inline-end",sml:"scroll-margin-left",smr:"scroll-margin-right",smt:"scroll-margin-top",sp:"scroll-padding",spb:"scroll-padding-bottom",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spi:"scroll-padding-inline",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",spl:"scroll-padding-left",spr:"scroll-padding-right",spt:"scroll-padding-top",ssa:"scroll-snap-align",sss:"scroll-snap-stop",sstx:"scroll-snap-type-x",ssty:"scroll-snap-type-y",tcu:"text-combine-upright",tdsi:"text-decoration-skip-ink",tdt:"text-decoration-thickness",te:"text-emphasis",tec:"text-emphasis-color",tep:"text-emphasis-position",tes:"text-emphasis-style",tsa:"text-size-adjust",tuo:"text-underline-offset",tb:"transform-box",trl:"translate",sa:"size-adjust",ao:"ascent-override",do:"descent-override",fd:"font-display",lgo:"line-gap-override",iv:"initial-value",uz:"user-zoom",vf:"viewport-fit"},l={af:"after",be:"before",fl:"first-letter",fli:"first-line",ph:"placeholder",a:"active",c:"checked",d:"default",di:"disabled",e:"empty",en:"enabled",fi:"first",fc:"first-child",fot:"first-of-type",fs:"fullscreen",f:"focus",fw:"focus-within",fv:"focus-visible",h:"hover",ind:"indeterminate",ir:"in-range",inv:"invalid",lc:"last-child",lot:"last-of-type",l:"left",li:"link",oc:"only-child",oot:"only-of-type",o:"optional",oor:"out-of-range",ps:"placeholder-shown",ro:"read-only",rw:"read-write",req:"required",r:"right",rt:"root",s:"scope",t:"target",va:"valid",vi:"visited",sl:"slotted",fil:"first-line",cp:"corner-present",sb:"single-button",nc:"nth-col",onot:"only-of-type",mal:"-moz-any-link",mb:"-ms-browse",mdo:"-moz-drag-over",mfn:"-moz-first-node",mf:"-ms-fill",mfs:"-moz-full-screen",mln:"-moz-list-number",mow:"-moz-only-whitespace",mp:"-moz-placeholder",msi:"-moz-submit-invalid",ms:"-moz-selection",mui:"-moz-ui-invalid",muv:"-moz-ui-valid",mud:"-moz-user-disabled",mwi:"-moz-window-inactive",mip:"-ms-input-placeholder",mka:"-ms-keyboard-active",nlc:"nth-last-col",ouor:"out-of-range",reo:"read-only",tw:"target-within",wfs:"-webkit-full-screen",ui:"user-invalid",uv:"user-valid",pls:"placeholder-shown",pip:"picture-in-picture",mfi:"-moz-focus-inner",mfo:"-moz-focus-outer",mlb:"-moz-list-bullet",mpb:"-moz-progress-bar",mc:"-ms-clear",me:"-ms-expand",mfl:"-ms-fill-lower",mfu:"-ms-fill-upper",mr:"-ms-reveal",mt:"-ms-track",mta:"-ms-ticks-after",mtb:"-ms-ticks-before",mv:"-ms-value",wfub:"-webkit-file-upload-button",wisb:"-webkit-inner-spin-button",wip:"-webkit-input-placeholder",wks:"-webkit-keygen-select",wmb:"-webkit-meter-bar",wmelgv:"-webkit-meter-even-less-good-value",wmov:"-webkit-meter-optimum-value",wmsv:"-webkit-meter-suboptimum-value",wosb:"-webkit-outer-spin-button",wpb:"-webkit-progress-bar",wpie:"-webkit-progress-inner-element",wpv:"-webkit-progress-value",wr:"-webkit-resizer",ws:"-webkit-scrollbar",wsb:"-webkit-scrollbar-button",wsc:"-webkit-scrollbar-corner",wst:"-webkit-slider-thumb",wstp:"-webkit-scrollbar-track-piece",wscb:"-webkit-search-cancel-button",wsd:"-webkit-search-decoration",wsrb:"-webkit-search-results-button",wsrd:"-webkit-search-results-decoration",wsrt:"-webkit-slider-runnable-track",wtdc:"-webkit-textfield-decoration-container",wvb:"-webkit-validation-bubble",wvba:"-webkit-validation-bubble-arrow",wvbac:"-webkit-validation-bubble-arrow-clipper",wvbh:"-webkit-validation-bubble-heading",wvbm:"-webkit-validation-bubble-message",wvbtb:"-webkit-validation-bubble-text-block",tt:"target-text",mrp:"-moz-range-progress",mrt:"-moz-range-track",wpiv:"-webkit-progress-inner-value",se:"spelling-error",nch:"nth-child",nlch:"nth-last-child",nlot:"nth-last-of-type",ntot:"nth-of-type"},c=function(t,e){if(e.includes("@")){var i,o=e.includes("@+"),r=e.replace(/.*@\+?|!/g,""),s=t.breakpoints[r];r=s||r;var n=Number(null!=(i=r.replace(/\D/g,""))?i:"0"),a=r.replace(/.*\d+/g,"");return o?""+(n-(s?1:0))+a:r}return"default"},m=function(t){return t.replace(/^("|'|`|\s)/g,"")},b=function(t){return Array.from(new Set(t))},d=function(t,e){return function(t){return/content:\s+\(.*\)/g.test(t)?t.replace(/\(|\)/g,"'"):t}("{ "+t+": "+e+" }")};function u(){var t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t};return t.apply(this,arguments)}var p=function(t){return t.replace(/\|/g,"\\|").replace(/,/g,"\\,").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\?/g,"\\?").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\//g,"\\/").replace(/\.\w*:/g,(function(t){return t.replace(/:/g,"\\:")})).replace(/;/g,"\\;").replace(/@/g,"\\@").replace(/#/g,"\\#").replace(/'/g,"\\'").replace(/"/g,'\\"').replace(/%/g,"\\%").replace(/\+/g,"\\+").replace(/>/g,"\\>").replace(/!/g,"\\!").replace(/`/g,"\\`").replace(/\.\d/g,(function(t){return"\\"+t})).replace(/\^/g,"\\^").replace(/(-child|-type|:lang)\\\([\w-+\\]*\\\)/g,(function(t){var e=t.replace(/.*\\\(|\\\)/g,"").replace(/_|\\/g," ");return t.replace(/\\\(.*/g,"("+e+")")}))},f=new(function(){function t(){this.id=0,this.events={}}var e=t.prototype;return e.on=function(t,e){var i;return this.id++,this.events=u({},this.events,((i={})[t]=[].concat(this.events[t]||[],[{listener:e,id:this.id}]),i)),this.id},e.off=function(t){for(var e in this.events){var i=void 0;this.events=u({},this.events,((i={})[e]=this.events[e].filter((function(e){return e.id!==t})),i))}},e.emit=function(t,e){this.events[t]&&this.events[t].forEach((function(t){(0,t.listener)(e)}))},t}()),g=function(t,e){return Object.entries(t).reduce((function(t,i){var o;return u({},t,((o={})[i[0]]=Object.entries(i[1]).reduce((function(t,i){return u({},t,e(i[0],i[1]))}),{}),o))}),{})},w=function(t){return/translateX/g.test(t)?t.replace(/calc\(/,"calc(-1 * (").replace(/\)$/g,"))").replace(/\)\s*!important/g,")) !important"):/translate\(/g.test(t)?t.replace(/calc\(/,"calc(-1 * (").replace(/\),/g,")),"):t};exports.AgileCss=function(){function t(){this.defaultConfig={breakpoints:{sm:"768px",md:"992px",lg:"1200px"},custom:{},cache:!0,parentSelector:"",defaultCss:"",exclude:[],defaultClassNames:[]},this.classNames=[],this.styles={},this.config=this.defaultConfig,this.cache=[],this._customValue=function(t){return t},this.cssProps=a,this.pseudo=l,this.valid=new Set,this.value="",this.prevInput=""}var e=t.prototype;return e.handlePluginAddStyles=function(t){this.styles=u({},this.styles,t)},e.handlePluginAddBase=function(t){this.config.defaultCss.includes(t)||(this.config.defaultCss=this.config.defaultCss+"\n"+t)},e.handlePluginAddComponent=function(t){this.handlePluginAddBase(t)},e.plugins=function(t){var e=this;f.on("plugin",(function(){t.length&&t.forEach((function(t){t({config:e.config,cssProps:e.cssProps,pseudo:e.pseudo,styles:e.styles,input:e.value,prevInput:e.prevInput,addStyles:e.handlePluginAddStyles.bind(e),addBase:e.handlePluginAddBase.bind(e),addComponent:e.handlePluginAddComponent.bind(e)})}))}))},e.on=function(t,e){return f.on(t,e)},e.off=function(t){f.off(t)},e._setClassNames=function(){var t=function(t,e,i){var o=Object.keys(i).reduce((function(i,o){var r=new RegExp("(\"|'|`|\\s)"+o+":(\\w|\\/|\\||\\.|\\+|\\*|\\(|\\)|\\!|%|@|#|,|;|-)*","g");return[].concat(i,(t.match(r)||[]).reduce((function(t,i){if(function(t){var e,i,o,r=m(t);return null!=(null==(e=r.match(/\(|\)/g))?void 0:e.length)&&(null!=(i=null==(o=r.match(/\(|\)/g))?void 0:o.length)?i:0)%2!=0}(i))return t;var o=m(i);return e.exclude.includes(o)||!/:./g.test(o)?t:[].concat(t,[o])}),[]))}),[]);return b([].concat(o,e.defaultClassNames))}(this.value.replace(/@agilecss-ignore.*\n.*/g,""),this.config,this.cssProps);this.classNames=b([].concat(this.classNames,t))},e._isMediaMaxWidth=function(t){return t.replace(/\\/g,"").includes("@+")},e._checkValidate=function(t,e,i){var o,r,s=c(this.config,e),n=this.config.breakpoints[s]||s,a=this._isMediaMaxWidth(e),l=p(e),m=l+" "+i;if("default"!==n&&(m="@media ("+(a?"max":"min")+"-width:"+n+") { "+l+" "+i+" }"),this.valid.has(m))return!1;var b=null===(o=(r=this.config).validator)?void 0:o.call(r,m);return null!==b&&b.length?(f.emit("invalid",{message:b[0].message,className:t}),this.classNames=this.classNames.filter((function(e){return e!==t})),!0):(f.emit("valid",{message:"Compiled successfully",className:t}),this.valid.add(m),!1)},e._setStyles=function(){var t=this;this.styles=this.classNames.reduce((function(e,i){var s,n,a=i.replace(/:.*/g,""),l=t.cssProps[a],m=c(t.config,i),b=function(t){return/!/g.test(t)?" !important":""}(i),p=""+t._customValue(function(t,e){return e.replace(o,"").replace(r," ").split(" ").reduce((function(e,i){var o;return e+" "+((null==(o=t.custom[i])?void 0:o.toString())||i)}),"").trim()}(t.config,i))+b,f=t.config.parentSelector?t.config.parentSelector+" ":"";if(!l||!i.includes(":")||!p)return e;var g=f+"."+(i.includes("|")?""+i+function(t){var e=t.match(/\|\w*(\([\w-+]*\)|)/g);return e?e.reduce((function(t,e){var i=e.replace(/^\||\(.*\)/g,""),o=e.replace(/.*\(|\)|[\|\w-]*$/g,""),r=pseudo[i]||i;return o?t+":"+r+"("+o+")":t+":"+r}),""):""}(i):i),w=d(l,p);return t._checkValidate(i,g,w)?e:u({},e,((n={})[m]=u({},e[m],((s={})[g]=[l,handleValueHasContent(p)],s)),n))}),{}),f.emit("plugin",void 0)},e._setCache=function(){this.cache.push(this.value);var t=this.cache.length;t>1e6&&(this.cache=this.cache.slice(t-1e6,t))},e.find=function(t){return this.value=t,this.config.cache?this.cache.includes(t)||(this._setClassNames(),this._setStyles(),this._setCache()):(this._setClassNames(),this._setStyles()),this.prevInput=t,f.emit("success",this.getCss()),this},e.setConfig=function(t){return t||(t={}),this.config=u({},this.defaultConfig,t),this},e.setClassNames=function(t){return this.classNames=[].concat(this.classNames,t),this._setStyles(),f.emit("success",this.getCss()),this},e.getCss=function(){var t=this,e=Object.entries(this.styles).reduce((function(e,i){var o=i[0],r=i[1],s=t.config.breakpoints[o]||o,n=Object.keys(r),a=t._isMediaMaxWidth(n[0]),l=Object.entries(r).reduce((function(t,e){var i=e[0],o=e[1];if(!Array.isArray(o))return t;var r=d.apply(void 0,o);return t+"\n"+p(i).replace(/\s+/g," ")+" "+r}),"");return"default"===s?e+"\n"+l:e+"\n@media ("+(a?"max":"min")+"-width:"+s+") { "+l+" }"}),"");return(this.config.defaultCss+"\n"+e).replace(/\n+/g,"\n")},e.getClassNames=function(){return this.classNames},e.reset=function(){return this.classNames=[],this.styles={},this.cache=[],this.valid=new Set,this},e.customValue=function(t){this._customValue=t},e.addPropsSyntax=function(t){this.cssProps=u({},this.cssProps,t)},e.addPseudoSyntax=function(t){this.pseudo=u({},this.pseudo,t)},t}(),exports.defineConfig=function(t){return function(){return t}},exports.pfs=function(t,e){var i=t,o=e;return i||(i=400),o||(o=1200),function(t){(0,t.addStyles)(g(t.styles,(function(t,e){var r,a=e[0],l=e[1];if(/pfs\(.*\)/g.test(l)){var c,m,b,d,u=null!=(c=null==(m=l.match(s))?void 0:m.map(Number))?c:n,p=u[0],f=u[1],g="clamp("+p+"px, "+function(t){var e=Object.keys(t),i=Object.values(t);if(2!==e.length)throw new Error("cssLinearInterpolation() value must be exactly 2 values");var o=(i[1]-i[0])/(Number(e[1])-Number(e[0])),r=i[0]-o*Number(e[0]),s="+";return r<0&&(s="-",r=Math.abs(r)),100*o+"vw "+s+" "+r+"px"}(((b={})[i]=p,b[o]=f,b))+", "+f+"px)";return(d={})[t]=[a,g],d}return(r={})[t]=e,r})))}},exports.pixelToRem=function(t){return function(e){(0,e.addStyles)(g(e.styles,(function(e,i){var o,r=i[0],s=i[1];if(/[\d.]*px/g.test(s)){var n,a=s.replace(/[\d.]*px/g,(function(e){return 62.5*Number(e.replace("px",""))/t/10+"rem"}));return(n={})[e]=[r,a],n}return(o={})[e]=i,o})))}},exports.rtl=function(){return function(t){var i=t.addBase;(0,t.addStyles)(g(t.styles,(function(t,o){var r,s,n,a,l,c=o[0],m=o[1],b=Object.entries(e((r={},r[c]=m,r)))[0],d=b[0],u=b[1],f=t.includes("[dir=rtl] ")?"":"[dir=rtl] ";return d!==c?(i(p(""+f+t)+" { "+c+": initial }"),(n={})[t]=o,n[""+f+t]=[d,m],n):u!==m?((a={})[t]=o,a[""+f+t]=[c,u],a):/translate(\(calc|X\(calc)/g.test(m)?((l={})[t]=o,l[""+f+t]=[c,w(m)],l):((s={})[t]=o,s)})))}},exports.type={__proto__:null},exports.validator=function(t){var e=i.getCSSLanguageService(),o=i.TextDocument.create("untitled://untitled","css",1,t),r=e.parseStylesheet(o);return e.doValidation(o,r)}; | ||
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("rtl-css-js")),i=t(require("vscode-css-languageservice")),o=/(.*:)|((\||@|!).*)/g,r=/_/g,s=/-?\d+/g,n=[0,0],a={anim:"animation",animdel:"animation-delay",animdir:"animation-direction",animdur:"animation-duration",animfm:"animation-fill-mode",animic:"animation-iteration-count",animn:"animation-name",animps:"animation-play-state",animtf:"animation-timing-function",ap:"appearance",bd:"border",bdl:"border-left",bdt:"border-top",bdb:"border-bottom",bdr:"border-right",bdc:"border-color",bdtc:"border-top-color",bdbc:"border-bottom-color",bdrc:"border-right-color",bdlc:"border-left-color",bdls:"border-left-style",bdlw:"border-left-width",bdrsbend:"border-bottom-right-radius",bdrsbl:"border-bottom-left-radius",bdrstend:"border-top-right-radius",bdrstl:"border-top-left-radius",bdrw:"border-right-width",bdsp:"border-spacing",bds:"border-style",bdts:"border-top-style",bdbs:"border-bottom-style",bdw:"border-width",bdtw:"border-top-width",bdbw:"border-bottom-width",bdrs:"border-radius",bg:"background",bgi:"background-image",bgc:"background-color",bgcp:"background-clip",bgo:"background-origin",bgz:"background-size",bga:"background-attachment",bgp:"background-position",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat",bdcl:"border-collapse",bxz:"box-sizing",bxsh:"box-shadow",cl:"clear",c:"color",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",ctn:"contain",cnt:"content",cur:"cursor",d:"display",fil:"filter",flx:"flex",flxg:"flex-grow",flxs:"flex-shrink",flxb:"flex-basis",as:"align-self",fld:"flex-direction",flf:"flex-flow",fxf:"flex-flow",ai:"align-items",ac:"align-content",or:"order",jc:"justify-content",flw:"flex-wrap",fxw:"flex-wrap",fl:"float",ff:"font-family",fw:"font-weight",fz:"font-size",fs:"font-style",fv:"font-variant",h:"height",hy:"hyphens",ins:"inset",l:"left",lts:"letter-spacing",list:"list-style-type",lisp:"list-style-position",lisi:"list-style-image",lh:"line-height",m:"margin",mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",mah:"max-height",maw:"max-width",mih:"min-height",miw:"min-width",o:"outline",obf:"object-fit",t:"top",b:"bottom",op:"opacity",ov:"overflow",ovx:"overflow-x",ovy:"overflow-y",ovs:"-webkit-overflow-scrolling",p:"padding",pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left",pe:"pointer-events",pos:"position",rsz:"resize",tbl:"table-layout",ta:"text-align",tal:"text-align-last",td:"text-decoration",ti:"text-indent",tov:"text-overflow",tren:"text-rendering",tr:"text-replace",tt:"text-transform",tsh:"text-shadow",trf:"transform",trfo:"transform-origin",trfs:"transform-style",prs:"perspective",prso:"perspective-origin",bfv:"backface-visibility",trs:"transition",trsde:"transition-delay",trsdu:"transition-duration",trsp:"transition-property",trstf:"transition-timing-function",us:"user-select",va:"vertical-align",v:"visibility",whs:"white-space",whsc:"white-space-collapse",w:"width",wob:"word-break",wow:"word-wrap",z:"z-index",fill:"fill",r:"right",stk:"stroke",stkw:"stroke-width",stklc:"stroke-linecap",stklj:"stroke-linejoin",gtc:"grid-template-columns",gta:"grid-template-areas",gt:"grid-template",gac:"grid-auto-columns",gar:"grid-auto-rows",gaf:"grid-auto-flow",gd:"grid",grs:"grid-row-start",gcs:"grid-column-start",gre:"grid-row-end",gce:"grid-column-end",gr:"grid-row",gc:"grid-column",ga:"grid-area",rg:"row-gap",cg:"column-gap",gp:"gap",maf:"masonry-auto-flow",at:"align-tracks",jt:"justify-tracks",ar:"aspect-ratio",ads:"additive-symbols",ji:"justify-items",js:"justify-self",a:"azimuth",bbm:"background-blend-mode",bl:"bleed",bs:"block-size",bbe:"border-block-end",bbs:"border-block-style",bbec:"border-block-end-color",bbsc:"border-block-start-color",bbes:"border-block-end-style",bbss:"border-block-start-style",bbew:"border-block-end-width",bbsw:"border-block-start-width",bi:"border-inline",bio:"border-image-outset",bir:"border-image-repeat",bis:"border-inline-style",biw:"border-inline-width",bie:"border-inline-end",biec:"border-inline-end-color",bisc:"border-inline-start-color",bies:"border-inline-end-style",biss:"border-inline-start-style",biew:"border-inline-end-width",bisw:"border-inline-start-width",brs:"border-right-style",bodb:"box-decoration-break",ba:"box-align",bb:"border-block",cs:"counter-set",cc:"caret-color",clp:"clip",cp:"clip-path",cr:"counter-reset",cif:"color-interpolation-filters",ci:"counter-increment",dir:"direction",ec:"empty-cells",eb:"enable-background",f:"font",fo:"flood-opacity",fr:"fill-rule",fc:"flood-color",ffs:"font-feature-settings",fk:"font-kerning",flo:"font-language-override",fsa:"font-size-adjust",fsth:"font-smooth",fva:"font-variant-alternates",fvc:"font-variant-caps",fvea:"font-variant-east-asian",fvl:"font-variant-ligatures",fvn:"font-variant-numeric",fvp:"font-variant-position",goh:"glyph-orientation-horizontal",gov:"glyph-orientation-vertical",gcg:"grid-column-gap",gg:"grid-gap",grg:"grid-row-gap",gtr:"grid-template-rows",io:"image-orientation",ir:"image-resolution",im:"ime-mode",is:"input-security",i:"inherits",k:"kerning",lc:"line-clamp",lb:"line-break",ls:"list-style",mbe:"margin-block-end",mbs:"mask-border-source",mie:"margin-inline-end",mis:"min-inline-size",mas:"marks",me:"marker-end",mm:"mask-mode",ms:"math-style",mi:"margin-inline",mo:"-moz-orient",mp:"-ms-perspective",mor:"motion-rotation",mat:"margin-trim",mbm:"mask-border-mode",ma:"-ms-accelerator",mad:"-moz-animation-duration",maic:"-moz-animation-iteration-count",man:"-moz-animation-name",maps:"-moz-animation-play-state",matf:"-moz-animation-timing-function",mbv:"-moz-backface-visibility",mbc:"-moz-background-clip",mbip:"-moz-background-inline-policy",mbo:"mask-border-outset",mbbc:"-moz-border-bottom-colors",mbi:"-moz-border-image",mblc:"-moz-border-left-colors",mbrc:"-moz-border-right-colors",mbtc:"-moz-border-top-colors",mba:"-moz-box-align",mbd:"-moz-box-direction",mbf:"-moz-box-flexgroup",mbog:"-moz-box-ordinal-group",mbp:"-ms-block-progression",mcc:"-moz-column-count",mcg:"-moz-column-gap",mcr:"-moz-column-rule",mcrc:"-moz-column-rule-color",mcrs:"-moz-column-rule-style",mcrw:"-moz-column-rule-width",mc:"mask-composite",mcw:"-moz-column-width",mffs:"-moz-font-feature-settings",mh:"-ms-hyphens",mpo:"-ms-perspective-origin",mtal:"-ms-text-align-last",mtdc:"-moz-text-decoration-color",mtdl:"-moz-text-decoration-line",mtds:"-moz-text-decoration-style",mtsa:"-ms-text-size-adjust",mto:"-ms-transform-origin",mtd:"-moz-transition-duration",mtp:"-moz-transition-property",mttf:"-moz-transition-timing-function",muf:"-moz-user-focus",mus:"-ms-user-select",mab:"mask-border",mczc:"-ms-content-zoom-chaining",mcz:"-ms-content-zooming",mczl:"-ms-content-zoom-limit",mczlm:"-ms-content-zoom-limit-min",mczs:"-ms-content-zoom-snap",mczsp:"-ms-content-zoom-snap-points",mczst:"-ms-content-zoom-snap-type",mf:"-ms-flex",mfa:"-ms-flex-align",mfd:"-ms-flex-direction",mff:"-ms-flow-from",mfia:"-ms-flex-item-align",mflp:"-ms-flex-line-pack",mfo:"-ms-flex-order",mfp:"-ms-flex-pack",mfw:"-ms-flex-wrap",mfi:"-ms-flow-into",mgc:"-ms-grid-columns",mgca:"-ms-grid-column-align",mgcs:"-ms-grid-column-span",mgl:"-ms-grid-layer",mgr:"-ms-grid-rows",mgra:"-ms-grid-row-align",mgrs:"-ms-grid-row-span",mhca:"-ms-high-contrast-adjust",mhlc:"-ms-hyphenate-limit-chars",mhll:"-ms-hyphenate-limit-lines",mhlz:"-ms-hyphenate-limit-zone",mim:"-ms-interpolation-mode",mlg:"-ms-layout-grid",mlgc:"-ms-layout-grid-char",mlgl:"-ms-layout-grid-line",mlgm:"-ms-layout-grid-mode",mlgt:"-ms-layout-grid-type",mlb:"-ms-line-break",mos:"-ms-overflow-style",mpox:"-ms-perspective-origin-x",mpoy:"-ms-perspective-origin-y",mpa:"-ms-progress-appearance",ms3c:"-ms-scrollbar-3dlight-color",msac:"-ms-scrollbar-arrow-color",msbc:"-ms-scrollbar-base-color",msdc:"-ms-scrollbar-darkshadow-color",msfc:"-ms-scrollbar-face-color",mshc:"-ms-scrollbar-highlight-color",mssc:"-ms-scrollbar-shadow-color",mstc:"-ms-scrollbar-track-color",msc:"-ms-scroll-chaining",msl:"-ms-scroll-limit",mslxm:"-ms-scroll-limit-x-min",mslym:"-ms-scroll-limit-y-min",msr:"-ms-scroll-rails",msspx:"-ms-scroll-snap-points-x",msspy:"-ms-scroll-snap-points-y",msst:"-ms-scroll-snap-type",mssx:"-ms-scroll-snap-x",mssy:"-ms-scroll-snap-y",mst:"-ms-scroll-translation",mta:"-ms-touch-action",mtch:"-ms-text-combine-horizontal",mtj:"-ms-text-justify",mtks:"-ms-text-kashida-space",mtup:"-ms-text-underline-position",mts:"-ms-touch-select",mtox:"-ms-transform-origin-x",mtoy:"-ms-transform-origin-y",mtoz:"-ms-transform-origin-z",mwb:"-ms-word-break",mww:"-ms-word-wrap",mwf:"-ms-wrap-flow",mwm:"-ms-writing-mode",mwt:"-ms-wrap-through",mz:"min-zoom",mza:"-ms-zoom-animation",nd:"nav-down",ni:"nav-index",nl:"nav-left",nr:"nav-right",nu:"nav-up",n:"negative",oa:"overflow-anchor",oad:"-o-animation-duration",oafm:"-o-animation-fill-mode",oaic:"-o-animation-iteration-count",oan:"-o-animation-name",oaps:"-o-animation-play-state",oatf:"-o-animation-timing-function",ofp:"offset-position",obi:"overscroll-behavior-inline",oof:"-o-object-fit",oop:"-o-object-position",ori:"orientation",otb:"-o-table-baseline",ots:"-o-tab-size",oto:"-o-transform-origin",ot:"-o-transition",otd:"-o-transition-duration",otp:"-o-transition-property",ottf:"-o-transition-timing-function",obe:"offset-block-end",obs:"offset-block-start",oie:"offset-inline-end",ois:"offset-inline-start",oc:"outline-color",oo:"outline-offset",os:"outline-style",ow:"overflow-wrap",prx:"prefix",pbe:"padding-block-end",pbs:"padding-block-start",pie:"padding-inline-end",pis:"padding-inline-start",pba:"page-break-after",pbb:"page-break-before",pbi:"page-break-inside",po:"paint-order",q:"quotes",rot:"rotate",ra:"ruby-align",ro:"ruby-overhang",rp:"ruby-position",rs:"ruby-span",s3c:"scrollbar-3dlight-color",sac:"scrollbar-arrow-color",sbc:"scrollbar-base-color",sdc:"scrollbar-darkshadow-color",sfc:"scrollbar-face-color",shc:"scrollbar-highlight-color",ssc:"scroll-snap-coordinate",stc:"scrollbar-track-color",sb:"scroll-behavior",ssd:"scroll-snap-destination",sspx:"scroll-snap-points-x",sspy:"scroll-snap-points-y",sst:"scroll-snap-type",sit:"shape-image-threshold",sm:"scroll-margin",so:"stroke-opacity",sr:"shape-rendering",s:"syntax",sc:"scrollbar-color",sd:"stroke-dashoffset",ts:"tab-size",toa:"touch-action",tdc:"text-decoration-color",tdl:"text-decoration-line",tds:"text-decoration-skip",tj:"text-justify",to:"text-orientation",tup:"text-underline-position",ub:"unicode-bidi",ur:"unicode-range",wa:"-webkit-appearance",wad:"-webkit-animation-duration",wafm:"-webkit-animation-fill-mode",waic:"-webkit-animation-iteration-count",wan:"-webkit-animation-name",waps:"-webkit-animation-play-state",watf:"-webkit-animation-timing-function",wbf:"-webkit-box-flex",wbv:"-webkit-backface-visibility",wbc:"-webkit-background-composite",wbo:"-webkit-box-orient",wbi:"-webkit-break-inside",wba:"-webkit-break-after",wbd:"-webkit-box-direction",wbfg:"-webkit-box-flex-group",wbog:"-webkit-box-ordinal-group",wbp:"-webkit-box-pack",wbr:"-webkit-box-reflect",wbs:"-webkit-box-sizing",wbb:"-webkit-border-before",wcba:"-webkit-column-break-after",wcbb:"-webkit-column-break-before",wcbi:"-webkit-column-break-inside",wcc:"-webkit-column-count",wcg:"-webkit-column-gap",wcr:"-webkit-column-rule",wcrc:"-webkit-column-rule-color",wcrs:"-webkit-column-rule-style",wcrw:"-webkit-column-rule-width",wc:"will-change",wcs:"-webkit-column-span",wcw:"-webkit-column-width",wf:"-webkit-filter",wff:"-webkit-flow-from",wfi:"-webkit-flow-into",wffs:"-webkit-font-feature-settings",wh:"-webkit-hyphens",wlb:"-webkit-line-break",wmbc:"-webkit-margin-bottom-collapse",wmc:"-webkit-mask-composite",wms:"-webkit-mask-size",wmtc:"-webkit-margin-top-collapse",wmi:"-webkit-mask-image",wmo:"-webkit-mask-origin",wmr:"-webkit-mask-repeat",wnm:"-webkit-nbsp-mode",wps:"-webkit-padding-start",wp:"-webkit-perspective",wpo:"-webkit-perspective-origin",wrf:"-webkit-region-fragment",wthc:"-webkit-tap-highlight-color",wtfc:"-webkit-text-fill-color",wtsa:"-webkit-text-size-adjust",wts:"-webkit-transform-style",wtsc:"-webkit-text-stroke-color",wtsw:"-webkit-text-stroke-width",wtc:"-webkit-touch-callout",wt:"-webkit-transition",wto:"-webkit-transform-origin",wtox:"-webkit-transform-origin-x",wtoy:"-webkit-transform-origin-y",wtoz:"-webkit-transform-origin-z",wtd:"-webkit-transition-duration",wtp:"-webkit-transition-property",wttf:"-webkit-transition-timing-function",wud:"-webkit-user-drag",wum:"-webkit-user-modify",wus:"-webkit-user-select",wi:"widows",ws:"word-spacing",wm:"-webkit-mask",zm:"zoom",mia:"-ms-ime-align",mcp:"-moz-context-properties",mfe:"-moz-float-edge",mfbii:"-moz-force-broken-image-icon",mir:"-moz-image-region",mors:"-moz-outline-radius",morb:"-moz-outline-radius-bottomright",mort:"-moz-outline-radius-topright",mss:"-moz-stack-sizing",mtb:"-moz-text-blink",mui:"-moz-user-input",mum:"-moz-user-modify",mwd:"-moz-window-dragging",mws:"-moz-window-shadow",wbbc:"-webkit-border-before-color",wbbs:"-webkit-border-before-style",wbbw:"-webkit-border-before-width",wlc:"-webkit-line-clamp",wma:"-webkit-mask-attachment",wmp:"-webkit-mask-position",wmpx:"-webkit-mask-position-x",wmpy:"-webkit-mask-position-y",wmrx:"-webkit-mask-repeat-x",wmry:"-webkit-mask-repeat-y",acc:"accent-color",animt:"animation-timeline",bf:"box-flex",bbc:"border-block-color",bbw:"border-block-width",beer:"border-end-end-radius",besr:"border-end-start-radius",bic:"border-inline-color",bser:"border-start-end-radius",bssr:"border-start-start-radius",bod:"box-direction",bfg:"box-flex-group",bol:"box-lines",bog:"box-ordinal-group",bo:"box-orient",bp:"box-pack",pca:"print-color-adjust",cv:"content-visibility",fos:"font-optical-sizing",fvs:"font-variation-settings",fca:"forced-color-adjust",hp:"hanging-punctuation",hc:"hyphenate-character",il:"initial-letter",ila:"initial-letter-align",ib:"inset-block",ibe:"inset-block-end",ibs:"inset-block-start",ii:"inset-inline",iie:"inset-inline-end",iis:"inset-inline-start",lhs:"line-height-step",mbr:"mask-border-repeat",mbw:"mask-border-width",mal:"max-lines",od:"offset-distance",ofr:"offset-rotate",ob:"overscroll-behavior",ocb:"overflow-clip-box",ocm:"overflow-clip-margin",oi:"overflow-inline",obb:"overscroll-behavior-block",obx:"overscroll-behavior-x",oby:"overscroll-behavior-y",pab:"padding-block",pi:"place-items",pc:"place-content",ps:"place-self",rm:"ruby-merge",sg:"scrollbar-gutter",sw:"scrollbar-width",smb:"scroll-margin-bottom",smbs:"scroll-margin-block-start",smbe:"scroll-margin-block-end",smi:"scroll-margin-inline",smis:"scroll-margin-inline-start",smie:"scroll-margin-inline-end",sml:"scroll-margin-left",smr:"scroll-margin-right",smt:"scroll-margin-top",sp:"scroll-padding",spb:"scroll-padding-bottom",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spi:"scroll-padding-inline",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",spl:"scroll-padding-left",spr:"scroll-padding-right",spt:"scroll-padding-top",ssa:"scroll-snap-align",sss:"scroll-snap-stop",sstx:"scroll-snap-type-x",ssty:"scroll-snap-type-y",tcu:"text-combine-upright",tdsi:"text-decoration-skip-ink",tdt:"text-decoration-thickness",te:"text-emphasis",tec:"text-emphasis-color",tep:"text-emphasis-position",tes:"text-emphasis-style",tsa:"text-size-adjust",tuo:"text-underline-offset",tb:"transform-box",trl:"translate",sa:"size-adjust",ao:"ascent-override",do:"descent-override",fd:"font-display",lgo:"line-gap-override",iv:"initial-value",uz:"user-zoom",vf:"viewport-fit"},l={af:"after",be:"before",fl:"first-letter",fli:"first-line",ph:"placeholder",a:"active",c:"checked",d:"default",di:"disabled",e:"empty",en:"enabled",fi:"first",fc:"first-child",fot:"first-of-type",fs:"fullscreen",f:"focus",fw:"focus-within",fv:"focus-visible",h:"hover",ind:"indeterminate",ir:"in-range",inv:"invalid",lc:"last-child",lot:"last-of-type",l:"left",li:"link",oc:"only-child",oot:"only-of-type",o:"optional",oor:"out-of-range",ps:"placeholder-shown",ro:"read-only",rw:"read-write",req:"required",r:"right",rt:"root",s:"scope",t:"target",va:"valid",vi:"visited",sl:"slotted",fil:"first-line",cp:"corner-present",sb:"single-button",nc:"nth-col",onot:"only-of-type",mal:"-moz-any-link",mb:"-ms-browse",mdo:"-moz-drag-over",mfn:"-moz-first-node",mf:"-ms-fill",mfs:"-moz-full-screen",mln:"-moz-list-number",mow:"-moz-only-whitespace",mp:"-moz-placeholder",msi:"-moz-submit-invalid",ms:"-moz-selection",mui:"-moz-ui-invalid",muv:"-moz-ui-valid",mud:"-moz-user-disabled",mwi:"-moz-window-inactive",mip:"-ms-input-placeholder",mka:"-ms-keyboard-active",nlc:"nth-last-col",ouor:"out-of-range",reo:"read-only",tw:"target-within",wfs:"-webkit-full-screen",ui:"user-invalid",uv:"user-valid",pls:"placeholder-shown",pip:"picture-in-picture",mfi:"-moz-focus-inner",mfo:"-moz-focus-outer",mlb:"-moz-list-bullet",mpb:"-moz-progress-bar",mc:"-ms-clear",me:"-ms-expand",mfl:"-ms-fill-lower",mfu:"-ms-fill-upper",mr:"-ms-reveal",mt:"-ms-track",mta:"-ms-ticks-after",mtb:"-ms-ticks-before",mv:"-ms-value",wfub:"-webkit-file-upload-button",wisb:"-webkit-inner-spin-button",wip:"-webkit-input-placeholder",wks:"-webkit-keygen-select",wmb:"-webkit-meter-bar",wmelgv:"-webkit-meter-even-less-good-value",wmov:"-webkit-meter-optimum-value",wmsv:"-webkit-meter-suboptimum-value",wosb:"-webkit-outer-spin-button",wpb:"-webkit-progress-bar",wpie:"-webkit-progress-inner-element",wpv:"-webkit-progress-value",wr:"-webkit-resizer",ws:"-webkit-scrollbar",wsb:"-webkit-scrollbar-button",wsc:"-webkit-scrollbar-corner",wst:"-webkit-slider-thumb",wstp:"-webkit-scrollbar-track-piece",wscb:"-webkit-search-cancel-button",wsd:"-webkit-search-decoration",wsrb:"-webkit-search-results-button",wsrd:"-webkit-search-results-decoration",wsrt:"-webkit-slider-runnable-track",wtdc:"-webkit-textfield-decoration-container",wvb:"-webkit-validation-bubble",wvba:"-webkit-validation-bubble-arrow",wvbac:"-webkit-validation-bubble-arrow-clipper",wvbh:"-webkit-validation-bubble-heading",wvbm:"-webkit-validation-bubble-message",wvbtb:"-webkit-validation-bubble-text-block",tt:"target-text",mrp:"-moz-range-progress",mrt:"-moz-range-track",wpiv:"-webkit-progress-inner-value",se:"spelling-error",nch:"nth-child",nlch:"nth-last-child",nlot:"nth-last-of-type",ntot:"nth-of-type"},c=function(t,e){if(e.includes("@")){var i,o=e.includes("@+"),r=e.replace(/.*@\+?|!/g,""),s=t.breakpoints[r];r=s||r;var n=Number(null!=(i=r.replace(/\D/g,""))?i:"0"),a=r.replace(/.*\d+/g,"");return o?""+(n-(s?1:0))+a:r}return"default"},m=function(t){return t.replace(/^("|'|`|\s)/g,"")},b=function(t){return Array.from(new Set(t))},d=function(t){return/content:\s+\(.*\)/g.test(t)?t.replace(/\(|\)/g,"'"):t},u=function(t,e){return d("{ "+t+": "+e+" }")};function p(){var t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t};return t.apply(this,arguments)}var f=function(t){return t.replace(/\|/g,"\\|").replace(/,/g,"\\,").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\?/g,"\\?").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\//g,"\\/").replace(/\.\w*:/g,(function(t){return t.replace(/:/g,"\\:")})).replace(/;/g,"\\;").replace(/@/g,"\\@").replace(/#/g,"\\#").replace(/'/g,"\\'").replace(/"/g,'\\"').replace(/%/g,"\\%").replace(/\+/g,"\\+").replace(/>/g,"\\>").replace(/!/g,"\\!").replace(/`/g,"\\`").replace(/\.\d/g,(function(t){return"\\"+t})).replace(/\^/g,"\\^").replace(/(-child|-type|:lang)\\\([\w-+\\]*\\\)/g,(function(t){var e=t.replace(/.*\\\(|\\\)/g,"").replace(/_|\\/g," ");return t.replace(/\\\(.*/g,"("+e+")")}))},g=new(function(){function t(){this.id=0,this.events={}}var e=t.prototype;return e.on=function(t,e){var i;return this.id++,this.events=p({},this.events,((i={})[t]=[].concat(this.events[t]||[],[{listener:e,id:this.id}]),i)),this.id},e.off=function(t){for(var e in this.events){var i=void 0;this.events=p({},this.events,((i={})[e]=this.events[e].filter((function(e){return e.id!==t})),i))}},e.emit=function(t,e){this.events[t]&&this.events[t].forEach((function(t){(0,t.listener)(e)}))},t}()),w=function(t,e){return Object.entries(t).reduce((function(t,i){var o;return p({},t,((o={})[i[0]]=Object.entries(i[1]).reduce((function(t,i){return p({},t,e(i[0],i[1]))}),{}),o))}),{})},h=function(t){return/translateX/g.test(t)?t.replace(/calc\(/,"calc(-1 * (").replace(/\)$/g,"))").replace(/\)\s*!important/g,")) !important"):/translate\(/g.test(t)?t.replace(/calc\(/,"calc(-1 * (").replace(/\),/g,")),"):t};exports.AgileCss=function(){function t(){this.defaultConfig={breakpoints:{sm:"768px",md:"992px",lg:"1200px"},custom:{},cache:!0,parentSelector:"",defaultCss:"",exclude:[],defaultClassNames:[]},this.classNames=[],this.styles={},this.config=this.defaultConfig,this.cache=[],this._customValue=function(t){return t},this.cssProps=a,this.pseudo=l,this.valid=new Set,this.value="",this.prevInput=""}var e=t.prototype;return e.handlePluginAddStyles=function(t){this.styles=p({},this.styles,t)},e.handlePluginAddBase=function(t){this.config.defaultCss.includes(t)||(this.config.defaultCss=this.config.defaultCss+"\n"+t)},e.handlePluginAddComponent=function(t){this.handlePluginAddBase(t)},e.plugins=function(t){var e=this;g.on("plugin",(function(){t.length&&t.forEach((function(t){t({config:e.config,cssProps:e.cssProps,pseudo:e.pseudo,styles:e.styles,input:e.value,prevInput:e.prevInput,addStyles:e.handlePluginAddStyles.bind(e),addBase:e.handlePluginAddBase.bind(e),addComponent:e.handlePluginAddComponent.bind(e)})}))}))},e.on=function(t,e){return g.on(t,e)},e.off=function(t){g.off(t)},e._setClassNames=function(){var t=function(t,e,i){var o=Object.keys(i).reduce((function(i,o){var r=new RegExp("(\"|'|`|\\s)"+o+":(\\w|\\/|\\||\\.|\\+|\\*|\\(|\\)|\\!|%|@|#|,|;|-)*","g");return[].concat(i,(t.match(r)||[]).reduce((function(t,i){if(function(t){var e,i,o,r=m(t);return null!=(null==(e=r.match(/\(|\)/g))?void 0:e.length)&&(null!=(i=null==(o=r.match(/\(|\)/g))?void 0:o.length)?i:0)%2!=0}(i))return t;var o=m(i);return e.exclude.includes(o)||!/:./g.test(o)?t:[].concat(t,[o])}),[]))}),[]);return b([].concat(o,e.defaultClassNames))}(this.value.replace(/@agilecss-ignore.*\n.*/g,""),this.config,this.cssProps);this.classNames=b([].concat(this.classNames,t))},e._isMediaMaxWidth=function(t){return t.replace(/\\/g,"").includes("@+")},e._checkValidate=function(t,e,i){var o,r,s=c(this.config,e),n=this.config.breakpoints[s]||s,a=this._isMediaMaxWidth(e),l=f(e),m=l+" "+i;if("default"!==n&&(m="@media ("+(a?"max":"min")+"-width:"+n+") { "+l+" "+i+" }"),this.valid.has(m))return!1;var b=null===(o=(r=this.config).validator)?void 0:o.call(r,m);return null!==b&&b.length?(g.emit("invalid",{message:b[0].message,className:t}),this.classNames=this.classNames.filter((function(e){return e!==t})),!0):(g.emit("valid",{message:"Compiled successfully",className:t}),this.valid.add(m),!1)},e._setStyles=function(){var t=this;this.styles=this.classNames.reduce((function(e,i){var s,n,a=i.replace(/:.*/g,""),l=t.cssProps[a],m=c(t.config,i),b=function(t){return/!/g.test(t)?" !important":""}(i),f=""+t._customValue(function(t,e){return e.replace(o,"").replace(r," ").split(" ").reduce((function(e,i){var o;return e+" "+((null==(o=t.custom[i])?void 0:o.toString())||i)}),"").trim()}(t.config,i))+b,g=t.config.parentSelector?t.config.parentSelector+" ":"";if(!l||!i.includes(":")||!f)return e;var w=g+"."+(i.includes("|")?""+i+function(t){var e=t.match(/\|\w*(\([\w-+]*\)|)/g);return e?e.reduce((function(t,e){var i=e.replace(/^\||\(.*\)/g,""),o=e.replace(/.*\(|\)|[\|\w-]*$/g,""),r=pseudo[i]||i;return o?t+":"+r+"("+o+")":t+":"+r}),""):""}(i):i),h=u(l,f);return t._checkValidate(i,w,h)?e:p({},e,((n={})[m]=p({},e[m],((s={})[w]=[l,d(f)],s)),n))}),{}),g.emit("plugin",void 0)},e._setCache=function(){this.cache.push(this.value);var t=this.cache.length;t>1e6&&(this.cache=this.cache.slice(t-1e6,t))},e.find=function(t){return this.value=t,this.config.cache?this.cache.includes(t)||(this._setClassNames(),this._setStyles(),this._setCache()):(this._setClassNames(),this._setStyles()),this.prevInput=t,g.emit("success",this.getCss()),this},e.setConfig=function(t){return t||(t={}),this.config=p({},this.defaultConfig,t),this},e.setClassNames=function(t){return this.classNames=[].concat(this.classNames,t),this._setStyles(),g.emit("success",this.getCss()),this},e.getCss=function(){var t=this,e=Object.entries(this.styles).reduce((function(e,i){var o=i[0],r=i[1],s=t.config.breakpoints[o]||o,n=Object.keys(r),a=t._isMediaMaxWidth(n[0]),l=Object.entries(r).reduce((function(t,e){var i=e[0],o=e[1];if(!Array.isArray(o))return t;var r=u.apply(void 0,o);return t+"\n"+f(i).replace(/\s+/g," ")+" "+r}),"");return"default"===s?e+"\n"+l:e+"\n@media ("+(a?"max":"min")+"-width:"+s+") { "+l+" }"}),"");return(this.config.defaultCss+"\n"+e).replace(/\n+/g,"\n")},e.getClassNames=function(){return this.classNames},e.reset=function(){return this.classNames=[],this.styles={},this.cache=[],this.valid=new Set,this},e.customValue=function(t){this._customValue=t},e.addPropsSyntax=function(t){this.cssProps=p({},this.cssProps,t)},e.addPseudoSyntax=function(t){this.pseudo=p({},this.pseudo,t)},t}(),exports.defineConfig=function(t){return function(){return t}},exports.pfs=function(t,e){var i=t,o=e;return i||(i=400),o||(o=1200),function(t){(0,t.addStyles)(w(t.styles,(function(t,e){var r,a=e[0],l=e[1];if(/pfs\(.*\)/g.test(l)){var c,m,b,d,u=null!=(c=null==(m=l.match(s))?void 0:m.map(Number))?c:n,p=u[0],f=u[1],g="clamp("+p+"px, "+function(t){var e=Object.keys(t),i=Object.values(t);if(2!==e.length)throw new Error("cssLinearInterpolation() value must be exactly 2 values");var o=(i[1]-i[0])/(Number(e[1])-Number(e[0])),r=i[0]-o*Number(e[0]),s="+";return r<0&&(s="-",r=Math.abs(r)),100*o+"vw "+s+" "+r+"px"}(((b={})[i]=p,b[o]=f,b))+", "+f+"px)";return(d={})[t]=[a,g],d}return(r={})[t]=e,r})))}},exports.pixelToRem=function(t){return function(e){(0,e.addStyles)(w(e.styles,(function(e,i){var o,r=i[0],s=i[1];if(/[\d.]*px/g.test(s)){var n,a=s.replace(/[\d.]*px/g,(function(e){return 62.5*Number(e.replace("px",""))/t/10+"rem"}));return(n={})[e]=[r,a],n}return(o={})[e]=i,o})))}},exports.rtl=function(){return function(t){var i=t.addBase;(0,t.addStyles)(w(t.styles,(function(t,o){var r,s,n,a,l,c=o[0],m=o[1],b=Object.entries(e((r={},r[c]=m,r)))[0],d=b[0],u=b[1],p=t.includes("[dir=rtl] ")?"":"[dir=rtl] ";return d!==c?(i(f(""+p+t)+" { "+c+": initial }"),(n={})[t]=o,n[""+p+t]=[d,m],n):u!==m?((a={})[t]=o,a[""+p+t]=[c,u],a):/translate(\(calc|X\(calc)/g.test(m)?((l={})[t]=o,l[""+p+t]=[c,h(m)],l):((s={})[t]=o,s)})))}},exports.type={__proto__:null},exports.validator=function(t){var e=i.getCSSLanguageService(),o=i.TextDocument.create("untitled://untitled","css",1,t),r=e.parseStylesheet(o);return e.doValidation(o,r)}; | ||
//# sourceMappingURL=agile-css.cjs.production.min.js.map |
@@ -863,3 +863,3 @@ import rtlCSSJS from 'rtl-css-js'; | ||
var handleValueHasContent$1 = function handleValueHasContent(value) { | ||
var handleValueHasContent = function handleValueHasContent(value) { | ||
// check content: (This is a content); -> content: 'This is a content'; | ||
@@ -871,3 +871,3 @@ return /content:\s+\(.*\)/g.test(value) ? value.replace(/\(|\)/g, "'") : value; | ||
var result = '{ ' + prop + ': ' + value + ' }'; | ||
return handleValueHasContent$1(result); | ||
return handleValueHasContent(result); | ||
}; | ||
@@ -874,0 +874,0 @@ |
{ | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"type": "module", | ||
"engines": { | ||
@@ -10,3 +11,3 @@ "node": ">=14" | ||
"bin": { | ||
"agile-css": "./cli.mjs" | ||
"agile-css": "./cli.js" | ||
}, | ||
@@ -25,3 +26,3 @@ "files": [ | ||
"analyze": "size-limit --why", | ||
"test:cli": "node cli.mjs -w", | ||
"test:cli": "node cli.js -w", | ||
"agile-css": "agile-css -w" | ||
@@ -62,3 +63,3 @@ }, | ||
"dependencies": { | ||
"agile-css": "^1.1.4", | ||
"agile-css": "^1.1.6", | ||
"chokidar": "^3.5.3", | ||
@@ -65,0 +66,0 @@ "commander": "^10.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
407776
Yes
Updatedagile-css@^1.1.6