| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637 |
- "use strict";
- // autogenerated - 2026-01-06
- // https://www.w3.org/Style/CSS/all-properties.en.html
- var external_dependency_parsers_0 = require("../parsers.js");
- var backgroundImage_export_parse, backgroundImage_export_definition, backgroundImage_export_property;
- const backgroundImage_local_var_property = "background-image";
- const backgroundImage_local_var_shorthand = "background";
- backgroundImage_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundImage_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveGradientUrlValue(value);
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- } else if (typeof value === "string") {
- parsedValues.push(value);
- } else {
- return;
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- backgroundImage_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundImage_local_var_shorthand, "");
- this._setProperty(backgroundImage_local_var_property, v);
- } else {
- const val = backgroundImage_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundImage_local_var_shorthand) && this._priorities.has(backgroundImage_local_var_property) ? this._priorities.get(backgroundImage_local_var_property) : "";
- this._setProperty(backgroundImage_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundImage_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundImage_export_property = backgroundImage_local_var_property;
- var backgroundPosition_export_parse, backgroundPosition_export_definition, backgroundPosition_export_property;
- const backgroundPosition_local_var_property = "background-position";
- const backgroundPosition_local_var_shorthand = "background";
- const backgroundPosition_local_var_keyX = ["left", "right"];
- const backgroundPosition_local_var_keyY = ["top", "bottom"];
- const backgroundPosition_local_var_keywordsX = ["center", ...backgroundPosition_local_var_keyX];
- const backgroundPosition_local_var_keywordsY = ["center", ...backgroundPosition_local_var_keyY];
- const backgroundPosition_local_var_keywords = ["center", ...backgroundPosition_local_var_keyX, ...backgroundPosition_local_var_keyY];
- backgroundPosition_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundPosition_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- const [part1, part2, part3, part4] = value;
- let parsedValue = "";
- switch (value.length) {
- case 1:
- {
- const val1 = part1.type === AST_TYPES.IDENTIFIER ? part1.name : external_dependency_parsers_0.resolveNumericValue([part1], {
- type: "length"
- });
- if (val1) {
- if (val1 === "center") {
- parsedValue = `${val1} ${val1}`;
- } else if (val1 === "top" || val1 === "bottom") {
- parsedValue = `center ${val1}`;
- } else {
- parsedValue = `${val1} center`;
- }
- }
- break;
- }
- case 2:
- {
- const val1 = part1.type === AST_TYPES.IDENTIFIER ? part1.name : external_dependency_parsers_0.resolveNumericValue([part1], {
- type: "length"
- });
- const val2 = part2.type === AST_TYPES.IDENTIFIER ? part2.name : external_dependency_parsers_0.resolveNumericValue([part2], {
- type: "length"
- });
- if (val1 && val2) {
- if (backgroundPosition_local_var_keywordsX.includes(val1) && backgroundPosition_local_var_keywordsY.includes(val2)) {
- parsedValue = `${val1} ${val2}`;
- } else if (backgroundPosition_local_var_keywordsY.includes(val1) && backgroundPosition_local_var_keywordsX.includes(val2)) {
- parsedValue = `${val2} ${val1}`;
- } else if (backgroundPosition_local_var_keywordsX.includes(val1)) {
- if (val2 === "center" || !backgroundPosition_local_var_keywordsX.includes(val2)) {
- parsedValue = `${val1} ${val2}`;
- }
- } else if (backgroundPosition_local_var_keywordsY.includes(val2)) {
- if (!backgroundPosition_local_var_keywordsY.includes(val1)) {
- parsedValue = `${val1} ${val2}`;
- }
- } else if (!backgroundPosition_local_var_keywordsY.includes(val1) && !backgroundPosition_local_var_keywordsX.includes(val2)) {
- parsedValue = `${val1} ${val2}`;
- }
- }
- break;
- }
- case 3:
- {
- const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
- const val2 = part2.type === AST_TYPES.IDENTIFIER ? part2.name : external_dependency_parsers_0.resolveNumericValue([part2], {
- type: "length"
- });
- const val3 = part3.type === AST_TYPES.IDENTIFIER ? part3.name : external_dependency_parsers_0.resolveNumericValue([part3], {
- type: "length"
- });
- if (val1 && val2 && val3) {
- let posX = "";
- let offX = "";
- let posY = "";
- let offY = "";
- if (backgroundPosition_local_var_keywordsX.includes(val1)) {
- if (backgroundPosition_local_var_keyY.includes(val2)) {
- if (!backgroundPosition_local_var_keywords.includes(val3)) {
- posX = val1;
- posY = val2;
- offY = val3;
- }
- } else if (backgroundPosition_local_var_keyY.includes(val3)) {
- if (!backgroundPosition_local_var_keywords.includes(val2)) {
- posX = val1;
- offX = val2;
- posY = val3;
- }
- }
- } else if (backgroundPosition_local_var_keywordsY.includes(val1)) {
- if (backgroundPosition_local_var_keyX.includes(val2)) {
- if (!backgroundPosition_local_var_keywords.includes(val3)) {
- posX = val2;
- offX = val3;
- posY = val1;
- }
- } else if (backgroundPosition_local_var_keyX.includes(val3)) {
- if (!backgroundPosition_local_var_keywords.includes(val2)) {
- posX = val3;
- posY = val1;
- offY = val2;
- }
- }
- }
- if (posX && posY) {
- if (offX) {
- parsedValue = `${posX} ${offX} ${posY}`;
- } else if (offY) {
- parsedValue = `${posX} ${posY} ${offY}`;
- }
- }
- }
- break;
- }
- case 4:
- {
- const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
- const val2 = external_dependency_parsers_0.resolveNumericValue([part2], {
- type: "length"
- });
- const val3 = part3.type === AST_TYPES.IDENTIFIER && part3.name;
- const val4 = external_dependency_parsers_0.resolveNumericValue([part4], {
- type: "length"
- });
- if (val1 && val2 && val3 && val4) {
- let posX = "";
- let offX = "";
- let posY = "";
- let offY = "";
- if (backgroundPosition_local_var_keywordsX.includes(val1) && backgroundPosition_local_var_keyY.includes(val3)) {
- posX = val1;
- offX = val2;
- posY = val3;
- offY = val4;
- } else if (backgroundPosition_local_var_keyX.includes(val1) && backgroundPosition_local_var_keywordsY.includes(val3)) {
- posX = val1;
- offX = val2;
- posY = val3;
- offY = val4;
- } else if (backgroundPosition_local_var_keyY.includes(val1) && backgroundPosition_local_var_keywordsX.includes(val3)) {
- posX = val3;
- offX = val4;
- posY = val1;
- offY = val2;
- }
- if (posX && offX && posY && offY) {
- parsedValue = `${posX} ${offX} ${posY} ${offY}`;
- }
- }
- break;
- }
- default:
- }
- if (parsedValue) {
- parsedValues.push(parsedValue);
- } else {
- return;
- }
- } else if (typeof value === "string") {
- parsedValues.push(value);
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- backgroundPosition_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundPosition_local_var_shorthand, "");
- this._setProperty(backgroundPosition_local_var_property, v);
- } else {
- const val = backgroundPosition_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundPosition_local_var_shorthand) && this._priorities.has(backgroundPosition_local_var_property) ? this._priorities.get(backgroundPosition_local_var_property) : "";
- this._setProperty(backgroundPosition_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundPosition_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundPosition_export_property = backgroundPosition_local_var_property;
- var backgroundSize_export_parse, backgroundSize_export_definition, backgroundSize_export_property;
- const backgroundSize_local_var_property = "background-size";
- const backgroundSize_local_var_shorthand = "background";
- backgroundSize_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundSize_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- if (value.length === 1) {
- const [{
- isNumber,
- name,
- type,
- value: itemValue
- }] = value;
- switch (type) {
- case AST_TYPES.CALC:
- {
- if (isNumber) {
- return;
- }
- parsedValues.push(`${name}(${itemValue})`);
- break;
- }
- case AST_TYPES.GLOBAL_KEYWORD:
- case AST_TYPES.IDENTIFIER:
- {
- parsedValues.push(name);
- break;
- }
- default:
- {
- const parsedValue = external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- }
- }
- } else {
- const [val1, val2] = value;
- const parts = [];
- if (val1.type === AST_TYPES.CALC && !val1.isNumber) {
- parts.push(`${val1.name}(${val1.value})`);
- } else if (val1.type === AST_TYPES.IDENTIFIER) {
- parts.push(val1.name);
- } else if (val1.type === AST_TYPES.DIMENSION) {
- parts.push(`${val1.value}${val1.unit}`);
- } else if (val1.type === AST_TYPES.PERCENTAGE) {
- parts.push(`${val1.value}%`);
- } else {
- return;
- }
- switch (val2.type) {
- case AST_TYPES.CALC:
- {
- if (val2.isNumber) {
- return;
- }
- parts.push(`${val2.name}(${val2.value})`);
- break;
- }
- case AST_TYPES.DIMENSION:
- {
- parts.push(`${val2.value}${val2.unit}`);
- break;
- }
- case AST_TYPES.IDENTIFIER:
- {
- if (val2.name !== "auto") {
- parts.push(val2.name);
- }
- break;
- }
- case AST_TYPES.PERCENTAGE:
- {
- parts.push(`${val2.value}%`);
- break;
- }
- default:
- {
- return;
- }
- }
- parsedValues.push(parts.join(" "));
- }
- } else if (typeof value === "string") {
- parsedValues.push(value);
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- backgroundSize_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundSize_local_var_shorthand, "");
- this._setProperty(backgroundSize_local_var_property, v);
- } else {
- const val = backgroundSize_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundSize_local_var_shorthand) && this._priorities.has(backgroundSize_local_var_property) ? this._priorities.get(backgroundSize_local_var_property) : "";
- this._setProperty(backgroundSize_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundSize_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundSize_export_property = backgroundSize_local_var_property;
- var backgroundRepeat_export_parse, backgroundRepeat_export_definition, backgroundRepeat_export_property;
- const backgroundRepeat_local_var_property = "background-repeat";
- const backgroundRepeat_local_var_shorthand = "background";
- backgroundRepeat_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundRepeat_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- let parsedValue = "";
- switch (value.length) {
- case 1:
- {
- const [part1] = value;
- const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
- if (val1) {
- parsedValue = val1;
- }
- break;
- }
- case 2:
- {
- const [part1, part2] = value;
- const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
- const val2 = part2.type === AST_TYPES.IDENTIFIER && part2.name;
- if (val1 && val2) {
- if (val1 === "repeat" && val2 === "no-repeat") {
- parsedValue = "repeat-x";
- } else if (val1 === "no-repeat" && val2 === "repeat") {
- parsedValue = "repeat-y";
- } else if (val1 === val2) {
- parsedValue = val1;
- } else {
- parsedValue = `${val1} ${val2}`;
- }
- }
- break;
- }
- default:
- }
- if (parsedValue) {
- parsedValues.push(parsedValue);
- } else {
- return;
- }
- } else if (typeof value === "string") {
- parsedValues.push(value);
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- backgroundRepeat_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundRepeat_local_var_shorthand, "");
- this._setProperty(backgroundRepeat_local_var_property, v);
- } else {
- const val = backgroundRepeat_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundRepeat_local_var_shorthand) && this._priorities.has(backgroundRepeat_local_var_property) ? this._priorities.get(backgroundRepeat_local_var_property) : "";
- this._setProperty(backgroundRepeat_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundRepeat_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundRepeat_export_property = backgroundRepeat_local_var_property;
- var backgroundOrigin_export_parse, backgroundOrigin_export_definition, backgroundOrigin_export_property;
- const backgroundOrigin_local_var_property = "background-origin";
- const backgroundOrigin_local_var_shorthand = "background";
- backgroundOrigin_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundOrigin_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveKeywordValue(value);
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- } else if (typeof value === "string") {
- parsedValues.push(value);
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- backgroundOrigin_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundOrigin_local_var_shorthand, "");
- this._setProperty(backgroundOrigin_local_var_property, v);
- } else {
- const val = backgroundOrigin_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundOrigin_local_var_shorthand) && this._priorities.has(backgroundOrigin_local_var_property) ? this._priorities.get(backgroundOrigin_local_var_property) : "";
- this._setProperty(backgroundOrigin_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundOrigin_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundOrigin_export_property = backgroundOrigin_local_var_property;
- var backgroundClip_export_parse, backgroundClip_export_definition, backgroundClip_export_property;
- const backgroundClip_local_var_property = "background-clip";
- const backgroundClip_local_var_shorthand = "background";
- backgroundClip_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundClip_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveKeywordValue(value);
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- } else if (typeof value === "string") {
- parsedValues.push(value);
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- backgroundClip_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundClip_local_var_shorthand, "");
- this._setProperty(backgroundClip_local_var_property, v);
- } else {
- const val = backgroundClip_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundClip_local_var_shorthand) && this._priorities.has(backgroundClip_local_var_property) ? this._priorities.get(backgroundClip_local_var_property) : "";
- this._setProperty(backgroundClip_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundClip_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundClip_export_property = backgroundClip_local_var_property;
- var backgroundAttachment_export_parse, backgroundAttachment_export_definition, backgroundAttachment_export_property;
- const backgroundAttachment_local_var_property = "background-attachment";
- const backgroundAttachment_local_var_shorthand = "background";
- backgroundAttachment_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundAttachment_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveKeywordValue(value);
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- } else if (typeof value === "string") {
- parsedValues.push(value);
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- backgroundAttachment_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundAttachment_local_var_shorthand, "");
- this._setProperty(backgroundAttachment_local_var_property, v);
- } else {
- const val = backgroundAttachment_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundAttachment_local_var_shorthand) && this._priorities.has(backgroundAttachment_local_var_property) ? this._priorities.get(backgroundAttachment_local_var_property) : "";
- this._setProperty(backgroundAttachment_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundAttachment_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundAttachment_export_property = backgroundAttachment_local_var_property;
- var backgroundColor_export_parse, backgroundColor_export_definition, backgroundColor_export_property;
- const backgroundColor_local_var_property = "background-color";
- const backgroundColor_local_var_shorthand = "background";
- backgroundColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(backgroundColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- backgroundColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(backgroundColor_local_var_shorthand, "");
- this._setProperty(backgroundColor_local_var_property, v);
- } else {
- const val = backgroundColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(backgroundColor_local_var_shorthand) && this._priorities.has(backgroundColor_local_var_property) ? this._priorities.get(backgroundColor_local_var_property) : "";
- this._setProperty(backgroundColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(backgroundColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- backgroundColor_export_property = backgroundColor_local_var_property;
- var background_export_initialValues, background_export_shorthandFor, background_export_parse, background_export_definition, background_export_property;
- const background_local_var_property = "background";
- background_export_initialValues = new Map([[{
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property, "none"], [{
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property, "0% 0%"], [{
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property, "auto"], [{
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property, "repeat"], [{
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property, "padding-box"], [{
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property, "border-box"], [{
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }.property, "scroll"], [{
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property, "transparent"]]);
- background_export_shorthandFor = new Map([[{
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property, {
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }], [{
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property, {
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }], [{
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property, {
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }], [{
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property, {
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }], [{
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property, {
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }], [{
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property, {
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }], [{
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }.property, {
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }], [{
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property, {
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }]]);
- background_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- } else if (external_dependency_parsers_0.hasCalcFunc(v)) {
- v = external_dependency_parsers_0.resolveCalc(v);
- }
- if (!external_dependency_parsers_0.isValidPropertyValue(background_local_var_property, v)) {
- return;
- }
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const bgValues = [];
- const l = values.length;
- for (let i = 0; i < l; i++) {
- let bg = {
- [{
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property),
- [{
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property),
- [{
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property),
- [{
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property),
- [{
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property),
- [{
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property),
- [{
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }.property),
- [{
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property)
- };
- if (l > 1 && i !== l - 1) {
- bg = {
- [{
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property),
- [{
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property),
- [{
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property),
- [{
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property),
- [{
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property),
- [{
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property),
- [{
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }.property]: background_export_initialValues.get({
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }.property)
- };
- }
- const bgPosition = [];
- const bgSize = [];
- const bgRepeat = [];
- const bgBox = [];
- const bgParts = external_dependency_parsers_0.splitValue(values[i], {
- delimiter: "/"
- });
- if (!bgParts.length || bgParts.length > 2) {
- return;
- }
- const [bgPart1, bgPart2 = ""] = bgParts;
- const parts1 = external_dependency_parsers_0.splitValue(bgPart1);
- for (const part of parts1) {
- let partValid = false;
- for (const [longhand, value] of background_export_shorthandFor) {
- if (external_dependency_parsers_0.isValidPropertyValue(longhand, part)) {
- partValid = true;
- switch (longhand) {
- case {
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property:
- case {
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bgBox.push(parsedValue);
- }
- break;
- }
- case {
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property:
- {
- if (i !== values.length - 1) {
- return;
- }
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bg[longhand] = parsedValue;
- }
- break;
- }
- case {
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bgPosition.push(parsedValue);
- }
- break;
- }
- case {
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bgRepeat.push(parsedValue);
- }
- break;
- }
- case {
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property:
- {
- break;
- }
- default:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bg[longhand] = parsedValue;
- }
- }
- }
- }
- }
- if (!partValid) {
- return;
- }
- }
- if (bgPart2) {
- const parts2 = external_dependency_parsers_0.splitValue(bgPart2);
- for (const part of parts2) {
- let partValid = false;
- for (const [longhand, value] of background_export_shorthandFor) {
- if (external_dependency_parsers_0.isValidPropertyValue(longhand, part)) {
- partValid = true;
- switch (longhand) {
- case {
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property:
- case {
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bgBox.push(parsedValue);
- }
- break;
- }
- case {
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property:
- {
- if (i !== l - 1) {
- return;
- }
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bg[longhand] = parsedValue;
- }
- break;
- }
- case {
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property:
- {
- break;
- }
- case {
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bgRepeat.push(parsedValue);
- }
- break;
- }
- case {
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bgSize.push(parsedValue);
- }
- break;
- }
- default:
- {
- const parsedValue = value.parse(part, {
- globalObject
- });
- if (parsedValue) {
- bg[longhand] = parsedValue;
- }
- }
- }
- }
- }
- if (!partValid) {
- return;
- }
- }
- }
- if (bgPosition.length) {
- const {
- parse: parser
- } = background_export_shorthandFor.get({
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property);
- const value = parser(bgPosition.join(" "), {
- globalObject
- });
- if (value) {
- bg[{
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property] = value;
- }
- }
- if (bgSize.length) {
- const {
- parse: parser
- } = background_export_shorthandFor.get({
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property);
- const value = parser(bgSize.join(" "), {
- globalObject
- });
- if (value) {
- bg[{
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property] = value;
- }
- }
- if (bgRepeat.length) {
- const {
- parse: parser
- } = background_export_shorthandFor.get({
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property);
- const value = parser(bgRepeat.join(" "), {
- globalObject
- });
- if (value) {
- bg[{
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property] = value;
- }
- }
- if (bgBox.length) {
- switch (bgBox.length) {
- case 1:
- {
- const [value] = bgBox;
- bg[{
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property] = value;
- bg[{
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property] = value;
- break;
- }
- case 2:
- {
- const [value1, value2] = bgBox;
- bg[{
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property] = value1;
- bg[{
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property] = value2;
- break;
- }
- default:
- {
- return;
- }
- }
- }
- bgValues.push(bg);
- }
- return bgValues;
- };
- background_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (v === "" || external_dependency_parsers_0.hasVarFunc(v)) {
- for (const [key] of background_export_shorthandFor) {
- this._setProperty(key, "");
- }
- this._setProperty(background_local_var_property, v);
- } else {
- const bgValues = background_export_parse(v, {
- globalObject: this._global
- });
- if (!Array.isArray(bgValues)) {
- return;
- }
- const bgMap = new Map([[{
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property, []], [{
- parse: backgroundPosition_export_parse,
- definition: backgroundPosition_export_definition,
- property: backgroundPosition_export_property
- }.property, []], [{
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property, []], [{
- parse: backgroundRepeat_export_parse,
- definition: backgroundRepeat_export_definition,
- property: backgroundRepeat_export_property
- }.property, []], [{
- parse: backgroundOrigin_export_parse,
- definition: backgroundOrigin_export_definition,
- property: backgroundOrigin_export_property
- }.property, []], [{
- parse: backgroundClip_export_parse,
- definition: backgroundClip_export_definition,
- property: backgroundClip_export_property
- }.property, []], [{
- parse: backgroundAttachment_export_parse,
- definition: backgroundAttachment_export_definition,
- property: backgroundAttachment_export_property
- }.property, []], [{
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property, []]]);
- const backgrounds = [];
- for (const bgValue of bgValues) {
- const bg = [];
- for (const [longhand, value] of Object.entries(bgValue)) {
- if (value) {
- const arr = bgMap.get(longhand);
- arr.push(value);
- bgMap.set(longhand, arr);
- if (value !== background_export_initialValues.get(longhand)) {
- if (longhand === {
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property) {
- bg.push(`/ ${value}`);
- } else {
- bg.push(value);
- }
- } else if (longhand === {
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property) {
- if (v === "none") {
- bg.push(value);
- }
- } else if (longhand === {
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property) {
- if (v === "transparent") {
- bg.push(value);
- }
- }
- }
- }
- backgrounds.push(bg.join(" "));
- }
- const priority = this._priorities.get(background_local_var_property) ?? "";
- for (const [longhand, value] of bgMap) {
- this._setProperty(longhand, value.join(", "), priority);
- }
- this._setProperty(background_local_var_property, backgrounds.join(", "), priority);
- }
- },
- get() {
- const v = this.getPropertyValue(background_local_var_property);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- return v;
- }
- const bgMap = new Map();
- let l = 0;
- for (const [longhand] of background_export_shorthandFor) {
- const val = this.getPropertyValue(longhand);
- if (longhand === {
- parse: backgroundImage_export_parse,
- definition: backgroundImage_export_definition,
- property: backgroundImage_export_property
- }.property) {
- if (val === "none" && v === "none" && this.getPropertyValue({
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property) === "transparent") {
- return val;
- }
- if (val !== background_export_initialValues.get(longhand)) {
- const imgValues = external_dependency_parsers_0.splitValue(val, {
- delimiter: ","
- });
- l = imgValues.length;
- bgMap.set(longhand, imgValues);
- }
- } else if (longhand === {
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property) {
- if (val !== background_export_initialValues.get(longhand) || v.includes(val)) {
- bgMap.set(longhand, [val]);
- }
- } else if (val !== background_export_initialValues.get(longhand)) {
- bgMap.set(longhand, external_dependency_parsers_0.splitValue(val, {
- delimiter: ","
- }));
- }
- }
- if (l === 0) {
- const bgColArr = bgMap.get({
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property);
- const background = bgColArr ? bgColArr[0] : null;
- if (background) {
- return background;
- }
- return "";
- }
- const bgValues = [];
- for (let i = 0; i < l; i++) {
- bgValues[i] = [];
- }
- for (const [longhand, values] of bgMap) {
- for (let i = 0; i < l; i++) {
- switch (longhand) {
- case {
- parse: backgroundColor_export_parse,
- definition: backgroundColor_export_definition,
- property: backgroundColor_export_property
- }.property:
- {
- if (i === l - 1) {
- const value = values[0];
- if (external_dependency_parsers_0.hasVarFunc(value)) {
- return "";
- }
- if (value && value !== background_export_initialValues.get(longhand)) {
- const bgValue = bgValues[i];
- bgValue.push(value);
- }
- }
- break;
- }
- case {
- parse: backgroundSize_export_parse,
- definition: backgroundSize_export_definition,
- property: backgroundSize_export_property
- }.property:
- {
- const value = values[i];
- if (external_dependency_parsers_0.hasVarFunc(value)) {
- return "";
- }
- if (value && value !== background_export_initialValues.get(longhand)) {
- const bgValue = bgValues[i];
- bgValue.push(`/ ${value}`);
- }
- break;
- }
- default:
- {
- const value = values[i];
- if (external_dependency_parsers_0.hasVarFunc(value)) {
- return "";
- }
- if (value && value !== background_export_initialValues.get(longhand)) {
- const bgValue = bgValues[i];
- bgValue.push(value);
- }
- }
- }
- }
- }
- const backgrounds = [];
- for (const bgValue of bgValues) {
- backgrounds.push(bgValue.join(" "));
- }
- return backgrounds.join(", ");
- },
- enumerable: true,
- configurable: true
- };
- background_export_property = background_local_var_property;
- var borderTopWidth_export_parse, borderTopWidth_export_definition, borderTopWidth_export_property;
- const borderTopWidth_local_var_property = "border-top-width";
- const borderTopWidth_local_var_lineShorthand = "border-width";
- const borderTopWidth_local_var_positionShorthand = "border-top";
- const borderTopWidth_local_var_shorthand = "border";
- borderTopWidth_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderTopWidth_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderTopWidth_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderTopWidth_local_var_property, v, "");
- } else {
- const val = borderTopWidth_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderTopWidth_local_var_shorthand);
- const linePriority = this._priorities.get(borderTopWidth_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderTopWidth_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderTopWidth_local_var_property) ? this._priorities.get(borderTopWidth_local_var_property) : "";
- this._borderSetter(borderTopWidth_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderTopWidth_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderTopWidth_export_property = borderTopWidth_local_var_property;
- var borderRightWidth_export_parse, borderRightWidth_export_definition, borderRightWidth_export_property;
- const borderRightWidth_local_var_property = "border-right-width";
- const borderRightWidth_local_var_lineShorthand = "border-width";
- const borderRightWidth_local_var_positionShorthand = "border-right";
- const borderRightWidth_local_var_shorthand = "border";
- borderRightWidth_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderRightWidth_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderRightWidth_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderRightWidth_local_var_property, v, "");
- } else {
- const val = borderRightWidth_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderRightWidth_local_var_shorthand);
- const linePriority = this._priorities.get(borderRightWidth_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderRightWidth_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderRightWidth_local_var_property) ? this._priorities.get(borderRightWidth_local_var_property) : "";
- this._borderSetter(borderRightWidth_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderRightWidth_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderRightWidth_export_property = borderRightWidth_local_var_property;
- var borderBottomWidth_export_parse, borderBottomWidth_export_definition, borderBottomWidth_export_property;
- const borderBottomWidth_local_var_property = "border-bottom-width";
- const borderBottomWidth_local_var_lineShorthand = "border-width";
- const borderBottomWidth_local_var_positionShorthand = "border-bottom";
- const borderBottomWidth_local_var_shorthand = "border";
- borderBottomWidth_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderBottomWidth_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderBottomWidth_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderBottomWidth_local_var_property, v, "");
- } else {
- const val = borderBottomWidth_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderBottomWidth_local_var_shorthand);
- const linePriority = this._priorities.get(borderBottomWidth_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderBottomWidth_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderBottomWidth_local_var_property) ? this._priorities.get(borderBottomWidth_local_var_property) : "";
- this._borderSetter(borderBottomWidth_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderBottomWidth_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderBottomWidth_export_property = borderBottomWidth_local_var_property;
- var borderLeftWidth_export_parse, borderLeftWidth_export_definition, borderLeftWidth_export_property;
- const borderLeftWidth_local_var_property = "border-left-width";
- const borderLeftWidth_local_var_lineShorthand = "border-width";
- const borderLeftWidth_local_var_positionShorthand = "border-left";
- const borderLeftWidth_local_var_shorthand = "border";
- borderLeftWidth_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderLeftWidth_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderLeftWidth_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderLeftWidth_local_var_property, v, "");
- } else {
- const val = borderLeftWidth_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderLeftWidth_local_var_shorthand);
- const linePriority = this._priorities.get(borderLeftWidth_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderLeftWidth_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderLeftWidth_local_var_property) ? this._priorities.get(borderLeftWidth_local_var_property) : "";
- this._borderSetter(borderLeftWidth_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderLeftWidth_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderLeftWidth_export_property = borderLeftWidth_local_var_property;
- var borderWidth_export_shorthandFor, borderWidth_export_parse, borderWidth_export_definition, borderWidth_export_property;
- const borderWidth_local_var_property = "border-width";
- const borderWidth_local_var_shorthand = "border";
- borderWidth_export_shorthandFor = new Map([[{
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property, {
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }], [{
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property, {
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }], [{
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property, {
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }], [{
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property, {
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }]]);
- borderWidth_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.parsePropertyValue(borderWidth_local_var_property, v, {
- globalObject,
- inArray: true
- });
- const parsedValues = [];
- if (Array.isArray(values) && values.length) {
- if (values.length > 4) {
- return;
- }
- for (const value of values) {
- const parsedValue = external_dependency_parsers_0.resolveNumericValue([value], {
- length: values.length,
- type: "length"
- });
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- }
- } else if (typeof values === "string") {
- parsedValues.push(values);
- }
- if (parsedValues.length) {
- switch (parsedValues.length) {
- case 1:
- {
- return parsedValues;
- }
- case 2:
- {
- const [val1, val2] = parsedValues;
- if (val1 === val2) {
- return [val1];
- }
- return parsedValues;
- }
- case 3:
- {
- const [val1, val2, val3] = parsedValues;
- if (val1 === val3) {
- if (val1 === val2) {
- return [val1];
- }
- return [val1, val2];
- }
- return parsedValues;
- }
- case 4:
- {
- const [val1, val2, val3, val4] = parsedValues;
- if (val2 === val4) {
- if (val1 === val3) {
- if (val1 === val2) {
- return [val1];
- }
- return [val1, val2];
- }
- return [val1, val2, val3];
- }
- return parsedValues;
- }
- default:
- }
- }
- };
- borderWidth_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderWidth_local_var_property, v, "");
- } else {
- const val = borderWidth_export_parse(v, {
- globalObject: this._global
- });
- if (Array.isArray(val) || typeof val === "string") {
- const priority = !this._priorities.get(borderWidth_local_var_shorthand) && this._priorities.has(borderWidth_local_var_property) ? this._priorities.get(borderWidth_local_var_property) : "";
- this._borderSetter(borderWidth_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderWidth_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderWidth_export_property = borderWidth_local_var_property;
- var borderTopStyle_export_parse, borderTopStyle_export_definition, borderTopStyle_export_property;
- const borderTopStyle_local_var_property = "border-top-style";
- const borderTopStyle_local_var_lineShorthand = "border-style";
- const borderTopStyle_local_var_positionShorthand = "border-top";
- const borderTopStyle_local_var_shorthand = "border";
- borderTopStyle_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderTopStyle_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveKeywordValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderTopStyle_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderTopStyle_local_var_property, v, "");
- } else {
- const val = borderTopStyle_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderTopStyle_local_var_shorthand);
- const linePriority = this._priorities.get(borderTopStyle_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderTopStyle_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderTopStyle_local_var_property) ? this._priorities.get(borderTopStyle_local_var_property) : "";
- this._borderSetter(borderTopStyle_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderTopStyle_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderTopStyle_export_property = borderTopStyle_local_var_property;
- var borderRightStyle_export_parse, borderRightStyle_export_definition, borderRightStyle_export_property;
- const borderRightStyle_local_var_property = "border-right-style";
- const borderRightStyle_local_var_lineShorthand = "border-style";
- const borderRightStyle_local_var_positionShorthand = "border-right";
- const borderRightStyle_local_var_shorthand = "border";
- borderRightStyle_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderRightStyle_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveKeywordValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderRightStyle_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderRightStyle_local_var_property, v, "");
- } else {
- const val = borderRightStyle_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderRightStyle_local_var_shorthand);
- const linePriority = this._priorities.get(borderRightStyle_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderRightStyle_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderRightStyle_local_var_property) ? this._priorities.get(borderRightStyle_local_var_property) : "";
- this._borderSetter(borderRightStyle_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderRightStyle_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderRightStyle_export_property = borderRightStyle_local_var_property;
- var borderBottomStyle_export_parse, borderBottomStyle_export_definition, borderBottomStyle_export_property;
- const borderBottomStyle_local_var_property = "border-bottom-style";
- const borderBottomStyle_local_var_lineShorthand = "border-style";
- const borderBottomStyle_local_var_positionShorthand = "border-bottom";
- const borderBottomStyle_local_var_shorthand = "border";
- borderBottomStyle_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderBottomStyle_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveKeywordValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderBottomStyle_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderBottomStyle_local_var_property, v, "");
- } else {
- const val = borderBottomStyle_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderBottomStyle_local_var_shorthand);
- const linePriority = this._priorities.get(borderBottomStyle_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderBottomStyle_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderBottomStyle_local_var_property) ? this._priorities.get(borderBottomStyle_local_var_property) : "";
- this._borderSetter(borderBottomStyle_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderBottomStyle_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderBottomStyle_export_property = borderBottomStyle_local_var_property;
- var borderLeftStyle_export_parse, borderLeftStyle_export_definition, borderLeftStyle_export_property;
- const borderLeftStyle_local_var_property = "border-left-style";
- const borderLeftStyle_local_var_lineShorthand = "border-style";
- const borderLeftStyle_local_var_positionShorthand = "border-left";
- const borderLeftStyle_local_var_shorthand = "border";
- borderLeftStyle_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderLeftStyle_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveKeywordValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderLeftStyle_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderLeftStyle_local_var_property, v, "");
- } else {
- const val = borderLeftStyle_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderLeftStyle_local_var_shorthand);
- const linePriority = this._priorities.get(borderLeftStyle_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderLeftStyle_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderLeftStyle_local_var_property) ? this._priorities.get(borderLeftStyle_local_var_property) : "";
- this._borderSetter(borderLeftStyle_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderLeftStyle_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderLeftStyle_export_property = borderLeftStyle_local_var_property;
- var borderStyle_export_shorthandFor, borderStyle_export_parse, borderStyle_export_definition, borderStyle_export_property;
- const borderStyle_local_var_property = "border-style";
- const borderStyle_local_var_shorthand = "border";
- borderStyle_export_shorthandFor = new Map([[{
- parse: borderTopStyle_export_parse,
- definition: borderTopStyle_export_definition,
- property: borderTopStyle_export_property
- }.property, {
- parse: borderTopStyle_export_parse,
- definition: borderTopStyle_export_definition,
- property: borderTopStyle_export_property
- }], [{
- parse: borderRightStyle_export_parse,
- definition: borderRightStyle_export_definition,
- property: borderRightStyle_export_property
- }.property, {
- parse: borderRightStyle_export_parse,
- definition: borderRightStyle_export_definition,
- property: borderRightStyle_export_property
- }], [{
- parse: borderBottomStyle_export_parse,
- definition: borderBottomStyle_export_definition,
- property: borderBottomStyle_export_property
- }.property, {
- parse: borderBottomStyle_export_parse,
- definition: borderBottomStyle_export_definition,
- property: borderBottomStyle_export_property
- }], [{
- parse: borderLeftStyle_export_parse,
- definition: borderLeftStyle_export_definition,
- property: borderLeftStyle_export_property
- }.property, {
- parse: borderLeftStyle_export_parse,
- definition: borderLeftStyle_export_definition,
- property: borderLeftStyle_export_property
- }]]);
- borderStyle_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.parsePropertyValue(borderStyle_local_var_property, v, {
- globalObject,
- inArray: true
- });
- const parsedValues = [];
- if (Array.isArray(values) && values.length) {
- if (values.length > 4) {
- return;
- }
- for (const value of values) {
- const parsedValue = external_dependency_parsers_0.resolveKeywordValue([value], {
- length: values.length
- });
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- }
- } else if (typeof values === "string") {
- parsedValues.push(values);
- }
- if (parsedValues.length) {
- switch (parsedValues.length) {
- case 1:
- {
- return parsedValues;
- }
- case 2:
- {
- const [val1, val2] = parsedValues;
- if (val1 === val2) {
- return [val1];
- }
- return parsedValues;
- }
- case 3:
- {
- const [val1, val2, val3] = parsedValues;
- if (val1 === val3) {
- if (val1 === val2) {
- return [val1];
- }
- return [val1, val2];
- }
- return parsedValues;
- }
- case 4:
- {
- const [val1, val2, val3, val4] = parsedValues;
- if (val2 === val4) {
- if (val1 === val3) {
- if (val1 === val2) {
- return [val1];
- }
- return [val1, val2];
- }
- return [val1, val2, val3];
- }
- return parsedValues;
- }
- default:
- }
- }
- };
- borderStyle_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderStyle_local_var_property, v, "");
- } else {
- const val = borderStyle_export_parse(v, {
- globalObject: this._global
- });
- if (Array.isArray(val) || typeof val === "string") {
- const priority = !this._priorities.get(borderStyle_local_var_shorthand) && this._priorities.has(borderStyle_local_var_property) ? this._priorities.get(borderStyle_local_var_property) : "";
- this._borderSetter(borderStyle_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderStyle_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderStyle_export_property = borderStyle_local_var_property;
- var borderTopColor_export_parse, borderTopColor_export_definition, borderTopColor_export_property;
- const borderTopColor_local_var_property = "border-top-color";
- const borderTopColor_local_var_lineShorthand = "border-color";
- const borderTopColor_local_var_positionShorthand = "border-top";
- const borderTopColor_local_var_shorthand = "border";
- borderTopColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderTopColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderTopColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderTopColor_local_var_property, v, "");
- } else {
- const val = borderTopColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderTopColor_local_var_shorthand);
- const linePriority = this._priorities.get(borderTopColor_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderTopColor_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderTopColor_local_var_property) ? this._priorities.get(borderTopColor_local_var_property) : "";
- this._borderSetter(borderTopColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderTopColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderTopColor_export_property = borderTopColor_local_var_property;
- var borderRightColor_export_parse, borderRightColor_export_definition, borderRightColor_export_property;
- const borderRightColor_local_var_property = "border-right-color";
- const borderRightColor_local_var_lineShorthand = "border-color";
- const borderRightColor_local_var_positionShorthand = "border-right";
- const borderRightColor_local_var_shorthand = "border";
- borderRightColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderRightColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderRightColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderRightColor_local_var_property, v, "");
- } else {
- const val = borderRightColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderRightColor_local_var_shorthand);
- const linePriority = this._priorities.get(borderRightColor_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderRightColor_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderRightColor_local_var_property) ? this._priorities.get(borderRightColor_local_var_property) : "";
- this._borderSetter(borderRightColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderRightColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderRightColor_export_property = borderRightColor_local_var_property;
- var borderBottomColor_export_parse, borderBottomColor_export_definition, borderBottomColor_export_property;
- const borderBottomColor_local_var_property = "border-bottom-color";
- const borderBottomColor_local_var_lineShorthand = "border-color";
- const borderBottomColor_local_var_positionShorthand = "border-bottom";
- const borderBottomColor_local_var_shorthand = "border";
- borderBottomColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderBottomColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderBottomColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderBottomColor_local_var_property, v, "");
- } else {
- const val = borderBottomColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderBottomColor_local_var_shorthand);
- const linePriority = this._priorities.get(borderBottomColor_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderBottomColor_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderBottomColor_local_var_property) ? this._priorities.get(borderBottomColor_local_var_property) : "";
- this._borderSetter(borderBottomColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderBottomColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderBottomColor_export_property = borderBottomColor_local_var_property;
- var borderLeftColor_export_parse, borderLeftColor_export_definition, borderLeftColor_export_property;
- const borderLeftColor_local_var_property = "border-left-color";
- const borderLeftColor_local_var_lineShorthand = "border-color";
- const borderLeftColor_local_var_positionShorthand = "border-left";
- const borderLeftColor_local_var_shorthand = "border";
- borderLeftColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderLeftColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderLeftColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderLeftColor_local_var_property, v, "");
- } else {
- const val = borderLeftColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const shorthandPriority = this._priorities.get(borderLeftColor_local_var_shorthand);
- const linePriority = this._priorities.get(borderLeftColor_local_var_lineShorthand);
- const positionPriority = this._priorities.get(borderLeftColor_local_var_positionShorthand);
- const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderLeftColor_local_var_property) ? this._priorities.get(borderLeftColor_local_var_property) : "";
- this._borderSetter(borderLeftColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderLeftColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderLeftColor_export_property = borderLeftColor_local_var_property;
- var borderColor_export_shorthandFor, borderColor_export_parse, borderColor_export_definition, borderColor_export_property;
- const borderColor_local_var_property = "border-color";
- const borderColor_local_var_shorthand = "border";
- borderColor_export_shorthandFor = new Map([[{
- parse: borderTopColor_export_parse,
- definition: borderTopColor_export_definition,
- property: borderTopColor_export_property
- }.property, {
- parse: borderTopColor_export_parse,
- definition: borderTopColor_export_definition,
- property: borderTopColor_export_property
- }], [{
- parse: borderRightColor_export_parse,
- definition: borderRightColor_export_definition,
- property: borderRightColor_export_property
- }.property, {
- parse: borderRightColor_export_parse,
- definition: borderRightColor_export_definition,
- property: borderRightColor_export_property
- }], [{
- parse: borderBottomColor_export_parse,
- definition: borderBottomColor_export_definition,
- property: borderBottomColor_export_property
- }.property, {
- parse: borderBottomColor_export_parse,
- definition: borderBottomColor_export_definition,
- property: borderBottomColor_export_property
- }], [{
- parse: borderLeftColor_export_parse,
- definition: borderLeftColor_export_definition,
- property: borderLeftColor_export_property
- }.property, {
- parse: borderLeftColor_export_parse,
- definition: borderLeftColor_export_definition,
- property: borderLeftColor_export_property
- }]]);
- borderColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.parsePropertyValue(borderColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- const parsedValues = [];
- if (Array.isArray(values) && values.length) {
- if (values.length > 4) {
- return;
- }
- for (const value of values) {
- const parsedValue = external_dependency_parsers_0.resolveColorValue([value], {
- length: values.length
- });
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- }
- } else if (typeof values === "string") {
- parsedValues.push(values);
- }
- if (parsedValues.length) {
- switch (parsedValues.length) {
- case 1:
- {
- return parsedValues;
- }
- case 2:
- {
- const [val1, val2] = parsedValues;
- if (val1 === val2) {
- return [val1];
- }
- return parsedValues;
- }
- case 3:
- {
- const [val1, val2, val3] = parsedValues;
- if (val1 === val3) {
- if (val1 === val2) {
- return [val1];
- }
- return [val1, val2];
- }
- return parsedValues;
- }
- case 4:
- {
- const [val1, val2, val3, val4] = parsedValues;
- if (val2 === val4) {
- if (val1 === val3) {
- if (val1 === val2) {
- return [val1];
- }
- return [val1, val2];
- }
- return [val1, val2, val3];
- }
- return parsedValues;
- }
- default:
- }
- }
- };
- borderColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderColor_local_var_property, v, "");
- } else {
- const val = borderColor_export_parse(v, {
- globalObject: this._global
- });
- if (Array.isArray(val) || typeof val === "string") {
- const priority = !this._priorities.get(borderColor_local_var_shorthand) && this._priorities.has(borderColor_local_var_property) ? this._priorities.get(borderColor_local_var_property) : "";
- this._borderSetter(borderColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderColor_export_property = borderColor_local_var_property;
- var borderTop_export_initialValues, borderTop_export_shorthandFor, borderTop_export_parse, borderTop_export_definition, borderTop_export_property;
- const borderTop_local_var_property = "border-top";
- const borderTop_local_var_shorthand = "border";
- const borderTop_local_var_subProps = {
- width: {
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property,
- style: {
- parse: borderTopStyle_export_parse,
- definition: borderTopStyle_export_definition,
- property: borderTopStyle_export_property
- }.property,
- color: {
- parse: borderTopColor_export_parse,
- definition: borderTopColor_export_definition,
- property: borderTopColor_export_property
- }.property
- };
- borderTop_export_initialValues = new Map([[{
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property, "medium"], [{
- parse: borderTopStyle_export_parse,
- definition: borderTopStyle_export_definition,
- property: borderTopStyle_export_property
- }.property, "none"], [{
- parse: borderTopColor_export_parse,
- definition: borderTopColor_export_definition,
- property: borderTopColor_export_property
- }.property, "currentcolor"]]);
- borderTop_export_shorthandFor = new Map([[{
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property, {
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }], [{
- parse: borderTopStyle_export_parse,
- definition: borderTopStyle_export_definition,
- property: borderTopStyle_export_property
- }.property, {
- parse: borderTopStyle_export_parse,
- definition: borderTopStyle_export_definition,
- property: borderTopStyle_export_property
- }], [{
- parse: borderTopColor_export_parse,
- definition: borderTopColor_export_definition,
- property: borderTopColor_export_property
- }.property, {
- parse: borderTopColor_export_parse,
- definition: borderTopColor_export_definition,
- property: borderTopColor_export_property
- }]]);
- borderTop_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v);
- const parsedValues = new Map();
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(borderTop_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderTop_local_var_subProps, parsedValues);
- if (typeof parsedValue === "string") {
- return parsedValue;
- } else if (Array.isArray(parsedValue)) {
- const [key, resolvedVal] = parsedValue;
- parsedValues.set(key, resolvedVal);
- } else {
- return;
- }
- } else {
- return;
- }
- }
- if (parsedValues.size) {
- const keys = borderTop_export_shorthandFor.keys();
- const obj = {
- [{
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property]: "medium"
- };
- for (const key of keys) {
- if (parsedValues.has(key)) {
- const parsedValue = parsedValues.get(key);
- if (parsedValue !== borderTop_export_initialValues.get(key)) {
- obj[key] = parsedValues.get(key);
- if (obj[{
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property] && obj[{
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property] === "medium") {
- delete obj[{
- parse: borderTopWidth_export_parse,
- definition: borderTopWidth_export_definition,
- property: borderTopWidth_export_property
- }.property];
- }
- }
- }
- }
- return obj;
- }
- };
- borderTop_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderTop_local_var_property, v, "");
- } else {
- const val = borderTop_export_parse(v, {
- globalObject: this._global
- });
- if (val || typeof val === "string") {
- const priority = !this._priorities.get(borderTop_local_var_shorthand) && this._priorities.has(borderTop_local_var_property) ? this._priorities.get(borderTop_local_var_property) : "";
- this._borderSetter(borderTop_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderTop_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderTop_export_property = borderTop_local_var_property;
- var borderRight_export_initialValues, borderRight_export_shorthandFor, borderRight_export_parse, borderRight_export_definition, borderRight_export_property;
- const borderRight_local_var_property = "border-right";
- const borderRight_local_var_shorthand = "border";
- const borderRight_local_var_subProps = {
- width: {
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property,
- style: {
- parse: borderRightStyle_export_parse,
- definition: borderRightStyle_export_definition,
- property: borderRightStyle_export_property
- }.property,
- color: {
- parse: borderRightColor_export_parse,
- definition: borderRightColor_export_definition,
- property: borderRightColor_export_property
- }.property
- };
- borderRight_export_initialValues = new Map([[{
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property, "medium"], [{
- parse: borderRightStyle_export_parse,
- definition: borderRightStyle_export_definition,
- property: borderRightStyle_export_property
- }.property, "none"], [{
- parse: borderRightColor_export_parse,
- definition: borderRightColor_export_definition,
- property: borderRightColor_export_property
- }.property, "currentcolor"]]);
- borderRight_export_shorthandFor = new Map([[{
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property, {
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }], [{
- parse: borderRightStyle_export_parse,
- definition: borderRightStyle_export_definition,
- property: borderRightStyle_export_property
- }.property, {
- parse: borderRightStyle_export_parse,
- definition: borderRightStyle_export_definition,
- property: borderRightStyle_export_property
- }], [{
- parse: borderRightColor_export_parse,
- definition: borderRightColor_export_definition,
- property: borderRightColor_export_property
- }.property, {
- parse: borderRightColor_export_parse,
- definition: borderRightColor_export_definition,
- property: borderRightColor_export_property
- }]]);
- borderRight_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v);
- const parsedValues = new Map();
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(borderRight_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderRight_local_var_subProps, parsedValues);
- if (typeof parsedValue === "string") {
- return parsedValue;
- } else if (Array.isArray(parsedValue)) {
- const [key, resolvedVal] = parsedValue;
- parsedValues.set(key, resolvedVal);
- } else {
- return;
- }
- } else {
- return;
- }
- }
- if (parsedValues.size) {
- const keys = borderRight_export_shorthandFor.keys();
- const obj = {
- [{
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property]: "medium"
- };
- for (const key of keys) {
- if (parsedValues.has(key)) {
- const parsedValue = parsedValues.get(key);
- if (parsedValue !== borderRight_export_initialValues.get(key)) {
- obj[key] = parsedValues.get(key);
- if (obj[{
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property] && obj[{
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property] === "medium") {
- delete obj[{
- parse: borderRightWidth_export_parse,
- definition: borderRightWidth_export_definition,
- property: borderRightWidth_export_property
- }.property];
- }
- }
- }
- }
- return obj;
- }
- };
- borderRight_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderRight_local_var_property, v, "");
- } else {
- const val = borderRight_export_parse(v, {
- globalObject: this._global
- });
- if (val || typeof val === "string") {
- const priority = !this._priorities.get(borderRight_local_var_shorthand) && this._priorities.has(borderRight_local_var_property) ? this._priorities.get(borderRight_local_var_property) : "";
- this._borderSetter(borderRight_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderRight_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderRight_export_property = borderRight_local_var_property;
- var borderBottom_export_initialValues, borderBottom_export_shorthandFor, borderBottom_export_parse, borderBottom_export_definition, borderBottom_export_property;
- const borderBottom_local_var_property = "border-bottom";
- const borderBottom_local_var_shorthand = "border";
- const borderBottom_local_var_subProps = {
- width: {
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property,
- style: {
- parse: borderBottomStyle_export_parse,
- definition: borderBottomStyle_export_definition,
- property: borderBottomStyle_export_property
- }.property,
- color: {
- parse: borderBottomColor_export_parse,
- definition: borderBottomColor_export_definition,
- property: borderBottomColor_export_property
- }.property
- };
- borderBottom_export_initialValues = new Map([[{
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property, "medium"], [{
- parse: borderBottomStyle_export_parse,
- definition: borderBottomStyle_export_definition,
- property: borderBottomStyle_export_property
- }.property, "none"], [{
- parse: borderBottomColor_export_parse,
- definition: borderBottomColor_export_definition,
- property: borderBottomColor_export_property
- }.property, "currentcolor"]]);
- borderBottom_export_shorthandFor = new Map([[{
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property, {
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }], [{
- parse: borderBottomStyle_export_parse,
- definition: borderBottomStyle_export_definition,
- property: borderBottomStyle_export_property
- }.property, {
- parse: borderBottomStyle_export_parse,
- definition: borderBottomStyle_export_definition,
- property: borderBottomStyle_export_property
- }], [{
- parse: borderBottomColor_export_parse,
- definition: borderBottomColor_export_definition,
- property: borderBottomColor_export_property
- }.property, {
- parse: borderBottomColor_export_parse,
- definition: borderBottomColor_export_definition,
- property: borderBottomColor_export_property
- }]]);
- borderBottom_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v);
- const parsedValues = new Map();
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(borderBottom_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderBottom_local_var_subProps, parsedValues);
- if (typeof parsedValue === "string") {
- return parsedValue;
- } else if (Array.isArray(parsedValue)) {
- const [key, resolvedVal] = parsedValue;
- parsedValues.set(key, resolvedVal);
- } else {
- return;
- }
- } else {
- return;
- }
- }
- if (parsedValues.size) {
- const keys = borderBottom_export_shorthandFor.keys();
- const obj = {
- [{
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property]: "medium"
- };
- for (const key of keys) {
- if (parsedValues.has(key)) {
- const parsedValue = parsedValues.get(key);
- if (parsedValue !== borderBottom_export_initialValues.get(key)) {
- obj[key] = parsedValues.get(key);
- if (obj[{
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property] && obj[{
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property] === "medium") {
- delete obj[{
- parse: borderBottomWidth_export_parse,
- definition: borderBottomWidth_export_definition,
- property: borderBottomWidth_export_property
- }.property];
- }
- }
- }
- }
- return obj;
- }
- };
- borderBottom_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderBottom_local_var_property, v, "");
- } else {
- const val = borderBottom_export_parse(v, {
- globalObject: this._global
- });
- if (val || typeof val === "string") {
- const priority = !this._priorities.get(borderBottom_local_var_shorthand) && this._priorities.has(borderBottom_local_var_property) ? this._priorities.get(borderBottom_local_var_property) : "";
- this._borderSetter(borderBottom_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderBottom_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderBottom_export_property = borderBottom_local_var_property;
- var borderLeft_export_initialValues, borderLeft_export_shorthandFor, borderLeft_export_parse, borderLeft_export_definition, borderLeft_export_property;
- const borderLeft_local_var_property = "border-left";
- const borderLeft_local_var_shorthand = "border";
- const borderLeft_local_var_subProps = {
- width: {
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property,
- style: {
- parse: borderLeftStyle_export_parse,
- definition: borderLeftStyle_export_definition,
- property: borderLeftStyle_export_property
- }.property,
- color: {
- parse: borderLeftColor_export_parse,
- definition: borderLeftColor_export_definition,
- property: borderLeftColor_export_property
- }.property
- };
- borderLeft_export_initialValues = new Map([[{
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property, "medium"], [{
- parse: borderLeftStyle_export_parse,
- definition: borderLeftStyle_export_definition,
- property: borderLeftStyle_export_property
- }.property, "none"], [{
- parse: borderLeftColor_export_parse,
- definition: borderLeftColor_export_definition,
- property: borderLeftColor_export_property
- }.property, "currentcolor"]]);
- borderLeft_export_shorthandFor = new Map([[{
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property, {
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }], [{
- parse: borderLeftStyle_export_parse,
- definition: borderLeftStyle_export_definition,
- property: borderLeftStyle_export_property
- }.property, {
- parse: borderLeftStyle_export_parse,
- definition: borderLeftStyle_export_definition,
- property: borderLeftStyle_export_property
- }], [{
- parse: borderLeftColor_export_parse,
- definition: borderLeftColor_export_definition,
- property: borderLeftColor_export_property
- }.property, {
- parse: borderLeftColor_export_parse,
- definition: borderLeftColor_export_definition,
- property: borderLeftColor_export_property
- }]]);
- borderLeft_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v);
- const parsedValues = new Map();
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(borderLeft_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderLeft_local_var_subProps, parsedValues);
- if (typeof parsedValue === "string") {
- return parsedValue;
- } else if (Array.isArray(parsedValue)) {
- const [key, resolvedVal] = parsedValue;
- parsedValues.set(key, resolvedVal);
- } else {
- return;
- }
- } else {
- return;
- }
- }
- if (parsedValues.size) {
- const keys = borderLeft_export_shorthandFor.keys();
- const obj = {
- [{
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property]: "medium"
- };
- for (const key of keys) {
- if (parsedValues.has(key)) {
- const parsedValue = parsedValues.get(key);
- if (parsedValue !== borderLeft_export_initialValues.get(key)) {
- obj[key] = parsedValues.get(key);
- if (obj[{
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property] && obj[{
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property] === "medium") {
- delete obj[{
- parse: borderLeftWidth_export_parse,
- definition: borderLeftWidth_export_definition,
- property: borderLeftWidth_export_property
- }.property];
- }
- }
- }
- }
- return obj;
- }
- };
- borderLeft_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(borderLeft_local_var_property, v, "");
- } else {
- const val = borderLeft_export_parse(v, {
- globalObject: this._global
- });
- if (val || typeof val === "string") {
- const priority = !this._priorities.get(borderLeft_local_var_shorthand) && this._priorities.has(borderLeft_local_var_property) ? this._priorities.get(borderLeft_local_var_property) : "";
- this._borderSetter(borderLeft_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderLeft_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderLeft_export_property = borderLeft_local_var_property;
- var border_export_initialValues, border_export_shorthandFor, border_export_positionShorthandFor, border_export_parse, border_export_definition, border_export_property;
- const border_local_var_property = "border";
- const border_local_var_subProps = {
- width: {
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }.property,
- style: {
- shorthandFor: borderStyle_export_shorthandFor,
- parse: borderStyle_export_parse,
- definition: borderStyle_export_definition,
- property: borderStyle_export_property
- }.property,
- color: {
- shorthandFor: borderColor_export_shorthandFor,
- parse: borderColor_export_parse,
- definition: borderColor_export_definition,
- property: borderColor_export_property
- }.property
- };
- border_export_initialValues = new Map([[{
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }.property, "medium"], [{
- shorthandFor: borderStyle_export_shorthandFor,
- parse: borderStyle_export_parse,
- definition: borderStyle_export_definition,
- property: borderStyle_export_property
- }.property, "none"], [{
- shorthandFor: borderColor_export_shorthandFor,
- parse: borderColor_export_parse,
- definition: borderColor_export_definition,
- property: borderColor_export_property
- }.property, "currentcolor"]]);
- border_export_shorthandFor = new Map([[{
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }.property, {
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }], [{
- shorthandFor: borderStyle_export_shorthandFor,
- parse: borderStyle_export_parse,
- definition: borderStyle_export_definition,
- property: borderStyle_export_property
- }.property, {
- shorthandFor: borderStyle_export_shorthandFor,
- parse: borderStyle_export_parse,
- definition: borderStyle_export_definition,
- property: borderStyle_export_property
- }], [{
- shorthandFor: borderColor_export_shorthandFor,
- parse: borderColor_export_parse,
- definition: borderColor_export_definition,
- property: borderColor_export_property
- }.property, {
- shorthandFor: borderColor_export_shorthandFor,
- parse: borderColor_export_parse,
- definition: borderColor_export_definition,
- property: borderColor_export_property
- }]]);
- border_export_positionShorthandFor = new Map([[{
- initialValues: borderTop_export_initialValues,
- shorthandFor: borderTop_export_shorthandFor,
- parse: borderTop_export_parse,
- definition: borderTop_export_definition,
- property: borderTop_export_property
- }.property, {
- initialValues: borderTop_export_initialValues,
- shorthandFor: borderTop_export_shorthandFor,
- parse: borderTop_export_parse,
- definition: borderTop_export_definition,
- property: borderTop_export_property
- }], [{
- initialValues: borderRight_export_initialValues,
- shorthandFor: borderRight_export_shorthandFor,
- parse: borderRight_export_parse,
- definition: borderRight_export_definition,
- property: borderRight_export_property
- }.property, {
- initialValues: borderRight_export_initialValues,
- shorthandFor: borderRight_export_shorthandFor,
- parse: borderRight_export_parse,
- definition: borderRight_export_definition,
- property: borderRight_export_property
- }], [{
- initialValues: borderBottom_export_initialValues,
- shorthandFor: borderBottom_export_shorthandFor,
- parse: borderBottom_export_parse,
- definition: borderBottom_export_definition,
- property: borderBottom_export_property
- }.property, {
- initialValues: borderBottom_export_initialValues,
- shorthandFor: borderBottom_export_shorthandFor,
- parse: borderBottom_export_parse,
- definition: borderBottom_export_definition,
- property: borderBottom_export_property
- }], [{
- initialValues: borderLeft_export_initialValues,
- shorthandFor: borderLeft_export_shorthandFor,
- parse: borderLeft_export_parse,
- definition: borderLeft_export_definition,
- property: borderLeft_export_property
- }.property, {
- initialValues: borderLeft_export_initialValues,
- shorthandFor: borderLeft_export_shorthandFor,
- parse: borderLeft_export_parse,
- definition: borderLeft_export_definition,
- property: borderLeft_export_property
- }]]);
- border_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "" || external_dependency_parsers_0.hasVarFunc(v)) {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v);
- const parsedValues = new Map();
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(border_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, border_local_var_subProps, parsedValues);
- if (typeof parsedValue === "string") {
- return parsedValue;
- } else if (Array.isArray(parsedValue)) {
- const [key, resolvedVal] = parsedValue;
- parsedValues.set(key, resolvedVal);
- } else {
- return;
- }
- } else {
- return;
- }
- }
- if (parsedValues.size) {
- const keys = border_export_shorthandFor.keys();
- const obj = {
- [{
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }.property]: "medium"
- };
- for (const key of keys) {
- if (parsedValues.has(key)) {
- const parsedValue = parsedValues.get(key);
- if (parsedValue !== border_export_initialValues.get(key)) {
- obj[key] = parsedValues.get(key);
- if (obj[{
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }.property] && obj[{
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }.property] === "medium") {
- delete obj[{
- shorthandFor: borderWidth_export_shorthandFor,
- parse: borderWidth_export_parse,
- definition: borderWidth_export_definition,
- property: borderWidth_export_property
- }.property];
- }
- }
- }
- }
- return obj;
- }
- };
- border_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._borderSetter(border_local_var_property, v, "");
- } else {
- const val = border_export_parse(v, {
- globalObject: this._global
- });
- if (val || typeof val === "string") {
- const priority = this._priorities.get(border_local_var_property) ?? "";
- this._borderSetter(border_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(border_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- border_export_property = border_local_var_property;
- var borderCollapse_export_parse, borderCollapse_export_definition, borderCollapse_export_property;
- const borderCollapse_local_var_property = "border-collapse";
- borderCollapse_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderCollapse_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveKeywordValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderCollapse_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(borderCollapse_local_var_property, v);
- } else {
- const val = borderCollapse_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(borderCollapse_local_var_property) ?? "";
- this._setProperty(borderCollapse_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderCollapse_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderCollapse_export_property = borderCollapse_local_var_property;
- var borderSpacing_export_parse, borderSpacing_export_definition, borderSpacing_export_property;
- const borderSpacing_local_var_property = "border-spacing";
- borderSpacing_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(borderSpacing_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- switch (value.length) {
- case 1:
- {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- }
- case 2:
- {
- const [part1, part2] = value;
- const val1 = external_dependency_parsers_0.resolveNumericValue([part1], {
- type: "length"
- });
- const val2 = external_dependency_parsers_0.resolveNumericValue([part2], {
- type: "length"
- });
- if (val1 && val2) {
- return `${val1} ${val2}`;
- }
- break;
- }
- default:
- }
- } else if (typeof value === "string") {
- return value;
- }
- };
- borderSpacing_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(borderSpacing_local_var_property, v);
- } else {
- const val = borderSpacing_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(borderSpacing_local_var_property) ?? "";
- this._setProperty(borderSpacing_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(borderSpacing_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- borderSpacing_export_property = borderSpacing_local_var_property;
- var bottom_export_parse, bottom_export_definition, bottom_export_property;
- const bottom_local_var_property = "bottom";
- bottom_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(bottom_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- bottom_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(bottom_local_var_property, v);
- } else {
- const val = bottom_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(bottom_local_var_property) ?? "";
- this._setProperty(bottom_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(bottom_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- bottom_export_property = bottom_local_var_property;
- var clear_export_parse, clear_export_definition, clear_export_property;
- const clear_local_var_property = "clear";
- clear_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(clear_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveKeywordValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- clear_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(clear_local_var_property, v);
- } else {
- const val = clear_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(clear_local_var_property) ?? "";
- this._setProperty(clear_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(clear_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- clear_export_property = clear_local_var_property;
- var clip_export_parse, clip_export_definition, clip_export_property;
- // deprecated
- // @see https://drafts.csswg.org/css-masking-1/#clip-property
- const clip_local_var_property = "clip";
- clip_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const value = external_dependency_parsers_0.parsePropertyValue(clip_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const [{
- name,
- type,
- value: itemValue
- }] = value;
- switch (type) {
- case AST_TYPES.FUNCTION:
- {
- const values = external_dependency_parsers_0.splitValue(itemValue, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const item of values) {
- const parsedValue = external_dependency_parsers_0.parseCSS(item, {
- context: "value"
- }, true);
- const val = external_dependency_parsers_0.resolveNumericValue(parsedValue.children, {
- type: "length"
- });
- if (val) {
- parsedValues.push(val);
- } else {
- return;
- }
- }
- return `${name}(${parsedValues.join(", ")})`;
- }
- case AST_TYPES.GLOBAL_KEYWORD:
- case AST_TYPES.IDENTIFIER:
- {
- return name;
- }
- default:
- }
- } else if (typeof value === "string") {
- return value;
- }
- };
- clip_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(clip_local_var_property, v);
- } else {
- const val = clip_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(clip_local_var_property) ?? "";
- this._setProperty(clip_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(clip_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- clip_export_property = clip_local_var_property;
- var color_export_parse, color_export_definition, color_export_property;
- const color_local_var_property = "color";
- color_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(color_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- color_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(color_local_var_property, v);
- } else {
- const val = color_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(color_local_var_property) ?? "";
- this._setProperty(color_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(color_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- color_export_property = color_local_var_property;
- var display_export_parse, display_export_definition, display_export_property;
- const display_local_var_property = "display";
- /* keywords */
- const display_local_var_displayOutside = ["block", "inline", "run-in"];
- const display_local_var_displayFlow = ["flow", "flow-root"];
- display_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const value = external_dependency_parsers_0.parsePropertyValue(display_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- switch (value.length) {
- case 1:
- {
- const [{
- name,
- type
- }] = value;
- switch (type) {
- case AST_TYPES.GLOBAL_KEYWORD:
- {
- return name;
- }
- case AST_TYPES.IDENTIFIER:
- {
- if (name === "flow") {
- return "block";
- }
- return name;
- }
- default:
- }
- break;
- }
- case 2:
- {
- const [part1, part2] = value;
- const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
- const val2 = part2.type === AST_TYPES.IDENTIFIER && part2.name;
- if (val1 && val2) {
- let outerValue = "";
- let innerValue = "";
- if (val1 === "list-item") {
- outerValue = val2;
- innerValue = val1;
- } else if (val2 === "list-item") {
- outerValue = val1;
- innerValue = val2;
- } else if (display_local_var_displayOutside.includes(val1)) {
- outerValue = val1;
- innerValue = val2;
- } else if (display_local_var_displayOutside.includes(val2)) {
- outerValue = val2;
- innerValue = val1;
- }
- if (innerValue === "list-item") {
- switch (outerValue) {
- case "block":
- case "flow":
- {
- return innerValue;
- }
- case "flow-root":
- case "inline":
- case "run-in":
- {
- return `${outerValue} ${innerValue}`;
- }
- default:
- }
- } else if (outerValue === "block") {
- switch (innerValue) {
- case "flow":
- {
- return outerValue;
- }
- case "flow-root":
- case "flex":
- case "grid":
- case "table":
- {
- return innerValue;
- }
- case "ruby":
- {
- return `${outerValue} ${innerValue}`;
- }
- default:
- }
- } else if (outerValue === "inline") {
- switch (innerValue) {
- case "flow":
- {
- return outerValue;
- }
- case "flow-root":
- {
- return `${outerValue}-block`;
- }
- case "flex":
- case "grid":
- case "table":
- {
- return `${outerValue}-${innerValue}`;
- }
- case "ruby":
- {
- return innerValue;
- }
- default:
- }
- } else if (outerValue === "run-in") {
- switch (innerValue) {
- case "flow":
- {
- return outerValue;
- }
- case "flow-root":
- case "flex":
- case "grid":
- case "table":
- case "ruby":
- {
- return `${outerValue} ${innerValue}`;
- }
- default:
- }
- }
- }
- break;
- }
- case 3:
- {
- const [part1, part2, part3] = value;
- const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
- const val2 = part2.type === AST_TYPES.IDENTIFIER && part2.name;
- const val3 = part3.type === AST_TYPES.IDENTIFIER && part3.name;
- if (val1 && val2 && part3) {
- let outerValue = "";
- let flowValue = "";
- let listItemValue = "";
- if (val1 === "list-item") {
- listItemValue = val1;
- if (display_local_var_displayFlow.includes(val2)) {
- flowValue = val2;
- outerValue = val3;
- } else if (display_local_var_displayFlow.includes(val3)) {
- flowValue = val3;
- outerValue = val2;
- }
- } else if (val2 === "list-item") {
- listItemValue = val2;
- if (display_local_var_displayFlow.includes(val1)) {
- flowValue = val1;
- outerValue = val3;
- } else if (display_local_var_displayFlow.includes(val3)) {
- flowValue = val3;
- outerValue = val1;
- }
- } else if (val3 === "list-item") {
- listItemValue = val3;
- if (display_local_var_displayFlow.includes(val1)) {
- flowValue = val1;
- outerValue = val2;
- } else if (display_local_var_displayFlow.includes(val2)) {
- flowValue = val2;
- outerValue = val1;
- }
- }
- if (outerValue && flowValue && listItemValue) {
- switch (outerValue) {
- case "block":
- {
- if (flowValue === "flow") {
- return listItemValue;
- }
- return `${flowValue} ${listItemValue}`;
- }
- case "inline":
- case "run-in":
- {
- if (flowValue === "flow") {
- return `${outerValue} ${listItemValue}`;
- }
- return `${outerValue} ${flowValue} ${listItemValue}`;
- }
- }
- }
- }
- break;
- }
- default:
- }
- } else if (typeof value === "string") {
- return value;
- }
- };
- display_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(display_local_var_property, v);
- } else {
- const val = display_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(display_local_var_property) ?? "";
- this._setProperty(display_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(display_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- display_export_property = display_local_var_property;
- var flexGrow_export_parse, flexGrow_export_definition, flexGrow_export_property;
- const flexGrow_local_var_property = "flex-grow";
- const flexGrow_local_var_shorthand = "flex";
- flexGrow_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue("flex-grow", v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- flexGrow_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(flexGrow_local_var_shorthand, "");
- this._setProperty(flexGrow_local_var_property, v);
- } else {
- const val = flexGrow_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(flexGrow_local_var_shorthand) && this._priorities.has(flexGrow_local_var_property) ? this._priorities.get(flexGrow_local_var_property) : "";
- this._flexBoxSetter(flexGrow_local_var_property, val, priority, flexGrow_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(flexGrow_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- flexGrow_export_property = flexGrow_local_var_property;
- var flexShrink_export_parse, flexShrink_export_definition, flexShrink_export_property;
- const flexShrink_local_var_property = "flex-shrink";
- const flexShrink_local_var_shorthand = "flex";
- flexShrink_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(flexShrink_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- flexShrink_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(flexShrink_local_var_shorthand, "");
- this._setProperty(flexShrink_local_var_property, v);
- } else {
- const val = flexShrink_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(flexShrink_local_var_shorthand) && this._priorities.has(flexShrink_local_var_property) ? this._priorities.get(flexShrink_local_var_property) : "";
- this._flexBoxSetter(flexShrink_local_var_property, val, priority, flexShrink_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(flexShrink_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- flexShrink_export_property = flexShrink_local_var_property;
- var flexBasis_export_parse, flexBasis_export_definition, flexBasis_export_property;
- const flexBasis_local_var_property = "flex-basis";
- const flexBasis_local_var_shorthand = "flex";
- flexBasis_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(flexBasis_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- flexBasis_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(flexBasis_local_var_shorthand, "");
- this._setProperty(flexBasis_local_var_property, v);
- } else {
- const val = flexBasis_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(flexBasis_local_var_shorthand) && this._priorities.has(flexBasis_local_var_property) ? this._priorities.get(flexBasis_local_var_property) : "";
- this._flexBoxSetter(flexBasis_local_var_property, val, priority, flexBasis_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(flexBasis_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- flexBasis_export_property = flexBasis_local_var_property;
- var flex_export_initialValues, flex_export_shorthandFor, flex_export_parse, flex_export_definition, flex_export_property;
- const flex_local_var_property = "flex";
- flex_export_initialValues = new Map([[{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property, "0"], [{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property, "1"], [{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property, "auto"]]);
- flex_export_shorthandFor = new Map([[{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property, {
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }], [{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property, {
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }], [{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property, {
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }]]);
- flex_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const value = external_dependency_parsers_0.parsePropertyValue(flex_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- const flex = {
- [{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property]: "1",
- [{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property]: "1",
- [{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property]: "0%"
- };
- if (value.length === 1) {
- const [{
- isNumber,
- name,
- type,
- unit,
- value: itemValue
- }] = value;
- switch (type) {
- case AST_TYPES.CALC:
- {
- if (isNumber) {
- flex[{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property] = `${name}(${itemValue})`;
- return flex;
- }
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${name}(${itemValue})`;
- return flex;
- }
- case AST_TYPES.DIMENSION:
- {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${itemValue}${unit}`;
- return flex;
- }
- case AST_TYPES.GLOBAL_KEYWORD:
- {
- return name;
- }
- case AST_TYPES.IDENTIFIER:
- {
- if (name === "none") {
- return {
- [{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property]: "0",
- [{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property]: "0",
- [{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property]: "auto"
- };
- }
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = name;
- return flex;
- }
- case AST_TYPES.NUMBER:
- {
- flex[{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property] = itemValue;
- return flex;
- }
- case AST_TYPES.PERCENTAGE:
- {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${itemValue}%`;
- return flex;
- }
- default:
- }
- } else {
- const [val1, val2, val3] = value;
- if (val1.type === AST_TYPES.CALC && val1.isNumber) {
- flex[{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property] = `${val1.name}(${val1.value})`;
- } else if (val1.type === AST_TYPES.NUMBER) {
- flex[{
- parse: flexGrow_export_parse,
- definition: flexGrow_export_definition,
- property: flexGrow_export_property
- }.property] = val1.value;
- } else {
- return;
- }
- if (val3) {
- if (val2.type === AST_TYPES.CALC && val2.isNumber) {
- flex[{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property] = `${val2.name}(${val2.value})`;
- } else if (val2.type === AST_TYPES.NUMBER) {
- flex[{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property] = val2.value;
- } else {
- return;
- }
- if (val3.type === AST_TYPES.GLOBAL_KEYWORD || val3.type === AST_TYPES.IDENTIFIER) {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = val3.name;
- } else if (val3.type === AST_TYPES.CALC && !val3.isNumber) {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${val3.name}(${val3.value})`;
- } else if (val3.type === AST_TYPES.DIMENSION) {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${val3.value}${val3.unit}`;
- } else if (val3.type === AST_TYPES.PERCENTAGE) {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${val3.value}%`;
- } else {
- return;
- }
- } else {
- switch (val2.type) {
- case AST_TYPES.CALC:
- {
- if (val2.isNumber) {
- flex[{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property] = `${val2.name}(${val2.value})`;
- } else {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${val2.name}(${val2.value})`;
- }
- break;
- }
- case AST_TYPES.DIMENSION:
- {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${val2.value}${val2.unit}`;
- break;
- }
- case AST_TYPES.NUMBER:
- {
- flex[{
- parse: flexShrink_export_parse,
- definition: flexShrink_export_definition,
- property: flexShrink_export_property
- }.property] = val2.value;
- break;
- }
- case AST_TYPES.PERCENTAGE:
- {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = `${val2.value}%`;
- break;
- }
- case AST_TYPES.IDENTIFIER:
- {
- flex[{
- parse: flexBasis_export_parse,
- definition: flexBasis_export_definition,
- property: flexBasis_export_property
- }.property] = val2.name;
- break;
- }
- default:
- {
- return;
- }
- }
- }
- return flex;
- }
- } else if (typeof value === "string") {
- return value;
- }
- };
- flex_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- for (const [longhand] of flex_export_shorthandFor) {
- this._setProperty(longhand, "");
- }
- this._setProperty(flex_local_var_property, v);
- } else {
- const val = flex_export_parse(v, {
- globalObject: this._global
- });
- const priority = this._priorities.get(flex_local_var_property) ?? "";
- if (typeof val === "string") {
- for (const [longhand] of flex_export_shorthandFor) {
- this._setProperty(longhand, val, priority);
- }
- this._setProperty(flex_local_var_property, val, priority);
- } else if (val) {
- const values = [];
- for (const [longhand, value] of Object.entries(val)) {
- values.push(value);
- this._setProperty(longhand, value, priority);
- }
- this._setProperty(flex_local_var_property, values.join(" "), priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(flex_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- flex_export_property = flex_local_var_property;
- var float_export_parse, float_export_definition, float_export_property;
- const float_local_var_property = "float";
- float_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(float_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveKeywordValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- float_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(float_local_var_property, v);
- } else {
- const val = float_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(float_local_var_property) ?? "";
- this._setProperty(float_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(float_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- float_export_property = float_local_var_property;
- var floodColor_export_parse, floodColor_export_definition, floodColor_export_property;
- const floodColor_local_var_property = "flood-color";
- floodColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(floodColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- floodColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(floodColor_local_var_property, v);
- } else {
- const val = floodColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(floodColor_local_var_property) ?? "";
- this._setProperty(floodColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(floodColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- floodColor_export_property = floodColor_local_var_property;
- var fontStyle_export_parse, fontStyle_export_definition, fontStyle_export_property;
- const fontStyle_local_var_property = "font-style";
- const fontStyle_local_var_shorthand = "font";
- fontStyle_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const value = external_dependency_parsers_0.parsePropertyValue(fontStyle_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- if (value.length === 1) {
- const [{
- name,
- type
- }] = value;
- switch (type) {
- case AST_TYPES.GLOBAL_KEYWORD:
- case AST_TYPES.IDENTIFIER:
- {
- return name;
- }
- default:
- }
- } else if (value.length === 2) {
- const [part1, part2] = value;
- const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
- const val2 = external_dependency_parsers_0.resolveNumericValue([part2], {
- type: "angle"
- });
- if (val1 && val1 === "oblique" && val2) {
- return `${val1} ${val2}`;
- }
- }
- } else if (typeof value === "string") {
- return value;
- }
- };
- fontStyle_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(fontStyle_local_var_shorthand, "");
- this._setProperty(fontStyle_local_var_property, v);
- } else {
- const val = fontStyle_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(fontStyle_local_var_shorthand) && this._priorities.has(fontStyle_local_var_property) ? this._priorities.get(fontStyle_local_var_property) : "";
- this._setProperty(fontStyle_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(fontStyle_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- fontStyle_export_property = fontStyle_local_var_property;
- var fontVariant_export_parse, fontVariant_export_definition, fontVariant_export_property;
- const fontVariant_local_var_property = "font-variant";
- const fontVariant_local_var_shorthand = "font";
- fontVariant_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.splitValue(v);
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(fontVariant_local_var_property, val, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveFunctionValue(value);
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- } else if (typeof value === "string") {
- parsedValues.push(value);
- }
- }
- if (parsedValues.length) {
- if (parsedValues.length > 1) {
- if (parsedValues.includes("normal") || parsedValues.includes("none")) {
- return;
- }
- }
- return parsedValues.join(" ");
- }
- };
- fontVariant_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(fontVariant_local_var_shorthand, "");
- this._setProperty(fontVariant_local_var_property, v);
- } else {
- const val = fontVariant_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(fontVariant_local_var_shorthand) && this._priorities.has(fontVariant_local_var_property) ? this._priorities.get(fontVariant_local_var_property) : "";
- this._setProperty(fontVariant_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(fontVariant_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- fontVariant_export_property = fontVariant_local_var_property;
- var fontWeight_export_parse, fontWeight_export_definition, fontWeight_export_property;
- const fontWeight_local_var_property = "font-weight";
- const fontWeight_local_var_shorthand = "font";
- fontWeight_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(fontWeight_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const parsedValue = external_dependency_parsers_0.resolveNumericValue(value, {
- min: 1,
- max: 1000
- });
- if (!parsedValue) {
- return;
- }
- return parsedValue;
- } else if (typeof value === "string") {
- return value;
- }
- };
- fontWeight_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(fontWeight_local_var_shorthand, "");
- this._setProperty(fontWeight_local_var_property, v);
- } else {
- const val = fontWeight_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(fontWeight_local_var_shorthand) && this._priorities.has(fontWeight_local_var_property) ? this._priorities.get(fontWeight_local_var_property) : "";
- this._setProperty(fontWeight_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(fontWeight_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- fontWeight_export_property = fontWeight_local_var_property;
- var fontSize_export_parse, fontSize_export_definition, fontSize_export_property;
- const fontSize_local_var_property = "font-size";
- const fontSize_local_var_shorthand = "font";
- fontSize_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(fontSize_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- fontSize_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(fontSize_local_var_shorthand, "");
- this._setProperty(fontSize_local_var_property, v);
- } else {
- const val = fontSize_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(fontSize_local_var_shorthand) && this._priorities.has(fontSize_local_var_property) ? this._priorities.get(fontSize_local_var_property) : "";
- this._setProperty(fontSize_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(fontSize_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- fontSize_export_property = fontSize_local_var_property;
- var lineHeight_export_parse, lineHeight_export_definition, lineHeight_export_property;
- const lineHeight_local_var_property = "line-height";
- const lineHeight_local_var_shorthand = "font";
- lineHeight_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(lineHeight_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- lineHeight_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(lineHeight_local_var_shorthand, "");
- this._setProperty(lineHeight_local_var_property, v);
- } else {
- const val = lineHeight_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(lineHeight_local_var_shorthand) && this._priorities.has(lineHeight_local_var_property) ? this._priorities.get(lineHeight_local_var_property) : "";
- this._setProperty(lineHeight_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(lineHeight_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- lineHeight_export_property = lineHeight_local_var_property;
- var fontFamily_export_parse, fontFamily_export_definition, fontFamily_export_property;
- const fontFamily_local_var_property = "font-family";
- const fontFamily_local_var_shorthand = "font";
- fontFamily_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const values = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const parsedValues = [];
- for (const val of values) {
- const value = external_dependency_parsers_0.parsePropertyValue(fontFamily_local_var_property, val, {
- globalObject,
- caseSensitive: true,
- inArray: true
- });
- if (Array.isArray(value) && value.length) {
- if (value.length === 1) {
- const [{
- name,
- type,
- value: itemValue
- }] = value;
- switch (type) {
- case AST_TYPES.FUNCTION:
- {
- parsedValues.push(`${name}(${itemValue})`);
- break;
- }
- case AST_TYPES.GLOBAL_KEYWORD:
- case AST_TYPES.IDENTIFIER:
- {
- if (name === "undefined") {
- return;
- }
- parsedValues.push(name);
- break;
- }
- case "String":
- {
- const parsedValue = itemValue.replaceAll("\\", "").replaceAll('"', '\\"');
- parsedValues.push(`"${parsedValue}"`);
- break;
- }
- default:
- {
- return;
- }
- }
- } else {
- const parts = [];
- for (const item of value) {
- const {
- name,
- type
- } = item;
- if (type !== AST_TYPES.IDENTIFIER) {
- return;
- }
- parts.push(name);
- }
- const parsedValue = parts.join(" ").replaceAll("\\", "").replaceAll('"', '\\"');
- parsedValues.push(`"${parsedValue}"`);
- }
- } else if (typeof value === "string") {
- parsedValues.push(value);
- } else {
- return;
- }
- }
- if (parsedValues.length) {
- return parsedValues.join(", ");
- }
- };
- fontFamily_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(fontFamily_local_var_shorthand, "");
- this._setProperty(fontFamily_local_var_property, v);
- } else {
- const val = fontFamily_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(fontFamily_local_var_shorthand) && this._priorities.has(fontFamily_local_var_property) ? this._priorities.get(fontFamily_local_var_property) : "";
- this._setProperty(fontFamily_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(fontFamily_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- fontFamily_export_property = fontFamily_local_var_property;
- var font_export_shorthandFor, font_export_parse, font_export_definition, font_export_property;
- const font_local_var_property = "font";
- font_export_shorthandFor = new Map([[{
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }.property, {
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }], [{
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.property, {
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }], [{
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }.property, {
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }], [{
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.property, {
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }], [{
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.property, {
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }], [{
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.property, {
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }]]);
- font_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- } else if (external_dependency_parsers_0.hasCalcFunc(v)) {
- v = external_dependency_parsers_0.resolveCalc(v);
- }
- if (!external_dependency_parsers_0.isValidPropertyValue(font_local_var_property, v)) {
- return;
- }
- const {
- AST_TYPES
- } = external_dependency_parsers_0;
- const [fontBlock, ...families] = external_dependency_parsers_0.splitValue(v, {
- delimiter: ","
- });
- const [fontBlockA, fontBlockB] = external_dependency_parsers_0.splitValue(fontBlock, {
- delimiter: "/"
- });
- const font = {
- [{
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }.property]: "normal",
- [{
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.property]: "normal",
- [{
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }.property]: "normal"
- };
- const fontFamilies = new Set();
- if (fontBlockB) {
- const [lineB, ...familiesB] = fontBlockB.trim().split(" ");
- if (!lineB || !familiesB.length) {
- return;
- }
- const lineHeightB = {
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.parse(lineB, {
- global
- });
- if (typeof lineHeightB !== "string") {
- return;
- }
- const familyB = {
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.parse(familiesB.join(" "), {
- globalObject,
- caseSensitive: true
- });
- if (typeof familyB === "string") {
- fontFamilies.add(familyB);
- } else {
- return;
- }
- const parts = external_dependency_parsers_0.splitValue(fontBlockA.trim());
- const properties = [{
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }.property, {
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.property, {
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }.property, {
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.property];
- for (const part of parts) {
- if (part === "normal") {
- continue;
- } else {
- for (const longhand of properties) {
- switch (longhand) {
- case {
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.property:
- {
- const parsedValue = {
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.parse(part, {
- globalObject
- });
- if (typeof parsedValue === "string") {
- font[longhand] = parsedValue;
- }
- break;
- }
- case {
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }.property:
- case {
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }.property:
- {
- if (font[longhand] === "normal") {
- const longhandItem = font_export_shorthandFor.get(longhand);
- const parsedValue = longhandItem.parse(part, {
- globalObject
- });
- if (typeof parsedValue === "string") {
- font[longhand] = parsedValue;
- }
- }
- break;
- }
- case {
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.property:
- {
- if (font[longhand] === "normal") {
- const parsedValue = {
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.parse(part, {
- globalObject
- });
- if (typeof parsedValue === "string") {
- if (parsedValue === "small-cap") {
- font[longhand] = parsedValue;
- } else if (parsedValue !== "normal") {
- return;
- }
- }
- }
- break;
- }
- default:
- }
- }
- }
- }
- if (Object.hasOwn(font, {
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.property)) {
- font[{
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.property] = lineHeightB;
- } else {
- return;
- }
- } else {
- const revParts = external_dependency_parsers_0.splitValue(fontBlockA.trim()).toReversed();
- if (revParts.length === 1) {
- const [part] = revParts;
- const value = external_dependency_parsers_0.parsePropertyValue(font_local_var_property, part, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- const [{
- name,
- type
- }] = value;
- if (type === AST_TYPES.GLOBAL_KEYWORD) {
- return {
- [{
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }.property]: name,
- [{
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.property]: name,
- [{
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }.property]: name,
- [{
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.property]: name,
- [{
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.property]: name,
- [{
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.property]: name
- };
- }
- }
- return;
- }
- const properties = [{
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }.property, {
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.property, {
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }.property, {
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.property];
- for (const longhand of properties) {
- font[longhand] = "normal";
- }
- const revFontFamily = [];
- let fontSizeA;
- for (const part of revParts) {
- if (fontSizeA) {
- if (/^normal$/i.test(part)) {
- continue;
- } else {
- for (const longhand of properties) {
- switch (longhand) {
- case {
- parse: fontStyle_export_parse,
- definition: fontStyle_export_definition,
- property: fontStyle_export_property
- }.property:
- case {
- parse: fontWeight_export_parse,
- definition: fontWeight_export_definition,
- property: fontWeight_export_property
- }.property:
- case {
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.property:
- {
- if (font[longhand] === "normal") {
- const longhandItem = font_export_shorthandFor.get(longhand);
- const parsedValue = longhandItem.parse(part, {
- globalObject
- });
- if (typeof parsedValue === "string") {
- font[longhand] = parsedValue;
- }
- }
- break;
- }
- case {
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.property:
- {
- if (font[longhand] === "normal") {
- const parsedValue = {
- parse: fontVariant_export_parse,
- definition: fontVariant_export_definition,
- property: fontVariant_export_property
- }.parse(part, {
- globalObject
- });
- if (typeof parsedValue === "string") {
- if (parsedValue === "small-cap") {
- font[longhand] = parsedValue;
- } else if (parsedValue !== "normal") {
- return;
- }
- }
- }
- break;
- }
- default:
- }
- }
- }
- } else {
- const parsedFontSize = {
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.parse(part, {
- globalObject
- });
- if (typeof parsedFontSize === "string") {
- fontSizeA = parsedFontSize;
- } else {
- const parsedFontFamily = {
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.parse(part, {
- globalObject,
- caseSensitive: true
- });
- if (typeof parsedFontFamily === "string") {
- revFontFamily.push(parsedFontFamily);
- } else {
- return;
- }
- }
- }
- }
- const family = {
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.parse(revFontFamily.toReversed().join(" "), {
- globalObject,
- caseSensitive: true
- });
- if (fontSizeA && family) {
- font[{
- parse: fontSize_export_parse,
- definition: fontSize_export_definition,
- property: fontSize_export_property
- }.property] = fontSizeA;
- fontFamilies.add({
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.parse(family));
- } else {
- return;
- }
- }
- for (const family of families) {
- const parsedFontFamily = {
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.parse(family, {
- globalObject,
- caseSensitive: true
- });
- if (parsedFontFamily) {
- fontFamilies.add(parsedFontFamily);
- } else {
- return;
- }
- }
- font[{
- parse: fontFamily_export_parse,
- definition: fontFamily_export_definition,
- property: fontFamily_export_property
- }.property] = [...fontFamilies].join(", ");
- return font;
- };
- font_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (v === "" || external_dependency_parsers_0.hasVarFunc(v)) {
- for (const [key] of font_export_shorthandFor) {
- this._setProperty(key, "");
- }
- this._setProperty(font_local_var_property, v);
- } else {
- const obj = font_export_parse(v, {
- globalObject: this._global
- });
- if (!obj) {
- return;
- }
- const priority = this._priorities.get(font_local_var_property) ?? "";
- const str = new Set();
- for (const [key] of font_export_shorthandFor) {
- const val = obj[key];
- if (typeof val === "string") {
- this._setProperty(key, val, priority);
- if (val && val !== "normal" && !str.has(val)) {
- if (key === {
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.property) {
- str.add(`/ ${val}`);
- } else {
- str.add(val);
- }
- }
- }
- }
- this._setProperty(font_local_var_property, [...str].join(" "), priority);
- }
- },
- get() {
- const val = this.getPropertyValue(font_local_var_property);
- if (external_dependency_parsers_0.hasVarFunc(val)) {
- return val;
- }
- const str = new Set();
- for (const [key] of font_export_shorthandFor) {
- const v = this.getPropertyValue(key);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- return "";
- }
- if (v && v !== "normal" && !str.has(v)) {
- if (key === {
- parse: lineHeight_export_parse,
- definition: lineHeight_export_definition,
- property: lineHeight_export_property
- }.property) {
- str.add(`/ ${v}`);
- } else {
- str.add(`${v}`);
- }
- }
- }
- return [...str].join(" ");
- },
- enumerable: true,
- configurable: true
- };
- font_export_property = font_local_var_property;
- var height_export_parse, height_export_definition, height_export_property;
- const height_local_var_property = "height";
- height_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(height_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- height_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(height_local_var_property, v);
- } else {
- const val = height_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(height_local_var_property) ?? "";
- this._setProperty(height_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(height_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- height_export_property = height_local_var_property;
- var left_export_parse, left_export_definition, left_export_property;
- const left_local_var_property = "left";
- left_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(left_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- left_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(left_local_var_property, v);
- } else {
- const val = left_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(left_local_var_property) ?? "";
- this._setProperty(left_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(left_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- left_export_property = left_local_var_property;
- var lightingColor_export_parse, lightingColor_export_definition, lightingColor_export_property;
- const lightingColor_local_var_property = "lighting-color";
- lightingColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(lightingColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- lightingColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(lightingColor_local_var_property, v);
- } else {
- const val = lightingColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(lightingColor_local_var_property) ?? "";
- this._setProperty(lightingColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(lightingColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- lightingColor_export_property = lightingColor_local_var_property;
- var marginTop_export_position, marginTop_export_parse, marginTop_export_definition, marginTop_export_property;
- const marginTop_local_var_property = "margin-top";
- const marginTop_local_var_shorthand = "margin";
- marginTop_export_position = "top";
- marginTop_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(marginTop_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- marginTop_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(marginTop_local_var_shorthand, "");
- this._setProperty(marginTop_local_var_property, v);
- } else {
- const val = marginTop_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(marginTop_local_var_shorthand) && this._priorities.has(marginTop_local_var_property) ? this._priorities.get(marginTop_local_var_property) : "";
- this._positionLonghandSetter(marginTop_local_var_property, val, priority, marginTop_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(marginTop_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- marginTop_export_property = marginTop_local_var_property;
- var marginRight_export_position, marginRight_export_parse, marginRight_export_definition, marginRight_export_property;
- const marginRight_local_var_property = "margin-right";
- const marginRight_local_var_shorthand = "margin";
- marginRight_export_position = "right";
- marginRight_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(marginRight_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- marginRight_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(marginRight_local_var_shorthand, "");
- this._setProperty(marginRight_local_var_property, v);
- } else {
- const val = marginRight_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(marginRight_local_var_shorthand) && this._priorities.has(marginRight_local_var_property) ? this._priorities.get(marginRight_local_var_property) : "";
- this._positionLonghandSetter(marginRight_local_var_property, val, priority, marginRight_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(marginRight_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- marginRight_export_property = marginRight_local_var_property;
- var marginBottom_export_position, marginBottom_export_parse, marginBottom_export_definition, marginBottom_export_property;
- const marginBottom_local_var_property = "margin-bottom";
- const marginBottom_local_var_shorthand = "margin";
- marginBottom_export_position = "bottom";
- marginBottom_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(marginBottom_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- marginBottom_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(marginBottom_local_var_shorthand, "");
- this._setProperty(marginBottom_local_var_property, v);
- } else {
- const val = marginBottom_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(marginBottom_local_var_shorthand) && this._priorities.has(marginBottom_local_var_property) ? this._priorities.get(marginBottom_local_var_property) : "";
- this._positionLonghandSetter(marginBottom_local_var_property, val, priority, marginBottom_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(marginBottom_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- marginBottom_export_property = marginBottom_local_var_property;
- var marginLeft_export_position, marginLeft_export_parse, marginLeft_export_definition, marginLeft_export_property;
- const marginLeft_local_var_property = "margin-left";
- const marginLeft_local_var_shorthand = "margin";
- marginLeft_export_position = "left";
- marginLeft_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(marginLeft_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- marginLeft_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(marginLeft_local_var_shorthand, "");
- this._setProperty(marginLeft_local_var_property, v);
- } else {
- const val = marginLeft_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(marginLeft_local_var_shorthand) && this._priorities.has(marginLeft_local_var_property) ? this._priorities.get(marginLeft_local_var_property) : "";
- this._positionLonghandSetter(marginLeft_local_var_property, val, priority, marginLeft_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(marginLeft_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- marginLeft_export_property = marginLeft_local_var_property;
- var margin_export_position, margin_export_shorthandFor, margin_export_parse, margin_export_definition, margin_export_property;
- const margin_local_var_property = "margin";
- margin_export_position = "edges";
- margin_export_shorthandFor = new Map([[{
- position: marginTop_export_position,
- parse: marginTop_export_parse,
- definition: marginTop_export_definition,
- property: marginTop_export_property
- }.property, {
- position: marginTop_export_position,
- parse: marginTop_export_parse,
- definition: marginTop_export_definition,
- property: marginTop_export_property
- }], [{
- position: marginRight_export_position,
- parse: marginRight_export_parse,
- definition: marginRight_export_definition,
- property: marginRight_export_property
- }.property, {
- position: marginRight_export_position,
- parse: marginRight_export_parse,
- definition: marginRight_export_definition,
- property: marginRight_export_property
- }], [{
- position: marginBottom_export_position,
- parse: marginBottom_export_parse,
- definition: marginBottom_export_definition,
- property: marginBottom_export_property
- }.property, {
- position: marginBottom_export_position,
- parse: marginBottom_export_parse,
- definition: marginBottom_export_definition,
- property: marginBottom_export_property
- }], [{
- position: marginLeft_export_position,
- parse: marginLeft_export_parse,
- definition: marginLeft_export_definition,
- property: marginLeft_export_property
- }.property, {
- position: marginLeft_export_position,
- parse: marginLeft_export_parse,
- definition: marginLeft_export_definition,
- property: marginLeft_export_property
- }]]);
- margin_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.parsePropertyValue(margin_local_var_property, v, {
- globalObject,
- inArray: true
- });
- const parsedValues = [];
- if (Array.isArray(values) && values.length) {
- if (values.length > 4) {
- return;
- }
- for (const value of values) {
- const parsedValue = external_dependency_parsers_0.resolveNumericValue([value], {
- length: values.length,
- type: "length"
- });
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- }
- } else if (typeof values === "string") {
- parsedValues.push(values);
- }
- if (parsedValues.length) {
- return parsedValues;
- }
- };
- margin_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- for (const [longhand] of margin_export_shorthandFor) {
- this._setProperty(longhand, "");
- }
- this._setProperty(margin_local_var_property, v);
- } else {
- const val = margin_export_parse(v, {
- globalObject: this._global
- });
- if (Array.isArray(val) || typeof val === "string") {
- const priority = this._priorities.get(margin_local_var_property) ?? "";
- this._positionShorthandSetter(margin_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(margin_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- margin_export_property = margin_local_var_property;
- var opacity_export_parse, opacity_export_definition, opacity_export_property;
- const opacity_local_var_property = "opacity";
- opacity_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(opacity_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- clamp: true
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- opacity_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(opacity_local_var_property, v);
- } else {
- const val = opacity_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(opacity_local_var_property) ?? "";
- this._setProperty(opacity_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(opacity_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- opacity_export_property = opacity_local_var_property;
- var outlineColor_export_parse, outlineColor_export_definition, outlineColor_export_property;
- const outlineColor_local_var_property = "outline-color";
- outlineColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(outlineColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- outlineColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(outlineColor_local_var_property, v);
- } else {
- const val = outlineColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(outlineColor_local_var_property) ?? "";
- this._setProperty(outlineColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(outlineColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- outlineColor_export_property = outlineColor_local_var_property;
- var paddingTop_export_position, paddingTop_export_parse, paddingTop_export_definition, paddingTop_export_property;
- const paddingTop_local_var_property = "padding-top";
- const paddingTop_local_var_shorthand = "padding";
- paddingTop_export_position = "top";
- paddingTop_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(paddingTop_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- paddingTop_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(paddingTop_local_var_shorthand, "");
- this._setProperty(paddingTop_local_var_property, v);
- } else {
- const val = paddingTop_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(paddingTop_local_var_shorthand) && this._priorities.has(paddingTop_local_var_property) ? this._priorities.get(paddingTop_local_var_property) : "";
- this._positionLonghandSetter(paddingTop_local_var_property, val, priority, paddingTop_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(paddingTop_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- paddingTop_export_property = paddingTop_local_var_property;
- var paddingRight_export_position, paddingRight_export_parse, paddingRight_export_definition, paddingRight_export_property;
- const paddingRight_local_var_property = "padding-right";
- const paddingRight_local_var_shorthand = "padding";
- paddingRight_export_position = "right";
- paddingRight_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(paddingRight_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- paddingRight_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(paddingRight_local_var_shorthand, "");
- this._setProperty(paddingRight_local_var_property, v);
- } else {
- const val = paddingRight_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(paddingRight_local_var_shorthand) && this._priorities.has(paddingRight_local_var_property) ? this._priorities.get(paddingRight_local_var_property) : "";
- this._positionLonghandSetter(paddingRight_local_var_property, val, priority, paddingRight_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(paddingRight_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- paddingRight_export_property = paddingRight_local_var_property;
- var paddingBottom_export_position, paddingBottom_export_parse, paddingBottom_export_definition, paddingBottom_export_property;
- const paddingBottom_local_var_property = "padding-bottom";
- const paddingBottom_local_var_shorthand = "padding";
- paddingBottom_export_position = "bottom";
- paddingBottom_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(paddingBottom_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- paddingBottom_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(paddingBottom_local_var_shorthand, "");
- this._setProperty(paddingBottom_local_var_property, v);
- } else {
- const val = paddingBottom_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(paddingBottom_local_var_shorthand) && this._priorities.has(paddingBottom_local_var_property) ? this._priorities.get(paddingBottom_local_var_property) : "";
- this._positionLonghandSetter(paddingBottom_local_var_property, val, priority, paddingBottom_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(paddingBottom_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- paddingBottom_export_property = paddingBottom_local_var_property;
- var paddingLeft_export_position, paddingLeft_export_parse, paddingLeft_export_definition, paddingLeft_export_property;
- const paddingLeft_local_var_property = "padding-left";
- const paddingLeft_local_var_shorthand = "padding";
- paddingLeft_export_position = "left";
- paddingLeft_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(paddingLeft_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- paddingLeft_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(paddingLeft_local_var_shorthand, "");
- this._setProperty(paddingLeft_local_var_property, v);
- } else {
- const val = paddingLeft_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = !this._priorities.get(paddingLeft_local_var_shorthand) && this._priorities.has(paddingLeft_local_var_property) ? this._priorities.get(paddingLeft_local_var_property) : "";
- this._positionLonghandSetter(paddingLeft_local_var_property, val, priority, paddingLeft_local_var_shorthand);
- }
- }
- },
- get() {
- return this.getPropertyValue(paddingLeft_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- paddingLeft_export_property = paddingLeft_local_var_property;
- var padding_export_position, padding_export_shorthandFor, padding_export_parse, padding_export_definition, padding_export_property;
- const padding_local_var_property = "padding";
- padding_export_position = "edges";
- padding_export_shorthandFor = new Map([[{
- position: paddingTop_export_position,
- parse: paddingTop_export_parse,
- definition: paddingTop_export_definition,
- property: paddingTop_export_property
- }.property, {
- position: paddingTop_export_position,
- parse: paddingTop_export_parse,
- definition: paddingTop_export_definition,
- property: paddingTop_export_property
- }], [{
- position: paddingRight_export_position,
- parse: paddingRight_export_parse,
- definition: paddingRight_export_definition,
- property: paddingRight_export_property
- }.property, {
- position: paddingRight_export_position,
- parse: paddingRight_export_parse,
- definition: paddingRight_export_definition,
- property: paddingRight_export_property
- }], [{
- position: paddingBottom_export_position,
- parse: paddingBottom_export_parse,
- definition: paddingBottom_export_definition,
- property: paddingBottom_export_property
- }.property, {
- position: paddingBottom_export_position,
- parse: paddingBottom_export_parse,
- definition: paddingBottom_export_definition,
- property: paddingBottom_export_property
- }], [{
- position: paddingLeft_export_position,
- parse: paddingLeft_export_parse,
- definition: paddingLeft_export_definition,
- property: paddingLeft_export_property
- }.property, {
- position: paddingLeft_export_position,
- parse: paddingLeft_export_parse,
- definition: paddingLeft_export_definition,
- property: paddingLeft_export_property
- }]]);
- padding_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const values = external_dependency_parsers_0.parsePropertyValue(padding_local_var_property, v, {
- globalObject,
- inArray: true
- });
- const parsedValues = [];
- if (Array.isArray(values) && values.length) {
- if (values.length > 4) {
- return;
- }
- for (const value of values) {
- const parsedValue = external_dependency_parsers_0.resolveNumericValue([value], {
- length: values.length,
- min: 0,
- type: "length"
- });
- if (!parsedValue) {
- return;
- }
- parsedValues.push(parsedValue);
- }
- } else if (typeof values === "string") {
- parsedValues.push(values);
- }
- if (parsedValues.length) {
- return parsedValues;
- }
- };
- padding_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- for (const [longhand] of padding_export_shorthandFor) {
- this._setProperty(longhand, "");
- }
- this._setProperty(padding_local_var_property, v);
- } else {
- const val = padding_export_parse(v, {
- globalObject: this._global
- });
- if (Array.isArray(val) || typeof val === "string") {
- const priority = this._priorities.get(padding_local_var_property) ?? "";
- this._positionShorthandSetter(padding_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(padding_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- padding_export_property = padding_local_var_property;
- var right_export_parse, right_export_definition, right_export_property;
- const right_local_var_property = "right";
- right_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(right_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- right_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(right_local_var_property, v);
- } else {
- const val = right_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(right_local_var_property) ?? "";
- this._setProperty(right_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(right_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- right_export_property = right_local_var_property;
- var stopColor_export_parse, stopColor_export_definition, stopColor_export_property;
- const stopColor_local_var_property = "stop-color";
- stopColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(stopColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- stopColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(stopColor_local_var_property, v);
- } else {
- const val = stopColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(stopColor_local_var_property) ?? "";
- this._setProperty(stopColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(stopColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- stopColor_export_property = stopColor_local_var_property;
- var top_export_parse, top_export_definition, top_export_property;
- const top_local_var_property = "top";
- top_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(top_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- top_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(top_local_var_property, v);
- } else {
- const val = top_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(top_local_var_property) ?? "";
- this._setProperty(top_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(top_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- top_export_property = top_local_var_property;
- var webkitBorderAfterColor_export_parse, webkitBorderAfterColor_export_definition, webkitBorderAfterColor_export_property;
- const webkitBorderAfterColor_local_var_property = "-webkit-border-after-color";
- webkitBorderAfterColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderAfterColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitBorderAfterColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitBorderAfterColor_local_var_property, v);
- } else {
- const val = webkitBorderAfterColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitBorderAfterColor_local_var_property) ?? "";
- this._setProperty(webkitBorderAfterColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitBorderAfterColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitBorderAfterColor_export_property = webkitBorderAfterColor_local_var_property;
- var webkitBorderBeforeColor_export_parse, webkitBorderBeforeColor_export_definition, webkitBorderBeforeColor_export_property;
- const webkitBorderBeforeColor_local_var_property = "-webkit-border-before-color";
- webkitBorderBeforeColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderBeforeColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitBorderBeforeColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitBorderBeforeColor_local_var_property, v);
- } else {
- const val = webkitBorderBeforeColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitBorderBeforeColor_local_var_property) ?? "";
- this._setProperty(webkitBorderBeforeColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitBorderBeforeColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitBorderBeforeColor_export_property = webkitBorderBeforeColor_local_var_property;
- var webkitBorderEndColor_export_parse, webkitBorderEndColor_export_definition, webkitBorderEndColor_export_property;
- const webkitBorderEndColor_local_var_property = "-webkit-border-end-color";
- webkitBorderEndColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderEndColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitBorderEndColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitBorderEndColor_local_var_property, v);
- } else {
- const val = webkitBorderEndColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitBorderEndColor_local_var_property) ?? "";
- this._setProperty(webkitBorderEndColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitBorderEndColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitBorderEndColor_export_property = webkitBorderEndColor_local_var_property;
- var webkitBorderStartColor_export_parse, webkitBorderStartColor_export_definition, webkitBorderStartColor_export_property;
- const webkitBorderStartColor_local_var_property = "-webkit-border-start-color";
- webkitBorderStartColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderStartColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitBorderStartColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitBorderStartColor_local_var_property, v);
- } else {
- const val = webkitBorderStartColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitBorderStartColor_local_var_property) ?? "";
- this._setProperty(webkitBorderStartColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitBorderStartColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitBorderStartColor_export_property = webkitBorderStartColor_local_var_property;
- var webkitColumnRuleColor_export_parse, webkitColumnRuleColor_export_definition, webkitColumnRuleColor_export_property;
- const webkitColumnRuleColor_local_var_property = "-webkit-column-rule-color";
- webkitColumnRuleColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitColumnRuleColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitColumnRuleColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitColumnRuleColor_local_var_property, v);
- } else {
- const val = webkitColumnRuleColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitColumnRuleColor_local_var_property) ?? "";
- this._setProperty(webkitColumnRuleColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitColumnRuleColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitColumnRuleColor_export_property = webkitColumnRuleColor_local_var_property;
- var webkitTapHighlightColor_export_parse, webkitTapHighlightColor_export_definition, webkitTapHighlightColor_export_property;
- const webkitTapHighlightColor_local_var_property = "-webkit-tap-highlight-color";
- webkitTapHighlightColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitTapHighlightColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitTapHighlightColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitTapHighlightColor_local_var_property, v);
- } else {
- const val = webkitTapHighlightColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitTapHighlightColor_local_var_property) ?? "";
- this._setProperty(webkitTapHighlightColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitTapHighlightColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitTapHighlightColor_export_property = webkitTapHighlightColor_local_var_property;
- var webkitTextEmphasisColor_export_parse, webkitTextEmphasisColor_export_definition, webkitTextEmphasisColor_export_property;
- const webkitTextEmphasisColor_local_var_property = "-webkit-text-emphasis-color";
- webkitTextEmphasisColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitTextEmphasisColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitTextEmphasisColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitTextEmphasisColor_local_var_property, v);
- } else {
- const val = webkitTextEmphasisColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitTextEmphasisColor_local_var_property) ?? "";
- this._setProperty(webkitTextEmphasisColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitTextEmphasisColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitTextEmphasisColor_export_property = webkitTextEmphasisColor_local_var_property;
- var webkitTextFillColor_export_parse, webkitTextFillColor_export_definition, webkitTextFillColor_export_property;
- const webkitTextFillColor_local_var_property = "-webkit-text-fill-color";
- webkitTextFillColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitTextFillColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitTextFillColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitTextFillColor_local_var_property, v);
- } else {
- const val = webkitTextFillColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitTextFillColor_local_var_property) ?? "";
- this._setProperty(webkitTextFillColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitTextFillColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitTextFillColor_export_property = webkitTextFillColor_local_var_property;
- var webkitTextStrokeColor_export_parse, webkitTextStrokeColor_export_definition, webkitTextStrokeColor_export_property;
- const webkitTextStrokeColor_local_var_property = "-webkit-text-stroke-color";
- webkitTextStrokeColor_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(webkitTextStrokeColor_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveColorValue(value);
- } else if (typeof value === "string") {
- return value;
- }
- };
- webkitTextStrokeColor_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(webkitTextStrokeColor_local_var_property, v);
- } else {
- const val = webkitTextStrokeColor_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(webkitTextStrokeColor_local_var_property) ?? "";
- this._setProperty(webkitTextStrokeColor_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(webkitTextStrokeColor_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- webkitTextStrokeColor_export_property = webkitTextStrokeColor_local_var_property;
- var width_export_parse, width_export_definition, width_export_property;
- const width_local_var_property = "width";
- width_export_parse = (v, opt = {}) => {
- const {
- globalObject
- } = opt;
- if (v === "") {
- return v;
- }
- const value = external_dependency_parsers_0.parsePropertyValue(width_local_var_property, v, {
- globalObject,
- inArray: true
- });
- if (Array.isArray(value) && value.length === 1) {
- return external_dependency_parsers_0.resolveNumericValue(value, {
- min: 0,
- type: "length"
- });
- } else if (typeof value === "string") {
- return value;
- }
- };
- width_export_definition = {
- set(v) {
- v = external_dependency_parsers_0.prepareValue(v);
- if (external_dependency_parsers_0.hasVarFunc(v)) {
- this._setProperty(width_local_var_property, v);
- } else {
- const val = width_export_parse(v, {
- globalObject: this._global
- });
- if (typeof val === "string") {
- const priority = this._priorities.get(width_local_var_property) ?? "";
- this._setProperty(width_local_var_property, val, priority);
- }
- }
- },
- get() {
- return this.getPropertyValue(width_local_var_property);
- },
- enumerable: true,
- configurable: true
- };
- width_export_property = width_local_var_property;
- module.exports = {
- backgroundImage: backgroundImage_export_definition,
- "background-image": backgroundImage_export_definition,
- backgroundPosition: backgroundPosition_export_definition,
- "background-position": backgroundPosition_export_definition,
- backgroundSize: backgroundSize_export_definition,
- "background-size": backgroundSize_export_definition,
- backgroundRepeat: backgroundRepeat_export_definition,
- "background-repeat": backgroundRepeat_export_definition,
- backgroundOrigin: backgroundOrigin_export_definition,
- "background-origin": backgroundOrigin_export_definition,
- backgroundClip: backgroundClip_export_definition,
- "background-clip": backgroundClip_export_definition,
- backgroundAttachment: backgroundAttachment_export_definition,
- "background-attachment": backgroundAttachment_export_definition,
- backgroundColor: backgroundColor_export_definition,
- "background-color": backgroundColor_export_definition,
- background: background_export_definition,
- borderTopWidth: borderTopWidth_export_definition,
- "border-top-width": borderTopWidth_export_definition,
- borderRightWidth: borderRightWidth_export_definition,
- "border-right-width": borderRightWidth_export_definition,
- borderBottomWidth: borderBottomWidth_export_definition,
- "border-bottom-width": borderBottomWidth_export_definition,
- borderLeftWidth: borderLeftWidth_export_definition,
- "border-left-width": borderLeftWidth_export_definition,
- borderWidth: borderWidth_export_definition,
- "border-width": borderWidth_export_definition,
- borderTopStyle: borderTopStyle_export_definition,
- "border-top-style": borderTopStyle_export_definition,
- borderRightStyle: borderRightStyle_export_definition,
- "border-right-style": borderRightStyle_export_definition,
- borderBottomStyle: borderBottomStyle_export_definition,
- "border-bottom-style": borderBottomStyle_export_definition,
- borderLeftStyle: borderLeftStyle_export_definition,
- "border-left-style": borderLeftStyle_export_definition,
- borderStyle: borderStyle_export_definition,
- "border-style": borderStyle_export_definition,
- borderTopColor: borderTopColor_export_definition,
- "border-top-color": borderTopColor_export_definition,
- borderRightColor: borderRightColor_export_definition,
- "border-right-color": borderRightColor_export_definition,
- borderBottomColor: borderBottomColor_export_definition,
- "border-bottom-color": borderBottomColor_export_definition,
- borderLeftColor: borderLeftColor_export_definition,
- "border-left-color": borderLeftColor_export_definition,
- borderColor: borderColor_export_definition,
- "border-color": borderColor_export_definition,
- borderTop: borderTop_export_definition,
- "border-top": borderTop_export_definition,
- borderRight: borderRight_export_definition,
- "border-right": borderRight_export_definition,
- borderBottom: borderBottom_export_definition,
- "border-bottom": borderBottom_export_definition,
- borderLeft: borderLeft_export_definition,
- "border-left": borderLeft_export_definition,
- border: border_export_definition,
- borderCollapse: borderCollapse_export_definition,
- "border-collapse": borderCollapse_export_definition,
- borderSpacing: borderSpacing_export_definition,
- "border-spacing": borderSpacing_export_definition,
- bottom: bottom_export_definition,
- clear: clear_export_definition,
- clip: clip_export_definition,
- color: color_export_definition,
- display: display_export_definition,
- flexGrow: flexGrow_export_definition,
- "flex-grow": flexGrow_export_definition,
- flexShrink: flexShrink_export_definition,
- "flex-shrink": flexShrink_export_definition,
- flexBasis: flexBasis_export_definition,
- "flex-basis": flexBasis_export_definition,
- flex: flex_export_definition,
- float: float_export_definition,
- floodColor: floodColor_export_definition,
- "flood-color": floodColor_export_definition,
- fontStyle: fontStyle_export_definition,
- "font-style": fontStyle_export_definition,
- fontVariant: fontVariant_export_definition,
- "font-variant": fontVariant_export_definition,
- fontWeight: fontWeight_export_definition,
- "font-weight": fontWeight_export_definition,
- fontSize: fontSize_export_definition,
- "font-size": fontSize_export_definition,
- lineHeight: lineHeight_export_definition,
- "line-height": lineHeight_export_definition,
- fontFamily: fontFamily_export_definition,
- "font-family": fontFamily_export_definition,
- font: font_export_definition,
- height: height_export_definition,
- left: left_export_definition,
- lightingColor: lightingColor_export_definition,
- "lighting-color": lightingColor_export_definition,
- marginTop: marginTop_export_definition,
- "margin-top": marginTop_export_definition,
- marginRight: marginRight_export_definition,
- "margin-right": marginRight_export_definition,
- marginBottom: marginBottom_export_definition,
- "margin-bottom": marginBottom_export_definition,
- marginLeft: marginLeft_export_definition,
- "margin-left": marginLeft_export_definition,
- margin: margin_export_definition,
- opacity: opacity_export_definition,
- outlineColor: outlineColor_export_definition,
- "outline-color": outlineColor_export_definition,
- paddingTop: paddingTop_export_definition,
- "padding-top": paddingTop_export_definition,
- paddingRight: paddingRight_export_definition,
- "padding-right": paddingRight_export_definition,
- paddingBottom: paddingBottom_export_definition,
- "padding-bottom": paddingBottom_export_definition,
- paddingLeft: paddingLeft_export_definition,
- "padding-left": paddingLeft_export_definition,
- padding: padding_export_definition,
- right: right_export_definition,
- stopColor: stopColor_export_definition,
- "stop-color": stopColor_export_definition,
- top: top_export_definition,
- webkitBorderAfterColor: webkitBorderAfterColor_export_definition,
- "-webkit-border-after-color": webkitBorderAfterColor_export_definition,
- "WebkitBorderAfterColor": webkitBorderAfterColor_export_definition,
- webkitBorderBeforeColor: webkitBorderBeforeColor_export_definition,
- "-webkit-border-before-color": webkitBorderBeforeColor_export_definition,
- "WebkitBorderBeforeColor": webkitBorderBeforeColor_export_definition,
- webkitBorderEndColor: webkitBorderEndColor_export_definition,
- "-webkit-border-end-color": webkitBorderEndColor_export_definition,
- "WebkitBorderEndColor": webkitBorderEndColor_export_definition,
- webkitBorderStartColor: webkitBorderStartColor_export_definition,
- "-webkit-border-start-color": webkitBorderStartColor_export_definition,
- "WebkitBorderStartColor": webkitBorderStartColor_export_definition,
- webkitColumnRuleColor: webkitColumnRuleColor_export_definition,
- "-webkit-column-rule-color": webkitColumnRuleColor_export_definition,
- "WebkitColumnRuleColor": webkitColumnRuleColor_export_definition,
- webkitTapHighlightColor: webkitTapHighlightColor_export_definition,
- "-webkit-tap-highlight-color": webkitTapHighlightColor_export_definition,
- "WebkitTapHighlightColor": webkitTapHighlightColor_export_definition,
- webkitTextEmphasisColor: webkitTextEmphasisColor_export_definition,
- "-webkit-text-emphasis-color": webkitTextEmphasisColor_export_definition,
- "WebkitTextEmphasisColor": webkitTextEmphasisColor_export_definition,
- webkitTextFillColor: webkitTextFillColor_export_definition,
- "-webkit-text-fill-color": webkitTextFillColor_export_definition,
- "WebkitTextFillColor": webkitTextFillColor_export_definition,
- webkitTextStrokeColor: webkitTextStrokeColor_export_definition,
- "-webkit-text-stroke-color": webkitTextStrokeColor_export_definition,
- "WebkitTextStrokeColor": webkitTextStrokeColor_export_definition,
- width: width_export_definition
- };
|